Quarry School

Read a graph and write its equation

Subject: MathematicsLeans on: SlopeLeans on: SubstitutionLeans on: Solving an equationLeans on: Signed subtractionLeans on: Reducing fractions
Level 1 · FoundationsAbout 12 min read7 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.

    Quick review (2 minutes)

    In plain words

    Picture finding the instructions for a ramp after seeing only its drawing.

    Rule

    Rule: Read b at (0, b), calculate m = y2−y1x2−x1, then write f(x) = mx + b. If b is hidden, use b = y1 − mx1.

    Step

    1. 1. Read the y-intercept if it is shown. Confirm that the first coordinate is 0.

    2. 2. Choose two clearly marked points. Keep their order the same in both subtractions.

    3. 3. Compute rise divided by run and reduce the fraction.

    4. 4. Write the slope and intercept in f(x) = mx + b.

    5. 5. Substitute both points to verify the recovered equation.

    Strategy

    1. Find two readable points and compute slope.

    2. Find b from a visible y-intercept or from b = y − mx.

    3. For matching, compare b, slope sign, then slope size.

    4. Verify the chosen equation at a point other than the intercept.

    Question

    The graph shows a straight line. It crosses the y-axis at the marked point (0, −2) and passes through the marked points (−4, −5) and (4, 1). Write the equation of the line in the form f(x) = mx + b. Read the y-intercept, find the slope from the two marked points (−4, −5) and (4, 1) and reduce it, write the function, and substitute both points to verify it.

    Answer

    f(x) = 34x − 2, with slope 34 and y-intercept (0, −2).

    Trap

    Subtracting the output coordinates in one direction and the input coordinates in the opposite direction. Write arrows between the two points, then use that same direction for both differences.

    Strategy

    1. Choose two points in order from left to right.

    2. Subtract ending output minus starting output.

    3. Use the change's sign to name increasing or decreasing; zero change means constant.

    Strategy

    1. Read the y-intercept.

    2. Check slope sign.

    3. Measure slope if several choices remain.

    4. Substitute a marked point into the chosen formula.

    Term

    linear function

    Definition

    A rule of the form f(x) = mx + b, with fixed numbers m and b. Its graph is a straight nonvertical line, and equal input changes give equal output changes.

    Term

    graph

    Definition

    A picture of number pairs. Each plotted point places its first number horizontally and its second number vertically. A function's graph shows its inputs and corresponding outputs.

    Term

    input

    Definition

    The number you put into a function's rule. It appears inside the function's parentheses and is usually the horizontal coordinate x on its graph.

    Term

    output

    Definition

    The number a function gives after using its input. It is written f(x), and it is the vertical coordinate y when the function is graphed.

    Term

    y-axis

    Definition

    The vertical number line on a coordinate graph. Every point on it has x = 0. Positive y goes up and negative y goes down.

    Term

    origin

    Definition

    The point (0, 0), where the x-axis and y-axis meet. It is the starting address for measuring horizontal and vertical positions.

    Term

    y-intercept

    Definition

    Where a graph meets the y-axis. Its input is x = 0. For y = mx + b, the intercept value is b and the intercept point is (0, b).

    Term

    slope

    Definition

    A line's signed vertical change divided by its signed horizontal change. It tells the output change per input unit. A vertical line has no defined slope because its horizontal change is 0.

    Term

    rise

    Definition

    The signed vertical change between two points, y2 − y1. An upward move has positive rise, and a downward move has negative rise.

    Term

    run

    Definition

    The signed horizontal change between two points, x2 − x1. A rightward move has positive run, and a leftward move has negative run.

    Term

    slope-intercept form

    Definition

    The writing y = mx + b, or f(x) = mx + b. It displays the slope m and the initial value b, giving the y-intercept point (0, b).

    Term

    increasing function

    Definition

    A function whose outputs grow as its inputs grow over the input values being discussed. A linear function with positive slope is increasing across its whole domain.

    Term

    decreasing function

    Definition

    A function whose outputs shrink as its inputs grow over the input values being discussed. A linear function with negative slope is decreasing across its whole domain.

    Term

    function

    Definition

    A rule assigning exactly one output to each allowed input. Different inputs may share an output, but one input cannot receive two different outputs.

    Term

    coefficient

    Definition

    The number multiplying a variable. In a linear function's slope-intercept form, the coefficient of the input variable is its slope.

    Term

    fraction

    Definition

    One number divided by another nonzero number, written with a top and bottom. It can describe part of a whole, a quotient or a comparison.

    Term

    equation

    Definition

    A statement that two expressions have equal values. A solution makes the equality true. Adding the same amount to both sides preserves their equality.

    Term

    factor

    Definition

    One of the numbers multiplied to make a product. A whole-number factor of a positive whole number divides it with nothing left over.

    Term

    term

    Definition

    One piece being added or subtracted in an expression.

    Term

    constant

    Definition

    A fixed number. A constant term has no changing variable attached.

    1 In plain words

    Picture finding the instructions for a ramp after seeing only its drawing. First find where it crosses the upright axis. That gives its starting height. Next choose two marked addresses and count how far across and how far up you travel between them. Those changes tell you the slope. Put the starting height and slope into y = mx + b. If you are matching several drawings with equations, compare their starting heights first, then their directions and steepness. An increasing function climbs as you look from left to right. A decreasing function descends. A graph with a bigger slope size climbs or descends more for the same distance across.

    2 Picture it

    (0, 7)(9.33, 0)(4, 4)run 2rise −1.5−224682468(0, 7)(9.33, 0)(4, 4)run 2rise −1.5−2−1123456782468
    y = −0.75x + 7, with its slope and intercepts marked.

    Reminder

    Reminder: Slope, Substitution, Solving an equation, Signed subtraction, Reducing fractions
    • Slope. From (0, 1) to (2, 5), rise 4 divided by run 2 gives m = 2.
    • Substitution. If y = 2x + b and the point is (3, 8), write 8 = 2 × 3 + b.
    • Solving an equation. 8 = 6 + b gives b = 2 by subtracting 6 from both sides; 6 + 2 = 8 checks it.
    • Signed subtraction. 4 − 7 = −3, a downward change.
    • Reducing fractions. 84 = 2, because 8 ÷ 4 = 2.

    3 Why

    A line with a specified slope and y-intercept has only one possible graph: start at that intercept and repeat the required slope move. Therefore recovering m and b recovers its equation. If the intercept is not visible, any known point supplies the missing starting height through b = y − mx. When comparing steepness in a picture, the axes must use the same scales between graphs. Enlarging one axis alone can make a line appear steeper without changing its slope number.

    4 The rule

    Read b at (0, b), calculate m=y2−y1x2−x1, then write f(x)= mx +b.

    If b is hidden, use b=y1−mx1.

    The same idea, five ways

    Say it

    read the starting height, then measure the climb per step across.

    Write it

    Two points on a graph let you recover the linear function that produced it.

    In math
    • m=y2−y1x2−x1
    • b = y1 − mx1
    • f(x) = mx + b
    • m > 0: increasing
    • m < 0: decreasing
    • m = 0: constant
    Like

    You infer a road's starting elevation and grade from two map markers.

    See it
    (0, 7)(9.33, 0)interceptsecond pointrun 2rise −1.5−224682468
    y = −0.75x + 7, with its intercepts and slope marked.

    The same idea, other ways

    From a visible start

    A graph through (0, 7) starts at 7. A second point (4, 4) tells you the output falls by 3 while the input rises by 4.

    (0, 7)(4, 4)run 2rise −1.52462468
    y = −0.75x + 7, with its slope marked.
    From a hidden start

    If slope is 2 and a point is (3, 8), substitute 8 = 2 × 3 + b. Subtracting 6 gives b = 2, and putting it back gives 8 = 6 + 2.

    8 = 2 × 3 + b

    b=8−6=2

    Check: 8 = 6 + 2

    Part 1: Increasing and decreasing directions

    Think of walking right along a ramp. If your height grows, the function is increasing. If your height falls, it is decreasing. For a line, the sign of slope tells you which happens. These words always compare outputs while inputs increase.

    • Rule: m > 0 makes a linear function increasing; m < 0 makes it decreasing.
    • Rule: m = 0 gives constant outputs, so the function neither rises nor falls.
    (0, −2)(0.667, 0)shared startincreasing outputdecreasing output−22−8−448
    y = 3x − 2, solid, beside y = −2x − 2, dashed.

    Reminder

    Reminder: Signed subtraction
    • Signed subtraction. 1 − (−2) = 3 is an upward change.

    The same idea, five ways

    Say it

    when inputs grow, do the outputs grow or shrink?

    Write it

    A line's slope sign gives its direction from left to right.

    In math
    • m > 0: increasing
    • m < 0: decreasing
    • m = 0: constant
    Like

    Walking right on a ramp can carry you upward, downward, or at one height.

    See it
    (0, −2)(0.667, 0)shared startincreasing outputdecreasing output−22−8−448
    The same picture again: y = 3x − 2, solid, beside y = −2x − 2, dashed.

    Worked example

    Read direction from output changes

    You need to decide whether y = 3x − 2 rises or falls as you move right, and compare it with y = −2x − 2.

    Show the steps and the answer
    (0, −2)(0.667, 0)shared startincreasing outputdecreasing output−22−8−448
    The same picture a third time: y = 3x − 2, solid, beside y = −2x − 2, dashed.
    1. At inputs 0 and 1, the first rule gives −2 and 1: 3×0−2=−2 and 3×1−2=1.Evaluate by substituting the inputs, multiplying, then subtracting.
    2. The output change is 1−(−2)=3, for input change 1−0=1. The first function is increasing.Its output grows when input grows, so its positive slope describes a rightward climb.
    3. At inputs 0 and 1, the second rule gives −2 and −4. Its output change is −4−(−2)=−2.A negative change means a lower ending height at a larger input.
    4. The second function is decreasing. Its slope is −2 for this one-unit run.Decreasing means outputs get smaller when inputs get larger.
    Answer
    • y = 3x − 2: increasing.
    • y = −2x − 2: decreasing.
    Double-check The slope signs agree with the measured changes: 3 is positive and −2 is negative.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: A negative output means the function is decreasing.
    Direction concerns a change, not a height. For y = 3x − 2 the outputs rise from −2 to 1.
    ✓ Instead: Compare outputs at increasing inputs, or inspect the slope sign.

    Tips and tricks

    • Read direction from left to right, and distinguish output sign from slope sign.

    Part 2: Match equations to labeled graphs

    Think of identifying roads from their starting elevation and grade. First compare starting heights. When two roads start together, compare whether they climb or descend. If both climb, measure how much each climbs for the same trip across. A graph match needs all these clues to agree.

    • Rule: Match y-intercept, slope sign, then slope size.
    • Rule: Use matching axis scales when comparing steepness by appearance; calculating rise divided by run avoids scale guessing.
    (0, −2)(0.667, 0)A startA second−224−661218
    y=3x−2.

    Reminder

    Reminder: Subtracting a negative
    • Subtracting a negative. −1 − (−2) = 1 finds D's rise.

    The same idea, five ways

    Say it

    match the start, direction and climb per step.

    Write it

    The matching equation must reproduce both marked graph points.

    In math
    • y = mx + b
    • b = f(0)
    • m = riserun
    Like

    Roads may start at one elevation but have different grades.

    See it
    (0, −2)(0.667, 0)A startA second−224−661218
    The same picture again: y = 3x − 2.

    Worked example

    Match lines that can share an intercept

    You need to attach an equation to each labeled line. Line A passes through (0, −2) and (1, 1). Line B passes through (0, 4) and (1, 7). Line C passes through (0, −2) and (1, −4). Line D passes through (0, −2) and (3, −1). Match A, B, C and D to y = 3x − 2, y = 3x + 4, y = −2x − 2, and y = 13x − 2.

    Show the steps and the answer
    (0, −2)(0.667, 0)A startA second−224−661218
    The same picture a third time: y = 3x − 2.
    (0, 4)(−1.33, 0)B startB second−224−661218
    Line B has slope 3 and starting height 4.
    (0, −2)(−1, 0)C startC second−224−661218
    Line C falls to the right from starting height −2.
    (0, −2)(6, 0)D startD second−224−661218
    Line D shares A's intercept but rises only 1 for a run of 3; every panel uses the same scales.
    1. Line B starts at height 4, so it matches y = 3x + 4. Its second point checks the slope: 7−41−0=3.Only that equation has intercept 4. The slope calculation checks that the remaining feature agrees too.
    2. A, C and D all start at −2. Intercept alone cannot distinguish them.The same starting height may belong to several different line directions.
    3. Line C falls to the right: m=−4−(−2)1−0=−2. Match C to y=−2x−2.The negative slope is the one falling option.
    4. Both A and D rise to the right. For A, m=1−(−2)1−0=3. For D, m=−1−(−2)3−0=13.Both have positive slope and intercept −2. Counting rise and run distinguishes their steepness without guessing from the drawing.
    5. Match A to y=3x−2 and D to y=13x−2.Their different slope numbers select different equations even though their intercept and direction match.
    Answer
    • A:y=3x−2.
    • B: y = 3x + 4.
    • C:y=−2x−2.
    • D:y=13x−2.
    Double-check Check the nonintercept point of each match: 3 × 1 − 2 = 1; 3 × 1 + 4 = 7; −2 × 1 − 2 = −4; 13 × 3 − 2 = −1. Each formula returns its labeled graph's second height.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Two rising graphs with the same intercept must match the same equation.
    Their positive slopes can differ. Slopes 3 and 13 both rise but give different heights at the same input.
    ✓ Instead: Use two marked points to calculate slope, then match the coefficient too.

    Tips and tricks

    • State each graph label with its full equation; direction alone is not a complete match.

    5 How

    1. Read the y-intercept if it is shown. Confirm that the first coordinate is 0.
    2. Choose two clearly marked points. Keep their order the same in both subtractions.
    3. Compute rise divided by run and reduce the fraction.
    4. Write the slope and intercept in f(x) = mx + b.
    5. Substitute both points to verify the recovered equation.

    Recover or match a line equation

    1
    Is the y-intercept visible and labeled?
    YesRead b directly.
    NoUse a known point in b = y − mx, then plug b back into that point's equation.
    ↓
    2
    Do candidate lines have the same intercept?
    YesUse slope sign and size to distinguish them.
    NoMatch the intercept before comparing slopes.
    1. Find two readable points and compute slope.
    2. Find b from a visible y-intercept or from b = y − mx.
    3. For matching, compare b, slope sign, then slope size.
    4. Verify the chosen equation at a point other than the intercept.

    6 Worked example

    Worked example

    Writing the equation of a line from its graph

    The graph shows a straight line. It crosses the y-axis at the marked point (0, −2) and passes through the marked points (−4, −5) and (4, 1). Write the equation of the line in the form f(x) = mx + b. Read the y-intercept, find the slope from the two marked points (−4, −5) and (4, 1) and reduce it, write the function, and substitute both points to verify it.

    (−4, −5)(0, −2)(4, 1)−6−4−2246−6−4−2246
    A straight line crossing the y-axis at the marked point (0, −2) and passing through the marked points…
    Show the steps and the answer
    1. Read the y-intercept at the marked point (0,−2), where the line crosses the y-axis. Its first coordinate is 0, so b=−2.b is the output when the input is 0, since f(0) = m · 0 + b = b. Confirming that the first coordinate is 0 makes sure the point lies on the y-axis and not merely near it.
    2. Choose the two marked points (−4,−5) and (4, 1) and name them in a fixed order: (x1,y1)=(−4,−5) and (x2,y2)=(4,1).Both points have exact labels, so nothing has to be estimated from the grid. Naming them before subtracting keeps the same order on the top and the bottom of the slope fraction. Mixing the order would flip the sign of the slope.
    3. Compute rise over run: m=y2−y1x2−x1=1−(−5)4−(−4)=68=34.The slope is the change in output divided by the change in input. Subtracting a negative is the same as adding its opposite, so the rise is 1 + 5 = 6 and the run is 4 + 4 = 8. Dividing top and bottom by their common factor 2 reduces 68 to 34. A positive slope fits the graph, which rises from left to right.
    4. Put m=34 and b=−2 into f(x)= mx +b: f(x)=34x+(−2), which is written f(x)=34x−2.In slope-intercept form the coefficient of x is the slope and the constant term is the y-intercept. Adding −2 is the same as subtracting 2.
    5. Substitute both points. f(−4)=34(−4)−2=−3−2=−5, which matches (−4,−5). f(4)=34(4)−2=3−2=1, which matches (4, 1).The slope came from these two points, but b came from a separate reading at (0, −2). Only one line passes through both points, so if both outputs match, the equation is that line. A misread intercept or a slip in the slope would make at least one output miss.
    Answer
    f(x) = 34x − 2, with slope 34 and y-intercept (0, −2).
    Double-check Reversing the order of the points gives the same slope: −5−1−4−4 = −6−8 = 34. The formula for a hidden intercept agrees with the reading: b = y1 − mx1 = −5 − 34(−4) = −5 + 3 = −2. Walking the slope from (0, −2), 4 right and 3 up reaches (4, 1), and 4 left and 3 down reaches (−4, −5). Both points are marked on the graph.

    Work to write

    1. b = −2, read from the point (0, −2)
    2. m=1−(−5)4−(−4)=68=34
    3. f(x)=34x−2
    4. f(−4)=34(−4)−2=−3−2=−5
    5. f(4)=34(4)−2=3−2=1

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 3

    Graph through the origin

    You need the equation through (0, 0) and (1, 1).

    Show the steps and the answer
    (0, 0)(−0, 0)startsecond−22−2−1123
    y = x.
    1. b=0 and m=1−01−0=1.The first point is the intercept and the second gives one up for one right.
    2. Write y=x.Slope 1 and intercept 0 give y = 1x + 0.
    Answer
    y = x.
    Double-check At input 1 the output is 1; at input 0 it is 0.

    Rung 2 of 3

    A visible nonzero intercept

    You need the equation through (0, 2) and (2, 6).

    Show the steps and the answer
    (0, 2)(−1, 0)startsecond−224−22468
    y = 2x + 2.
    1. b=2 and m=6−22−0=42=2.Read the starting value and calculate the common rate.
    2. Write y=2x+2.These are the slope and intercept.
    3. At input 2, 2×2+2=6.Plugging the recovered values back in verifies the second point.
    Answer
    y = 2x + 2.
    Double-check A run of 2 with slope 2 gives a rise of 4, taking output 2 to 6.

    Rung 3 of 3

    The intercept is hidden

    You need the equation through (−1, 1) and (3, 9), even though neither given point is on the y-axis.

    Show the steps and the answer
    (0, 3)(−1.5, 0)firstsecondfound intercept−22448
    y = 2x + 3.
    1. m=9−13−(−1)=84=2.The input change is 4 because subtracting −1 adds 1.
    2. Use (−1,1): 1=2(−1)+b=−2+b. Add 2 to both sides to find b=3.A point fixes the missing starting value.
    3. Plug b back in: 2(−1)+3=1. Write y=2x+3.The recovered intercept must make the point true.
    Answer
    y = 2x + 3.
    Double-check At the other point, 2 × 3 + 3 = 9, so both given addresses fit.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: from (0, 7) and (4, 4), m = 7−44−0 = 34.
    The output subtraction runs backward while the input subtraction runs forward. The graph descends to the right, so a positive slope cannot fit.
    ✓ Instead: Use 4−74−0 = −34, or 7−40−4 = −34.

    Tips and tricks

    • When two graphs share an intercept, the larger |m| is steeper if their axes use matching scales.
    • A graph that rises to the right is increasing; one that falls is decreasing. Check the sign before accepting your equation.

    7 The trap

    Subtracting the output coordinates in one direction and the input coordinates in the opposite direction. Write arrows between the two points, then use that same direction for both differences.