Equation of a straight line

Tier: #Foundation #Higher

🔗What you need to know first
How to

The equation of any straight line can be written in the form: $$y = mx + c$$ where $m$ is the gradient and $c$ is the $y$-intercept.

Finding the equation from two points:

  1. Calculate the gradient: $m = \frac{y_2 - y_1}{x_2 - x_1}$
  2. Substitute one point into $y = mx + c$ to find $c$

Example: Find the equation of the line through $(2, 5)$ and $(4, 11)$. $$m = \frac{11-5}{4-2} = 3, \quad 5 = 3(2) + c \implies c = -1$$ $$y = 3x - 1$$

Alternative form: $ax + by = c$ is sometimes used (e.g. $3x - y = 1$).

Vertical lines: $x = k$ (undefined gradient — not in $y = mx + c$ form). Horizontal lines: $y = k$ (gradient zero).

Common error: substituting into $y = mx + c$ and getting $c$ wrong because of arithmetic errors. Always substitute a point you're confident about, and check with the second point.

Questions to practise

Practise these questions →

New to Bow Tie Maths? It generates questions on this topic, marks them instantly, and tracks what you've mastered. Free to sign up.

📝Past paper questions
💬What the examiners say
  • "Draw a diagram to help—it's a good way to structure your working and avoid errors."
  • "Students should be encouraged to write down the formula for a gradient before applying it as this may minimise the use of incorrect values."
  • "To improve performance, learners should develop a secure understanding of the geometric relationship between tangents and circles, specifically that the radius meets the tangent at a right angle and that the point of contact lies on both the circle and the tangent line."
⬆️How you can quickly improve
  • Always rearrange any equation into y = mx + c before reading off the gradient — write this step explicitly, don't just eyeball it.
  • To find the equation of a line through a given point, substitute the coordinates into y = mx + c after you've found the gradient, then solve for c.
  • For perpendicular gradients, do it in two written steps: flip the fraction first, then change the sign — never try to do both at once in your head.
💡Watch
🔓What this unlocks
ℹ️Calculator tricks