Build the equation from two points
Leans on
Quick review (2 minutes)
Suppose someone gives you two spots on a straight ramp but does not tell you its tilt.
Rule: for distinct inputs, find m = , then b = − m. Write y = mx + b or f(x) = mx + b.
1. Convert function values into coordinate pairs: f(a) = c becomes (a, c).
2. Check that the inputs differ, then find slope in matching subtraction order.
3. Use an input-zero point to read b directly, or use an available point in point-slope form.
4. Rewrite in the requested form.
5. Substitute both given inputs into the final rule; each output must match.
Find the line through (0, 1) and (2, 5). This asks for a rule returning both listed outputs at their corresponding inputs.
y = 2x + 1.
Trap: taking the first listed output as b. It gives b only when that point's input is zero; otherwise recover b by substitution.
1. Turn the data into input-output pairs.
2. Compute matching changes and divide to get m.
3. Read b at input zero or solve for it using one point.
4. Write the equation and verify both points.
1. Find slope from both points in matching order.
2. Read b from an input-zero point, or substitute another point to solve for b.
3. Write the requested equation and check both points.
1. Translate f(a) = c into (a, c).
2. Find slope and initial value using the two points.
3. Write the function with its given name and check both values.
Function
A rule that assigns exactly one output to each allowed input.
Input
The value you put into a function, often written x.
Output
The value a function produces for a particular input, often written y or f(x).
Function notation
Writing such as f(x) that names a function and its input. f(3) means the output of f at input 3.
Slope
The output change divided by the corresponding nonzero input change. It says how much output changes per input unit.
Rise
The signed change in output between two points, − . It is negative when the output falls.
Run
The signed change in input between two points, − . It is the denominator in the slope ratio.
Initial value
The output at input zero, often a starting amount in a model. It is b in f(x) = mx + b.
Slope-intercept form
Writing a line as y = mx + b or f(x) = mx + b, with slope m and input-zero output b.
Point-slope form
Writing a line as y − = m(x − ), using slope m and one known point (, ).
Model
A mathematical description of a situation, used within stated assumptions and allowed inputs.
Horizontal line
A line whose height stays the same. Its equation is y = b and its slope is zero.
y-axis
The vertical number line on a coordinate graph. Points on it have x-coordinate zero.
Coordinate
One number specifying a point's position along an axis.
1 In plain words
Suppose someone gives you two spots on a straight ramp but does not tell you its tilt. Those spots tell you how far forward and how far up the ramp goes between them. That gives the slope. Then you are back to the previous lesson: use one spot as an anchor. Two points do two jobs. Their changes tell you the tilt, and either point tells you where to place the line. Function notation can hide the same information in parentheses. Saying f(4) = 14 means the spot (4, 14), with input 4 and output 14. Translate the notation before calculating so the addresses stay clear.
2 Picture it
Reminder
Reminder: Function notation, Slope, Subtracting negatives, Signed division, Point-slope form, Distribution, Solving and checking, Common denominators, Order of operations
- Function notation. f(4) = 14 translates to (4, 14).
- Slope.
- Subtracting negatives.
- Signed division.
- Point-slope form. Slope 2 at (5, 1) gives y − 1 = 2(x − 5).
- Distribution.
- Solving and checking. 1 = 10 + b gives b = −9; plugging back gives 10 − 9 = 1.
- Common denominators. −2 = −, so −2 − = −.
- Order of operations. 2(8) − 9 = 16 − 9 = 7; multiply first.
3 Why
Two points with different inputs fix one slope because their output change divided by input change has one value. Substituting either point into y = mx + b then fixes b. The other point also fits because the slope reproduces exactly the change between the two points. This determines one line through them. It does not prove that a real process follows that line between observations; using a linear model requires a stated or justified constant-change assumption.
4 The rule
for distinct inputs, find , then .
Write mx or mx .
The same idea, five ways
find the change per step, then the starting amount.
two points with different inputs determine one line's slope and initial value.
- b = − m
- y = mx + b
- f(x) = mx + b
- f(a) = c means (a, c)
Two spots on a straight ramp tell you its tilt and position.
The same idea, other ways
The changes between the points give the tilt. Either point pins that tilt to a location. A different anchor with the same slope would usually give a different line.
f(0) = 6 and f(4) = 14 mean the machine starts at 6 and adds eight across four steps. That is two per step, so f(x) = 2x + 6.
Part 1: Two coordinate pairs
A point with input zero is especially useful because its output is already the starting value. You still need both points to calculate slope. Listing the zero-input point second changes nothing. Reversing direction changes the sign of both differences, so the slope stays the same.
- Rule: (0, b) lies on the y-axis because its horizontal coordinate is zero.
- Rule: either point may come first if subtraction order matches in both differences.
- Point-slope and slope-intercept forms describe the same line after correct distribution and equal addition.
Reminder
Reminder: Signed division, Intercept
- Signed division. is positive .
- Intercept. (0, −3) gives b = −3 because its input is zero.
The same idea, five ways
input zero tells me the starting output.
use both points for slope and the zero-input point for b.
A ramp marker at the start gives the starting height.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- an input-zero point is the quickest anchor.
Part 2: Two values written in function notation
Function notation reports what comes out when an input goes in. The parentheses do not multiply the letter f. f(0) = 6 means input zero gives output six. f(4) = 14 means input four gives output fourteen. These are two points for the same method. Read each statement aloud before writing its point address.
- Rule: f(a) = c means point (a, c), because a is input and c is output.
- Rule: when f is given to be linear, two distinct input-output pairs determine its equation.
- Use the supplied function name in the answer.
Reminder
Reminder: Evaluation
- Evaluation. For f(x) = 2x + 6, f(4) = 2(4) + 6 = 14.
The same idea, five ways
f of four is fourteen; input four gives output fourteen.
the function gives six at zero and fourteen at four.
- f(0) = 6
- f(4) = 14
- (0, 6), (4, 14)
- f(x) = 2x + 6
Two receipts show a machine's result at two settings.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- translate into points before calculating slope.
5 How
- Convert function values into coordinate pairs: f(a) = c becomes (a, c).
- Check that the inputs differ, then find slope in matching subtraction order.
- Use an input-zero point to read b directly, or use an available point in point-slope form.
- Rewrite in the requested form.
- Substitute both given inputs into the final rule; each output must match.
Recover a line from two points
- Turn the data into input-output pairs.
- Compute matching changes and divide to get m.
- Read b at input zero or solve for it using one point.
- Write the equation and verify both points.
6 Worked example
Worked example
A first line from two small points
Find the line through (0, 1) and (2, 5). This asks for a rule returning both listed outputs at their corresponding inputs.
Show the steps and the answer
- .The output grows four while input grows two.
- from (0, 1).The output at input zero is the initial value.
- Write .Slope-intercept form combines the rate and starting value.
- At ; at .Both given points must fit the recovered line.
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 2 of 2
Negative coordinates and slope
Find the line through (−2, 5) and (4, −4). This asks you to combine signed coordinates, a fractional slope and a hidden intercept.
Show the steps and the answer
- .Output falls nine while input increases six; reduce by three.
- .Subtracting anchor input −2 gives addition.
- Distribute: . Add 5: .Distribution and addition isolate y.
- At ; at .Substitution verifies both points.
- Point-slope: y − 5 = −(x + 2).
- Slope-intercept: y = −x + 2.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- circle an input-zero point to identify b immediately.
- when neither input is zero, choose the point with simpler coordinates as the anchor.
- check both points. One successful substitution cannot catch every slope error.
7 The trap
taking the first listed output as b. It gives b only when that point's input is zero; otherwise recover b by substitution.
Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.