The Line Through Two Points
Two points determine a line, so two points must determine its equation. The method is not a new formula but a pairing of two you already have, and the point you do not use becomes a free check on the one you did.
You have a formula that turns two points into a gradient, and a formula that turns a gradient and a point into an equation. What happens if you run them one after the other?
Step one: use the gradient formula on the two points. Step two: put that gradient and either point into point–gradient form. Step three: substitute the other point into your answer, which checks the whole thing for free.
$$m = \frac{y_2 - y_1}{x_2 - x_1}, \qquad y - y_1 = m(x - x_1)$$
It genuinely does not matter which point you feed into the second step. Both lie on the line, so both give the same equation. That freedom is what makes the unused point available as a check rather than as extra work.
Know
- that the equation of the line through two points is found by computing the gradient and then applying point–gradient form
- that either of the two points may be used in the second step, giving identical equations
- that two points with the same x-coordinate give a vertical line, which must be written directly
Understand
- why two distinct points determine exactly one line, and so exactly one equation
- why substituting the unused point is a genuine check rather than a repetition of the working
- why the method fails for a vertical pair of points and what to do instead
Can Do
- find the equation of the line through two given points, in gradient–intercept or general form
- recognise and handle the horizontal and vertical special cases from the coordinates alone
- use the method in context, including finding an equation from a described linear relationship
Nothing in this lesson is new. Lesson 2 turned two points into a gradient. Lesson 6 turned a gradient and a point into an equation. Running them in that order turns two points into an equation.
For $A(-2, 9)$ and $B(4, -3)$:
$m = \dfrac{-3 - 9}{4 - (-2)} = \dfrac{-12}{6} = -2$
Then, using $A$: $y - 9 = -2(x + 2)$, which gives $y - 9 = -2x - 4$ and $y = -2x + 5$.
The order is forced. Point–gradient form cannot be used until a gradient exists, so the gradient step is not optional and cannot be skipped by substituting harder.
Repeat the second step with $B(4, -3)$ instead:
$y - (-3) = -2(x - 4)$, so $y + 3 = -2x + 8$ and $y = -2x + 5$.
The same equation, as it must be. Both points lie on the line, and the line has one equation.
So choose whichever point makes the arithmetic easier. A point with positive coordinates avoids double negatives; a point with a zero in it removes a term entirely; a point that happens to be the y-intercept lets you write the answer down immediately.
This is a real choice with a real saving, and it costs nothing, because the answer is not affected by which one you pick.
Because only one point was needed for the second step, the other is still unused, and that makes it a proper check.
Having found $y = -2x + 5$ using $A$, substitute $B(4, -3)$: the right-hand side gives $-2(4) + 5 = -3$, which matches the y-coordinate of $B$. The line passes through both points, so it is correct.
Compare this with re-reading your own working. Re-reading catches only the errors you notice, and you tend not to notice the same slip twice. Substituting an unused point tests the answer against information the working has not yet touched, so it can genuinely disagree.
Do it every time. It costs one line and catches sign errors, expansion errors and gradient errors all at once.
Look at the two points before starting, and two cases will announce themselves.
Equal y-coordinates, such as $(-5, 4)$ and $(3, 4)$. The gradient is zero and the line is horizontal, so the equation is $y = 4$. The general method also gets there, but there is no need to run it.
Equal x-coordinates, such as $(6, 1)$ and $(6, -7)$. The gradient is undefined and the method breaks at the first step, since the denominator is zero. The line is vertical, so the equation is $x = 6$.
The second case is the one that matters, because a student who has not looked first will divide by zero and may write down whatever the calculator says. Glance at the coordinates before you substitute. If the x-coordinates match, stop and write the vertical equation.
Many practical questions give two matched pairs of values rather than two labelled points, but the mathematics is identical.
A printer charges $\$70$ for $100$ flyers and $\$130$ for $300$ flyers, and the cost is known to be linear. Treating quantity as $x$ and cost as $y$ gives the points $(100, 70)$ and $(300, 130)$.
The gradient is $\dfrac{130 - 70}{300 - 100} = \dfrac{60}{200} = 0.3$, so each extra flyer costs $30$ cents.
Using $(100, 70)$: $y - 70 = 0.3(x - 100)$, so $y = 0.3x + 40$. The constant $40$ is the fixed setup charge, the cost of printing zero flyers.
The gradient and the y-intercept both have meanings here, and reporting them in words is usually part of the question. A rate per unit and a fixed charge, respectively, is the pattern to expect.
Watch Me Solve It · 3 examples
-
1Find the gradient$m = \frac{-3 - 9}{4 - (-2)} = \frac{-12}{6} = -2$Label the points first so both subtractions run in the same order.
-
2Substitute into point-gradient form$y - 9 = -2\left(x - (-2)\right)$$y - 9 = -2(x + 2)$Using $A$ here. Either point works, and $B$ is kept back for the check.
-
3Expand and tidy$y - 9 = -2x - 4$$y = -2x + 5$
-
4Check with the unused point$x = 4: \quad -2(4) + 5 = -3$This matches the y-coordinate of $B(4, -3)$, so the line passes through both points.
-
1Find the gradient$m = \frac{3 - (-5)}{1 - (-7)} = \frac{8}{8} = 1$
-
2Choose the point with the simpler coordinatesUsing $Q(1, 3)$ avoids two double negatives that $P(-7, -5)$ would introduce. The answer is the same either way, so the choice is free.
-
3Substitute and expand$y - 3 = 1(x - 1)$$y = x + 2$
-
4Check with the unused point$x = -7: \quad -7 + 2 = -5$This matches the y-coordinate of $P$, so the equation is correct.
-
1Write the information as two points$(100, 70) \quad \text{and} \quad (300, 130)$Quantity is the independent variable, so it goes first.
-
2Find the gradient$m = \frac{130 - 70}{300 - 100} = \frac{60}{200} = 0.3$A gradient in dollars per flyer, since the rise is in dollars and the run is in flyers.
-
3Use point-gradient form$y - 70 = 0.3(x - 100)$$y - 70 = 0.3x - 30$$y = 0.3x + 40$
-
4Interpret and check$x = 300: \quad 0.3(300) + 40 = 130$The gradient $0.3$ is the cost of each additional flyer, $30$ cents. The constant $40$ is the fixed setup charge, since it is the cost when no flyers are printed. The unused point confirms the equation.
Brain Trainer · 5 problems
Five items. Look at the coordinates first, in case the line is horizontal or vertical.
-
1 Find the equation of the line through $(0, 3)$ and $(2, 7)$.
$m = 2$, and $(0, 3)$ is the y-intercept.$y = 2x + 3$ -
2 Find the equation of the line through $(1, 5)$ and $(3, 1)$.
$m = \dfrac{1 - 5}{3 - 1} = -2$, then use $(1, 5)$.$y = -2x + 7$ -
3 Find the equation of the line through $(-4, 2)$ and $(6, 2)$.
The y-coordinates match, so the line is horizontal.$y = 2$ -
4 Find the equation of the line through $(5, -1)$ and $(5, 8)$.
The x-coordinates match, so the gradient is undefined and the line is vertical.$x = 5$ -
5 Find the equation of the line through $(-3, -1)$ and $(3, 3)$, in gradient–intercept form.
$m = \dfrac{4}{6} = \dfrac{2}{3}$, then use $(3, 3)$.$y = \tfrac{2}{3}x + 1$
Multiple Choice · 5 questions
To find the equation of the line through two given points, the first step is to:
The line through $(2, 1)$ and $(5, 10)$ has equation:
Having found the gradient of the line through $(-6, -4)$ and $(2, 8)$, a student must choose a point for the second step. Choosing $(2, 8)$ rather than $(-6, -4)$:
The line through $(-3, 7)$ and $(-3, -2)$ has equation:
A linear cost model through $(50, 65)$ and $(150, 105)$ gives $y = 0.4x + 45$. The number $45$ represents:
Short Answer · 3 questions
Gradient first, then a point
Apply the gradient formula to the two points, then feed that gradient and either point into $y - y_1 = m(x - x_1)$. No new formula is needed.
Either point gives the same line
Both points satisfy the equation, so both produce it. Choose the one with friendlier coordinates; the saving is real and the answer is unaffected.
The unused point is a real check
It tests the answer against information the working never used, so it can genuinely disagree. Re-reading your own steps cannot.
Look at the coordinates first
Equal y-coordinates give a horizontal line $y = y_1$. Equal x-coordinates give a vertical line $x = x_1$, where the gradient is undefined and the method cannot start.
Your Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.