TOPICS
Search

Cone-Sphere Intersection


ConeSphereIntersection
ConeSphereIntersectionCurv

A cone-sphere intersection is the common locus of a cone and a sphere. Let a cone of opening parameter c>0 and vertex at (0,0,0) intersect a sphere of radius r centered at (x_0,y_0,z_0), with the cone oriented such that its axis does not pass through the center of the sphere. Then the equations of the curve of intersection are

(x^2+y^2)/(c^2)=z^2
(1)
(x-x_0)^2+(y-y_0)^2+(z-z_0)^2=r^2.
(2)

On the upper nappe z>=0, combining (1) and (2) gives

 (x-x_0)^2+(y-y_0)^2+(x^2+y^2)/(c^2)-(2z_0)/csqrt(x^2+y^2)+z_0^2=r^2
(3)
 x^2(1+1/(c^2))-2x_0x+y^2(1+1/(c^2))-2y_0y+(x_0^2+y_0^2+z_0^2-r^2)-(2z_0)/csqrt(x^2+y^2)=0.
(4)

Squaring to eliminate the remaining square root gives a quartic equation in x and y; its solutions must still satisfy the unsquared equation and the chosen nappe restriction.

An alternative parameterization follows by rotating about the z-axis until the center of the sphere is (x_0,0,z_0), with x_0>0. Subtracting the two surface equations gives

 f(z)=((1+c^2)z^2-2z_0z+x_0^2+z_0^2-r^2)/(2x_0),
(5)

and the intersection of the double cone and sphere is

x=f(z)
(6)
y=+/-sqrt(c^2z^2-[f(z)]^2),
(7)

for real z with c^2z^2-[f(z)]^2>=0. A single nappe imposes its corresponding sign restriction on z. The quadratic expression for x does not make this space curve a conic section.

If the cone-sphere intersection is on-axis so that a cone of opening parameter c and vertex at (0,0,z_0) is oriented with its axis along a radial of the sphere of radius r centered at (0,0,0), then the equations of the curve of intersection are

(z-z_0)^2=(x^2+y^2)/(c^2)
(8)
x^2+y^2+z^2=r^2.
(9)

Combining (8) and (9) gives

 c^2(z-z_0)^2+z^2=r^2
(10)
 c^2(z^2-2z_0z+z_0^2)+z^2=r^2
(11)
 z^2(c^2+1)-2c^2z_0z+(z_0^2c^2-r^2)=0.
(12)

Using the quadratic equation gives

z=(2c^2z_0+/-sqrt(4c^4z_0^2-4(c^2+1)(z_0^2c^2-r^2)))/(2(c^2+1))
(13)
=(c^2z_0+/-sqrt(c^2(r^2-z_0^2)+r^2))/(c^2+1).
(14)

Each distinct real value of z gives a circle in a plane perpendicular to the axis, with radius

 a=sqrt(r^2-z^2).
(15)

A zero radius gives a single point. Thus the double cone can intersect the sphere in two circles lying in different planes; a single nappe retains only the admissible values of z (for example, z>=z_0 for the upper nappe). When the discriminant is negative, the intersection is empty.

Viviani's curve is a special cone-sphere intersection. For a>0, it is the intersection of

(x-2a)^2+y^2=z^2
(16)
x^2+y^2+z^2=4a^2.
(17)

Eliminating z^2 gives x^2+y^2=2ax, the defining cylinder of Viviani's curve (Ferréol). Here the cone has vertex (2a,0,0) and an axis parallel to the z-axis.


See also

Cone, Sphere

Explore with Wolfram|Alpha

References

Ferréol, R. "Viviani's Curve." MathCurve. https://mathcurve.com/courbes3d.gb/viviani/viviani.shtml.Kenison, E. and Bradley, H. C. Descriptive Geometry. New York: Macmillan, pp. 282-283, 1935.

Referenced on Wolfram|Alpha

Cone-Sphere Intersection

Cite this as:

Weisstein, Eric W. "Cone-Sphere Intersection." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Cone-SphereIntersection.html

Subject classifications