Quarry School

Build the equation from two points

Subject: MathematicsLeans on: Function notationLeans on: SlopeLeans on: Subtracting negativesLeans on: Signed divisionLeans on: Point-slope formLeans on: DistributionLeans on: Solving and checkingLeans on: Common denominatorsLeans on: Order of operations
Level 1 · FoundationsAbout 7 min read6 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Leans on

    Quick review (2 minutes)

    In plain words

    Suppose someone gives you two spots on a straight ramp but does not tell you its tilt.

    Rule

    Rule: for distinct inputs, find m = y2−y1x2−x1, then b = y1 − mx1. Write y = mx + b or f(x) = mx + b.

    Step

    1. 1. Convert function values into coordinate pairs: f(a) = c becomes (a, c).

    2. 2. Check that the inputs differ, then find slope in matching subtraction order.

    3. 3. Use an input-zero point to read b directly, or use an available point in point-slope form.

    4. 4. Rewrite in the requested form.

    5. 5. Substitute both given inputs into the final rule; each output must match.

    Question

    Find the line through (0, 1) and (2, 5). This asks for a rule returning both listed outputs at their corresponding inputs.

    Answer

    y = 2x + 1.

    Trap

    Trap: taking the first listed output as b. It gives b only when that point's input is zero; otherwise recover b by substitution.

    Strategy

    1. 1. Turn the data into input-output pairs.

    2. 2. Compute matching changes and divide to get m.

    3. 3. Read b at input zero or solve for it using one point.

    4. 4. Write the equation and verify both points.

    Strategy

    1. 1. Find slope from both points in matching order.

    2. 2. Read b from an input-zero point, or substitute another point to solve for b.

    3. 3. Write the requested equation and check both points.

    Strategy

    1. 1. Translate f(a) = c into (a, c).

    2. 2. Find slope and initial value using the two points.

    3. 3. Write the function with its given name and check both values.

    Term

    Function

    Definition

    A rule that assigns exactly one output to each allowed input.

    Term

    Input

    Definition

    The value you put into a function, often written x.

    Term

    Output

    Definition

    The value a function produces for a particular input, often written y or f(x).

    Term

    Function notation

    Definition

    Writing such as f(x) that names a function and its input. f(3) means the output of f at input 3.

    Term

    Slope

    Definition

    The output change divided by the corresponding nonzero input change. It says how much output changes per input unit.

    Term

    Rise

    Definition

    The signed change in output between two points, y2 − y1. It is negative when the output falls.

    Term

    Run

    Definition

    The signed change in input between two points, x2 − x1. It is the denominator in the slope ratio.

    Term

    Initial value

    Definition

    The output at input zero, often a starting amount in a model. It is b in f(x) = mx + b.

    Term

    Slope-intercept form

    Definition

    Writing a line as y = mx + b or f(x) = mx + b, with slope m and input-zero output b.

    Term

    Point-slope form

    Definition

    Writing a line as y − y1 = m(x − x1), using slope m and one known point (x1, y1).

    Term

    Model

    Definition

    A mathematical description of a situation, used within stated assumptions and allowed inputs.

    Term

    Horizontal line

    Definition

    A line whose height stays the same. Its equation is y = b and its slope is zero.

    Term

    y-axis

    Definition

    The vertical number line on a coordinate graph. Points on it have x-coordinate zero.

    Term

    Coordinate

    Definition

    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

    (0, −9)(4.5, 0)firstsecondinitial valuerun 1rise 22468−8−448(0, −9)(4.5, 0)firstsecondinitial valuerun 1rise 2123456789−8−448
    Neither supplied output is the initial value unless its input is zero.

    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. 7−18−5=63=2.
    • Subtracting negatives. 1−(−2)=3.
    • Signed division. −7−3=73.
    • Point-slope form. Slope 2 at (5, 1) gives y − 1 = 2(x − 5).
    • Distribution. 2(x−5)=2x−10.
    • Solving and checking. 1 = 10 + b gives b = −9; plugging back gives 10 − 9 = 1.
    • Common denominators. −2 = −105, so −2 − 95 = −195.
    • 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 m=y2−y1x2−x1, then b=y1−mx1.

    Write y= mx +b or f(x)= mx +b.

    The same idea, five ways

    Say it

    find the change per step, then the starting amount.

    Write it

    two points with different inputs determine one line's slope and initial value.

    In math
    • m=y2−y1x2−x1
    • b = y1 − mx1
    • y−y1=m(x−x1)
    • y = mx + b
    • f(x) = mx + b
    • f(a) = c means (a, c)
    Like

    Two spots on a straight ramp tell you its tilt and position.

    See it
    (0, −9)(4.5, 0)knownknownrun 1rise 22468−8−448
    Recover the line, then verify both marked points.

    The same idea, other ways

    As tilt plus location

    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.

    anchorsecond pointrun 1rise 22468−8−448
    The two points locate the line as well as giving its tilt.
    As a machine to recover

    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.

    4multiply by 2, add 6inputoutput14
    Function values are input-output addresses.

    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.
    (0, −3)(1.29, 0)initialknownrun 1rise 2.3324−448
    Use the point on the vertical axis to read b.

    Reminder

    Reminder: Signed division, Intercept
    • Signed division. −7−3 is positive 73.
    • Intercept. (0, −3) gives b = −3 because its input is zero.

    The same idea, five ways

    Say it

    input zero tells me the starting output.

    Write it

    use both points for slope and the zero-input point for b.

    In math
    • (3,4),(0,−3)
    • m=−3−40−3=73
    • b=−3
    • y=73x−3
    Like

    A ramp marker at the start gives the starting height.

    See it
    (0, −3)(1.29, 0)input zeroother pointrun 1rise 2.3324−448
    Input zero identifies the initial value even when listed second.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: b = 4 because (3, 4) is listed first.
    Initial value is tied to input zero, not listing order.
    ✓ Instead: Use b = −3 from (0, −3).

    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.
    04614function
    Parenthesized inputs belong beside their stated outputs.

    Reminder

    Reminder: Evaluation
    • Evaluation. For f(x) = 2x + 6, f(4) = 2(4) + 6 = 14.

    The same idea, five ways

    Say it

    f of four is fourteen; input four gives output fourteen.

    Write it

    the function gives six at zero and fourteen at four.

    In math
    • f(0) = 6
    • f(4) = 14
    • (0, 6), (4, 14)
    • f(x) = 2x + 6
    Like

    Two receipts show a machine's result at two settings.

    See it
    04614function
    Each input stays connected to its own output.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: f(4) = 14 means 4f = 14.
    These parentheses label a function input rather than a multiplication.
    ✓ Instead: It means input 4 gives output 14, the point (4, 14).

    Tips and tricks

    • translate into points before calculating slope.

    5 How

    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.

    Recover a line from two points

    1
    Are the inputs equal?
    YesIf outputs differ, there is no function line through both. If outputs also match, you have only one distinct point and need more information.
    NoFind the slope.
    ↓
    2
    Does either input equal zero?
    YesThat output is b.
    NoUse point-slope form or solve for b by substitution.
    ↓
    3
    Is function notation requested?
    YesUse the supplied function name, such as f(x).
    NoWrite the requested line form, often y = mx + b.
    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.

    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
    (0, 1)(−0.5, 0)firstsecondrun 1rise 22−22468
    The input-zero point gives b while the two-point change gives m.
    1. m=5−12−0=42=2.The output grows four while input grows two.
    2. b=1 from (0, 1).The output at input zero is the initial value.
    3. Write y=2x+1.Slope-intercept form combines the rate and starting value.
    4. At x=0,y=1; at x=2,y=2(2)+1=5.Both given points must fit the recovered line.
    Answer
    y = 2x + 1.
    Double-check The other anchor gives y − 5 = 2(x − 2). Distribute and add 5 to isolate y: y = 2x + 1 again. Substituting input 2 gives 5.

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 2

    Recover a hidden starting value

    OpenStax problem

    Find both forms through (5, 1) and (8, 7). This asks for an equation when neither known input is zero.

    Show the steps and the answer
    (0, −9)(4.5, 0)bfirstsecondrun 1rise 22468−8−448
    Extend the line back to input zero to see its initial value.
    1. m=7−18−5=63=2.Six output units across three input units means two per unit.
    2. y−1=2(x−5).Use the first point as anchor.
    3. Distribute: y−1=2x−10. Add 1: y=2x−9.These steps isolate y and reveal b.
    4. 2(5)−9=1 and 2(8)−9=7.Verify both points in the solved form.
    Answer
    • Point-slope: y − 1 = 2(x − 5).
    • Slope-intercept: y = 2x − 9.
    Double-check Directly solving 1 = 2(5) + b gives b = 1 − 10 = −9; plugging back gives 10 − 9 = 1.

    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
    (0, 2)(1.33, 0)firstinitialsecondrun 1rise −1.5−224−448
    Positive initial value and negative slope can occur together.
    1. m=−4−54−(−2)=−96=−32.Output falls nine while input increases six; reduce by three.
    2. y−5=−32(x+2).Subtracting anchor input −2 gives addition.
    3. Distribute: y−5=−32x−3. Add 5: y=−32x+2.Distribution and addition isolate y.
    4. At x=−2,y=3+2=5; at x=4,y=−6+2=−4.Substitution verifies both points.
    Answer
    • Point-slope: y − 5 = −32(x + 2).
    • Slope-intercept: y = −32x + 2.
    Double-check Slope −32 times run six gives rise −9; 5 − 9 = −4.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: through (5, 1) and (8, 7), use y = 2x + 1.
    Output 1 belongs to input 5, not input zero. The proposed rule returns 11 at input 5.
    ✓ Instead: 1 = 2(5) + b gives b = −9; check 10 − 9 = 1. The line is y = 2x − 9.
    ✗ Not this: Counterexample: f(0) = 6 and f(4) = 14 give points (6, 0) and (14, 4).
    The parenthesized number is input and the number after the equals sign is output.
    ✓ Instead: Use (0, 6) and (4, 14), which give f(x) = 2x + 6.
    ✗ Not this: Counterexample: input 2 gives outputs 1 and 6, so use a horizontal line.
    Horizontal means equal outputs, whereas these inputs are equal.
    ✓ Instead: The points lie on vertical x = 2, which is not a function of x and has undefined slope.

    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.