Solution to Puzzle No. 2 - carnivorous beetles

Share this page
September 1997

For the question see " Puzzle No. 2 - carnivorous beetles", in issue 2.

At first sight it may appear necessary to write down the equations of motion of the beetles as a set of differential equations and to solve these to find the paths or trajectories. However, as with our first puzzle there is a trick (see "Solution to Puzzle No. 1 - the ring").


The problem is symmetrical so we can see straight away that whatever paths the beetles take they will always be at the four vertices of a square whose origin remains fixed.

We know that A's path must curve because B is also moving. From the direction of B's motion we can also see that A's path must curve towards the interior of the square. So the square is shrinking (as well as rotating clockwise).

Notice that the component of B's velocity in the direction of AB is always zero so the length of the side from A to B is shrinking at the speed at which A is moving towards B, 1cm/s. After 4s the square has shrunk to a point with all the beetles having spiralled into the centre.

To summarise: A takes 4s to catch B and travels 4cm in this time. As to what happens, that is left to your imagination!

Solution using calculus:

Writing down the equations of motion for the beetles and solving them is another way of working out what happens. It also tells us something that is not obvious from a simple plot of the beetles' paths.

Take origin O as the centre of the square, and consider the motion of the beetle at corner A. Work with polar coordinates as shown in the diagram with r as the distance OA. Then:

Explanation and diagram

From this we see that the beetles must eventually collide at t = 4 which gives us our answer.

It is also instructive to solve the equation for theta.

Further explanation

Notice that as t gets closer to 4, theta gets larger and larger without bound. In other words the beetles spin around each other an infinite number of times before colliding.


(1) 4 seconds
(2) 4 cm
(3) All Beatles will die - John Lennon, Paul McCartney, George Harrison, and Lingo Star. By eating one another.

The square (A,B,C,D) continues to shrink by 1 cm / second, toward the center. Since the original size of the square is 4 cm (height & width), it takes 4 seconds. The length of each locus is 4 cm (= 4 seconds * (1 cm / second)).

Sent from:

  • Want facts and want them fast? Our Maths in a minute series explores key mathematical concepts in just a few words.

  • What do chocolate and mayonnaise have in common? It's maths! Find out how in this podcast featuring engineer Valerie Pinfield.

  • Is it possible to write unique music with the limited quantity of notes and chords available? We ask musician Oli Freke!

  • How can maths help to understand the Southern Ocean, a vital component of the Earth's climate system?

  • Was the mathematical modelling projecting the course of the pandemic too pessimistic, or were the projections justified? Matt Keeling tells our colleagues from SBIDER about the COVID models that fed into public policy.

  • PhD student Daniel Kreuter tells us about his work on the BloodCounts! project, which uses maths to make optimal use of the billions of blood tests performed every year around the globe.