Skip to content
mathlab
0
0
0 XP
Lvl 1
KJ
Lesson 7 ~40 min Linear Relationships C · Path +90 XP

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.

Today's hook: Survey pegs sit at $(-2, 9)$ and $(4, -3)$. The fence must run in a straight line through both. What is its equation, and how would you know if you had got it wrong?
0/5QUESTS
Think First
warm-up

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?

Record your answer in your workbook.
1
The Big Idea
+5 XP to read

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.

A B run rise gradient first, then a point two points, exactly one line
$m \ \text{then} \ y - y_1 = m(x - x_1)$
Gradient first, always
Point-gradient form needs a gradient. Trying to substitute two points into it at once produces nonsense.
Pick the friendlier point
Choose the one with smaller or positive coordinates. The answer is the same and the arithmetic is easier.
Check with the other one
Substituting the unused point is a genuinely independent check, unlike re-reading your own working.
2
What You'll Master
objectives

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
3
Words You Need
vocabulary
DetermineTo fix completely. Two distinct points determine exactly one straight line.
DistinctDifferent. Two identical points do not determine a line, since infinitely many lines pass through a single point.
Independent checkA test using information not already used in the working, so that it can genuinely disagree.
CollinearLying on one straight line. A third point can be tested against the equation found from the first two.
Linear modelA straight-line equation used to describe a real relationship, such as cost against quantity.
4
Two Formulas in Sequence
+5 XP to read

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.

5
Either Point Will Do
+5 XP to read

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.

6
The Check That Comes Free
+5 XP to read

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.

7
Reading the Special Cases from the Coordinates
+5 XP to read

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.

8
Using It on a Real Relationship
+5 XP to read

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 · The standard method
+15 XP per step
Q1
PROBLEM
Find the equation of the line through $A(-2, 9)$ and $B(4, -3)$, in gradient–intercept form.
  1. 1
    Find the gradient
    $m = \frac{-3 - 9}{4 - (-2)} = \frac{-12}{6} = -2$
    Label the points first so both subtractions run in the same order.
  2. 2
    Substitute 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.
  3. 3
    Expand and tidy
    $y - 9 = -2x - 4$
    $y = -2x + 5$
  4. 4
    Check 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.
Answer$y = -2x + 5$
Watch Me Solve It · Choosing the friendlier point
+15 XP per step
Q2
PROBLEM
Find the equation of the line through $P(-7, -5)$ and $Q(1, 3)$, and explain the choice made in the second step.
  1. 1
    Find the gradient
    $m = \frac{3 - (-5)}{1 - (-7)} = \frac{8}{8} = 1$
  2. 2
    Choose the point with the simpler coordinates
    Using $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.
  3. 3
    Substitute and expand
    $y - 3 = 1(x - 1)$
    $y = x + 2$
  4. 4
    Check with the unused point
    $x = -7: \quad -7 + 2 = -5$
    This matches the y-coordinate of $P$, so the equation is correct.
Answer$y = x + 2$
Watch Me Solve It · A linear relationship in context
+15 XP per step
Q3
PROBLEM
A printer charges $\$70$ for $100$ flyers and $\$130$ for $300$ flyers. Assuming the cost is linear, find an equation for the cost $y$ in terms of the number of flyers $x$, and interpret both constants.
  1. 1
    Write the information as two points
    $(100, 70) \quad \text{and} \quad (300, 130)$
    Quantity is the independent variable, so it goes first.
  2. 2
    Find 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.
  3. 3
    Use point-gradient form
    $y - 70 = 0.3(x - 100)$
    $y - 70 = 0.3x - 30$
    $y = 0.3x + 40$
  4. 4
    Interpret 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.
Answer$y = 0.3x + 40$, a setup charge of $\$40$ plus $30$ cents per flyer
D
Brain Trainer · Gradient, point, check
5 problems

Five items. Look at the coordinates first, in case the line is horizontal or vertical.

  1. 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. 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. 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. 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. 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$
Complete in your workbook.
MC1
The order of the steps
+10 XP

To find the equation of the line through two given points, the first step is to:

MC2
A standard pair
+10 XP

The line through $(2, 1)$ and $(5, 10)$ has equation:

MC3
Which point to use
+10 XP

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)$:

MC4
Spotting the vertical case
+10 XP

The line through $(-3, 7)$ and $(-3, -2)$ has equation:

MC5
Interpreting a context
+10 XP

A linear cost model through $(50, 65)$ and $(150, 105)$ gives $y = 0.4x + 45$. The number $45$ represents:

Q6
Find, check and convert
+15 XP
Q6
SHORT ANSWER
Find the equation of the line through $A(-4, 11)$ and $B(6, -9)$. Give your answer in gradient–intercept form and in general form, and verify it using the point you did not substitute.
Write your working in your book.
Q7
Explain the check
+15 XP
Q7
SHORT ANSWER
A student finds the equation of the line through $(1, 4)$ and $(5, 16)$, using the point $(1, 4)$ in the second step, and obtains $y = 3x + 1$. Verify or refute the answer, and explain why substituting $(5, 16)$ is a better check than reworking the calculation.
Write your working in your book.
Q8
A linear model
+15 XP
Q8
SHORT ANSWER
A gym charges $\$210$ for a 3-month membership and $\$390$ for a 9-month membership, with the cost linear in the number of months. Find an equation for the cost $y$ in terms of the number of months $x$, interpret both constants in context, and use the model to find the cost of a 12-month membership.
Write your working in your book.
S
Stretch Challenge · The two-point formula, and why it is rarely used
+25 XP
S
CHALLENGE
Combining the two steps into one gives the two-point form $\dfrac{y - y_1}{x - x_1} = \dfrac{y_2 - y_1}{x_2 - x_1}$. Derive it, use it to find the line through $(2, -1)$ and $(6, 7)$, and then give two reasons why the two-step method is usually preferred in practice.
R
Quick Review
recap

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 6
First Steps
3-Day Streak
3 in a Row
Lesson Ace
Stretch Seeker
Daily Warrior

Mark lesson as complete

Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.