Math › Grade 10: Linear systems › Lesson 7 of 7

Equation of a line through two points

Find the slope first, then use one point to find b.

Learn

Step 1: slope

m = (y₂ − y₁) ÷ (x₂ − x₁). Through (1, 5) and (3, 9): m = (9 − 5) ÷ (3 − 1) = 2.

Step 2: y-intercept

Put one point into y = mx + b: 5 = 2(1) + b, so b = 3.

Step 3: write it

y = 2x + 3. Check with the other point: 2(3) + 3 = 9 ✓.

−2−2224466881010xyy = 2x + 3(1, 5)(3, 9)b = 3

Careful with negatives: 3 − (−2) = 5.

See three worked examples

Through (2, 1) and (4, 7)
  1. m = 6 ÷ 2 = 3.
  2. 1 = 3(2) + b, b = −5.

Answer: y = 3x − 5

Through (−1, 4) and (2, −2)
  1. m = −6 ÷ 3 = −2.
  2. 4 = −2(−1) + b, b = 2.

Answer: y = −2x + 2

Through (0, 6) and (3, 0)
  1. m = −6 ÷ 3 = −2.
  2. b = 6 (it crosses at (0, 6)).

Answer: y = −2x + 6

Try 10 practice questions with the steps

Play match the pairs

Tap one on the left, then its partner on the right.

Test 10 questions, 8 to pass

No steps are shown until the end. Your best score is kept on this device only.

Challenge harder problems that take a few steps