Study Blocks

World map β€Ί Linear functions & gradient β€Ί Lesson 8

Right angles and other forms of a line

⏱ about 50 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

Look at a map of Manhattan, in New York. Its streets and avenues form a grid, and they cross at right angles. The plan was laid out in 1811 to follow the shape of the island, so the whole grid is tilted: the avenues run about 29∘29^\circ east of true north.

Put that map on a coordinate grid with xx measured east and yy measured north. Now no road is horizontal or vertical. An avenue climbs with a gradient of about 1.81.8: for every 1 km east, it goes about 1.8 km north.

What is the gradient of the streets that cross it at right angles? Make a guess. Are they steeper or gentler? Do they go up or down from left to right?

Engineers, game designers and map apps face this question all the time: their computers only know coordinates and equations, not protractors. By the end of the lesson you will be able to answer it in one line.

So far, lines have mostly come to you as y=mx+cy = mx + c. Today they arrive in a different form, such as 3x+2y=123x + 2y = 12, and we ask a new question about two lines: when do they meet at a right angle?

πŸ§ͺ Explore β€” try it, no scoring

Try these first. Nothing is marked: just have a go.

no hints, nothing is marked

On squared paper, a line goes through (0,0)(0, 0) and (4,3)(4, 3). Its gradient triangle goes 4 right and 3 up.

Turn the whole picture a quarter turn (90∘90^\circ) anticlockwise about (0,0)(0, 0), triangle and all. What is the gradient of the turned line?

no hints, nothing is marked

What is the gradient of the line 3x+2y=123x + 2y = 12?

no hints, nothing is marked

Where does the line 3x+2y=123x + 2y = 12 cross the xx-axis? Give the point.

Now explore. The black line goes through the origin, and its gradient triangle goes run across and rise up.

  1. Press Turn 90Β° (or move the turn slider). Watch the blue run and the red rise. Where do they point after the turn?
  2. Read m1m_1 and m2m_2. Then change the triangle (drag the orange point, or use the buttons) and turn again. What happens to m1Γ—m2m_1 \times m_2 every time?
  3. Make a triangle with a negative rise. Does the pattern still hold?
  4. Press Horizontal line and turn it. What goes wrong with the gradients now?
🎯 Predict first

Before you explore: a line has gradient 22. Turn it a quarter turn. What do you think the two gradients multiply to?

Drag the orange point (or use the buttons) to set the gradient triangle. Then turn a copy of the line about the origin.

run4rise3
original line: m1=34m_1 = \frac{3}{4}

Turn the copy all the way to 90∘90^\circ and watch what happens to the run and the rise of the triangle.

πŸ”Ž What do you notice?
  • After a quarter turn, the run and the rise swap places, and one of them changes sign: β€œright” turns into β€œup”, but β€œup” turns into β€œleft”. That is why the tip of the triangle (4,3)(4, 3) lands on (βˆ’3,4)(-3, 4).
  • So the gradient riserun\frac{\text{rise}}{\text{run}} is turned upside down and its sign changes. The product of the two gradients came out as βˆ’1-1 every time.
  • A horizontal line turns into a vertical one. The vertical line has no gradient, so there is nothing to multiply, even though the lines clearly meet at a right angle.
  • Try-first 1. The triangle β€œ4 right, 3 up” (gradient 34\frac{3}{4}) became β€œ4 up, 3 left”, so the turned line has gradient 4βˆ’3=βˆ’43\frac{4}{-3} = -\frac{4}{3}. Check: 34Γ—(βˆ’43)=βˆ’1\frac{3}{4} \times \left(-\frac{4}{3}\right) = -1.
  • Try-first 2. In 3x+2y=123x + 2y = 12 the gradient is not 33: yy is not on its own. The points (0,6)(0, 6) and (4,0)(4, 0) are on the line, and from one to the other the rise is βˆ’6-6 and the run is 44: gradient βˆ’64=βˆ’32-\frac{6}{4} = -\frac{3}{2}.
  • Try-first 3. On the xx-axis y=0y = 0, so 3x=123x = 12 and the line crosses at (4,0)(4, 0). The yy-term simply disappears: a quick way to find where a line crosses the axes.
πŸ“ Key idea

Another form of a line: ax + by = d

A straight line can also be written with the xx-term and the yy-term on one side and a number on the other:

ax+by=d(aΒ andΒ bΒ notΒ bothΒ 0)forΒ example3x+2y=12ax + by = d \quad (a \text{ and } b \text{ not both } 0) \qquad\text{for example}\qquad 3x + 2y = 12

We call this the general form of the line. (Many books write ax+by=cax + by = c; here cc already means the yy-intercept, so we use dd. American books call ax+by=cax + by = c β€œstandard form”. Careful: in British schools, standard form means writing numbers like 3.2Γ—1053.2 \times 10^5.)

Gradient and yy-intercept. Rearrange to y=mx+cy = mx + c: move the xx-term across, then divide every term by bb (when b≠0b \ne 0):

3x+2y=12β€…β€ŠβŸΉβ€…β€Š2y=βˆ’3x+12β€…β€ŠβŸΉβ€…β€Šy=βˆ’32x+63x + 2y = 12 \;\Longrightarrow\; 2y = -3x + 12 \;\Longrightarrow\; y = -\frac{3}{2}x + 6

In general, by=βˆ’ax+dby = -ax + d, so y=βˆ’abx+dby = -\frac{a}{b}x + \frac{d}{b}: the gradient is βˆ’ab-\frac{a}{b}. Rearranging is safer than memorising this.

Intercepts (the cover-up method). Where the line crosses the yy-axis, x=0x = 0: β€œcover up” the xx-term and solve by=dby = d. Where it crosses the xx-axis, y=0y = 0: cover up the yy-term and solve ax=dax = d. For 3x+2y=123x + 2y = 12: 2y=122y = 12 gives (0,6)(0, 6), and 3x=123x = 12 gives (4,0)(4, 0).

Special cases. If b=0b = 0 the equation is ax=dax = d, a vertical line x=dax = \frac{d}{a}. If a=0a = 0 it is by=dby = d, a horizontal line.

πŸ” Why it works

Why rearranging gives the same line

The line is the picture of every pair (x,y)(x, y) that makes the equation true. Adding or subtracting the same thing on both sides, or dividing both sides by the same non-zero number, never changes whether an equation is true. So 3x+2y=123x + 2y = 12 and y=βˆ’32x+6y = -\frac{3}{2}x + 6 are true for exactly the same pairs: they are the same line in two outfits.

That is also why you must divide every term. Dividing only some of them is not doing the same thing to both sides, and it gives a different line.

And the cover-up works because a point on the yy-axis has x=0x = 0, so the xx-term is aΓ—0=0a \times 0 = 0 and simply vanishes.

πŸ“ Key idea

Perpendicular lines

Two lines are perpendicular when they meet at a right angle (90∘90^\circ).

Horizontal and vertical. A vertical line x=hx = h and a horizontal line y=ky = k are always perpendicular. They meet at the point (h,k)(h, k).

Every other line. Two lines that are neither horizontal nor vertical, with gradients m1m_1 and m2m_2, are perpendicular exactly when

m1Γ—m2=βˆ’1,thatΒ is,m2=βˆ’1m1m_1 \times m_2 = -1, \qquad\text{that is,}\qquad m_2 = -\frac{1}{m_1}

The number βˆ’1m1-\frac{1}{m_1} is the negative reciprocal of m1m_1: turn it upside down and change its sign. For example, the negative reciprocal of 34\frac{3}{4} is βˆ’43-\frac{4}{3}, of 22 is βˆ’12-\frac{1}{2}, and of βˆ’5-5 is 15\frac{1}{5}.

The rule does not apply when one line is horizontal: its gradient is 00, the other line is vertical and has no gradient (its gradient is undefined, because its run is 00), and no number times 00 gives βˆ’1-1.

πŸ” Why it works

Why the gradients multiply to βˆ’1

Take a line that is neither horizontal nor vertical. Its gradient triangle goes run across and rise up, so its gradient is m1=riserunm_1 = \frac{\text{rise}}{\text{run}}.

Turn the whole picture a quarter turn anticlockwise about a point on the line. The turned line is at right angles to the original, because we turned it by exactly 90∘90^\circ. The triangle turns with it, and keeps its size:

  • the side that went run across now goes run up: the new rise is the old run;
  • the side that went rise up now goes rise to the left: the new run is βˆ’rise-\text{rise}.

So the turned line has gradient

m2=runβˆ’rise=βˆ’runrise,andm1Γ—m2=riserunΓ—(βˆ’runrise)=βˆ’1m_2 = \frac{\text{run}}{-\text{rise}} = -\frac{\text{run}}{\text{rise}}, \qquad\text{and}\qquad m_1 \times m_2 = \frac{\text{rise}}{\text{run}} \times \left(-\frac{\text{run}}{\text{rise}}\right) = -1

The run and the rise cancel, so this works for every such line, not just the ones you tried. Any other line at right angles to the original is parallel to the turned copy, so it has the same gradient. (Turning clockwise instead gives β€œrise to the right, run down”: the same gradient again.)

The other direction is true too: if m1Γ—m2=βˆ’1m_1 \times m_2 = -1, then m2m_2 must equal βˆ’runrise-\frac{\text{run}}{\text{rise}}, the gradient of the turned copy, so the second line is parallel to it, and so it is at right angles to the first. On the Deep dig page you can put the rule to work: do the three altitudes of a triangle meet in one point?

⚠️ Watch out

Four traps

  • Upside down AND change the sign. The negative reciprocal of 22 is βˆ’12-\frac{1}{2}, not 12\frac{1}{2} (both lines would rise) and not βˆ’2-2.
  • Opposite gradients are not perpendicular. 22 and βˆ’2-2: one rises and one falls, but 2Γ—(βˆ’2)=βˆ’42 \times (-2) = -4. Those lines cross at about 53∘53^\circ. Always check that the product is exactly βˆ’1-1.
  • No product rule for horizontal and vertical lines. y=3y = 3 and x=1x = 1 are perpendicular, but x=1x = 1 has no gradient. Think about the picture.
  • Divide every term. From 8x+4y=208x + 4y = 20: 4y=20βˆ’8x4y = 20 - 8x, then y=5βˆ’2xy = 5 - 2x (not y=20βˆ’2xy = 20 - 2x). Dividing by a negative number changes the sign of every term: βˆ’3y=βˆ’6x+9-3y = -6x + 9 gives y=2xβˆ’3y = 2x - 3.
🧱 Worked example

The line at right angles through a point

Find the equation of the line that is perpendicular to 2xβˆ’5y=102x - 5y = 10 and passes through (2,1)(2, 1).

Step 1 β€” Find the gradient of the given line

Get yy on its own. Subtract 2x2x, then divide every term by βˆ’5-5:

2xβˆ’5y=10β€…β€ŠβŸΉβ€…β€Šβˆ’5y=βˆ’2x+10β€…β€ŠβŸΉβ€…β€Šy=25xβˆ’22x - 5y = 10 \;\Longrightarrow\; -5y = -2x + 10 \;\Longrightarrow\; y = \frac{2}{5}x - 2

The gradient is 25\frac{2}{5}.

Step 2 β€” Take the negative reciprocal

Turn 25\frac{2}{5} upside down and change the sign: m=βˆ’52m = -\frac{5}{2}.

Check: 25Γ—(βˆ’52)=βˆ’1010=βˆ’1\frac{2}{5} \times \left(-\frac{5}{2}\right) = -\frac{10}{10} = -1 βœ“.

Step 3 β€” Use the point to find c

Substitute (2,1)(2, 1) into y=βˆ’52x+cy = -\frac{5}{2}x + c:

1=βˆ’52Γ—2+c=βˆ’5+cβ€…β€ŠβŸΉβ€…β€Šc=61 = -\frac{5}{2} \times 2 + c = -5 + c \;\Longrightarrow\; c = 6

So the line is y=βˆ’52x+6y = -\frac{5}{2}x + 6. Multiplying every term by 22 and moving the xx-term gives the general form 5x+2y=125x + 2y = 12.

Step 4 β€” Is it sensible?

The point: 5Γ—2+2Γ—1=125 \times 2 + 2 \times 1 = 12 βœ“.

The picture: the original line rises gently (2 up for every 5 across); the new one falls steeply (5 down for every 2 across). A gentle climb and a steep fall, at right angles: that is what perpendicular lines look like.

A neat check: 2xβˆ’5y=102x - 5y = 10 and 5x+2y=125x + 2y = 12. The numbers in front of xx and yy swapped and one sign changed, just like the run and rise in the quarter turn.

🧱 Worked example

Two ways to find where a line crosses the axes

Where does 4x+5y=204x + 5y = 20 cross the two axes?

Way 1 β€” Rearrange first

5y=βˆ’4x+20β€…β€ŠβŸΉβ€…β€Šy=βˆ’45x+45y = -4x + 20 \;\Longrightarrow\; y = -\frac{4}{5}x + 4

The yy-intercept is 44: the point (0,4)(0, 4). For the xx-axis, put y=0y = 0: 0=βˆ’45x+40 = -\frac{4}{5}x + 4, so 45x=4\frac{4}{5}x = 4 and x=4Γ·45=5x = 4 \div \frac{4}{5} = 5: the point (5,0)(5, 0).

Way 2 β€” Cover up

x=0x = 0: cover the xx-term, 5y=205y = 20, so y=4y = 4: the point (0,4)(0, 4).

y=0y = 0: cover the yy-term, 4x=204x = 20, so x=5x = 5: the point (5,0)(5, 0).

Which is neater?

Both give (0,4)(0, 4) and (5,0)(5, 0). For intercepts, the cover-up is neater: two one-step equations and no fractions. Rearranging is worth it when you also need the gradient.

Check that they agree: from (0,4)(0, 4) to (5,0)(5, 0) the rise is βˆ’4-4 and the run is 55, gradient βˆ’45-\frac{4}{5}, exactly the mm from Way 1 βœ“. Two intercepts are also the quickest way to draw a line given in general form.

IB Standard

What is the gradient of the line 5xβˆ’2y=85x - 2y = 8?

Foundation

A line has gradient βˆ’23-\frac{2}{3}. What is the gradient of a line perpendicular to it?

Back to Manhattan. An avenue has a gradient of about 1.81.8 on our map. A street crosses it at right angles, so its gradient is about

βˆ’11.8β‰ˆβˆ’0.56-\frac{1}{1.8} \approx -0.56

The streets fall gently from left to right: for every 1 km east, about 0.56 km south. (With a tilt of exactly 29∘29^\circ, the gradients are about 1.801.80 and βˆ’0.55-0.55; their product is exactly βˆ’1-1 before rounding.) One line of algebra, no protractor.

🎬 Another explanation

Still stuck after the example? Hearing it from another teacher often helps. These videos were checked against this lesson. Try the questions again afterwards.

"Negative reciprocal" but why? slope of a perpendicular line Β· bprp math basics Β· about 3 min

Why turning a gradient triangle a quarter turn swaps the run and the rise and makes one of them negative, so the new gradient is the negative reciprocal.

Same idea, different words: This teacher is American: he says slope for gradient and writes y = mx + b for our y = mx + c.

Writing ax+by+c=0 as y=mx+c Β· Deasy Maths Β· about 13 min

How to rearrange a line equation step by step so that y is on its own, then read the gradient and the y-intercept, including when the y-term is negative.

Same idea, different words: This teacher says slope for gradient and starts from ax + by + c = 0 (everything on one side), where our lesson writes ax + by = d. Moving a term 'across' the equals sign means doing the same to both sides.

πŸ€” Pause and think

Puzzles about right angles

  • Can a line be perpendicular to itself?
  • Draw two lines that are both perpendicular to the same line. Can they ever meet? What does that tell you about their gradients?
  • Is there a line that is perpendicular to every line through the origin?
⛏ Practice β€” choose your level

What is the gradient of the line 2x+y=72x + y = 7?

πŸ— Build project β€” real-life task

A path to the river

A town plans a new footpath from a bus stop to the river. On the town’s map grid, 1 unit = 100 m, xx is measured east and yy north (the map and its numbers are illustrative). The main road runs along x+2y=16x + 2y = 16, and the bus stop is at S(4,6)S(4, 6). The path must leave the road at a right angle, from a pedestrian crossing at the stop. Answer the questions in order, and keep asking whether your answers make sense on a real map.

IB StandardCriterion D

Part 1. On the town's map grid (1 unit = 100 m, xx measured east, yy measured north), the straight main road runs along the line

x+2y=16x + 2y = 16

The bus stop S(4,6)S(4, 6) is on the road. Check that SS really is on the road, then find the gradient of the road.

IB StandardCriterion D

Part 2. The town is building a pedestrian crossing at the bus stop S(4,6)S(4, 6), and a straight footpath that carries on from it towards the river. To keep walkers on the road for the shortest time, the crossing, and so the path, must be at right angles to the road.

Find the equation of the footpath's line.

IB StandardCriterion D

Part 3. The edge of the river is straight along the line x+y=16x + y = 16. The footpath y=2xβˆ’2y = 2x - 2 ends where it reaches the river. Find that point.

IB StandardCriterion D

Part 4. The path runs from S(4,6)S(4, 6) to the river at (6,10)(6, 10). Remember that 1 unit = 100 m.

1. How far east and how far north does the path go, in metres?
2. Without measuring, explain why the path is longer than 400 m but shorter than 600 m.
3. Why is a crossing at right angles to the road a good idea for walkers? Give one thing the real planners would have to think about that this straight-line model ignores.

πŸ““ Work it out in your notebook first β€” sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.

πŸ”— Connections
  • Geometry. Gradients turn β€œis this a right angle?” into arithmetic. You can test whether a triangle drawn on a grid is right-angled, or whether a four-sided shape is a rectangle, without measuring an angle.
  • Shortest distance. The shortest path from a point to a line meets the line at a right angle. Pipes, footpaths and the β€œclosest point” in many computer programs use this.
  • Computer graphics. In games and design software an anticlockwise quarter turn about the origin sends the point (x,y)(x, y) to (βˆ’y,x)(-y, x): exactly the swap and sign change you saw in the gradient triangle.
  • Coming later. In later years you will meet perpendicular lines again with vectors, and you will prove the rule a second way with Pythagoras’ theorem. Next, the unit task puts everything together.
πŸͺž Reflect

Explain to a friend, with a drawing of a gradient triangle, why the gradients of perpendicular lines multiply to βˆ’1-1, and why the rule does not work for a horizontal line.

When would you rearrange ax+by=dax + by = d into y=mx+cy = mx + c, and when would you use the cover-up method instead? Give an example of each.

πŸ“– Read more in your book
  • Introduction to Algebra (Art of Problem Solving) β€” Chapter 8, section 8.6 Comparing Lines (the book says slope for gradient)

The book goes deeper and its problems are harder. Read it after this lesson, with a pencil in your hand.