Skip to content

Slope-intercept form: graphing and writing lines

Graph a line from y = mx + b, write y = mx + b from a graph, a point and slope, or two points, and say what m and b mean in a story.

It opens on

A ride-share charges $3 to start and $2 per kilometre. On a graph of cost against kilometres, where is the $3 and where is the $2?

Why it matters

A fixed start plus a steady rate describes phone plans, savings, speeds and growth, and y = mx + b writes that in one line.

Good to know first

  • Slope from two points as rise over run
  • plotting points
  • solving a one-step equation

Step by step

  1. Start and step

    Read m and b from y = mx + b and graph the line from the start point by repeated steps.

    y = 2x + 3 fits the story: b = 3 is the dollars to start, m = 2 is the dollars per kilometre.

    A common mix-up

    In y = 5 − 2x the slope is 5 and the y-intercept is −2, the first number then the last.

    In fact: At x = 0 the equation gives y = 5, so the line crosses at (0, 5); each step right lowers y by 2.

  2. Negative slopes

    Graph a line with a negative or fractional slope, stepping the right way, and check a point.

    Graph y = −(2/3)x + 4: plot (0, 4), then right 3 and down 2 to (3, 2), and again to (6, 0).

    A common mix-up

    To graph y = −(3/4)x + 2 you go up 3 and right 4, because the 3 and the 4 are the steps.

    In fact: Up 3 and right 4 lands on (4, 5), a rising line of slope +3/4; down 3 and right 4 lands on (4, −1).

  3. Writing the line

    Write y = mx + b from a graph, from a slope and a point, or from two points, and check it.

    A line crosses the y-axis at (0, −2) and passes through (3, 0): b = −2, and the step right 3, up 2 gives m = 2/3, so y = (2/3)x − 2.

    A common mix-up

    A line with slope 2 through (3, 7) is y = 2x + 7, because the y of the point is b.

    In fact: At x = 3, y = 2x + 7 gives 13, not 7; the point is on the line only when b = 1.

  4. What m and b mean

    Say m as a rate and b as a starting value, with units, in a model.

    The gym's model is y = 8x + 30 dollars for x classes; at x = 0 the cost is 30.

    A common mix-up

    In y = 8x + 30 the 30 is the price of each class and the 8 is the joining fee.

    In fact: With 0 classes you owe 30; each class adds 8.

Try it

State the slope and the y-intercept of y = 5 − 2x.Answer

Slope −2, y-intercept (0, 5)

Hint: Put x = 0 into the equation

Graph y = −(1/2)x + 3 and name the point after (0, 3).Answer

(2, 2)

Hint: Right 2, down 1

Write the line through (1, 5) and (3, 11).Answer

y = 3x + 2

Hint: Slope first, then substitute (1, 5)

A pool has 500 L and drains 20 L each minute: y = −20x + 500. Say b and m, and when it is empty.Answer

b = 500 L at the start, m = −20 litres per minute, empty at 25 minutes

Hint: Set y = 0

A ride-share charges $3 to start and $2 for every kilometre. What does a 1 km trip cost, and a 2 km trip?Answer

$5; $7.

Slope-intercept form: graphing and writing lines

30 minutes every month. No card.