Get started

Shortest paths by reflection Where should you touch the river to make your walk as short as it can be?

Maths olympiad · 45 minutes

Able students hunt for the best point on a river bank, find it on a curve, then see why reflecting one end turns a bent path straight. Billiards, mirrors and a corner follow. It comes with slides to present, a vote that shows who's stuck, practice that climbs to olympiad proofs, and homework.

You can present and print it without signing in.

Use in my lessons

Free. The whole lesson is copied into your Library for you to change.

A is at (0, 3) and B at (8, b), both on the same side of a straight river, the x-axis. You walk from A to the river at (x, 0), then on to B: the curve is the walk's length. Where is it shortest? Move b. What is the flat line, and why does it just touch the curve?

12345678

Lowest point: (3, 11.31)

The idea in one minute

To go from A to a line and on to B by the shortest path, reflect A in the line to A′. Every point P on the line is as far from A′ as from A, so AP + PB = A′P + PB, and that is shortest when A′, P and B are in a straight line. The best P is where A′B crosses the line, the shortest length is A′B, and the path makes equal angles with the line on either side: the law of reflection, which light obeys because it takes the quickest path.

The lesson is problem first. Students try points on the river bank before anyone explains, then move a curve of the walk's length and see its lowest point is always the straight distance from A′ to B. Then the same trick straightens other paths: a billiard ball off a cushion (reflect the target in the cushion), a path touching two walls of a corner (reflect once in each), and a bridge across a river (slide one bank onto the other). Practice climbs to short written proofs.

By the end, students can

  • reflect a point in a horizontal or vertical line, and in the line y = x
  • find the shortest path from A to a line and on to B, and its length
  • explain why the shortest path makes equal angles with the line
  • aim a billiard shot off one cushion, and a path touching two walls of a corner
  • prove a path is shortest using the triangle inequality

Key words

  • reflection
  • mirror line
  • shortest path
  • angle of incidence
  • angle of reflection
  • triangle inequality
  • unfolding

Before this lesson

Students should reflect points in the axes, find the equation of a line through two points and use Pythagoras. It suits able students aged about 13 to 16.

The lesson, step by step

60 minutes in total. Each step says what changes for this length.

  1. 1 · Think5 min

    Down to the river

    A(0, 3) and B(8, 5).

    The river is the x-axis.

    Walk A → P → B, P = (p, 0).

    Move p. Where is the walk

    as short as it can be?

    Try three points. Keep a list.

    Write here

    5 min 1 · Hook · students think · the slides say “Think”

    Down to the river

    Students try points on the river bank before anyone explains.

    Say

    “You are at A, 3 m from a straight river. You must fill a bucket at the river, then carry it to B. Where on the bank should you go to walk as little as possible? Try some points and keep a list.”

    Ask
    • Is halfway along the best point? Why or why not?
    • Is it nearer A or nearer B? Why?
    Watch for

    Students who go straight down from A, or halfway along, and stop: ask them to try a point either side and compare.

    For the teacher

    Two minutes with Pythagoras: the walk to (x, 0) is √(x² + 9) + √((8 − x)² + 25). Most try x = 0, 4 and 8.

    Collect lengths. x = 3 beats x = 4, but is it the best? Trying more points makes it likely, not certain. The lesson finds the reason.

    With A(0, 3) and B(8, 5): P at x = 0 gives 3 + √89 ≈ 12.43; x = 8 gives √73 + 5 ≈ 13.54; x = 4 gives 5 + √41 ≈ 11.40; x = 3 gives √18 + √50 ≈ 11.31. Take a vote with Ask the class: is the best point nearer A or nearer B? Don't settle it: that is the lesson.

    Shorter: Give three lengths at once; vote straight away (−2 min).

  2. 2 · Watch12 min

    Every point at once

    Walk to (x, 0), then on to B:

    √(x² + 9) + √((8 − x)² + 25)

    Lowest at x = 3: about 11.31.

    The flat line: y = √128.

    Where is the curve lowest?

    2 · Watch

    Reflect A in the river

    A′(0, −3): A in the mirror.

    P on the river: PA′ = PA.

    So AP + PB = A′P + PB.

    Shortest when A′, P, B line up:

    A′B is y = x − 3, so P = (3, 0).

    Length √(8² + 8²) = 8√2

    Move p to 3: what happens?

    2 · Watch

    Equal angles: light's law

    At P(3, 0) the path comes in

    at 45° and leaves at 45°.

    Light from a lamp to an eye

    by a mirror does the same:

    angle in = angle out,

    because it takes the quickest path.

    Why must the angles be equal?

    2 · Watch

    Billiards: reflect the table

    Ball (2, 1), target (7, 2),

    off the cushion y = 4.

    Reflect the target: (7, 6).

    Aim at it: y = x − 1

    hits the cushion at (5, 4).

    Aim at the target's reflection.

    2 · Watch

    A corner: reflect twice

    A(1, 4) to wall x = 0,

    then wall y = 0, then B(4, 1).

    Reflect A in x = 0: (−1, 4).

    Reflect B in y = 0: (4, −1).

    Join: touches (0, 3) and (3, 0).

    It leaves parallel to how it came.

    Each end in the wall next to it.

    2 · Watch

    A bridge: slide the bank

    A river between y = 0 and y = 2.

    A(0, 5) above, B(6, −3) below.

    The bridge always adds 2, so

    slide A down 2: A′(0, 3).

    A′B meets y = 0 at x = 3:

    the bridge goes there.

    Slide one bank onto the other.

    12 min 2 · Explain · you explain · the slides say “Watch”

    Reflect, and the path goes straight

    The curve's lowest point, then the reflection that explains it, light's law, billiards, a corner and a bridge.

    Say

    “Here is the walk's length for every point on the bank. Now watch what happens when we reflect A in the river.”

    Ask
    • Why is A′P the same as AP for every P on the river?
    • Which P makes A′P + PB as short as it can be?
    • In the corner: which wall do we reflect A in, and which B?
    Watch for

    Students who reflect A and then join A to B′, or both reflections: the path crosses the river once, so one end is reflected.

    The river, straightened

    A(0, 3) reflected in the river: A′(0, −3)

    A′B from (0, −3) to (8, 5): y = x − 3

    It meets the river at P(3, 0); length √(8² + 8²) = 8√2 ≈ 11.31

    The shortest length

    A′B = √(8² + (3 + 5)²) = √128

    The curve's lowest value is √128 ≈ 11.31

    For the teacher

    First slide: the walk with P moving, then the curve: lowest at x = 3 for b = 5, length about 11.31. Move b: lowest at x = 4 for b = 3, nearer A when B is higher.

    Second slide: reflect A in the river to A′. For P on the river, PA′ = PA (P is on the mirror line). So AP + PB = A′P + PB, the length of a path from A′ to B through P. A straight line is the shortest: P on A′B. A′B is y = x − 3, so P = (3, 0), and the length is √128 = 8√2.

    Third slide: the angles. The path comes in at 45° and leaves at 45°: the line A′B makes equal angles with the river, and reflecting gives the same angle on A's side. Light from a lamp to an eye by a mirror goes this way: the angle of incidence equals the angle of reflection, because light takes the quickest path.

    Fourth slide: billiards. To bounce off a cushion and hit a ball, aim at the ball's reflection in the cushion. Ball (2, 1), target (7, 2), cushion y = 4: reflect to (7, 6), the line y = x − 1 hits the cushion at (5, 4).

    Fifth slide: a corner. A path from A touching wall x = 0, then wall y = 0, then to B: reflect A in x = 0 and B in y = 0, and join them. A(1, 4), B(4, 1): A′(−1, 4), B′(4, −1), the line y = 3 − x touches the walls at (0, 3) and (3, 0); length 5√2. The ball leaves parallel to the way it came: two reflections in walls at right angles turn it round.

    Sixth slide: a bridge. A river runs between y = 0 and y = 2, A(0, 5) above it and B(6, −3) below, and the bridge must go straight across. Every bridge adds 2, so slide A down by the river's width to A′(0, 3): the rest of the walk is A′ to the bridge's foot, then on to B, shortest in a straight line. A′B is y = 3 − x, so the bridge stands at x = 3, and the walk is 6√2 + 2.

    Vote before each move of b (Ask the class): where will the lowest point be for b = 3? (At x = 4, halfway, because then A and B are the same height.) The flat line is A′B = √(64 + (3 + b)²): the walk can never be shorter than the straight line from A′ to B, and reaches it at one point.

    Shorter: Leave out the corner slide; it comes back in practice (−4 min).

  3. 3 · Your turn8 min

    A worked example, then yours

    I do: A(0, 3), B(8, 5), river y = 0. A′ = (0, −3).

    A′B: y = x − 3, so P = (3, 0); length 8√2 ≈ 11.31.

    You do: A(0, 2), B(10, 3), river y = 0.

    Find P and the length.

    Say which point you reflect, and in what.

    Write here

    3 · Your turn

    Two more pairs

    I do: corner, A(1, 4), B(4, 1): touches (0, 3), (3, 0).

    You do: corner, A(2, 6), B(5, 1): where are the touches?

    I do: ball (2, 1), target (7, 2), cushion y = 4: x = 5.

    You do: ball (1, 1), target (7, 3), cushion y = 4.

    Sketch it, reflect, join with a ruler.

    Write here

    The answers slide comes with your copy.

    8 min 3 · Your turn · students write

    A worked example, then yours

    Each worked path beside a twin that students solve themselves.

    Say

    “Watch me reflect, join and read off the point. Then you do its twin. Always say which point you reflected, and in what.”

    Ask
    • Which end will you reflect, and in which line?
    • Where does your straight line cross the mirror?
    Watch for

    Reflecting both ends, or joining A to B without reflecting anything.

    The river

    A(0, 3), B(8, 5), river y = 0. A′ = (0, −3)

    A′B: y = x − 3, so P = (3, 0)

    Length 8√2 ≈ 11.31

    Then their turn

    A(0, 2), B(10, 3), river y = 0: find P and the length

    A corner of two walls

    A(1, 4) to wall x = 0, then wall y = 0, then B(4, 1)

    Reflect A in x = 0: (−1, 4); B in y = 0: (4, −1)

    Join: y = 3 − x, touching (0, 3) and (3, 0); length 5√2

    Then their turn

    A(2, 6) to wall x = 0, then y = 0, then B(5, 1): where are the touches?

    A billiard shot

    Ball (2, 1), target (7, 2), off the cushion y = 4

    Reflect the target in y = 4: (7, 6)

    Line y = x − 1 hits the cushion at x = 5

    Then their turn

    Ball (1, 1), target (7, 3), off the cushion y = 4: where does it hit?

    For the teacher

    Work the river aloud: reflect, join, find where the line crosses y = 0, then the length by Pythagoras on A′ and B.

    The corner needs two reflections, each end in the wall it meets first or last. The billiard shot reflects the target, not the cue ball: either works, as long as only one is reflected.

    Twins: the river at P(4, 0), length √125 ≈ 11.18; the corner at (0, 4) and (4, 0), length 7√2 ≈ 9.90; the billiard shot at (5.5, 4). Open the answers slide once most have finished.

    Shorter: Do the first two pairs only (−3 min).

  4. 4 · Vote and practise25 min

    Vote first

    A(0, 2), B(6, 4), river y = 0. Where is P for the

    shortest walk A → P → B?

    A: x = 3

    B: x = 2

    C: x = 4

    D: x = 0

    E: x = −6

    Choose on your own, then say why.

    4 · Vote and practise

    Climb: from fluent to olympiad

    1. Reflect (3, 5) in each axis.

    2. A(0, 1), B(6, 2), river y = 0: P and the length?

    3. Corner: A(1, 3) to x = 0, to y = 0, to B(3, 1)?

    4. Ball (2, 1) off y = 5 to hit (8, 3): where on y = 5?

    5. Why is AP + PB = A′P + PB?

    Stuck? Reflect one point, then join with a ruler.

    Write here

    4 · Vote and practise

    Reason, then prove

    6. An ant on a cube: shortest walk corner to corner?

    7. Prove AQ + QB > AP + PB for any other Q.

    8. A bridge across a river 2 wide: where?

    9. Mirrors at 90°: prove the ray comes back parallel.

    A proof: a step a line, with its reason.

    Write here

    25 min 4 · Who's stuck? · students vote · the slides say “Vote and practise”

    Vote, then climb

    One question shows who's stuck; then practice from reflecting points to olympiad proofs.

    For this length: Swap and mark: pairs mark each other's proof of question 7, then 9

    Say

    “Choose an answer on your own. Nobody talks until everyone has chosen.”

    Ask
    • Where is A′?
    • Where does A′B cross the river?
    Watch for

    Halfway along; straight below A; the heights' ratio the wrong way round; the line AB itself extended to the river.

    Sketch each one. Say which point you reflect and in what. The last questions are proofs: write a line for each step, with its reason.

    The question that shows who's stuck

    1. A(0, 2) and B(6, 4) are above a river along the x-axis. Where on the river is P for the shortest walk A → P → B?
      1. x = 3
      2. x = 2
      3. x = 4
      4. x = 0
      5. x = −6
    An example of what your Classroom shows as they answer
    • A10
    • B9
    • C4
    • D4
    • E2

    Each wrong answer points to a different mistake. As they answer, your Classroom shows who chose what, so you can see in seconds who needs help, and with what.

    1. (3, 5) reflected in the x-axis is (___, ___), and in the y-axis is (___, ___)
    2. A(0, 1) and B(6, 2) are above the river y = 0. The shortest walk A → P → B has P at x = ___, and its length is √___
    3. Walls lie along x = 0 and y = 0. A path goes from A(1, 3) to the wall x = 0, then to the wall y = 0, then to B(3, 1). At its shortest it touches x = 0 at y = ___, and its length is √___
    4. A billiard table has corners (0, 0) and (10, 5). A ball at (2, 1) is played off the cushion y = 5 to hit a ball at (8, 3). It hits the cushion at x = ___
    5. A′ is A reflected in the river. Why is AP + PB = A′P + PB for every point P on the river?
      1. P is on the mirror line, so it is as far from A′ as from A
      2. A′ is as far below the river as A is above, so A′B = AB
      3. The angles at P are equal
      4. A′P is a straight line
    6. An ant walks on the outside of a cube of side 1 from one corner to the opposite corner. What is the shortest walk?
      1. √3 ≈ 1.73
      2. √5 ≈ 2.24
      3. 1 + √2 ≈ 2.41
      4. 3
    7. A and B are on the same side of a line L. A′ is A reflected in L, and A′B meets L at P. Prove that for any other point Q on L, AQ + QB > AP + PB.
    8. Stretch: a river runs between the banks y = 0 and y = 2. A is at (0, 5) and B at (8, −3). A bridge goes straight across, at right angles to the banks. At what x should it be for the shortest walk from A to B?
    9. Stretch: two mirrors meet at right angles. A ray of light bounces off one, then the other. Prove that it leaves parallel to the way it came in, travelling the opposite way.

    Support · Stuck: sketch it, reflect one point in the line, join with a ruler, and read off the crossing. For proofs: say why the reflected distance equals the real one, then use 'a straight line is shortest'.

    For the teacher

    Everyone chooses before anyone explains. Ask a student for each answer to say how they got it. Halfway, straight down, a ratio upside down and AB extended all show up here.

    Questions 1–2 reflect and join; 3–4 are corners and billiards; 5–6 ask why; 7 is a first written proof. 8 and 9 are olympiad level: a bridge, and two mirrors.

    Students write proofs on paper or the board; the quiz keeps their answers for you to mark and comment on.

    If the class is split, work out the walk's length at x = 2 and x = 3 together, then reflect A. Long answers (7, 9) are marked by you: a mark for the reflection and why the distances are equal, one for the triangle inequality or the angle reason, one for the conclusion. Model answers are in each question's explanation.

    Shorter: After the vote, questions 1–5 only (−6 min).

    Longer: Swap and mark: pairs mark each other's proof of question 7, then 9 (+10 min).

  5. 5 · Show what you know10 min

    Reflect and straighten

    A(0, 3) and B(9, 6), the river y = 0.

    Find P on the river for the shortest walk A → P → B.

    Find the shortest length.

    Say why no other point does better.

    Three things: the point, the length, the reason.

    Write here

    10 min 5 · Exit · students show · the slides say “Show what you know”

    Reflect and straighten

    One river problem with its reason shows who has the whole idea.

    For this length: Then ask: what if the walk must touch the river and the road x = 0?

    Say

    “Find the best point and the shortest length, and say why nothing shorter is possible.”

    Watch for

    The right point found by trying values, with no reflection to show it is best.

    A few lines: the point, the length, and why nothing is shorter.

    1. A(0, 3) and B(9, 6) are on the same side of the river y = 0. Find the point P on the river that makes AP + PB as short as possible, and the shortest length. Say why no other point does better.
    For the teacher

    A(0, 3) and B(9, 6) are on the same side of the river y = 0.

    Find the point P on the river that makes AP + PB shortest, the shortest length, and why.

    Answers with the point but no reason show who can use the trick but not yet explain it: start next time with 'why does A′P equal AP?'. Set the homework.

    Longer: Then ask: what if the walk must touch the river and the road x = 0? (+5 min).

One-to-one: let the student try three points on the bank with a ruler first and keep the lengths, then move the curve. Ask them to say why A′P equals AP before drawing any straight line, and to sketch every billiard shot with the table reflected.

Homework: reflect and straighten

Sketch every problem. Say which point you reflect and in what. Write proofs a line at a time, each with its reason.

  1. A(0, 4) and B(12, 8) are above the river y = 0. Find the point P on the river that makes AP + PB shortest, and the shortest length.
  2. Light from a lamp at (1, 5) bounces off a mirror along the x-axis and reaches an eye at (7, 1). Where does it hit the mirror? What angle does it make with the mirror?
  3. A billiard table has corners (0, 0) and (12, 6). A ball at (2, 2) is played off the cushion y = 6 to hit a ball at (11, 4). Where does it hit the cushion?
  4. Walls lie along x = 0 and y = 0. Find the shortest path from A(2, 5) to the wall x = 0, then to the wall y = 0, then to B(6, 1): where it touches each wall, and its length.
  5. Prove that the shortest path from A to a line and on to B makes equal angles with the line.
  6. A box is 4 cm long, 2 cm wide and 2 cm high. An ant walks on its outside from one corner to the opposite corner. How short can its walk be?
  7. Challenge: a river runs between y = 0 and y = 3. A is at (0, 7) and B at (6, −4). A bridge goes straight across. Where should it be, and how long is the shortest walk from A to B?

Print the worksheet, with space for working and the homework. The answers come with your copy in the Library.

Shortest paths by reflection: common questions

What is the river problem?

You start at A, must touch a straight line (the river), and end at B on the same side. Reflect A in the line: every path to B through the line is as long as a path from the reflection, so the shortest is straight, and it crosses the line where the angles on either side are equal. It is often credited to Heron of Alexandria.

Which competitions is this lesson useful for?

It suits able students aged about 13 to 16 preparing for maths challenges and olympiads, such as the UKMT Intermediate and Senior Mathematical Challenges and their follow-on rounds. The problems are our own, written in the style of such competitions, not taken from past papers.

How does this connect to physics?

Light reflected by a mirror makes equal angles with it, and that is exactly the shortest path from the lamp to the eye by the mirror. The lesson proves it with a reflection and the fact that a straight line is the shortest path between two points.

Why does the ant on a box belong here?

Unfolding the faces flat does for a box what reflecting does for a mirror: it turns a bent path into a straight one, so its length is found with Pythagoras. Each way of unfolding gives a different straight line, and the shortest of them wins.

Can I use the lesson without creating an account?

Yes. You can read the lesson, print the worksheet and open its slides without signing in. Anything you draw on the slides isn't saved. With a free teacher account, you can keep the whole lesson in your Library to change and teach, including the quizzes, the answers and the answer slides.

Teach this lesson tomorrow

Keep the whole lesson, change what you like, and use it with a group. Present its slides step by step while each student works on their own copy.

Use in my lessons

Free. The whole lesson is copied into your Library for you to change.

Written in our own words and free to use with your students. Not endorsed by any exam board.