Finding the Equation of a Straight Line

Key concept

The equation of a straight line is y = mx + c. The gradient m shows how steep the line is, found from two points using m = (y₂ − y₁) ÷ (x₂ − x₁). The y-intercept c is where the line crosses the y-axis, when x = 0.

Finding the Equation of a Straight Line - introduction visual

Video Lesson

Watch and learn the basics

Finding the Equation of a Straight Line poster

🎬 Did this video explain it clearly?

Flashcards

Review key concepts visually

Linear equation y = mx + c with m labelled as slope and c as y-intercept, shown on a graph crossing the y-axis.Finding linear equation y = mx + c using two points, and steps to calculate gradient (m) and y-intercept (c) with points (2,3) and (4,7) on a graph.Verifying if points (3, 5) and (-2, -4) lie on the line y = 2x - 1 by substituting coordinates into the equation illustrating right and wrong results.

The Straight Line Formula: y = mx + c

  • m is the gradient and tells you how steep the line is.
  • c is the y-intercept and shows where the line crosses the y-axis.

Finding a Linear Equation Using Two Points

  • The gradient is found using ₂ − y₁) ÷ (x₂ − x₁).
  • For example, with points (2,3) and (4,7), the gradient is .

Checking If a Point Lies on a Line

  • Substitute (3,5) into to check if .
  • Because , the point lies on the line.

Practice Questions

Test your understanding

Progress1 / 6
Q1Easy

What does the y-intercept (c) represent in the equation ?

Choose your answer to continue

Interactive Activity

Finding the equation of a straight line using 2 points

Loading interactive widget...

Frequently asked questions

The questions students bump into most on this topic

Every straight line can be written as y = mx + c, where m is the gradient, how steep the line is, and c is the y-intercept, where it crosses the y-axis. Once you know those two numbers the equation is fixed: y = 2x − 1 is the line with gradient 2 that crosses the y-axis at −1.

Divide the change in y by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁). For the points (2, 3) and (4, 7), the change in y is 7 − 3 = 4 and the change in x is 4 − 2 = 2, so the gradient is 4 ÷ 2 = 2. American sites call it the slope and say “rise over run”; it is the same calculation.

Find the gradient first, then the y-intercept. For (2, 3) and (4, 7), m = (7 − 3) ÷ (4 − 2) = 2. Then rearrange y = mx + c to c = y − mx and put in either point: using (4, 7), c = 7 − 2 × 4 = −1. So the equation is y = 2x − 1. Check it with the other point: 3 = 2 × 2 − 1.

Rearrange the equation to c = y − mx, then substitute the gradient and any point on the line: with m = 2 and the point (4, 7), c = 7 − 2 × 4 = −1. If you can see where the line crosses the y-axis, you can skip the working: at the y-intercept x is 0, so y equals c, and a line crossing at −1 has c = −1.

No. Either point can be P1, as long as you keep the same order on the top and the bottom of the fraction. With (4, 7) as P1 and (2, 3) as P2, the gradient is (3 − 7) ÷ (2 − 4) = −4 ÷ −2 = 2, the same answer as before. Mixing the order gives the wrong sign.

Substitute the point’s x and y into the equation and see whether it is true. For (3, 5) in y = 2x − 1: 5 = 2 × 3 − 1 = 5, true, so the point is on the line. For (−2, −4): −4 = 2 × (−2) − 1 = −5, false, so it is not. No graph is needed.

Watch 30%
Watch 90%
Flashcards
Pass Quiz
Interactive
Course overview

What's next?

Found this one hard? Go one step back first. Feeling confident? Carry on to the next lesson.