Vertex Learn

Modelling problems on the coordinate plane

What this lesson covers

  • Two lines meet where their equations agree.
  • The shortest distance from a point to a line is along the perpendicular.
  • Finish with an answer in context, with units.
Key idea

The plan for a shortest distance

  • Find the perpendicular line through the point.
  • Find where it meets the original line.
  • Find the distance between those two points.
Worked example

Where two roads meet

  • Roads follow y = 2x + 1 and y = −x + 7.
  1. 2x + 1 = −x + 7set the y values equal
  2. 3x = 6, so x = 2
  3. y = 2(2) + 1 = 5
  4. They meet at (2, 5)
Worked example

The shortest pipe

  • A road follows y = 2x and a house is at H(10, 0), with units in kilometres.
  1. perpendicular gradient = −1/2
  2. y = −(1/2)(x − 10) = −(1/2)x + 5
  3. 2x = −(1/2)x + 5, so x = 2, y = 4
  4. d = √(8² + 4²) = √80
  5. The pipe is about 8.94 km
Key idea

Seeing the shortest pipe

  • The orange pipe meets the road at right angles.
A road y equals 2x and a pipe from the house at (10, 0) meeting it at (2, 4), 8.94 km long.
Key idea

Try it: the shortest path is perpendicular

Worked example

Equally far from two towns

  • A mast on the road y = 1 must be equally far from A(2, 1) and B(6, 5).
  1. bisector of AB: y = −x + 7
  2. 1 = −x + 7, so x = 6
  3. the mast is at (6, 1)
  4. distance to each town = 4
Key idea

Try it: equally far from two points

Common mistakes

  • Measuring straight across to the x-axis or y-axis.
    The shortest distance runs at right angles to the line.
  • Stopping at the meeting point.
    The question wants the distance, so finish with Pythagoras.
Key idea

Try it: roads, pipes and right angles

Your turn

1

Where do y = x + 1 and y = −x + 5 meet?

2

A road has gradient 2. What is the gradient of the shortest path to it?

3

Find the distance from (3, 3) to (6, 0).

4

Points equally far from A and B lie on which line?

5

A road follows y = x + 2. A farmhouse is at F(6, 0). Where does the shortest track from F meet the road?

6

Gym plan A costs y = 20x + 30 dollars after x months and plan B costs y = 15x + 50. When do they cost the same?

7

A tower on the road y = 0 must be equally far from towns A(0, 0) and B(2, 4). Where does it go?

8

A water main follows y = −2x + 10, in km. A house is at H(−3, 1). Find the length of the shortest pipe from H to the main.

Show answer

1. (2, 3) 2. −1/2 3. √18, about 4.24 4. The perpendicular bisector of AB 5. (2, 4). The track has gradient −1, so y = −x + 6; then x + 2 = −x + 6 gives x = 2 and y = 4. 6. After 4 months, at $110. 20x + 30 = 15x + 50 gives 5x = 20, so x = 4 and y = 20(4) + 30 = 110. 7. (5, 0). The perpendicular bisector of AB is y = −(1/2)x + 2.5; y = 0 gives x = 5, and (5, 0) is 5 from A and from B. 8. 6.71 km. The perpendicular y = (1/2)x + 2.5 meets the main at (3, 4), and d = √(6² + 3²) = √45 ≈ 6.71 km.

Your turn

Sample question: Achieved

Two straight farm tracks follow y = 3x − 4 and 2x + y = 11, with units in km. Where do they cross?

Hint

Make y the subject of the second equation, then set the two expressions for y equal.

Answer

They cross at (3, 5)

Step by step
  1. Two lines meet where both equations are true at once.
  2. Make y the subject of the second track: y = 11 − 2x.
  3. Set the y values equal: 3x − 4 = 11 − 2x.
  4. Add 2x and 4 to both sides: 5x = 15, so x = 3.
  5. Put x = 3 into either equation: y = 3(3) − 4 = 5.
  6. Check in the other track: 2(3) + 5 = 11. Correct, so the crossing is (3, 5).
Full working
  1. y = 11 − 2xrearrange the second track
  2. 3x − 4 = 11 − 2xequal y values
  3. 5x = 15, so x = 3
  4. y = 3(3) − 4 = 5
  5. (3, 5)
Your turn

Sample questions: Merit

1

A water tank T must sit on the road y = 0.5x + 1 so that it is the same distance from two farmhouses, A(0, 6) and B(6, 0). Units are km. Find T and its distance from each house.

Hint

Points equally far from A and B lie on the perpendicular bisector of AB. Find it, then meet it with the road.

Answer

T = (2, 2), about 4.47 km (√20 km) from each house

Step by step
  1. Every point that is equally far from A and B lies on the perpendicular bisector of AB. So find that line first.
  2. Midpoint of AB: ((0 + 6) ÷ 2, (6 + 0) ÷ 2) = (3, 3).
  3. Gradient AB = (0 − 6) ÷ (6 − 0) = −1. The perpendicular gradient is the negative reciprocal: 1.
  4. Perpendicular bisector: y − 3 = 1(x − 3), which is y = x.
  5. T is on the road and on the bisector, so solve x = 0.5x + 1: 0.5x = 1 and x = 2. So T = (2, 2).
  6. TA = √((2 − 0)² + (2 − 6)²) = √(4 + 16) = √20 ≈ 4.47 km.
  7. Check TB = √((6 − 2)² + (0 − 2)²) = √(16 + 4) = √20. The same, as it must be.
  8. Classic mistake: using the gradient of AB itself for the bisector. It has to be the perpendicular gradient.
Full working
  1. M = (3, 3)midpoint of AB
  2. m(AB) = −1, so the perpendicular gradient is 1
  3. y − 3 = 1(x − 3), so y = xperpendicular bisector
  4. x = 0.5x + 1, so x = 2meet the road
  5. TA = TB = √20 ≈ 4.47 kmdistance formula
  6. T = (2, 2), about 4.47 km from each house
2

A straight power line follows y = 2x + 1. A house is at H(7, 0). Units are km. Find the length of the shortest cable from the house to the power line, to 2 decimal places.

Hint

The shortest cable meets the line at right angles. Find the perpendicular through H, then where it meets the power line.

Answer

√45 = 3√5 ≈ 6.71 km

Step by step
  1. The shortest path from a point to a line is the perpendicular one. So the plan has three steps: perpendicular line, meeting point, distance.
  2. The power line has gradient 2, so the cable has gradient −12.
  3. Cable line through H(7, 0): y = −(12)(x − 7) = −(12)x + 3.5.
  4. Meet the power line: 2x + 1 = −(12)x + 3.5. Multiply by 2: 4x + 2 = −x + 7, so 5x = 5 and x = 1.
  5. y = 2(1) + 1 = 3. The cable joins the line at F(1, 3).
  6. Length HF = √((7 − 1)² + (0 − 3)²) = √(36 + 9) = √45.
  7. √45 = 3√5 ≈ 6.71 km.
  8. Classic mistake: measuring straight across or down to the line. Any other path is longer than the perpendicular one.
  9. Check the right angle: gradient HF = (3 − 0) ÷ (1 − 7) = −12, and 2 × (−12) = −1. Correct.
Full working
  1. perpendicular gradient = −12negative reciprocal of 2
  2. y = −(12)(x − 7)through H(7, 0)
  3. 2x + 1 = −(12)x + 3.5, so x = 1, y = 3foot of the perpendicular
  4. HF = √(6² + 3²) = √45
  5. √45 = 3√5 ≈ 6.71 km
Your turn

Sample questions: Excellence

1

A ferry sails in a straight line from A(0, 0) to B(12, 8). A buoy marks a rock at P(4, 9). Units are km. Find how close the ferry comes to the buoy. The harbour rule is that ferries stay at least 4 km from the rock. Is the route safe? Justify your answer.

Hint

Find the line AB, the perpendicular from P to it, and the meeting point. Check that point is between A and B before using its distance.

Answer

Closest approach 19√13 ≈ 5.27 km, at (9013, 6013), which lies between A and B; 5.27 > 4, so the route is safe

Step by step
  1. The closest approach is along the perpendicular from P to the route. So find the route's line first.
  2. Gradient AB = 812 = 23, and it passes through the origin, so the route is y = (23)x.
  3. Perpendicular gradient: −32. Through P(4, 9): y − 9 = −(32)(x − 4), so y = −(32)x + 15.
  4. Meet the route: (23)x = −(32)x + 15. Multiply by 6: 4x = −9x + 90, so 13x = 90 and x = 9013 ≈ 6.92.
  5. y = (23) × (9013) = 6013 ≈ 4.62. Call this point F.
  6. Important check: F has x between 0 and 12, so it is on the actual trip, not on the line extended past A or B.
  7. Distance PF = √((4 − 9013)² + (9 − 6013)²) = √((−3813)² + (5713)²) ≈ √(8.54 + 19.22) ≈ 5.27 km.
  8. Exact form: (−38, 57) = 19 × (−2, 3), so PF = (1913) × √13 = 19√13.
  9. 5.27 km is more than 4 km, so the route is safe, with about 1.27 km to spare.
  10. Limitation: this treats the ferry and rock as points and assumes the ferry holds an exact straight course. Wind and tide could push it closer.
Full working
  1. route: y = (23)xthrough A(0, 0) and B(12, 8)
  2. y − 9 = −(32)(x − 4)perpendicular through P
  3. (23)x = −(32)x + 15, so x = 9013, y = 6013foot F
  4. 0 < 9013 < 12F is on the trip
  5. PF = √((3813)² + (5713)²) = 19√13 ≈ 5.27 km
  6. 5.27 km > 4 km, so the route is safe
2

A pump will sit on a straight river bank, the x-axis. Pipes run from house A(1, 3) to the pump and on to house B(7, 5). Units are km. Find where the pump should go to make the total length of pipe as small as possible, and find that length. Explain why your method works.

Hint

Reflect B in the x-axis to B′. Any path A to pump to B has the same length as A to pump to B′, and the shortest of those is a straight line.

Answer

The pump goes at (3.25, 0) and the shortest total length is 10 km

Step by step
  1. The trick is a reflection. Reflect B in the river bank: B′ = (7, −5).
  2. For any pump point K on the x-axis, KB = KB′, because the x-axis is the mirror line, so it is the perpendicular bisector of BB′.
  3. So the pipe length AK + KB equals AK + KB′. The shortest way from A to B′ is a straight line, so K must be on the line AB′.
  4. Gradient AB′ = (−5 − 3) ÷ (7 − 1) = −86 = −43.
  5. Line AB′: y − 3 = −(43)(x − 1).
  6. The pump is where this line crosses the bank, y = 0: −3 = −(43)(x − 1), so x − 1 = 94 and x = 3.25.
  7. Shortest total = AB′ = √((7 − 1)² + (−5 − 3)²) = √(36 + 64) = √100 = 10 km.
  8. Check: AK = √(2.25² + 3²) = √14.0625 = 3.75 and KB = √(3.75² + 5²) = √39.0625 = 6.25. Total 3.75 + 6.25 = 10. Correct.
  9. Classic mistake: putting the pump at the midpoint of the houses' x values, (4, 0). That gives about 4.24 + 5.83 = 10.07 km, a little longer.
  10. Limitation: real pipes follow land and property lines, so the true best spot may differ, but this gives the ideal.
Full working
  1. B′ = (7, −5)reflect B in the x-axis
  2. KB = KB′ for any K on the x-axismirror line
  3. y − 3 = −(43)(x − 1)straight line A to B′
  4. y = 0: x = 1 + 94 = 3.25pump position
  5. AB′ = √(6² + 8²) = 10shortest total
  6. pump at (3.25, 0), total pipe 10 km
Summary

What to take away

  • Turn the words into points and lines first.
  • Shortest distance means perpendicular.

Challenge

1

Two straight, parallel highways follow y = 3x + 2 and y = 3x − 8. Units are km. Find the length of the shortest link road between them, to 2 decimal places. A cycleway will run parallel to both highways, exactly halfway between them. Find its equation.

Hint

Pick any easy point on one highway and drop a perpendicular to the other. The cycleway passes through the midpoint of that shortest link.

Answer

Shortest link √10 ≈ 3.16 km; cycleway y = 3x − 3

Step by step
  1. Parallel lines are the same distance apart everywhere, so any point will do. Take (0, 2) on the first highway.
  2. The perpendicular gradient is −13, so the link follows y = −(13)x + 2.
  3. Meet the second highway: 3x − 8 = −(13)x + 2. Multiply by 3: 9x − 24 = −x + 6, so x = 3 and y = 1.
  4. Link length = √((3 − 0)² + (1 − 2)²) = √10 ≈ 3.16 km.
  5. The midpoint of the link is (1.5, 1.5). The cycleway has gradient 3 through it: y − 1.5 = 3(x − 1.5), so y = 3x − 3.
  6. Check: −3 is halfway between the intercepts 2 and −8.
Full working
  1. start at (0, 2)any point on the first highway
  2. y = −(13)x + 2perpendicular through (0, 2)
  3. 3x − 8 = −(13)x + 2, so (3, 1)foot on the second highway
  4. d = √(3² + 1²) = √10 ≈ 3.16 km
  5. midpoint (1.5, 1.5); y − 1.5 = 3(x − 1.5)parallel, halfway
  6. link √10 ≈ 3.16 km; cycleway y = 3x − 3
2

A surveyor stands on a straight road y = x. Two beacons are at A(0, 4) and B(8, 0). Units are km. She needs a spot on the road where the lines of sight to A and to B meet at a right angle. Find every such spot, and explain why a method using gradients alone can miss one of them.

Hint

Call the spot D(t, t). If the angle at D is 90°, Pythagoras holds in triangle ADB with AB as the hypotenuse.

Answer

D = (6, 6) or D = (0, 0); gradients miss (0, 0) because there DA is vertical and has no gradient

Step by step
  1. Any point on the road is D(t, t). A right angle at D means DA² + DB² = AB².
  2. DA² = t² + (t − 4)², DB² = (t − 8)² + t², and AB² = 64 + 16 = 80.
  3. Add and tidy: 4t² − 24t + 80 = 80, so 4t(t − 6) = 0, giving t = 0 or t = 6.
  4. At (6, 6): gradient DA = 13 and gradient DB = −3, product −1, so the angle is 90°.
  5. At (0, 0): DA runs straight up the y-axis and DB along the x-axis, which is also a right angle.
  6. Setting the product of gradients to −1 divides by the run, which is 0 for DA when t = 0. That method loses this spot, but Pythagoras does not.
Full working
  1. D(t, t)on the road y = x
  2. t² + (t − 4)² + (t − 8)² + t² = 80DA² + DB² = AB²
  3. 4t² − 24t + 80 = 80, so 4t(t − 6) = 0
  4. t = 6: m(DA) × m(DB) = (13) × (−3) = −1
  5. t = 0: DA vertical, DB horizontalno gradient for DA
  6. D = (6, 6) or (0, 0)
3

A lighthouse at L(6, 7) can be seen up to 10 km away. A ship sails in a straight line along x − 2y = 2, travelling towards increasing x at 16 km per hour. Units are km. Find how close the ship comes to the lighthouse, where it first sees the light and where it loses it, and for how many minutes the light is in view.

Hint

Find the foot F of the perpendicular from L first. The two edge points are 10 km from L, so Pythagoras in the right-angled triangle L, F, edge point tells you how far each is from F.

Answer

Closest approach 2√5 ≈ 4.47 km at (8, 3); light seen from (0, −1) to (16, 7), a distance of 8√5 ≈ 17.89 km, for about 67 minutes

Step by step
  1. The ship's line is y = (12)x − 1, so the perpendicular from L has gradient −2: y − 7 = −2(x − 6), which is y = −2x + 19.
  2. Meet the route: (12)x − 1 = −2x + 19, so 2.5x = 20, x = 8, y = 3. F(8, 3) is the closest point, and LF = √(4 + 16) = √20 = 2√5 ≈ 4.47 km.
  3. An edge point E is 10 from L, and the angle at F is 90°, so FE = √(10² − 20) = √80 = 4√5. The visible stretch is 8√5 ≈ 17.89 km, centred on F.
  4. Along the route, a run of 2 gives a rise of 1 and a distance of √5. So 4√5 is a run of 8 and a rise of 4: the edges are (8 − 8, 3 − 4) = (0, −1) and (16, 7).
  5. Check: from L(6, 7), (0, −1) is √(36 + 64) = 10 away, and (16, 7) is 10 away. Correct.
  6. Time = 8√5 ÷ 16 = √5 ÷ 2 ≈ 1.118 hours ≈ 67 minutes.
Full working
  1. route y = (12)x − 1; perpendicular y = −2x + 19through L
  2. (12)x − 1 = −2x + 19, so F = (8, 3)closest point
  3. LF = √(2² + 4²) = 2√5 ≈ 4.47 km
  4. FE = √(10² − 20) = 4√5Pythagoras in L, F, E
  5. edges (0, −1) and (16, 7)run 8, rise 4 each way from F
  6. time = 8√5 ÷ 16 ≈ 1.118 h ≈ 67 min
  7. closest 2√5 ≈ 4.47 km at (8, 3); in view (0, −1) to (16, 7), about 67 minutes

More challenge problems

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91256

Is your child on track?

Take the free placement test