Example 29: Helicopter on , soldier at
An Apache helicopter of enemy is flying along the curve given by . A soldier, placed at , wants to shoot down the helicopter when it is nearest to him. Find the nearest distance.
Let the helicopter be at . Its distance from is , where
The distance is least when is least.
As for all (its discriminant is ), .
For , ; for , . So is least at .
Hence the nearest distance is units.
Want the reason behind every step, the basics and the checks?
The helicopter's position is fixed by one number, its -coordinate, so its distance from the soldier is a function of . A distance is never negative and is increasing, so the distance is smallest exactly where its square is smallest. Minimising the square avoids differentiating a square root.
- Given
- The path (every real ) and the soldier at .
- To find
- The least distance between the soldier and a point of the path.
- Plan
- Write the squared distance . Factorise , find the critical points, use the sign of to show the only one gives the least value of on all of , and take the square root.
Basics you need
The distance between and is . Basics: building the function to optimise
For numbers : . So is least exactly where is least.
If , then is a factor of . A quadratic with has no real roots, and if it is positive for every . Basics: factorising and the discriminant
If to the left of and to the right, falls to and rises after it, so is its least value. Lesson: increasing and decreasing functions
Solution
The distance as a function of
When the helicopter is at , it is at . Its distance from is
One number, , describes where the helicopter is, so everything becomes a function of . The and cancel because the soldier is at the same height as the lowest point of the path.Distance formula (Basic 1). Basics: building the function to optimiseWork with the squared distance
Let
The distance is , and by Basic 2 it is least where is least.
Differentiating is simpler than differentiating its square root, and the answer is the same point. (The book calls this squared distance and takes the square root at the end.)is increasing on (Basic 2).Differentiate and factorise
makes , so is a factor:
To find where we need factors. Trying small whole numbers in quickly finds ; dividing by (or comparing coefficients) gives the quadratic. Check: .Chain rule for ; power rule for ; factor theorem (Basic 3). Basics: factorising and the discriminantThe only critical point is
For the quadratic factor, the discriminant is
so has no real roots; since its leading coefficient is positive, for every . Hence only at . is a polynomial (differentiable everywhere), and ranges over all of , so there are no end points to add.
The book makes the same two remarks: no real roots for the quadratic, and no end points. Knowing that the quadratic factor is always positive (not just non-zero) is what lets us read the sign of in the next step.Discriminant test (Basic 3). Equivalently, .gives the least value of on all of
In , the factors and are always positive, so has the sign of :
- : , is decreasing;
- : , is increasing.
So for every , and the least value is
The book argues differently: with only one critical point, is "either a maximum value or a minimum value", and since , it must be the minimum. That argument needs more care (a single critical point need not be either), while the sign of settles it completely. As a further check, , so the second derivative test also gives a local minimum at 1.Theorem 1, Section 6.3 (Basic 4); Theorem 4, Section 6.4. Lesson: optimisation problemsThe nearest distance and the helicopter's position
The nearest distance is units, when the helicopter is at .
Equal scales; the vertical axis starts at 6. The dashed circle of radius about the soldier touches the path only at , and the shortest segment is perpendicular to the path there. Geometric check: the slope of the path at is , and the slope of the segment from to is . Since , the shortest segment meets the path at a right angle, as a shortest distance to a smooth curve must.Perpendicular lines have slopes with product .
The nearest distance between the soldier and the helicopter is units (about 2.236), when the helicopter is at . This agrees with the book.
| distance | ||
|---|---|---|
| 0 | 9 | 3 |
| 0.9 | 5.0661 | 2.2508 |
| 1 | 5 | 2.2360680 |
| 1.1 | 5.0741 | 2.2526 |
| 2 | 17 | 4.1231056 |
- Giving 5 as the answer. 5 is the least squared distance; the distance is .
- Stopping at " has no real roots". Also note it is always positive; that gives the sign of .
- Forgetting to square the vertical gap. The vertical gap is , so it contributes , not .
- To minimise a distance, minimise its square: same point, easier algebra.
- On all of there are no end points; a sign change of from to at the only critical point gives the global minimum.
- The shortest segment from a point to a smooth curve is perpendicular to the curve.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Distance formula | Step 1 | Coordinate geometry (Basics: building the function) |
| is increasing | Step 2 | Algebra |
| Factor theorem; discriminant | Steps 3, 4 | Algebra (Basics: factorising) |
| Sign of gives decreasing/increasing | Step 5 | Theorem 1, Section 6.3 |
| Second Derivative Test | Step 5 | Theorem 4, Section 6.4 (Lesson: tests) |
| Perpendicular slopes multiply to | Step 6 | Coordinate geometry |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →