Chapter 9 ยท Functions
Recover a Linear Function from a Table or Graph
Find the rate of change and initial value of a linear function from a table or a graph, then use them to write the function's rule.
You can already complete a table for a linear function. Now you will work backward: you start with a table or a graph and recover the function's rule.
Three terms first. A function pairs each permitted input with exactly one output. Different inputs may share an output, but one input never has two outputs. The domain is the set of permitted inputs, the inputs you are allowed to use. A linear function is a function with a rule you can write as , where and are fixed numbers. Here is the input, and , also written , is the output.
To recover a linear function, you need to find those two numbers, and , and to say which inputs are permitted.
Begin with a rule you can already use. Let for every real number . Completing a table gives , , and .
Notice two things in those values.
- Each time the input goes up by , the output goes up by . This is the rate of change: how much the output changes for each increase of in the input. It is the in , because adding to adds to and does not change the .
- When the input is , the output is . This is the initial value: the output at input . It is the added at the end of the rule, because .
The figure shows part of the graph of the same function. The horizontal axis shows the input , and the vertical axis shows the output . Each grid step is , and neither quantity has a unit. Line A is the graph of . Its four labelled points are the four pairs you just found: , , and .
- The point is on the vertical axis, where . Its -coordinate, , is the initial value.
- From each labelled point to the next, you move right and up. Take any two points on a line that have different -coordinates. The vertical change divided by the horizontal change between them is the line's slope. Here the slope is , which is the rate of change.
So a table and a graph hold the same two numbers. You only read them in different ways.
Key concept
Rate of change and initial value recover the rule
A table or graph shows only some input-output pairs. When you also know the function is linear on its domain, two numbers give its rule for every permitted input.
- Rate of change : pick two data points and with different inputs, . Divide the change in output by the change in input, subtracting in the same order on top and bottom.
- Initial value : the output at input . It is an actual output only when is in the domain.
Why different inputs? If , the change in input is , and you cannot divide by . Two such points with different outputs lie on a vertical line, which has undefined slope and is not the graph of a function: one input would have more than one output.
| Input x | Output g(x) |
|---|---|
Worked example
A table that includes input 0
The table above shows four values of a function . You are told that is linear and that its domain is all real numbers. Find the rate of change and the initial value, then write the rule for .
Decide what the data can support. A table by itself tells you only about the inputs it shows. Here you are also told that g is linear on all real numbers, so one rule of this form fits every input. Your job is to find m and b.
Find the rate of change. Take the rows (0, 4) and (2, 10), which have different inputs. The output rises by 6 while the input rises by 2. A linear function changes by the same amount on each input step of 1, so divide 6 by 2.
Confirm with another pair of rows, (4, 16) and (6, 22). A linear function has the same rate between any two different inputs, so this pair must agree with the first.
Find the initial value. It is the output at input 0. The domain includes 0 and the table has that row, so you can read it directly.
Write the rule with m = 3 and b = 4. Then test it on the row (6, 22), which you did not use to build it. The rule gives the table's output, so it fits.
Answer
The rate of change is , the initial value is , and the function is for all real numbers .
Worked example
A graph with a labelled point at input 0
The figure above shows part of Line B, the graph of a linear function whose domain is all real numbers. The horizontal axis shows the input , and the vertical axis shows the output . Each grid step is , and neither quantity has a unit. Line B passes through the labelled points , and . Find the rate of change and the initial value, then write the rule for .
Find the initial value. The point (0, 5) is on the vertical axis, where the input is 0, so its y-coordinate is the output at input 0. Use the labelled coordinates, which are exact, and not a guess from how the line looks.
Find the rate of change from (0, 5) and (3, -1), which have different inputs. Subtract in the same order on top and bottom: second point minus first point. The rate is negative because the output falls as the input rises. Line B drops 2 for each step of 1 to the right.
Confirm with the other pair, (-2, 9) and (0, 5). Subtracting a negative number is the same as adding its opposite, so the change in input, 0 minus -2, equals 2.
Write the rule with m = -2 and b = 5. Then test it on (-2, 9), which you did not use to build it. A negative number times a negative number is positive, so -2 times -2 is 4.
Answer
The rate of change is , the initial value is , and the function is for all real numbers .
| Input x | Output p(x) |
|---|---|
Worked example
A table that skips input 0
The table above shows three values of a function . You are told that is linear and that its domain is all real numbers. Find the rate of change and the initial value, then write the rule for .
Find the rate of change from the rows (3, 10) and (5, 18). The inputs in this table are not evenly spaced, so you cannot just compare one output with the next. Divide the change in output by the change in input.
Confirm with the rows (5, 18) and (9, 34). The output changes differ this time, 8 and then 16, but the rate is the same, as it must be for a linear function.
Set up an equation for the initial value. The table has no row for input 0, so you cannot read b. You do know that the rule has the form p(x) = 4x + b and that it must give 10 when x is 3. Substitute that row.
Solve for b by subtracting 12 from both sides. Subtracting the same number from both sides keeps them equal, and it leaves b by itself.
Check that b = -2 makes sense. Going from input 3 back to input 0 lowers the input by 3, so the output falls by 3 times 4, which is 12. Because 0 is in the domain, -2 is the initial value, even though the table never shows it.
Write the rule. Adding -2 is the same as subtracting 2. Then test the rule on the row (9, 34), which you did not use to find b.
Answer
The rate of change is , the initial value is , and the function is for all real numbers .
Takeaway. When you know a function is linear on its stated domain, two numbers recover its rule .
- The rate of change is a change in output divided by the matching change in input, taken between two different inputs.
- The initial value is the output at input , when is in the domain. Read it if the table or graph shows it. Solve for it if not.
Then write the rule, state the domain, and test the rule on a data point you did not use.
Next, you will write linear functions from word problems and explain what the rate of change and the initial value mean in each situation.