Writing a Linear Function's Rule from Two Pairs
A linear function is fully determined by any two points on it: the two points give you the rate of change, and that rate lets you solve for the starting value. Together they build f(x) = mx + b.
A line has only two personality traits: how steep it is and where it starts. Those are m and b in f(x) = mx + b. Give two input-output pairs and you've pinned down both, because a straight line is the unique path between two points — there's no curve, no bend, nowhere else it could go. Once you know the rate and one point, the whole function is locked in, for every x, forever.
Start with the rate. Given f(x1) = y1 and f(x2) = y2, the rate of change is m = (y2 - y1) / (x2 - x1), the same slope formula from coordinate geometry, just dressed in function notation. Once you have m, pick either pair — it doesn't matter which — and plug into f(x) = mx + b. Solve for b by substituting the known x and f(x). That b is the output when x = 0, the function's starting value.
This skill is the function-notation twin of writing an equation of a line from two points, and it feeds directly into systems of equations, since two linear functions written this way can be set equal to find where they cross. It also sets up transformations: once you have f(x) = mx + b, shifting, scaling, or comparing it to another linear function becomes a matter of comparing m's and b's directly.
Key terms
- Linear function
- A function whose rule has the form f(x) = mx + b, graphing as a straight line.
- Rate of change
- How much the output changes per unit increase in input, equal to m in f(x) = mx + b.
- f(0)
- The function's output when x = 0, which equals b, the starting value.
- Point-slope reasoning
- Building a rule from one known point and one known rate by substituting into f(x) = mx + b and solving for b.
Watch it explained
- How it worksHow does change in output divided by change in input hand you the rate you need?
- How it worksHow do you back out the starting value once you already know the rate of change?
- Worked exampleFind the linear rule when f(2) = 13 and f(7) = 33, then evaluate that rule at x = 0.
- Worked exampleBuild the rule for a function through (4, 19) whose output climbs 6.5 for every 1 the input climbs.
Check yourself
End of topic.