On this page
Draw three circles. How many circles touch all three? Usually eight, and finding them is fine practice in circle geometry.
What is the problem of Apollonius?
The problem of Apollonius is to construct the circles tangent to three given circles in a plane (Wikipedia: Problem of Apollonius). Apollonius of Perga (c. 262 to 190 BC) posed and solved it in a book called Tangencies, now lost; we know it through a 4th-century AD report by Pappus of Alexandria.
Why are there up to eight circles tangent to three circles?
Two circles touch externally when the distance between their centres equals the sum of their radii, and internally when it equals the difference (Wikipedia). A solution makes that choice separately for each given circle, so there are 2 × 2 × 2 = 8 kinds of solution. MathWorld states that in general position there are up to eight solutions.
They come in four pairs: split the given circles into two groups, and one solution touches the first group from outside and the second from inside, while its partner does the opposite. "Up to" matters: there is no solution if one given circle separates the other two, and infinitely many if all three touch at one point.
What happens when the circles become points or lines?
A point is a circle of zero radius and a line is a circle of infinite radius, which gives ten versions of the problem (Wikipedia, ten types). In general, three points have one solution, three lines have four, every case containing a point has at most four, and every mix of circles and lines with at least one circle has eight. Swapping circles for points one at a time halves the count: 8, 4, 2, 1.
Euclid solved the two easiest cases. Three points give the circumcircle, centred where the perpendicular bisectors meet (Elements IV.5). Three lines give the incircle and three excircles: their centres lie where angle bisectors meet, and each corner has two bisectors (Elements IV.4 constructs the incircle).
How do you solve it with algebra?
Let the given circles have centres (xᵢ, yᵢ) and radii rᵢ, and the unknown one (x, y) and r. Each tangency is one equation, (x − xᵢ)² + (y − yᵢ)² = (r ± rᵢ)², with + for outside contact and − for inside (Wikipedia, algebraic solutions). Every equation has the same x² + y² and r², so subtracting one from another leaves linear equations. Solve them for x and y in terms of r, substitute back, and you get a quadratic in r (MathWorld).
For a worked example, take three circles of radius 1 centred at A(0, 0), B(6, 0) and C(0, 8). The circle touching all three from outside is centred at the circumcentre, (3, 4), 5 from each, so r + 1 = 5 and r = 4. The circle enclosing all three has r − 1 = 5, so r = 6.
Now a mixed one: outside A and B, enclosing C.
Equations: x² + y² = (r + 1)², (x − 6)² + y² = (r + 1)², x² + (y − 8)² = (r − 1)².
Second minus first: −12x + 36 = 0, so x = 3.
Third minus first: −16y + 64 = −4r, so y = 4 + r/4.
Substitute into the first: 9 + (4 + r/4)² = (r + 1)², which simplifies to 15r²/16 = 24, so r² = 25.6.
r = 5.06 gives centre (3, 5.26): 6.06 from A (r + 1) and 4.06 from C (r − 1).
The negative root, r = −5.06, flips every sign and gives the partner: radius 5.06, centre (3, 2.74), enclosing A and B and touching C from outside. Signed radii are why one quadratic gives a whole pair.
How does inversion reduce it to a simpler case?
Inversion in a circle with centre O and radius R sends each point P to a point P′ on the ray OP with OP × OP′ = R² (Wikipedia, inversive methods). It maps circles and lines to circles and lines; a circle through O becomes a line.
Resize. Shrink one given circle to a point P, adjusting the other radii and the solution's by the same amount, up or down by tangency type.
Invert about P. The unknown circle passes through P, so it becomes a line tangent to both inverted circles, and two circles have up to four common tangents.
Undo. Invert those lines back into circles and reverse the resizing.
Resizing differently for each tangency pattern recovers all eight.
How should you practise it?
Find a circumcircle by crossing two perpendicular bisectors.
For the 3-4-5 right triangle, find the incircle and excircles (radii 1, 2, 3 and 6).
Invert a circle about a point on it and confirm you get a line.
If tangency or inversion is the sticking point, the Fermi Concept Library gives each mathematics concept its own lesson. When an algebra step keeps going wrong, the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



