Mathwords logoMathwords

Tangent Spheres — Definition, Formula & Example

Tangent spheres are spheres that touch at exactly one point without crossing into each other's surfaces. A sphere can also be tangent to a plane, like a ball resting on a flat floor.

Two distinct spheres in R3\mathbb{R}^3 with centers C1,C2C_1, C_2 and radii r1,r2r_1, r_2 are tangent when their intersection is a single point. This happens exactly when ∣C1C2∣=r1+r2|C_1C_2| = r_1 + r_2 (externally tangent) or ∣C1C2∣=∣r1−r2∣>0|C_1C_2| = |r_1 - r_2| > 0 (internally tangent). The point of tangency lies on line C1C2C_1C_2, and both spheres share the same tangent plane there. A sphere with center CC and radius rr is tangent to a plane Π\Pi when the perpendicular distance from CC to Π\Pi equals rr.

Key Formula

d=r1+r2  (external),d=∣r1−r2∣  (internal),P=C1+r1r1+r2 (C2−C1)d = r_1 + r_2 \;\text{(external)}, \qquad d = |r_1 - r_2| \;\text{(internal)}, \qquad P = C_1 + \frac{r_1}{r_1 + r_2}\,(C_2 - C_1)
Where:
  • dd = Distance between the two centers
  • r1,r2r_1, r_2 = Radii of the two spheres
  • C1,C2C_1, C_2 = Centers of the two spheres, as points in 3D
  • PP = Point of tangency for externally tangent spheres

Worked Example

Problem: Two balls rest on a flat floor, modeled as the plane z=0z = 0 with lengths in inches. Ball A has center (0,0,3)(0, 0, 3) and radius 3 in. Ball B has center (6,6,6)(6, 6, 6) and radius 6 in. Show that both balls are tangent to the floor and to each other, and find the point where the balls touch.
Step 1: Check tangency to the floor. The distance from a center to the plane z=0z = 0 is its zz-coordinate. Each one equals that ball's radius, so both balls are tangent to the floor.
A: 3=rA,B: 6=rB\text{A: } 3 = r_A, \qquad \text{B: } 6 = r_B
Step 2: Find the distance between the centers in 3D and compare it with the sum of the radii.
d=62+62+32=81=9=3+6d = \sqrt{6^2 + 6^2 + 3^2} = \sqrt{81} = 9 = 3 + 6
Step 3: Since d=rA+rBd = r_A + r_B, the balls are externally tangent. The contact point is one-third of the way from A's center to B's center, because rA/(rA+rB)=3/9r_A/(r_A + r_B) = 3/9.
P=(0,0,3)+13(6,6,3)=(2,2,4)P = (0, 0, 3) + \tfrac{1}{3}(6, 6, 3) = (2, 2, 4)
Answer: Both balls touch the floor, and the balls are externally tangent to each other at the point (2,2,4)(2, 2, 4), which is 4 inches above the floor.

Why It Matters

Tangency tests between spheres drive collision detection in video game and robotics engines. Bounding spheres touch exactly when the center distance equals the sum of the radii. The same condition underlies sphere-packing problems, such as stacking oranges or modeling atoms as touching spheres in chemistry.

Common Mistakes

Mistake: Calling two spheres tangent whenever they meet, even when ∣r1−r2∣<d<r1+r2|r_1 - r_2| < d < r_1 + r_2.
Correction: In that range the spheres cross and meet along a whole circle, not at one point. Tangency requires dd to equal exactly r1+r2r_1 + r_2 or ∣r1−r2∣|r_1 - r_2|.

Related Terms