Chapter 9 Β· Functions

Evaluate a linear function and complete its table

Find a linear function's output for any permitted input, then complete its table in both directions, checking each missing input against the domain.

15 min read

A function is a rule that gives each permitted input exactly one output. The set of permitted inputs is the function's domain. Two different inputs may share an output, but one input never has two outputs. In this lesson you will use a rule in both directions. You will go forward from an input to its output. You will also go backward from an output to an input that produces it, when such an input exists.

A linear function has a rule of the form f(x)=mx+bf(x) = mx + b, where mm and bb are fixed numbers. This is the slope-intercept form you already know, with f(x)f(x) written in place of yy. Read f(x)f(x) as f of x. It names the output for the input xx, and it does not mean ff times xx. For example, f(x)=βˆ’2x+5f(x) = -2x + 5 has m=βˆ’2m = -2 and b=5b = 5. No situation limits this rule, and it works for every number, so its domain is all real numbers.

Evaluating a function at an input means finding the output for that input. To do it, you substitute: you replace xx with the input and then do the arithmetic, multiplying before you add or subtract. This works because the rule tells you exactly what to do with any input in the domain. Put the input in parentheses when you substitute. That keeps a negative sign or a fraction attached to the number being multiplied.

Worked example

Evaluate at a negative input and a fraction

Use f(x)=βˆ’2x+5f(x) = -2x + 5, whose domain is all real numbers. Evaluate f(βˆ’3)f(-3) and f(12)f\left(\tfrac{1}{2}\right).

  1. Replace x with βˆ’3 and write it in parentheses, so the rule still reads βˆ’2 times the input.

    f(βˆ’3)=βˆ’2(βˆ’3)+5f(-3) = -2(-3) + 5
  2. Multiply first. A negative times a negative is positive, so βˆ’2 times βˆ’3 is 6. Then add 5.

    f(βˆ’3)=6+5=11f(-3) = 6 + 5 = 11
  3. Replace x with 1/2, again in parentheses, so the whole fraction is what gets multiplied by βˆ’2.

    f(12)=βˆ’2(12)+5f\left(\tfrac{1}{2}\right) = -2\left(\tfrac{1}{2}\right) + 5
  4. Multiply first. βˆ’2 times 1/2 is half of βˆ’2, which is βˆ’1. Then add 5.

    f(12)=βˆ’1+5=4f\left(\tfrac{1}{2}\right) = -1 + 5 = 4

Answer

The output for input βˆ’3-3 is 1111, so f(βˆ’3)=11f(-3) = 11. The output for input 12\tfrac{1}{2} is 44, so f(12)=4f\left(\tfrac{1}{2}\right) = 4.

A table for a function lists input–output pairs, with one pair in each row. When the rule is given, any row you fill in must make the rule true, so the rule decides each missing entry. (A table with no rule tells you only the pairs it shows.) To complete a table, you find every missing entry. Some rows give the input and are missing the output. Other rows give the output and are missing the input.

Key concept

One rule, two directions

For a linear function f(x)=mx+bf(x) = mx + b, the rule settles every missing entry of its table.

  • Input given: substitute the permitted input into the rule to get its output.
  • Output given: if mβ‰ 0m \ne 0, set mx+bmx + b equal to the output and solve for xx. There is exactly one solution. Keep it only if it is in the domain. If it is not in the domain, no permitted input has that output.

If m=0m = 0, every input gives the output bb. In that case an output other than bb has no input, and the output bb comes from every input in the domain.

f(x)=mx+bf(x) = mx + b

Now a situation limits the domain. A pump empties a water tank. Let tt be the time in minutes since the pump started, and let W(t)W(t) be the liters of water left at time tt. The rule is W(t)=120βˆ’15tW(t) = 120 - 15t. The pump runs from t=0t = 0 until the tank is empty, and the rule describes the tank only during that time. So you first find when the tank is empty. Here m=βˆ’15m = -15, which is not 00. Solving for a missing time therefore always gives exactly one value of tt, which you then check against the domain.

Water left in the tank. Each ? marks a missing entry.
RowTime t, in minutesWater left W(t), in liters
1
2.52.5
?
2
?
3030
3
?
5050
4
?
150150

Worked example

Find the domain, then complete rows 1 and 2

For W(t)=120βˆ’15tW(t) = 120 - 15t, find the domain. Then complete rows 1 and 2 of the table: find the water left at t=2.5t = 2.5, and find the time when 3030 liters are left.

  1. The tank is empty when the output is 0, so set the rule equal to 0. Add 15t to both sides. Doing the same thing to both sides keeps them equal.

    120βˆ’15t=0β€…β€Šβ‡’β€…β€Š120=15t120 - 15t = 0 \;\Rightarrow\; 120 = 15t
  2. Divide both sides by 15, which is allowed because 15 is not 0. So the tank is empty at 8 minutes. The rule describes the tank from the start at 0 minutes until then. The domain is therefore every time from 0 to 8 minutes, including both ends.

    t=12015=8,domain:Β 0≀t≀8t = \frac{120}{15} = 8, \qquad \text{domain: } 0 \le t \le 8
  3. Row 1 gives the input 2.5, which is between 0 and 8, so it is permitted. Substitute it in parentheses, and multiply before subtracting.

    W(2.5)=120βˆ’15(2.5)=120βˆ’37.5=82.5W(2.5) = 120 - 15(2.5) = 120 - 37.5 = 82.5
  4. Row 2 gives the output 30, so set the rule equal to 30. Subtract 120 from both sides, which keeps them equal.

    120βˆ’15t=30β€…β€Šβ‡’β€…β€Šβˆ’15t=βˆ’90120 - 15t = 30 \;\Rightarrow\; -15t = -90
  5. Divide both sides by βˆ’15, which is allowed because βˆ’15 is not 0. A negative divided by a negative is positive.

    t=βˆ’90βˆ’15=6t = \frac{-90}{-15} = 6
  6. Check the domain. 6 is between 0 and 8, so it is a permitted input. Then check the row by substituting 6 back into the rule.

    W(6)=120βˆ’15(6)=120βˆ’90=30W(6) = 120 - 15(6) = 120 - 90 = 30

Answer

The domain is 0≀t≀80 \le t \le 8. After 2.52.5 minutes, 82.582.5 liters are left, so W(2.5)=82.5W(2.5) = 82.5. Exactly 3030 liters are left at t=6t = 6 minutes.

Worked example

Complete rows 3 and 4

Complete rows 3 and 4 of the table: find the time when 5050 liters are left and the time when 150150 liters are left. Use the domain 0≀t≀80 \le t \le 8 that you found.

  1. Row 3 gives the output 50, so set the rule equal to 50. Subtract 120 from both sides. Then divide both sides by βˆ’15, which is not 0; a negative divided by a negative is positive. Simplify the fraction by dividing top and bottom by 5.

    120βˆ’15t=50β€…β€Šβ‡’β€…β€Šβˆ’15t=βˆ’70β€…β€Šβ‡’β€…β€Št=βˆ’70βˆ’15=7015=143120 - 15t = 50 \;\Rightarrow\; -15t = -70 \;\Rightarrow\; t = \frac{-70}{-15} = \frac{70}{15} = \frac{14}{3}
  2. The exact time is 14/3 minutes, which is 4 and 2/3 minutes. That equals 4 minutes 40 seconds, because 2/3 of 60 seconds is 40 seconds. Dividing 14 by 3 gives 4.666…, so 4.67 is only an approximation. The time is between 0 and 8, so it is permitted. Check the row.

    W(143)=120βˆ’15(143)=120βˆ’2103=120βˆ’70=50W\left(\tfrac{14}{3}\right) = 120 - 15\left(\tfrac{14}{3}\right) = 120 - \tfrac{210}{3} = 120 - 70 = 50
  3. Row 4 gives the output 150. Solve the same way: subtract 120 from both sides, then divide both sides by βˆ’15, which is not 0. A positive divided by a negative is negative.

    120βˆ’15t=150β€…β€Šβ‡’β€…β€Šβˆ’15t=30β€…β€Šβ‡’β€…β€Št=30βˆ’15=βˆ’2120 - 15t = 150 \;\Rightarrow\; -15t = 30 \;\Rightarrow\; t = \frac{30}{-15} = -2
  4. Check the domain. βˆ’2 is less than 0, so it is not permitted. It would mean 2 minutes before the pump started, which the rule does not describe. Because m = βˆ’15 is not 0, t = βˆ’2 is the only solution. So no permitted time gives 150 liters.

    βˆ’2<0-2 < 0

Answer

Exactly 5050 liters are left at t=143t = \tfrac{14}{3} minutes, which is 44 minutes 4040 seconds. No permitted input has output 150150: the only solution, t=βˆ’2t = -2, is outside the domain, so the tank never holds 150150 liters while the pump runs.

Takeaway: One rule works in both directions. Substitute a permitted input to get its one output. To work backward from an output, set the rule equal to that output and solve. When m≠0m \ne 0, you get exactly one possible input, and it counts only if the domain permits it. Next, you will start from a table or graph instead of a rule. You will find the rate of change and the initial value, then write the linear function.