Shortest paths on the surface
An ant sits at one corner of a box. It wants to reach the diagonally-opposite corner. It can only walk along the outside surface, not through the box. What is the shortest path?
This puzzle is delightful because the "obvious" answer is wrong, and the right answer uses nets , exactly the unfolding we just learned.
Concept
Why we need to unfold. The shortest path along the surface might cross several faces. On the 3D box, this is a sequence of broken straight lines, hard to optimise directly. But once you unfold (some of) the faces into a flat net, the path that was broken on the surface becomes a straight line in the net. And the shortest path between two points in a plane is just the straight line.
Procedure.
- Identify the start and end points on the 3D box.
- Choose a path that crosses some faces. Unfold those faces flat (the surrounding faces stay attached at the shared edge).
- Mark the start and end in the net. Connect them with a straight line.
- Its length is the candidate shortest path. Different unfoldings give different lengths , try a few.
- The minimum over all possible unfoldings is the true shortest surface distance.
Example. A box of size . Ant at corner , target at corner .
There are three ways to unfold for the path:
- Unfold via and : straight line of length .
- Via and : length .
- Via and : length .
Shortest: . The route uses the and sides plus the side. Through the inside (which the ant can't do), the diagonal would be .
Generalising. For a cuboid with the ant going corner to corner, the three candidate path lengths are:
The smallest is the shortest. Often the middle-sized face combinations win.
Other surfaces. Shortest paths on cylinders, cones, and pyramids work the same way: unfold, draw a straight line, measure.
Worked examples
Example 1. Ant on a cube, corner to corner via surface. Find shortest path.
- Three candidates: , three identical.
- Shortest: .
Example 2. box, corner to corner.
- Candidates: , , .
- Shortest: .
Example 3. A spider in a room, sitting at one corner of the floor. A fly is at the diagonally opposite corner of the ceiling. Shortest surface path?
- For an unfolding through two walls plus floor or ceiling: .
- A second unfolding: . (Counterintuitive: a "-shaped" path is shorter.)
Example 4. On a cylinder of radius and height , an ant at the bottom edge wants the diametrically-opposite top edge. Unfold the cylinder into a rectangle. Half-circumference . Path: .
Try it yourself
- Cube of side . Find shortest corner-to-corner surface distance.
- Cuboid . Find shortest surface distance.
- Cube of side , ant going from a vertex to centre of the opposite face?
- Cylinder , . Shortest from bottom rim to diametrically opposite top rim.
- A long thin box . Shortest path corner-to-corner?
- Square pyramid base , slant edge . Shortest path along the surface from one base vertex to the opposite base vertex.
- Cube of side , ant on centre of one face going to centre of opposite face along surface.
- Compare with the "through-the-inside" straight-line distance for the box ().
Activity / Insight
Real-life unfolding. Take a small box and a piece of string. Mark two opposite corners. Try wrapping the string around the box to find the shortest path. Now unfold the box and draw the same string path as a straight line. The straight line should match the wrapped string exactly , and any other route should be longer.