O Level Maths 4024 · Area 3 · Coordinate geometry

Equations of Lines, Parallel and Perpendicular Lines

Every straight line has an equation, and y=mx+c shows its two key numbers at a glance: the gradient m and the intercept c. Cambridge also uses ax+by=c and x=k, and expects an equation in fully simplified form. Parallel lines share a gradient; perpendicular gradients multiply to −1, which is what a perpendicular bisector question turns on.

Not started

Syllabus coverage

  • Use and request lines in different forms, e.g. ax+by=c, y=mx+c, x=k
  • Find the equation of a straight line when the graph is given
  • Find the gradient or y-intercept of a graph from an equation, e.g. find the gradient and y-intercept of 5x+4y=8
  • Give equations of a line in a fully simplified form
  • Find the gradient and equation of a straight line parallel to a given line
  • Find the gradient of a perpendicular line and the equation of a perpendicular bisector

Part of the O Level Maths syllabus 4024.

-4-3-2-10123456-4-3-2-10123456y = 2x - 1y = 2x + 3y = -0.5x + 1.5parallel: gradients equalperpendicular: 2 x -0.5 = -1
The parallel lines y=2x+3 and y=2x−1, which share a gradient of 2, and the line y=−0.5x+1.5, whose gradient of −0.5 is the negative reciprocal of 2.

y=mx+c: the two numbers that describe a line

In y=mx+c, the coefficient m is the gradient and the constant c is the y-intercept, the height at which the line crosses the y-axis. The equation is a description of every point on the line: a point (x,y) is on the line exactly when its coordinates satisfy the equation.

So y=2x+3 has gradient 2 and crosses the y-axis at (0,3). Starting from that intercept, every step of 1 to the right takes you 2 up, which lands on (1,5), (2,7) and so on. Two numbers fix a straight line completely: a gradient without an intercept gives a whole family of parallel lines, and an intercept without a gradient gives every line through that point.

When a line falls, m is negative and the equation still reads the same way: y=−3x+4 drops 3 for every 1 across and meets the y-axis at 4. The minus sign belongs to the gradient, not to the whole expression.

EquationGradientCrosses the y-axis atDirection
y=3x−43(0,−4)rising
y=−2x+5−2(0,5)falling
y=12x12(0,0)gentle, rising
y=7−4x−4(0,7)falling

Building an equation from a gradient and a point

Start from y=mx+c and put in the gradient you are given. That leaves one unknown, c. Substitute the coordinates of the point, solve for c, and write the finished equation.

For a line of gradient −3 through (2,5): the equation is y=−3x+c. Substituting gives 5=−3(2)+c, so 5=−6+c and c=11. The line is y=−3x+11. Check it by putting x=2 back in: y=−6+11=5, which is the point you were given.

The same routine works with a fractional gradient and with negative coordinates, because the substitution does not care about signs. The check at the end is worth the ten seconds: if the given point does not satisfy your equation, the intercept is wrong.

Substitute the point into y=mx+c to find c. Do not add the coordinates together or use the point as the intercept, which is the error that produces an equation through the wrong place on the y-axis.

Building an equation from two points

With two points, the gradient comes first. Use m=y2−y1x2−x1, then substitute either point into y=mx+c to find c. Either point gives the same c, so use the one with simpler numbers.

For (−1,4) and (3,−4): the gradient is −4−43−(−1)=−84=−2. Then 4=−2(−1)+c gives 4=2+c, so c=2. The equation is y=−2x+2. Checking with the other point: −2(3)+2=−4, which matches.

If one of the points is the y-intercept, the work is shorter: the y-coordinate of that point is c itself. A line through (0,6) and (3,0) has c=6 and gradient 0−63−0=−2, so y=−2x+6.

  • (−1,4) and (3,−4): y=−2x+2
  • (0,6) and (3,0): y=−2x+6
  • (2,1) and (4,5): m=2, so y=2x−3
  • (0,−1) and (5,9): m=2, so y=2x−1

The form ax+by=c, and the vertical line x=k

Cambridge writes lines in three shapes. y=mx+c is the most useful, ax+by=c often appears when the coefficients are whole numbers, and x=k is the only way to write a vertical line, which has no gradient and so cannot be put in the form y=mx+c.

To convert between them, rearrange by the ordinary rules of algebra. From y=23x+4, multiply by 3: 3y=2x+12, then collect: 2x−3y=−12. Going the other way, 3x+4y=12 becomes 4y=12−3x, so y=−34x+3.

A vertical line through (5,2) is x=5, because every point on it has x-coordinate 5 whatever its y-coordinate. A horizontal line through the same point is y=2. These two are easy marks and easy losses: the vertical one is not y=5.

FormExampleBest used for
y=mx+cy=−34x+3reading the gradient and intercept
ax+by=c3x+4y=12whole-number coefficients
x=kx=5vertical lines
y=cy=2horizontal lines

Reading the gradient and intercept out of any equation

An equation in the form ax+by=c hides its gradient. Make y the subject first, then read the numbers off. For 5x+4y=8: subtract 5x to get 4y=−5x+8, then divide by 4 to get y=−54x+2. The gradient is −54 and the y-intercept is 2.

The pattern is worth knowing as a check: for ax+by=c, the gradient is −ab and the y-intercept is cb. Both come from dividing by b, which is why the y-intercept is not c unless b=1.

Do not divide only the left-hand side. Every term must be divided by b, including the constant, and the x-term keeps its minus sign. An answer with the wrong sign on the gradient describes a line sloping the wrong way, which a quick sketch would reveal.

EquationRearrangedGradienty-intercept
5x+4y=8y=−54x+2−542
3x−2y=6y=32x−332−3
x+2y=10y=−12x+5−125
4y=3x+8y=34x+2342
Divide every term by the coefficient of y. In 5x+4y=8 the intercept is 2, not 8.

Fully simplified form

An equation of a line has infinitely many equivalent writings, so Cambridge asks for one in a fully simplified form: no fractions in the coefficients if whole numbers will do, no common factor left in all three terms, and no brackets waiting to be expanded.

y=62x−4 is the same line as y=3x−4, and only the second is acceptable. 2x+4y=8 should be divided through by 2 to give x+2y=4. y=2(x−1)+5 should be expanded to y=2x+3.

When the question names a form, use that form. If it says give your answer in the form ax+by=c where a, b and c are integers, then fractions such as 12x+y=3 are not in the required form until you multiply through by 2 to get x+2y=6.

  • 62x−4 simplifies to 3x−4
  • 2x+4y=8 simplifies to x+2y=4
  • 12x+y=3 becomes x+2y=6
  • y=2(x−1)+5 becomes y=2x+3

Parallel lines: the same gradient

Parallel lines never meet, which happens exactly when they have the same gradient. So a line parallel to y=4x−1 has gradient 4 and some different intercept; the equation is y=4x+c for a value of c you find from a point.

Through (1,−3): −3=4(1)+c gives c=−7, so the parallel line is y=4x−7. It is parallel to the original because both have gradient 4, and it is a different line because the intercepts differ.

If the given line is in the form ax+by=c, rearrange it first. A line parallel to 2x+3y=6 has gradient −23, because y=−23x+2. The numbers a and b stay in the same ratio on every parallel line: 2x+3y=12 is parallel to 2x+3y=6.

Parallel means equal gradients. The intercepts must be different, or the lines are the same line rather than two parallel ones.

Perpendicular lines: negative reciprocals

Two lines are perpendicular when their gradients multiply to −1: m1m2=−1. Equivalently, the second gradient is the negative reciprocal of the first, found by turning the fraction upside down and changing its sign.

So a line of gradient 32 is perpendicular to one of gradient −23, because 32×(−23)=−1. A line of gradient −4 is perpendicular to one of gradient 14. A horizontal line (gradient 0) is perpendicular to a vertical line (undefined gradient), which is the one case the product rule cannot express.

Watch the sign. The reciprocal of 32 is 23, and the perpendicular gradient is −23, not +23 and not −1.5. Reading the gradient of the given line correctly is half the battle: for 2y=3x+1, divide by 2 first to see the gradient is 32, and only then invert.

Given gradientPerpendicular gradientProduct
2−12−1
−3443−1
32−23−1
−515−1
Perpendicular gradients multiply to −1. Flip the fraction and change the sign; do not change only one of the two.

The perpendicular bisector, and a routine for line questions

A perpendicular bisector cuts a segment in half at right angles, so it needs two things: the midpoint of the segment, which it passes through, and the perpendicular gradient. Find the midpoint with the averaging formula, find the gradient of the segment, turn it into the negative reciprocal, then build the equation from that gradient and that point.

For A(−2,6) and B(8,−4): the midpoint is (−2+82,6+(−4)2)=(3,1). The gradient of AB is −4−68−(−2)=−1, so the perpendicular gradient is 1. Then 1=1(3)+c gives c=−2, and the bisector is y=x−2, or x−y=2 in the other form.

The routine for any line question is the same three steps: get the gradient, get one point, substitute into y=mx+c. Parallel questions reuse the gradient; perpendicular questions flip and negate it; bisector questions find the point by averaging. Nothing else is needed.

Question asks forGradient to usePoint to use
line through two pointscalculate from the pointseither given point
parallel linesame as the given linethe given point
perpendicular linenegative reciprocalthe given point
perpendicular bisectornegative reciprocal of the segmentthe midpoint

Key terms you must be able to define

Gradient-intercept form
y=mx+c, where m is the gradient and c is the y-intercept.
Gradient
The change in y for each unit of change in x; the coefficient of x once y is the subject.
y-intercept
The value of y where the line crosses the y-axis, which is the constant c in y=mx+c.
General form
ax+by=c, with the terms collected on one side; useful when the coefficients are whole numbers.
Vertical line
A line of the form x=k, with undefined gradient, through every point whose x-coordinate is k.
Horizontal line
A line of the form y=c, with gradient 0.
Fully simplified form
No common factor in the coefficients, no fractions where integers will do, and no brackets left unexpanded.
Parallel lines
Lines with the same gradient, which therefore never meet.
Perpendicular lines
Lines that meet at a right angle; their gradients satisfy m1m2=−1.
Negative reciprocal
The result of flipping a fraction and changing its sign, such as −23 from 32.
Perpendicular bisector
The line through the midpoint of a segment at right angles to it.
Midpoint
The point (x1+x22,y1+y22) halfway along a segment, used as the point on a perpendicular bisector.

In context

Cambridge sets 4024 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.

Gradient and a point

Find the equation of the line with gradient −3 through (2,5). y=−3x+c, so 5=−6+c and c=11. The line is y=−3x+11. Check: at x=2, y=−6+11=5.

Two points

Find the equation of the line through (−1,4) and (3,−4). Gradient =−4−43+1=−2. Then 4=−2(−1)+c gives c=2, so y=−2x+2. Using (3,−4) instead gives −4=−6+c, the same c.

Read off an equation in general form

Find the gradient and y-intercept of 5x+4y=8. Rearranged: 4y=−5x+8, so y=−54x+2. The gradient is −54 and the intercept is 2. The intercept is 2 because every term was divided by 4, including the 8.

A parallel line

Find the equation of the line parallel to y=4x−1 that passes through (1,−3). Parallel means gradient 4, so y=4x+c. Then −3=4+c and c=−7, giving y=4x−7.

A perpendicular bisector

Find the perpendicular bisector of the segment joining A(−2,6) and B(8,−4). Midpoint (3,1). Gradient of AB=−1010=−1, so the perpendicular gradient is 1. Then y=x+c with 1=3+c gives c=−2, so y=x−2, or x−y=2.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1In y=mx+c, what are m and c?
m is the gradient and c is the y-intercept.
Q2What is the gradient of y=7−4x?
−4. The number multiplying x is the gradient, whatever its position.
Q3How do you find the equation of a line from its gradient and one point?
Write y=mx+c with the gradient, substitute the point, solve for c.
Q4How do you find the equation of a line from two points?
Find the gradient with y2−y1x2−x1, then substitute either point to find c.
Q5Find the gradient and y-intercept of 3x−2y=6.
y=32x−3: gradient 32, intercept −3.
Q6Find the gradient and y-intercept of 5x+4y=8.
y=−54x+2: gradient −54, intercept 2.
Q7What does a vertical line look like as an equation?
x=k, with undefined gradient.
Q8What does a horizontal line look like as an equation?
y=c, with gradient 0.
Q9What do you know about the gradients of parallel lines?
They are equal.
Q10What is the gradient of a line perpendicular to one of gradient 32?
−23, the negative reciprocal; the product is −1.
Q11How do you find a perpendicular bisector?
Take the midpoint of the segment and the negative reciprocal of the segment's gradient, then form the equation.
Q12What counts as a fully simplified equation?
No fractions where integers will do, no common factor, and no brackets left unexpanded.
0 of 12 marked as known

Exam-style questions

8 questions, 23 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.

WriteAO12 marks
Write the equation of the straight line with gradient 3 that passes through (2,−1).
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • A1y=3x−7not checked yet
Examiner tip: The point is (2,−1), not (0,−1). Substitute to find c rather than using −1 as the intercept.
Work outAO13 marks
Work out the gradient and the y-intercept of the straight line with equation 5x+4y=8.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1gradient −54, y-intercept 2not checked yet
Examiner tip: Divide all three terms by 4. The intercept is 2, not 8, and the gradient must carry the minus sign.
CalculateAO13 marks
Calculate the equation of the straight line that passes through (1,2) and (5,10).
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1y=2xnot checked yet
Examiner tip: An intercept of 0 means the line passes through the origin. Write 0 explicitly in your working so the examiner can see it was not just omitted.
Work outAO13 marks
Work out the equation of the straight line parallel to y=−2x+5 that passes through (3,1).
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1y=−2x+7not checked yet
Examiner tip: Parallel means the same gradient, not the same equation. Only the intercept changes.
StateAO11 mark
State the gradient of a line that is parallel to the line with equation y=3−7x.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1parallel lines have the same gradient, and the given line has gradient −7not checked yet
Examiner tip: Read the gradient from the coefficient of x. A parallel line keeps it unchanged, so no working is needed.
DetermineAO24 marks
Determine the equation of the perpendicular bisector of the line segment joining (2,4) and (6,8). Give your answer in the form ax+by=c where a, b and c are integers.
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A1x+y=10not checked yet
Examiner tip: The bisector passes through the midpoint, not through either end. With gradient −1, y=−x+10 rearranges to x+y=10.
Show (that)AO23 marks
Show that the line through (1,3) and (4,9) is parallel to the line with equation y=2x+7.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1
Examiner tip: Two lines are parallel exactly when their gradients are equal, so the conclusion must name the equality.
DetermineAO24 marks
A straight line has gradient 12 and passes through (4,−1). Determine its equation in the form ax+by=c where a, b and c are integers.
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A1x−2y=6not checked yet
Examiner tip: The question demands integers, so clear the fraction before writing the final answer. Any common factor left in the three numbers means it is not fully simplified.

Exam technique for this topic

  • Substitute the given point into y=mx+c rather than adding coordinates. The intercept is a height on the y-axis, not a distance along the line.
  • When the line is given as ax+by=c, rearrange to make y the subject before reading the gradient. Dividing only the x-term is the error that follows.
  • Check a finished equation by substituting each point you were given. Both must satisfy it, and a failure means the gradient or the intercept is wrong, not the point.
  • Perpendicular gradient: flip the fraction, then change the sign. Check by multiplying the two gradients together; the answer must be −1.
  • Give the equation in the form the question asks for, fully simplified. If it asks for integers in ax+by=c, clear any fractions before you write the final line.

Why students lose marks here

A student wroteLine of gradient 3 through (2,5) is y=3x+5
Why it loses marksThe y-coordinate of the point was used as the intercept, so the point (0,5) was assumed to be on the line. Substituting shows it is not.
The answer that scores5=3(2)+c gives c=−1, so y=3x−1.
A student wrote5x+4y=8 has y-intercept 8
Why it loses marksOnly the x-term was divided by 4. The constant must be divided too, because the whole equation is divided by 4.
The answer that scoresy=−54x+2, so the intercept is 2.
A student wrotePerpendicular to a line of gradient 32 is −32
Why it loses marksThe sign was changed but the fraction was not inverted. The product of the two gradients must be −1.
The answer that scoresPerpendicular gradient =−23, since 32×(−23)=−1.
A student wrotey=62x−4 left as the final answer
Why it loses marksThe fraction was not simplified, so the equation is not in fully simplified form. 62 is 3.
The answer that scoresy=3x−4.
A student wroteVertical line through (5,2) written as y=5
Why it loses marksA vertical line has a constant x-coordinate, not a constant y-coordinate. y=5 is a horizontal line.
The answer that scoresx=5.

Where this fits in O Level Maths 4024

This page is one topic of Cambridge O Level Maths 4024. O Level Maths 4024 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Maths 4024 syllabus page.