What is a double sphere?
A double sphere is the union of two balls of radii \(r_1\) and \(r_2\) whose centres are a distance \(d\) apart: every point inside at least one of the balls. Where the two spheres cross they meet in a circle, and the region inside both (the overlap) is a lens made of two spherical caps. If the balls are apart (\(d \ge r_1 + r_2\)) there is no overlap, and if one ball lies inside the other (\(d \le |r_1 - r_2|\)) the union is simply the larger ball. Enter the two radii and the centre distance, or one radius for two equal balls.
Derivation of the formulas
$$x = \frac{d^2 + r_1^2 - r_2^2}{2d}, \qquad h_1 = r_1 - x, \quad h_2 = r_2 - (d - x), \qquad a = \sqrt{r_1^2 - x^2}$$ $$V = \tfrac{4}{3}\pi(r_1^3 + r_2^3) - \sum_{i=1}^{2}\frac{\pi h_i^2(3r_i - h_i)}{3}, \qquad S = 4\pi(r_1^2 + r_2^2) - 2\pi(r_1h_1 + r_2h_2)$$The two spheres meet in the plane at distance \(x\) from the first centre, found by subtracting the two sphere equations. The overlap is a cap of height \(h_1\) of the first ball plus a cap of height \(h_2\) of the second; it is counted twice in the two ball volumes, so it is subtracted once. The surface drops the part of each sphere that lies inside the other ball, each a cap of area \(2\pi r_i h_i\) (Archimedes).
Worked example
For \(r_1 = 5\), \(r_2 = 4\) and \(d = 6\): \(x = (36 + 25 - 16)/12 = 3.75\), so \(h_1 = 1.25\), \(h_2 = 1.75\) and the circle radius is about 3.307189. The overlap is about 55.370571, the volume about 736.310778, the surface about 431.968990 and the solid is 15 long.
Frequently asked questions
Can the centre distance be zero?
Yes. With a distance of 0 the centres coincide and the union is the larger ball. Two balls with the same centre are just the larger ball.
How precise are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. The page shows up to six decimals, and writes very small values out in full.
Which input values are accepted?
Enter each length as 0 or from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000, and each volume from 0.000000000000000001 to 1,000,000,000,000,000,000,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd edition, 2018
I. N. Bronshtein, K. A. Semendyayev, G. Musiol, H. Mühlig, Handbook of Mathematics, 6th edition, 2015