Lemmara logo

Equation of a Line Through Two Points

Find the equation of the straight line through two given points: gradient first, then c.

31real exam questions on this topic
  • 6 steps
  • 5 min
  • 6 syllabuses

Try a real exam question on this

WMA11/01 · Oct 2022 · Q3 · 5 marks · Solve it step by step, the way the examiner marks it.

Loading the animated solution…

See the solution as text
Text version of the solution

Share price modelled by V = pt + q, with values £1.05 at t = 3 and £1.65 at t = 5. Find p and q, then find T when V = £2.50 to one decimal place.

(a) 3 marks

Use the two given share prices at t = 3 and t = 5 to find the constants p and q.

  1. Understand the question. The share price model is P equals p t plus q. P is 1.05 when t is 3, and 1.65 when t is 5. We must find p and q.
  2. Write two equations. Put each pair of values into the model.
  3. 1.05 = 3p + q and 1.65 = 5p + q
  4. Use elimination. Take the first equation from the second, and q cancels.
  5. Why does this work? Both equations are true at the same time. If you add or take away their left sides and their right sides, the result is still true.
  6. If you first make one letter have the same number in front in both equations, adding or taking away makes that letter cancel. That leaves one equation with one letter, which you can solve.
  7. Subtract: 2p = 0.6 ⇒ p = 0.3
  8. Find q. Put p back into the first equation.
  9. q = 1.05 − 0.9 = 0.15

Answer p = 0.3, q = 0.15

(b) 2 marks

Using your model, find the value of T when the share price is £2.50, to one decimal place.

  1. Understand the question. The share price was 2.50 pounds after T years. We must find T to one decimal place.
  2. Put P as 2.50 into the model.
  3. 2.50 = 0.3T + 0.15
  4. Take 0.15 from both sides.
  5. 0.3T = 2.35
  6. Divide by 0.3 and round.
  7. T = 7.83… = 7.8 (1 d.p.)

Answer T = 7.8

The lesson, step by step

Step 1 of 6

Two Points Fix One Line

Only one straight line goes through two points. You find its equation in two moves.

Steps

  1. 1

    Gradient: up ÷ across between the two points gives .

  2. 2

    c: put one point's x and y into and solve.

Written as a formula, the gradient is:

Formula

is one point and is the other. The top is the change in y (up), the bottom is the change in x (across). Take both in the same order.

Key idea

Then use the other point as a check. It must fit too.

See this step move in Lemmara

Step 2 of 6

Gradient, Then c

The main question: find the equation of the line through and .

Worked example

  1. 1

    — Gradient formula: take the y's away on top and the x's away underneath, in the same order.

  2. 2

    — Up 9, across 3, so the gradient is 3.

  3. 3

    — Put m = 3 into y = mx + c. Only c is still unknown.

  4. 4

    — Substitute the point (2, 5): x = 2 goes next to the 3, and y = 5 goes on the left.

  5. 5

    — Work out 3 × 2 = 6.

  6. 6

    — Take 6 from both sides: 5 − 6 = −1.

  7. 7

    — Put c back into y = 3x + c. This is the equation.

Common mistake

Swapping x and y when you substitute, as in . The x goes next to the m.

Key idea

Check with the other point: . It fits.

Key idea

Show the gradient sum and the substitution line. Each one earns a mark for working, even if a slip spoils your final answer.

See this step move in Lemmara

Step 3 of 6

Negative Coordinates and Fractions

Take extra care with minus signs. The gradient can come out as a fraction: keep it as a fraction.

Worked example

  1. 1

    — The two points. The first one has a negative x, so watch the signs.

  2. 2

    — Gradient formula. Put −2 in brackets so its minus sign is not lost.

  3. 3

    — Minus a negative is plus: 6 − (−2) = 8. The top is −4 because the line goes down.

  4. 4

    — Divide top and bottom by 4. Keep it as a fraction, it is exact.

  5. 5

    — Substitute (6, 0): the point with a 0 gives easier sums.

  6. 6

    — Work out −½ × 6 = −3.

  7. 7

    — Add 3 to both sides.

  8. 8

    — Put m and c into y = mx + c. Check with (−2, 4): −½ × (−2) + 3 = 4. It fits.

Common mistake

Working out the across as . It is .

See this step move in Lemmara

Step 4 of 6

Another Way: y − y₁ = m(x − x₁)

Some textbooks and mark schemes use a second formula. It gets to the equation without finding c as a separate step.

Formula

is the gradient and is any point on the line. The x and y stay as letters.

Worked example

  1. 1

    — Line through (−4, 9) and (6, −16). Find the gradient first, as before. Brackets keep the −4 safe.

  2. 2

    — −16 − 9 = −25 and 6 + 4 = 10, so the gradient is −2.5.

  3. 3

    — Put m and the point (−4, 9) into the formula: , .

  4. 4

    — Minus a negative is plus: x − (−4) = x + 4.

  5. 5

    — Multiply out the bracket: −2.5 × x and −2.5 × 4 = −10.

  6. 6

    — Add 9 to both sides: −10 + 9 = −1. Now it is in the form y = mx + c.

Common mistake

Writing . Here is −4, so becomes .

Key idea

Both methods give the same line and earn the same marks. Use the one you find easier.

See this step move in Lemmara

Step 5 of 6

“Show That” Questions

Some questions give you the answer in another form, like “Show that the line AB is 3y = x + 7”. All the marks are for working, so write every line.

Worked example

  1. 1

    — A is (−1, 2) and B is (5, 4). Gradient formula, with −1 in brackets.

  2. 2

    — Minus a negative is plus, so across is 6. Divide top and bottom by 2.

  3. 3

    — Substitute A: x = −1, y = 2.

  4. 4

    — ⅓ × (−1) = −⅓.

  5. 5

    — Add ⅓ to both sides. Keep it as a fraction: a rounded 2.33 cannot give the exact answer.

  6. 6

    — The equation in the form y = mx + c.

  7. 7

    — Multiply every term by 3 to clear the fractions. This matches the line you were asked to show.

Key idea

In a “show that” question, an answer with a missing line can lose marks. The examiner wants every step, with no gaps.

See this step move in Lemmara

Step 6 of 6

Which Method? Read the Question

Check what you are given and how the answer should look.

You seeYou do
Two pointsgradient, then c
A gradient and one pointskip to c
Two points with the same y that number
Two points with the same x that number (a vertical line)
A point on the y-axis, straight away
Answer as ax + by + c = 0Equation in the Form ax + by + c = 0
A line drawn on a gridFinding the Equation From a Graph
Through the midpoint, at right anglesThe Perpendicular Bisector

Key idea

Put in whichever point has the easier numbers. A point with a 0 in it is best.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 31 questions on this topic

Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.

Try a real exam question on this

Solve it →