Equations of straight lines

Maths: Analysis and Approaches · Functions. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths: Analysis and Approaches topics

The idea

A straight line is fixed by its gradient and one point on it. The gradient m measures steepness: the change in y divided by the change in x between any two points on the line. A line that falls from left to right has a negative gradient.

The same line can be written in three forms. y = mx + c shows the gradient and the y-intercept. y − y1 = m(x − x1) is the quickest to write when you know a point. ax + by + d = 0 is the general form.

Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to give −1.

Rules to remember

Common mistake

Reading the gradient straight from ax + by + d = 0 as a. Rearrange to y = mx + c first: 3x + 2y − 5 = 0 has gradient −3/2, not 3.

Worked example

Find the equation of the line through (−1, 4) and (3, −2) in the form ax + by + d = 0.

  1. m = (−2 − 4)/(3 − (−1)) = −6/4 = −3/2.
  2. y − 4 = −(3/2)(x + 1). Multiply by 2: 2y − 8 = −3x − 3.
  3. Rearrange: 3x + 2y − 5 = 0. Check with (3, −2): 9 − 4 − 5 = 0.

Answer: 3x + 2y − 5 = 0

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← The binomial theoremFunctions, graphs, composites and inverses →Take a Maths: Analysis and Approaches test