Math / Linear functions

Equation of a Line Through Two Points

Math · Linear functions · about 2 min · A real AskSia lesson taught by Sia

Follow the lesson, then work through the notes and practice below.

Quick answer

The learner’s 1/2 turned into 2 when Sia put the change in y over the change in x. Use m = (y₂ − y₁)/(x₂ − x₁), keeping the same point order. Then substitute a point into y = mx + b. Check both points in your finished equation, as Sia does in the final check.

From the video

Lesson notes

Sia's lesson notes

The slip most students make

▶ 0:00

A line passes through (1, 5) and (3, 9). The learner answers 1/2. Sia points out that the fraction is upside down and gives the slope as 2. Check which change belongs on top.

Rise over run, same order

▶ 0:10

Divide the change in y by the change in x. Here, 4 divided by 2 gives slope 2. Use y = mx + b with m = 2, then substitute (1, 5) to find b. Keep both subtractions in the same point order.

Reversing both subtractions changes both signs, so the ratio stays the same. Reversing only one changes the slope’s sign and tilts the line the wrong way. Both changes must point between the same two points.

Worked example

▶ 0:52

The worked example uses (−2, 7) and (4, −5). The learner calculates −12/6 = −2, and Sia confirms the slope is −2. Check the change in y over the change in x.

Check

▶ 1:02

Return to (1, 5) and (3, 9). Substituting (1, 5) into y = 2x + b gives b = 3, so y = 2x + 3. Check the other point by confirming 9 = 2 × 3 + 3.

Going further

Extended explanations

Additional explanations and checks to build on the lesson.

Extended explanations

Finish the example

Finish the example as an extension of the video’s slope calculation. With m = −2 and point (−2, 7), substitute into y = mx + b to get 7 = (−2)(−2) + b = 4 + b. Thus b = 3 and y = −2x + 3. Check both points. At x = −2, y = 4 + 3 = 7. At x = 4, y = −8 + 3 = −5.

Extended explanations

Write the line before finding the intercept

Use the completed example in point-slope form. With slope −2 through (−2, 7), write y − 7 = −2(x + 2). Expand to y − 7 = −2x − 4, then add 7 to recover y = −2x + 3. Check that substituting the known point makes both sides zero.

Extended explanations

Reverse both changes to check the sign

Reverse the point order in the opening example. Calculate (5 − 9)/(1 − 3) = (−4)/(−2) = 2. Reversing both changes preserves the slope because (−a)/(−b) = a/b for b ≠ 0. Compare your result with the original order.

Extended explanations

Handle a zero run

Check x₂ − x₁ before dividing. If two distinct points share an x-coordinate, their line is vertical and has equation x = x₁. The slope is undefined. If both coordinates match, you only have one point, which is insufficient to determine a unique line.

Sia's board

Sia’s board from the line through two points lesson.
Sia's board from the lesson.
Sia’s worked example through (−2, 7) and (4, −5), ending at slope −2.
Sia's board from the lesson.

Common mistakes

MistakeWhat to do instead
Putting the run over the rise and getting 1/2For the opening points, divide the y-change 4 by the x-change 2. Check that m = 2.
Reversing only one subtractionWrite the same point first in the numerator and denominator. Reversing both signs keeps the ratio, so keep the point order consistent.
Stopping after finding the slopeWhen you need an equation, substitute a known point into y = mx + b. Find b too, then check the other point in the equation.

Put it into practice

Practice questions

Work out each answer, then choose an option or open the answer to check your reasoning.

Question 1

In the xy-plane, a line passes through the points (−6, 5) and (2, −3). What is the slope of this line?

Show answer and explanation

Answer B: −1. Keep the point order consistent. The slope is (−3 − 5)/(2 − (−6)) = −8/8 = −1. Check by moving 8 units right from (−6, 5). A slope of −1 lowers y by 8 to −3.

Question 2

In the xy-plane, a line passes through the points (3, 7) and (9, 11). What is the y-coordinate of the point on this line whose x-coordinate is 15?

Show answer

Answer: 15. The slope is (11 − 7)/(9 − 3) = 4/6 = 2/3. From (9, 11) to x = 15, the x-change is 6, so the y-change is (2/3) × 6 = 4. Thus y = 11 + 4 = 15. Check from (3, 7) as well. An x-change of 12 gives y = 7 + (2/3) × 12 = 15.

Question 3

In the xy-plane, a line passes through the points (−4, 12) and (8, −6). What is the x-coordinate of the x-intercept of this line?

Show answer

Answer: 4. Find m = (−6 − 12)/(8 − (−4)) = −18/12 = −3/2. Using (−4, 12), write y − 12 = (−3/2)(x + 4). At the x-intercept, y = 0, so −12 = (−3/2)(x + 4). This gives x + 4 = 8 and x = 4. Check the expanded equation y = −(3/2)x + 6 at x = 4 to get zero. Reversing only one subtraction changes the slope’s sign. Reversing both preserves the slope.

Where this shows up

FAQ

Can I start with either point?

Yes. Substitute either known point after finding the slope. Both must give the same intercept. Check the other point in your final equation to catch an arithmetic error.

When is point-slope form helpful?

Use y − y₁ = m(x − x₁) when you already know a point and the slope. It records that information directly. Expand and collect terms when the question asks for slope-intercept form.

What if the two y-coordinates are equal?

For distinct points, equal y-coordinates give zero rise and nonzero run. The slope is zero. Write the horizontal line as y = y₁ and check that both points satisfy it.

Full lesson text

Transcript

Lesson transcript

Sia: A line passes through one, five and three, nine. What is its slope?

Learner: 1/2?

Sia: Close, the fraction is upside down: the slope is two. Slope is the change in y divided by the change in x, so here it is four divided by two. To find the equation, use y equals mx plus b, with m equal to two. What value of b makes the point one, five fit?

Learner: Why do we subtract in the same order on top and bottom?

Sia: The same order keeps both changes pointing between the same two points. If you reverse both subtractions, both signs change, so their ratio stays the same. If you reverse only one, the slope changes sign and describes a line tilting the wrong way. For the two points on your card, what slope do you get if you subtract the second point from the first in both the numerator and denominator?

Learner: (y₂ − y₁) / (x₂ − x₁)

Sia: That formula uses the same point order, though the numerical slope is two. The worked example asks for the equation through negative two, seven and four, negative five. What slope do you get from those two points?

Learner: −12/6 = −2

Sia: Your slope is negative two. The card's check asks for the equation through one, five and three, nine. Using the slope you found earlier, what equation passes through both points?

Learner: y = 2x + 3.

Sia: Your equation is correct: you found the slope and intercept together. The intercept is three because substituting one, five into y equals two x plus b gives b equals three. Checking the other point confirms that nine equals two times three plus three.

Sia Agent teaching on the board

Sia Agent

Watch Sia teach it on the board

Ask a question mid-step. Sia pauses, answers on the board, then picks the lesson back up.

  • Open Sia Agent and start a Live lesson.
  • Ask Sia to teach this topic, or add your own notes.
  • Interrupt with a question whenever you're stuck.