Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In the theory of
analytic geometry for real three-dimensional space, the intersection
between two spheres can be a circle, a point, the empty set, or a sphere
(only if the two spheres are identical). For the analysis of this
situation, assume (without loss of generality) that one sphere (with
radius R) is centered at the origin. Points on this sphere satisfy x2 +
y2 + z2 = R2. Also without loss of generality, we assume that the second
sphere, with radius r, is centered at a point on the positive x-axis, at
distance d from the origin. Its points satisfy (x ¿ a)2 + y2 + z2 = r2.
The intersection of the circles is the set of points satisfying both
equations. Subtracting the equations, we find begin{align} (x-a)^2 - x^2
& = r^2 - R^2 a^2 - 2ax & = r^2 - R^2 x & = frac{a^2 + R^2 -
r^2}{2a}. end{align}