ArticleslgStudy

mathematics

The spider and the fly problem

The spider and the fly problem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand The spider and the fly problem rather than just read about it. In short: The spider and the fly problem is a recreational mathematics problem with an unintuitive solution, asking for a shortest path or geodesic between two points on the surface of a cuboid. It was originally posed by Henry Dudeney.

The spider and the fly problem — main illustration
The spider and the fly problem — illustration

Key takeaways

  • The spider and the fly problem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect The spider and the fly problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of The spider and the fly problem from memory before moving on to harder problems.

Reference excerpt

The spider and the fly problem is a recreational mathematics problem with an unintuitive solution, asking for a shortest path or geodesic between two points on the surface of a cuboid. It was originally posed by Henry Dudeney.

Problem In the typical version of the puzzle, an otherwise empty cuboid room 30 feet long, 12 feet wide and 12 feet high contains a spider and a fly. The spider is 1 foot below the ceiling and horizontally centred on one 12′×12′ wall. The fly is 1 foot above the floor and horizontally centred on the opposite wall. The problem is to find the minimum distance the spider must crawl along the walls, ceiling and/or floor to reach the fly, which remains stationary.

Solutions A naive solution is for the spider to remain horizontally centred, and crawl up to the ceiling, across it and down to the fly, giving a distance of 42 feet. Instead, the shortest path, 40 feet long, spirals around five of the six faces of the cuboid. Alternatively, it can be described by unfolding the cuboid into a net and finding a shortest path (a line segment) on the resulting unfolded system of six rectangles in the plane. Different nets produce different segments with different lengths, and the question becomes one of finding a net whose segment length is minimum. Another path, of intermediate length 1658 ≈ 40.7 {\displaystyle {\sqrt {1658}}\approx 40.7} , crosses diagonally through four faces instead of five. For a room of length l, width w and height h, the spider a distance b below the ceiling, and the fly a distance a above the floor, length of the spiral path is ( w + h ) 2 + ( b + l + a ) 2 {\displaystyle {\sqrt {(w+h)^{2}+(b+l+a)^{2}}}} while the naive solution has length l + h − | b − a | {\displaystyle l+h-|b-a|} . Depending on the dimensions of the cuboid, and on the initial positions of the spider and fly, one or another of these paths, or of four other paths, may be the optimal solution. However, there is no rectangular cuboid, and two points on the cuboid, for which the shortest path passes through all six faces of the cuboid. A different lateral thinking solution, beyond the stated rules of the puzzle, involves the spider attaching dragline silk to the wall to lower itself to the floor, and crawling 30 feet across it and 1 foot up the opposite wall, giving a crawl distance of 31 feet. Similarly, it can climb to the ceiling, cross it, then attach the silk to lower itself 11 feet, also a 31-foot crawl.

History The problem was originally posed by Henry Dudeney in the English newspaper Weekly Dispatch on 14 June 1903 and collected in The Canterbury Puzzles (1907). Martin Gardner calls it "Dudeney's best-known brain-teaser". A version of the problem was recorded by Adolf Hurwitz in his diary in 1908. Hurwitz stated that he heard it from L. Gustave du Pasquier, who in turn had heard it from Richard von Mises.

References

Illustrations

The spider and the fly problem: Isometric projection and net of naive (1) and optimal (2) solutions of the spider and the fly problem
Isometric projection and net of naive (1) and optimal (2) solutions of the spider and the fly problem

Worked examples

Example 1 — a first encounter with The spider and the fly problem

Start with the simplest possible case. Write down what The spider and the fly problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to The spider and the fly problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about The spider and the fly problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of The spider and the fly problem

In research
The spider and the fly problem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses The spider and the fly problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
The spider and the fly problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Geodesic (mathematics), Recreational mathematics, so understanding it makes those chapters shorter.
In everyday life
Look for The spider and the fly problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “The spider and the fly problem” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study The spider and the fly problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what The spider and the fly problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain The spider and the fly problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is The spider and the fly problem in simple terms?

The spider and the fly problem is a recreational mathematics problem with an unintuitive solution, asking for a shortest path or geodesic between two points on the surface of a cuboid. It was originally posed by Henry Dudeney.

Why does The spider and the fly problem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study The spider and the fly problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on The spider and the fly problem.

Tags

  • Geodesic (mathematics)
  • Recreational mathematics

Keep exploring