Study materials · photonresources.comClasses with our teachers · Photon AcademyFor IB Diploma students worldwide

Maths IA · Calculus · topic 21 of 97

The lifeguard problem: where should you enter the water? · IB Maths IA idea: guide, sample graph and step-by-step plan

shortest is not fastest

You can run faster than you can swim, so the straight line to the swimmer is not the quickest way. Somewhere along the shore there is a best place to enter the water, and the maths for it also describes how light bends.

Difficulty●●○ Medium
KitA tape measure, a stopwatch or phone, a beach, field or pool, a spreadsheet
TimeAbout 12 to 15 hours
FitsAA SL3 of 3AA HL3 of 3AI SL3 of 3AI HL3 of 3
  • ✓ you like optimisation problems with a real person in them
  • ✓ you want to run, swim or walk a route and time it yourself
  • ✓ you are curious why light bends when it enters water

The big idea

Moving through two different surfaces at two different speeds makes the total time a function of one number: where you cross the boundary. Write the time as two square roots, one for each leg, divide each by its speed and differentiate. Setting the derivative to zero gives an equation you can solve numerically, and when you tidy it, it says that the sine of each angle divided by its speed is the same. That is Snell's law, and the same reasoning is behind Fermat's principle of least time for light. The calculus is the easy part. The marks come from your measured speeds: how you get them, how uncertain they are, and how much the best route moves when they change.

Make it yours: pick one twist

Copying a classic won't show your choices. Pick one of these (or invent your own) and your IA becomes yours.

Swipe for more twists →

Measure your own speeds

Time yourself running on sand, grass or a track, and swimming or wading, over measured distances.

→ Your speeds have uncertainty and your best entry point inherits it. You say how far the answer can move.
Sensitivity to the speed ratio

Keep the geometry and change the ratio of the two speeds, then plot the best entry point against the ratio.

→ A graph of the optimum against a parameter. You can say when the best route is almost the straight line, and when it is almost the longest run.
Solve without calculus

Find the minimum from a spreadsheet table of T(x) and compare it with the exact condition.

→ You test a numerical method against the derivative, and see how fine the table must be to reach a given accuracy.
From the lifeguard to light

Show that the equation T'(x) = 0 is Snell's law, then compare with a measured angle of a laser or pencil through water.

→ A mathematical result is checked in physics, and you can discuss where the analogy to a person fails.
Three surfaces

Add a third region, such as a path of fast ground before the sand, or a strip of shallow wading.

→ Two unknown crossing points and a function of two variables, or a repeat of the one-variable method on each boundary.
A curved shoreline

Replace the straight shore with a curve such as a parabola, and find the best entry point on it.

→ The leg lengths are no longer simple square roots. The derivative is harder and the answer is found numerically.

Your Maths IA research question: run the check

whose speeds? how measured?

Write your own question first. Then make sure it ticks every box:

  • Names the places, the distances a, b and d, and what the two speeds are.
  • Says how the speeds will be measured, with how many trials, and how uncertainty will be handled.
  • Says what will be solved or compared: the best entry point, the time saved or the link to Snell's law.
  • Includes a test of the result, such as timing the real routes or measuring the angles.
  • Is narrow enough for 12 to 20 pages and goes beyond solving one textbook problem once.
Stuck on your question?Get an RQ Check: each question is scored on 5 points, with what to fix. Your first one is free.
Get an RQ Check

The model

Run on sand, swim in water, and choose where to enter. Mark your own distances and speeds, and the angles at the entry point.

lifeguardswimmerEabxd − xdαβsand: speed v1water: speed v2T(x) = √(a² + x²) / v1 + √(b² + (d − x)²) / v2where should E be? Set T′(x) = 0dashed: shortest, not fastestcheck:sin α / v₁ = sin β / v₂ ?

How your Maths IA could be laid out

The usual order for a topic like this, what each part needs to show, and roughly how much of your 12 to 20 pages it takes. The words are all yours.

Aim and context~1 page
Why this problem, where the two speeds come from, and what you expect before calculating: nearer the straight line, or the shore?
The time function~1.5 pages
Every symbol defined, the two legs by Pythagoras, and T(x) written down and graphed.
Finding the best entry point~2 pages
The derivative, the equation T'(x) = 0, its solution, and a check that it is a minimum.
Snell's law~1.5 pages
The condition rewritten with sines of the two angles, and what it says about speeds and angles.
How sensitive is the answer?~2.5 pages
The best point as the speed ratio and the geometry change, with a graph and a number for the uncertainty.
Model against real timings~1.5 pages
Your timed routes beside the predicted times, with a reason for each difference.
Conclusion~1 page
Back to your aim: the best route, the time saved against the straight line, and how sure you are.
Evaluation~2 pages, the biggest part!
Constant speeds, a straight shore, a rescuer who knows the best point at once, and which assumption matters most.
Bibliographynot counted
Where every formula, speed and measurement came from.

What your Maths IA graph could look like

mark the minimum!

Made-up numbers to show the form of a strong graph, not the answer: total time against the entry point, with computed values. Yours will look different. example only

010203040506028323640444852Entry point x along the shore / mTotal time T / sT(x) from the modelyour timed routes (made-up)the minimum is flat: a small errorin x costs little timeILLUSTRATIVE · MADE-UP DATA
  • Total time against the entry point, so the minimum can be read and the flatness of it seen.
  • Axis labels give units: distance in metres, time in seconds.
  • Mark the calculated minimum, then show timed routes as points to test it.
  • Add error bars from your repeated timings so the reader can judge the agreement.
  • Another graph to consider: the best entry point against the ratio of the two speeds.

The maths in action

worked through, not sketched!

The graph above was a sketch with made-up numbers. This figure works the idea through from the model itself, so you can see what a finished figure looks like. The source line under it says where every number comes from.

Two panels. Left: the geometry of a lifeguard on sand and a swimmer in water with three routes, the fastest one bending at the shoreline. Right: a U-shaped curve of total time against entry point with the minimum and two alternatives marked.
(a) A lifeguard runs at 3.5 m/s and swims at 1.5 m/s to a swimmer; the fastest route enters at 51.6 m, angles 64 and 23 degrees from the normal. (b) Total time against entry point: 30.8 s at the best point, 34.1 s on the straight line.Source: Computed from the model with assumed speeds of 3.5 m/s (sand) and 1.5 m/s (swimming).

How much time does the best route save?

Rank four routes on one number: total time. Work it out for your own geometry and explain why the best route is not the shortest.

straight line34.1senter at 45 m31.4sbest, at 51.6 m30.8sleast swimming31.9sthe straight line is the shortest and the slowest of the fourTotal time, lifeguard 25 m from the water, swimmer 20 m out and 60 m alongILLUSTRATIVE · MADE-UP NUMBERS

Your game plan

Tick steps off as you go. We'll remember on this device.

0 of 10 done

  1. Read and predictFind out what the lifeguard problem asks. Before any calculation, sketch the route you think is fastest, and say why.
  2. Choose the placePick a real layout: a beach, a field and a pond, or a lane and a road. Measure the distances a, b and d.
  3. Measure the speedsTime yourself over a measured distance on each surface, several times. Record the mean and the spread.
  4. Trial run (1 lesson)Time two or three actual routes over your layout. Is the timing method good enough to tell the routes apart? Fix it now.
  5. Build T(x)Use Pythagoras for each leg and divide by the speed. Graph T(x) and read an approximate minimum before differentiating.
  6. Differentiate and solveFind T'(x), set it to zero and solve, by hand or numerically. Show the minimum is a minimum, and compare with your graph.
  7. Link to Snell's lawRewrite the condition with the sines of the two angles. Check it numerically with your own solution.
  8. Go further, with a reasonTest the sensitivity to the speeds, add a third surface or curve the shore. Say what question the extra step answers. HL: this is where the rigour for criterion E comes from.
  9. Reflect as you goAfter every result, write one line on what it means for a rescuer and what it assumes. These lines become your evaluation.
  10. Cut, check, then sendCheck units everywhere, every graph labelled, every symbol defined once and the conclusion answers your aim. Then send your teacher one draft.

The maths you'll use

  • Pythagoras and modelling – Write each leg as or and divide by its speed to form .
  • Differentiation – Use the chain rule on both square roots to find and set it to zero.
  • Optimisation – Show at the solution, and use a graph and a table of values to confirm the minimum is inside the shore.
  • Trigonometry – Replace by to turn into Snell's law.
  • Numerical solving – Solve on a calculator or spreadsheet when it cannot be done by hand, and test the solution against the model.
  • Uncertainty – Propagate the uncertainty in the measured speeds to the best entry point and the minimum time.

Key equations

Syllabus links

  • 3.2Right-angled trigonometry, sine and cosine rules
  • 5.3Differentiating powers of x
  • 5.6Standard derivatives; chain, product and quotient rules
  • 5.8Maxima, minima, inflexion and optimisation
  • 3.8Solving trigonometric equations

Read up first

Data and sources to start from

Time yourself running and swimming (or walking on two surfaces) over measured distances, several trials each, and time routes through your chosen entry points.

References to cite

  1. Stewart, J. (2015). Calculus: Early transcendentals (8th ed.). Cengage Learning.
  2. Feynman, R. P., Leighton, R. B., & Sands, M. (2011). The Feynman lectures on physics (New millennium ed., Vol. 1). Basic Books. (Chapter 26, optics: the principle of least time.)

Cite what you actually use, in your own format, and say where each number came from.

Traps to avoid in this Maths IA

angles from the normal
  • Assuming the straight line is fastest because it is shortest. The speeds are different.
  • Mixing up which leg gets which speed, so the time function is wrong.
  • Setting T'(x) = 0 but never checking that it is a minimum, or that it lies inside the shore.
  • Using angles measured from the shoreline in Snell's law instead of from the normal to it.
  • Quoting speeds with no measurements and no uncertainty, then reporting the best point to three decimals.
  • Treating Snell's law as a coincidence, rather than showing it comes from the equation you solved.

More Maths IA ideas like this

Make sure it's yours

This guide shows how a topic like this is usually approached. It is not an IA. Your question, choices, data, analysis and words must be your own: change something, tell your teacher where the idea came from, and follow your school's rules on outside help.

Get your RQ checked · first one free