5.2PureCore

Equations of Straight Lines

Given a point and a gradient — or two points — you can write the equation of any straight line. The point-gradient formula y−y1=m(x−x1)y - y_1 = m(x - x_1) is the most flexible tool for the job.

25 min Straight Line Graphs
Edexcel Straight Lines — full chapter playlist (Zeeshan Zamurred)Curated by Kepler, not produced by us. Watch it before the notes below.
Open on YouTube

What you'll be able to do

  • Use y − y₁ = m(x − x₁) to find a line
  • Find a line through two points
  • Convert to the form ax + by + c = 0
  • Find where a line crosses the axes
1

Point-gradient form

If you know the gradient mm and one point (x1,y1)(x_1, y_1), the line is given directly by the point-gradient formula.

y−y1=m(x−x1)y - y_1 = m(x - x_1)
Substitute the gradient and the point, then simplify.
Example 1Find the line through (2,3)(2, 3) with gradient 44.
1y−3=4(x−2)y - 3 = 4(x - 2).
2Expand: y=4x−5y = 4x - 5.
Answer
y=4x−5y = 4x - 5
2

Through two points

With two points, first find the gradient, then use either point in the point-gradient formula.

Example 1Find the line through (1,1)(1, 1) and (3,7)(3, 7).
1Gradient =7−13−1=3= \dfrac{7 - 1}{3 - 1} = 3.
2Use (1,1)(1, 1): y−1=3(x−1)y - 1 = 3(x - 1).
Answer
y=3x−2y = 3x - 2

Tip — Always find the gradient first when given two points, then plug into y − y₁ = m(x − x₁).

3

The form ax + by + c = 0

Exam answers are often required in the form ax+by+c=0ax + by + c = 0 with integer coefficients. Rearrange and multiply through to clear fractions.

Example 1Write y=12x+3y = \tfrac{1}{2}x + 3 as ax+by+c=0ax + by + c = 0.
1Multiply by 2: 2y=x+62y = x + 6.
2Rearrange: x−2y+6=0x - 2y + 6 = 0.
Answer
x−2y+6=0x - 2y + 6 = 0

Formula recap

y−y1=m(x−x1)y - y_1 = m(x - x_1)
Point-gradient form.
m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Gradient from two points.
ax+by+c=0ax + by + c = 0
Standard exam form.

Common mistakes to avoid

Forgetting to find the gradient before using the formula.
With two points, compute m first.
Leaving fractions in ax + by + c = 0.
Multiply through to clear fractions and use integer coefficients.

Key takeaways

  • Point-gradient form: y − y₁ = m(x − x₁).
  • For two points, find the gradient first.
  • Rearrange to ax + by + c = 0 with integers when asked.

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. The line through (2,3)(2, 3) with gradient 4 is:

    • y=4x−5y = 4x - 5
    • y=4x+5y = 4x + 5
    • y=4x−3y = 4x - 3
    • y=4x+3y = 4x + 3
    Show answer and explanation

    Answer: y=4x−5y = 4x - 5

    y − 3 = 4(x − 2) → y = 4x − 5.

  2. The point-gradient formula is:

    • y−y1=m(x−x1)y - y_1 = m(x - x_1)
    • y=mxy = mx
    • m=yxm = \dfrac{y}{x}
    • ax+by=0ax + by = 0
    Show answer and explanation

    Answer: y−y1=m(x−x1)y - y_1 = m(x - x_1)

    The standard form.

  3. The gradient through (1,1)(1, 1) and (3,7)(3, 7) is:

    • 33
    • 22
    • 66
    • 13\tfrac{1}{3}
    Show answer and explanation

    Answer: 33

    6/2 = 3.

  4. The line through (1,1)(1, 1) and (3,7)(3, 7) is:

    • y=3x−2y = 3x - 2
    • y=3x+2y = 3x + 2
    • y=2x−1y = 2x - 1
    • y=3xy = 3x
    Show answer and explanation

    Answer: y=3x−2y = 3x - 2

    m = 3; y − 1 = 3(x − 1).

  5. y=12x+3y = \tfrac{1}{2}x + 3 as ax+by+c=0ax + by + c = 0 is:

    • x−2y+6=0x - 2y + 6 = 0
    • x+2y+6=0x + 2y + 6 = 0
    • 2x−y+3=02x - y + 3 = 0
    • x−2y−6=0x - 2y - 6 = 0
    Show answer and explanation

    Answer: x−2y+6=0x - 2y + 6 = 0

    Multiply by 2 and rearrange.

  6. To find where a line crosses the x-axis, set:

    • y=0y = 0
    • x=0x = 0
    • m=0m = 0
    • c=0c = 0
    Show answer and explanation

    Answer: y=0y = 0

    The x-axis is y = 0.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 5 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.