Lantern Tutor Sign in

Maths · 4 Coordinate geometry

4.6 Perpendicular lines

Before you start

  • Calculating the gradient of a line from two points on it, m=y2−y1x2−x1 (4.2).
  • Finding the midpoint of a line segment (4.3).
  • Rearranging a linear equation into the form y=mx+c and reading off the gradient m and the y-intercept c (4.4).
  • Parallel lines have equal gradients (4.5).
  • Multiplying fractions, turning a fraction upside down, and substituting negative numbers into an expression.
Syllabus objectives covered (1)
  • Find the gradient and equation of a straight line perpendicular to a given line.

Part 1 of 7

Why perpendicular gradients multiply to −1

  1. Two lines are perpendicular if they meet at a right angle, 90°. In 4.5 you saw that parallel lines have equal gradients. Perpendicular lines also have gradients that are linked, and this lesson is about that link.
  2. Start with the signs. If one line goes uphill from left to right, a line at right angles to it must go downhill. So perpendicular gradients have opposite signs, one positive and one negative.
  3. Now the steepness. A gentle uphill line, turned through a right angle, becomes a steep downhill line. So a small gradient goes with a large perpendicular gradient.
  4. To see the exact link, draw the gradient as a step. A line with gradient 23 goes 3 right for every 2 up.
  5. Turn that step through a quarter turn (90°) anticlockwise. The 3 right turns into 3 up. The 2 up turns into 2 left.
    graph diagram — not drawn yet

    A coordinate grid from -3 to 4 across and -2 to 4 up with the origin O; a solid line through O and (3, 2) with a dashed step from O 3 right to (3, 0) then 2 up to (3, 2), labelled '3 right, 2 up'; a second solid line through O and (-2, 3) with a dashed step from O 2 left to (-2, 0) then 3 up to (-2, 3), labelled '2 left, 3 up'; a right-angle mark at O between the two solid lines.

    Turning the step through 90° swaps the run and the rise and makes one of them negative, so the gradient 23 becomes −32.
  6. The new step is 2 left and 3 up. Going left is a negative run, so the gradient of the turned line is
    3−2=−32
  7. The whole step turned through 90°, so the new line is perpendicular to the first. Compare the gradients: the fraction has turned upside down and the sign has changed. Multiply them:
    23×(−32)=−1
  8. The same happens for any step. A step of b right and a up has gradient ab. Turned through 90° it becomes a left and b up, with gradient −ba.
    m1×m2=ab×(−ba)=−1
  9. So the rule is: two lines, neither of them horizontal or vertical, are perpendicular exactly when the product of their gradients is −1. Horizontal and vertical lines are the awkward case, and they have their own section below.

Part 2 of 7

Flip and change the sign: the negative reciprocal

  1. Rearrange m1×m2=−1 by dividing both sides by m1. This gives the gradient you need directly.
    m2=−1m1
  2. In words: turn the gradient upside down (its reciprocal) and change its sign. The result is called the negative reciprocal.
  3. A whole number is a fraction over 1. Gradient 4 is 41. Flip it to 14, then change the sign: the perpendicular gradient is −14.
  4. A negative gradient gives a positive answer. Gradient −25 flips to −52, and changing the sign gives 52.
  5. A decimal is easiest as a fraction first. 0.25=14, which flips to 4, so the perpendicular gradient is −4.
  6. Do both moves every time. Flip without changing the sign and gradient 4 gives 14, but 4×14=1, not −1. Change the sign without flipping and you get −4, but 4×(−4)=−16.
  7. So check every perpendicular gradient by multiplying the pair. If the product is not −1, one of the two moves is missing.

Part 3 of 7

Get the given line into y=mx+c first

  1. The gradient is the number multiplying x only when the equation reads y=… with y on its own. In y=3x−7 the gradient is 3.
  2. If y has a number in front of it, divide every term by that number first. In 5y=2x+3, the 5 is multiplying y, so divide every term by 5:
    y=25x+35
  3. Now the gradient is 25, and the perpendicular gradient is −52. Reading the 2 straight off 5y=2x+3 would give a wrong gradient before you even started.
  4. For the form ax+by=c, move the x term across first, then divide. From 3x+4y=12, subtract 3x from both sides, then divide by 4:
    4y=−3x+12⇒y=−34x+3
  5. The gradient is −34, so the perpendicular gradient is 43. Watch the sign as the x term crosses the equals sign: +3x on the left becomes −3x on the right.
  6. A quick check for any line ax+by=c: its gradient is −ab. For 3x+4y=12 that is −34, which agrees with the rearrangement.

Part 4 of 7

The equation of the perpendicular line through a point

  1. A straight line is fixed by two facts: its gradient and one point on it. 'Perpendicular to the given line' gives you the gradient. The question gives you the point.
  2. Example: find the equation of the line through (8,−1) that is perpendicular to y=4x+3. Step 1 is the gradient. The given gradient is 4, so the new gradient is −14.
  3. Step 2: write the new line as y=−14x+c. You do not know c yet, but (8,−1) is on the line, so its coordinates must fit the equation. Substitute x=8 and y=−1:
    −1=−14(8)+c⇒−1=−2+c⇒c=1
  4. Step 3: write the whole equation, y=−14x+1. The answer is the equation, not the value of c.
  5. Check by putting the point back in: −14(8)+1=−2+1=−1, which is the y-coordinate of the point.
  6. The syllabus notes say equations of lines are expected in fully simplified form. If the question asks for the form ax+by=c with integers, clear the fraction by multiplying every term by 4, then move the x term across:
    4y=−x+4⇒x+4y=4
  7. You may have met the form y−y1=m(x−x1). It gives exactly the same line. Use whichever method you are sure of.

Part 5 of 7

The perpendicular bisector of a line segment

  1. To bisect means to cut into two equal parts. The perpendicular bisector of a line segment AB is the line that cuts AB in half and crosses it at a right angle.
  2. Those two words give you the two facts you need. 'Bisector': the line passes through the midpoint of AB. 'Perpendicular': its gradient is the negative reciprocal of the gradient of AB.
  3. Recall the midpoint from 4.3: add the x-coordinates and halve, then do the same for the y-coordinates.
    (x1+x22, y1+y22)
  4. The method has four steps, in this order: (1) the midpoint of AB; (2) the gradient of AB; (3) its negative reciprocal; (4) substitute the midpoint into y=mx+c to find c.
    graph diagram — not drawn yet

    A coordinate grid from -4 to 6 on both axes showing the segment from A(-3, 4) to B(5, -2) with its midpoint M(1, 1) marked, equal tick marks on AM and MB, and the line y = (4/3)x - 1/3 drawn through (-2, -3), M and (4, 5), with a right-angle mark where it crosses AB at M.

    The bisector passes through the midpoint M, not through A or B, and it crosses AB at a right angle.
  5. The trap is the wrong point or the wrong gradient. The bisector goes through the midpoint, not through A or B. It has the perpendicular gradient, not the gradient of AB.
  6. Every point on the perpendicular bisector is the same distance from A as from B. This gives you a check at the end: pick a point on your line and compare its distances to A and to B.

Part 6 of 7

Horizontal and vertical lines

  1. A horizontal line has an equation y=k and gradient 0. A vertical line has an equation x=k. Its run is 0, and you cannot divide by 0, so a vertical line has no gradient.
  2. A horizontal line and a vertical line are always perpendicular. The rule m1×m2=−1 cannot show this, because no number multiplied by 0 gives −1. Deal with these lines by sight instead.
  3. Perpendicular to a horizontal line means vertical. The line through (2,5) perpendicular to y=3 is x=2, because every point on a vertical line has the same x-coordinate as the point you were given.
  4. Perpendicular to a vertical line means horizontal. The line through (4,6) perpendicular to x=−1 is y=6.
  5. The axes count too. The x-axis is the line y=0 and the y-axis is the line x=0. So a line perpendicular to the x-axis is vertical, and a line perpendicular to the y-axis is horizontal.

Part 7 of 7

Showing that two lines are perpendicular

  1. A Show (that) question gives you the result, and your job is to provide the evidence that leads to it. So every gradient must be worked out on the page, not just stated.
  2. For two lines given as equations, rearrange each one to y=mx+c and write down both gradients. For two sides of a shape given by vertices, work out each gradient from two points.
  3. Then multiply the gradients. For gradients 32 and −23:
    32×(−23)=−1
  4. Finish with a sentence: 'The product of the gradients is −1, so the lines are perpendicular.' The sentence links your arithmetic to the result you were asked to show.
  5. To show that a triangle has a right angle, test the two sides that meet at the angle named. For angle PQR the angle is at Q, the middle letter, so the sides are PQ and QR.

Worked examples

Example 1. Find the gradient of a line perpendicular to the line 4x+3y=9.

Show the working
  1. The gradient is not the 4. First get y on its own. Subtract 4x from both sides, so the x term moves to the right with its sign changed.
    3y=−4x+9
  2. Divide every term by 3, because 3 is what is multiplying y.
    y=−43x+3
  3. Now read the gradient: the number multiplying x is −43.
  4. Flip it and change the sign. Upside down, −43 becomes −34. Changing the sign gives 34.
  5. Check that the product is −1.
    −43×34=−1

Answer: 34

Example 2. Find the equation of the line that passes through (4,−3) and is perpendicular to the line 2x−5y=10. Give your answer in the form ax+by=c, where a, b and c are integers.

Show the working
  1. Rearrange the given line to find its gradient. Subtract 2x from both sides.
    −5y=−2x+10
  2. Divide every term by −5. Dividing by a negative number changes the sign of every term.
    y=25x−2
  3. The given gradient is 25, so the perpendicular gradient is −52. Check: 25×(−52)=−1.
  4. Write the new line as y=−52x+c and substitute the point, x=4 and y=−3.
    −3=−52(4)+c⇒−3=−10+c⇒c=7
  5. So the line is y=−52x+7. The question asks for integers, so multiply every term by 2 to clear the fraction.
    2y=−5x+14
  6. Add 5x to both sides to reach the form asked for.
    5x+2y=14
  7. Check with the point: 5(4)+2(−3)=20−6=14, which matches.

Answer: 5x+2y=14

Example 3. Find the equation of the perpendicular bisector of the line joining A(−3,4) and B(5,−2).

Show the working
  1. Step 1, the midpoint M. Add the x-coordinates and halve, then do the same for y.
    M=(−3+52, 4+(−2)2)=(1,1)
  2. Step 2, the gradient of AB. Use rise over run, taking both coordinates in the same order (B minus A).
    mAB=−2−45−(−3)=−68=−34
  3. Step 3, the perpendicular gradient. Flip and change the sign: −34 becomes 43.
  4. Step 4, substitute the midpoint, because the bisector passes through M, not through A or B.
    1=43(1)+c⇒c=1−43=−13
  5. So the bisector is y=43x−13. Multiplying every term by 3 gives 3y=4x−1, which rearranges to 4x−3y=1: the same line without fractions.
  6. Check with the equal-distance property. The point (−2,−3) is on the line, since 4(−2)−3(−3)=1. Its squared distance to A is 12+72=50 and to B is 72+12=50, so it is the same distance from both ends.

Answer: y=43x−13, which is the same line as 4x−3y=1

Example 4. Triangle PQR has vertices P(−1,1), Q(3,7) and R(9,3). Show that angle PQR is a right angle.

Show the working
  1. Angle PQR is at Q, the middle letter, between the sides PQ and QR. Those are the two gradients to test.
  2. Gradient of PQ:
    mPQ=7−13−(−1)=64=32
  3. Gradient of QR:
    mQR=3−79−3=−46=−23
  4. Multiply the two gradients.
    32×(−23)=−1
  5. Finish with the sentence that links the product to the angle: the product of the gradients is −1, so PQ is perpendicular to QR and angle PQR=90°.

Answer: mPQ=32 and mQR=−23; their product is −1, so PQ is perpendicular to QR and angle PQR=90°.

Where people go wrong

Mistake: Flipping the gradient but keeping its sign, e.g. giving 13 as the gradient perpendicular to 3.

Instead: Flip and change the sign: the perpendicular gradient is −13.

3×13=1, not −1. Two lines that both slope upwards cannot meet at a right angle.

Mistake: Changing the sign but not flipping, e.g. giving −3 as the gradient perpendicular to 3.

Instead: Flip as well: −13.

3×(−3)=−9, not −1. The steepness has to change too: a steep line turned through 90° becomes a gentle one.

Mistake: Taking the gradient of 5y=2x+3 to be 2.

Instead: Divide every term by 5 first: y=25x+35, so the gradient is 25 and the perpendicular gradient is −52.

The number multiplying x is the gradient only when y stands on its own.

Mistake: Putting the perpendicular bisector of AB through A or B, or giving it the gradient of AB.

Instead: It passes through the midpoint of AB and has the negative reciprocal of the gradient of AB.

'Bisector' means it cuts AB in half, so it goes through the halfway point. 'Perpendicular' means it crosses AB at a right angle, so its gradient is the perpendicular one.

Mistake: Stopping at c=1, or at the gradient −14, when the question asks for the equation of the line.

Instead: Write the whole equation: y=−14x+1.

An equation of a line connects x and y. A value of c or of the gradient on its own is only one part of it.

Check yourself

  1. Write down the gradient of a line perpendicular to a line with gradient (a) 5 (b) −34 (c) 0.4.
    Answer(a) −15 (b) 43 (c) 0.4=25, so the perpendicular gradient is −52, which is −2.5.
  2. Find the gradient of a line perpendicular to 3y=2x−7.
    AnswerDivide by 3: y=23x−73. The gradient is 23, so the perpendicular gradient is −32.
  3. Are the lines y=3x−2 and x+3y=6 perpendicular? Show how you know.
    AnswerYes. x+3y=6 rearranges to y=−13x+2. The gradients are 3 and −13, and 3×(−13)=−1, so the lines are perpendicular.
  4. Write down the equation of the line through (5,1) that is perpendicular to the line y=−2.
    Answerx=5. The line y=−2 is horizontal, so the perpendicular line is vertical, and every point on it has x-coordinate 5.
  5. Find the equation of the line through (2,7) that is perpendicular to y=12x−3.
    AnswerThe perpendicular gradient is −2. Then 7=−2(2)+c, so c=11, and the line is y=−2x+11.
  6. Find the equation of the perpendicular bisector of the line joining (1,2) and (7,6).
    AnswerMidpoint (4,4). Gradient of the segment 46=23, so the perpendicular gradient is −32. Then 4=−32(4)+c gives c=10: y=−32x+10, which is the same line as 3x+2y=20.
  7. Explain why a line with gradient 2 and a line with gradient 12 are not perpendicular.
    Answer2×12=1, not −1. Both lines slope upwards, and two lines that both slope upwards cannot meet at a right angle.

Exam questions

Try each part first. Open the mark scheme after you have written your answer.

Question 1. The line L1 has equation 3x−4y=8. The point P is (1,5).

(a) Find the gradient of L1. 2 marks No calculator

Mark scheme
  • M1 correct first step in rearranging towards y=mx+c, e.g. 4y=3x−8 or y=34x−2 oe, or uses gradient =−ab with −3−4; implied by a correct answer
  • A1 34 oe

(b) Write down the gradient of a line perpendicular to L1. 1 mark No calculator

Mark scheme
  • B1 −43 oe, FT −1÷ their (a)

(c) The line L2 passes through P and is perpendicular to L1. Find the equation of L2. Give your answer in the form ax+by=c, where a, b and c are integers. 3 marks No calculator

Mark scheme
  • M1 substitutes (1,5) into y=−43x+c oe, FT their (b)
  • A1 c=193 oe, or y=−43x+193
  • A1 4x+3y=19 oe with integer coefficients

(d) Write down the equation of the line through P that is perpendicular to the x-axis. 1 mark No calculator

Mark scheme
  • B1 x=1 cao

Question 2. A is the point (−5,3) and B is the point (3,−1).

(a) Find the coordinates of the midpoint of AB. 1 mark No calculator

Mark scheme
  • B1 (−1,1) cao

(b) Find the equation of the perpendicular bisector of AB. Give your answer in the form y=mx+c. 4 marks No calculator

Mark scheme
  • M1 gradient of AB=−1−33−(−5) or −48 oe
  • M1 perpendicular gradient 2, FT −1÷ their gradient of AB
  • M1 substitutes their midpoint into y=(their perpendicular gradient)x+c
  • A1 y=2x+3 cao

(c) The perpendicular bisector crosses the y-axis at C. Show that C is the same distance from A as from B. 2 marks No calculator

Mark scheme
  • M1 uses C=(0,3) with Pythagoras for CA or CB, e.g. CB2=32+42
  • A1 CA=5 and CB=5, so CA=CB

Question 3. Triangle PQR has vertices P(−2,0), Q(2,2) and R(4,−2).

(a) Show that angle PQR=90°. 3 marks No calculator

Mark scheme
  • B1 gradient of PQ=24 or 12. Alternative method (lengths), marked B1 B1 B1 in the same way: PQ2=20; then QR2=20 and PR2=40; then 20+20=40, so angle PQR=90° by the converse of Pythagoras
  • B1 gradient of QR=−42 or −2
  • B1 dep on both previous marks: 12×(−2)=−1, so PQ is perpendicular to QR and angle PQR=90°

(b) Find the equation of the line through P that is perpendicular to PR. 3 marks No calculator

Mark scheme
  • M1 gradient of PR=−26 or −13
  • M1 gradient 3 (FT −1÷ their gradient of PR) used with (−2,0) to find c
  • A1 y=3x+6 oe

How this is examined

  • Finding the perpendicular bisector of the line joining two given points: A Find worth about 4 marks, with the two end points given as coordinates; a part asking for the midpoint may come before it Four steps written in order: the midpoint, e.g. (1,1); the gradient of the segment from rise over run, e.g. −68; the perpendicular gradient from −1÷ that gradient, e.g. 43; and the midpoint substituted into y=mx+c. The first three are method steps, and the last mark is for the whole equation, e.g. y=43x−13.
  • Writing the equation of the line through a given point, perpendicular to a given line: A 3-mark Find; the given line may be written as ax+by=c, and the answer may have to be given in a stated form The perpendicular gradient, then the point substituted to find c, e.g. −1=−14(8)+c, then the whole equation, fully simplified: y=−14x+1. A value of c on its own is not an equation. If the question asks for ax+by=c with integers, the final line must be in that form: x+4y=4.
  • Proving that two lines, or two sides of a shape, are perpendicular: A Show (that) of 2 or 3 marks, about two given equations or about an angle of a triangle whose vertices are given Both gradients worked out on the page, their product shown to be −1, and the sentence 'the product of the gradients is −1, so the lines are perpendicular'. One gradient alone, or 'it looks like a right angle', does not show it.
  • Reading the gradient of a line that is not written as y=mx+c, then finding the perpendicular gradient: A 2-mark Find the gradient of a line perpendicular to a line such as 5y=2x+3 or 3x+4y=12 The rearrangement with y on its own, e.g. y=25x+35, which shows where the gradient comes from; then the negative reciprocal, −52.
  • A line perpendicular to a horizontal line, a vertical line or an axis: A 1-mark Write down the equation of the line through a given point The other kind of line through the point, using the coordinate that stays fixed: perpendicular to y=3 through (2,5) is x=2; perpendicular to the x-axis through (1,5) is x=1. The answer is an equation, x=2, not a number.

Words to know

Perpendicular
Meeting at a right angle (90°).
Gradient
The steepness of a line: the rise divided by the run, m=y2−y1x2−x1.
Reciprocal
A number turned upside down. The reciprocal of ab is ba, and the reciprocal of 4 is 14.
Negative reciprocal
The reciprocal with its sign changed. A line perpendicular to a line with gradient m has gradient −1m.
Bisect
Cut into two equal parts.
Line segment
The part of a line between two end points.
Perpendicular bisector
The line through the midpoint of a line segment that is perpendicular to it. Every point on it is the same distance from both ends of the segment.