Read a graph and write its equation
Quick review (2 minutes)
Picture finding the instructions for a ramp after seeing only its drawing.
Rule: Read b at (0, b), calculate m = , then write f(x) = mx + b. If b is hidden, use b = − m.
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.
Find two readable points and compute slope.
Find b from a visible y-intercept or from b = y − mx.
For matching, compare b, slope sign, then slope size.
Verify the chosen equation at a point other than the intercept.
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.
f(x) = x − 2, with slope and y-intercept (0, −2).
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.
Choose two points in order from left to right.
Subtract ending output minus starting output.
Use the change's sign to name increasing or decreasing; zero change means constant.
Read the y-intercept.
Check slope sign.
Measure slope if several choices remain.
Substitute a marked point into the chosen formula.
linear function
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.
graph
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.
input
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.
output
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.
y-axis
The vertical number line on a coordinate graph. Every point on it has x = 0. Positive y goes up and negative y goes down.
origin
The point (0, 0), where the x-axis and y-axis meet. It is the starting address for measuring horizontal and vertical positions.
y-intercept
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).
slope
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.
rise
The signed vertical change between two points, − . An upward move has positive rise, and a downward move has negative rise.
run
The signed horizontal change between two points, − . A rightward move has positive run, and a leftward move has negative run.
slope-intercept form
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).
increasing function
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.
decreasing function
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.
function
A rule assigning exactly one output to each allowed input. Different inputs may share an output, but one input cannot receive two different outputs.
coefficient
The number multiplying a variable. In a linear function's slope-intercept form, the coefficient of the input variable is its slope.
fraction
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.
equation
A statement that two expressions have equal values. A solution makes the equality true. Adding the same amount to both sides preserves their equality.
factor
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
One piece being added or subtracted in an expression.
constant
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
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. = 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 , then write mx .
If b is hidden, use .
The same idea, five ways
read the starting height, then measure the climb per step across.
Two points on a graph let you recover the linear function that produced it.
- b = − m
- f(x) = mx + b
- m > 0: increasing
- m < 0: decreasing
- m = 0: constant
You infer a road's starting elevation and grade from two map markers.
The same idea, other ways
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.
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
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.
Reminder
Reminder: Signed subtraction
- Signed subtraction. 1 − (−2) = 3 is an upward change.
The same idea, five ways
when inputs grow, do the outputs grow or shrink?
A line's slope sign gives its direction from left to right.
- m > 0: increasing
- m < 0: decreasing
- m = 0: constant
Walking right on a ramp can carry you upward, downward, or at one height.
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
- At inputs 0 and 1, the first rule gives and 1: and .Evaluate by substituting the inputs, multiplying, then subtracting.
- The output change is , for input change . The first function is increasing.Its output grows when input grows, so its positive slope describes a rightward climb.
- At inputs 0 and 1, the second rule gives and . Its output change is .A negative change means a lower ending height at a larger input.
- The second function is decreasing. Its slope is for this one-unit run.Decreasing means outputs get smaller when inputs get larger.
- y = 3x − 2: increasing.
- y = −2x − 2: decreasing.
Counterexamples
What it is not, and the tempting wrong moves.
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.
Reminder
Reminder: Subtracting a negative
- Subtracting a negative. −1 − (−2) = 1 finds D's rise.
The same idea, five ways
match the start, direction and climb per step.
The matching equation must reproduce both marked graph points.
- y = mx + b
- b = f(0)
- m =
Roads may start at one elevation but have different grades.
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 = x − 2.
Show the steps and the answer
- Line B starts at height 4, so it matches y = 3x + 4. Its second point checks the slope: .Only that equation has intercept 4. The slope calculation checks that the remaining feature agrees too.
- A, C and D all start at . Intercept alone cannot distinguish them.The same starting height may belong to several different line directions.
- Line C falls to the right: . Match C to .The negative slope is the one falling option.
- Both A and D rise to the right. For A, . For D, .Both have positive slope and intercept −2. Counting rise and run distinguishes their steepness without guessing from the drawing.
- Match A to and D to .Their different slope numbers select different equations even though their intercept and direction match.
- B: y = 3x + 4.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- State each graph label with its full equation; direction alone is not a complete match.
5 How
- Read the y-intercept if it is shown. Confirm that the first coordinate is 0.
- Choose two clearly marked points. Keep their order the same in both subtractions.
- Compute rise divided by run and reduce the fraction.
- Write the slope and intercept in f(x) = mx + b.
- Substitute both points to verify the recovered equation.
Recover or match a line equation
- Find two readable points and compute slope.
- Find b from a visible y-intercept or from b = y − mx.
- For matching, compare b, slope sign, then slope size.
- 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.
Show the steps and the answer
- Read the y-intercept at the marked point , where the line crosses the y-axis. Its first coordinate is 0, so .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.
- Choose the two marked points and (4, 1) and name them in a fixed order: and .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.
- Compute rise over run: .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 to . A positive slope fits the graph, which rises from left to right.
- Put and into mx : , which is written .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.
- Substitute both points. , which matches . , 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.
Work to write
- b = −2, read from the point (0, −2)
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
- and .The first point is the intercept and the second gives one up for one right.
- Write .Slope 1 and intercept 0 give y = 1x + 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
- and .Read the starting value and calculate the common rate.
- Write .These are the slope and intercept.
- At input 2, .Plugging the recovered values back in verifies the second point.
Counterexamples
What it is not, and the tempting wrong moves.
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.