Knaph

Lines: y = mx + b39 of 971 min read

Writing the Equation of a Line

Given a line in any form, you can write its equation. You always need the same two things: the slope m and the intercept b.

From two points

A line passes through (1, 5) and (3, 11). Slope: (11 − 5) ÷ (3 − 1) = 6 ÷ 2 = 3. So y=3x+by = 3x + b. Put in the point (1, 5): 5=3(1)+b5 = 3(1) + b, so b = 2.

The equation is y=3x+2y = 3x + 2. Check with the other point: 3 × 3 + 2 = 11.

A graph with the points (1, 5) and (3, 11) joined by a line, a slope triangle with run 2 and rise 6, and the equation y = 3x + 2.

From a story or a table

A taxi charges $3 to start and $2 for each kilometer. The start is the intercept and the charge per km is the slope: y=2x+3y = 2x + 3.

From a table, find the steady change for m and use the x=0x = 0 row (or one point) for b.

What to remember

Slope first, then the intercept. A check with a second point catches almost every slip.

Careful

Put the slope in first. You can't find b until you know m.

Try it at home

  1. Pick two points on squared paper.
  2. Find the slope, then find b using one of the points.
  3. Test the other point in your equation.

Words in this lesson

  • equation of a line - the rule y = mx + b that is true for every point on the line.

Big idea

Find m from two points or a steady change, find b with one point, and write y=mx+by = mx + b.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.