Calculus 3 • Vectors & 3D Geometry

Spheres, Ellipsoids & Level Surfaces — Spheres and Ellipsoids; Level Surfaces

Extending conic sections into three dimensions to classify quadric surfaces and visualize multivariable functions.

Three-dimensional axes with spatial movement and a multivariable function.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of curved surfaces in three-dimensional space has roots stretching back over two millennia, beginning with the ancient Greeks' fascination with perfect geometric forms. Spheres were among the first surfaces studied rigorously — Euclid discussed them in Elements, and Archimedes derived formulas for their volume and surface area that remain cornerstones of geometry today. The transition from two-dimensional conic sections (circles, ellipses, parabolas, hyperbolas) to their three-dimensional counterparts — quadric surfaces — required the invention of coordinate geometry and, eventually, the language of multivariable calculus.

The concept of a level surface emerged much later, as mathematicians and physicists sought ways to visualize functions of three variables. Just as a contour map represents elevation on a two-dimensional plot, level surfaces capture the loci where a scalar field takes a constant value. This idea became indispensable in thermodynamics, electromagnetism, and fluid dynamics, where quantities such as temperature, electric potential, and pressure are naturally defined throughout three-dimensional space.

~300 BCE • Euclid & Archimedes

Euclid defines the sphere as a surface of revolution in Elements. Archimedes derives V = (4/3)πr³ and A = 4πr², establishing the sphere as the most symmetric closed surface.

1637 • Descartes' Coordinate Geometry

René Descartes publishes La Géométrie, introducing algebraic equations for curves and laying the groundwork for representing surfaces as equations in x, y, and z.

1748 • Euler's Classification of Quadric Surfaces

Leonhard Euler systematically classifies second-degree surfaces — ellipsoids, hyperboloids, paraboloids — using their algebraic equations, unifying conics and their 3D generalizations.

1850s • Level Sets in Physics

Physicists including William Thomson (Lord Kelvin) and James Clerk Maxwell use equipotential surfaces and isothermal surfaces as visual tools, formalizing the concept of level surfaces for scalar fields.

1900s–Present • Modern Multivariable Calculus

Level surfaces become a standard topic in multivariable calculus courses, providing geometric insight into gradients, directional derivatives, and the implicit function theorem.

The central question this lesson addresses is: How do we describe, classify, and visualize the most fundamental curved surfaces in ℝ³ — and how do level surfaces let us "see" functions of three variables?

SECTION 2

Core Principles & Definitions

Before diving into equations and examples, it is essential to establish the foundational ideas that unify spheres, ellipsoids, and level surfaces. All three concepts arise from a single thread: describing collections of points in ℝ³ that satisfy a particular algebraic or functional condition. The following principles form the conceptual backbone of this lesson.

1

The Sphere as a Locus

A sphere is the set of all points equidistant from a fixed center. In ℝ³, this distance condition yields a second-degree equation whose cross-section in any plane through the center is a circle.
2

The Ellipsoid as a Stretched Sphere

An ellipsoid generalizes the sphere by allowing different radii along three mutually perpendicular axes. When all three semi-axes are equal, the ellipsoid reduces to a sphere.
3

Level Surfaces of f(x, y, z)

Given a scalar function f : ℝ³ → ℝ, a level surface is defined by f(x, y, z) = c for a constant c. Each value of c generally produces a distinct surface, and together these surfaces foliate (fill) the domain of f.
4

Gradient Perpendicularity

The gradient ∇f is always perpendicular to the level surface f = c at every point. This principle connects the geometry of level surfaces directly to the calculus of directional derivatives and optimization.
5

Quadric Surface Classification

Spheres and ellipsoids belong to the family of quadric surfaces — surfaces defined by second-degree polynomial equations. The signs and coefficients of the quadratic terms determine which type of quadric surface the equation describes.
✦

KEY TAKEAWAY

Think of level surfaces like the layers of an onion. Each layer (surface) corresponds to a specific constant value of the function, and as you peel from the outermost layer inward, the value changes. A sphere of radius r centered at the origin is nothing more than a level surface of the distance function f(x, y, z) = x² + y² + z² at the level c = r². The gradient — which tells you the direction of steepest increase — always points outward, perpendicular to each spherical shell.

SECTION 3

Visual Explanation — Spheres & Ellipsoids in 3D

Visualizing three-dimensional surfaces on a two-dimensional page requires projecting them with care. The diagram below shows both a sphere and an ellipsoid with their principal axes, cross-sectional traces, and center points labeled. Comparing the two side by side highlights how the ellipsoid's three distinct semi-axis lengths (a, b, c) break the perfect symmetry of the sphere.

SphereEllipsoid(h, k, l)rrrAll semi-axes equal: a = b = c = r(h, k, l)acbThree distinct semi-axes: a ≠ b ≠ c
Left: a sphere with equal semi-axes r in all directions, centered at (h, k, l). Right: an ellipsoid with semi-axes a, b, and c along the x-, y-, and z-axes respectively. The dashed ellipses represent cross-sectional traces in the coordinate planes.

In the diagram above, the sphere (left) exhibits identical cross-sectional circles regardless of the slicing plane's orientation through the center. The ellipsoid (right) instead produces elliptical cross-sections whose shapes depend on the slicing direction. A plane through the center parallel to the xy-plane slices the ellipsoid into an ellipse with semi-axes a and b; a plane parallel to xz produces one with semi-axes a and c, and so on. Recognizing these trace ellipses is a powerful technique for sketching quadric surfaces by hand.

SECTION 4

Mathematical Framework

We now formalize the algebraic equations that define spheres, ellipsoids, and level surfaces. Each equation is a direct translation of a geometric or functional condition into the language of coordinates.

Equation of a Sphere

STANDARD FORM — SPHERE

(x−h)2+(y−k)2+(z−l)2=r2(x − h)² + (y − k)² + (z − l)² = r²

Center: (h, k, l) ∈ ℝ³. Radius: r > 0. Every point (x, y, z) on the surface satisfies distance from center = r. Expanding yields the general form x² + y² + z² + Dx + Ey + Fz + G = 0, where completing the square recovers the center and radius.

Equation of an Ellipsoid

STANDARD FORM — ELLIPSOID

((x−h)/a)2+((y−k)/b)2+((z−l)/c)2=1((x − h)/a)² + ((y − k)/b)² + ((z − l)/c)² = 1

Center: (h, k, l). Semi-axes: a, b, c > 0 along the x-, y-, z-directions. When a = b = c = r, this reduces to the sphere equation (divided by r²). The surface is bounded: x ∈ [h − a, h + a], y ∈ [k − b, k + b], z ∈ [l − c, l + c].

Level Surfaces

LEVEL SURFACE DEFINITION

Sc=(x,y,z)∈R3:f(x,y,z)=cS_c = { (x, y, z) ∈ ℝ³ : f(x, y, z) = c }

For a scalar-valued function f : ℝ³ → ℝ and a constant c ∈ ℝ, the level surface Sc is the set of all points where f equals c. For example, if f(x, y, z) = x² + y² + z², then Sc is a sphere of radius √c (for c > 0).

GRADIENT — NORMAL TO LEVEL SURFACE

∇f=(∂f/∂x,∂f/∂y,∂f/∂z)⊥ScateverypointofSc∇f = (∂f/∂x, ∂f/∂y, ∂f/∂z) ⊥ S_c at every point of S_c

The gradient vector is always orthogonal to the level surface passing through that point. Its magnitude |∇f| measures how rapidly f changes in the direction normal to the surface; thus closely spaced level surfaces indicate a steep gradient.

💡

Completing the Square in 3D

Given the general second-degree equation x² + y² + z² + Dx + Ey + Fz + G = 0, group each variable and complete the square: (x + D/2)² + (y + E/2)² + (z + F/2)² = D²/4 + E²/4 + F²/4 − G. This expression represents a sphere only when the right-hand side is strictly positive; if it equals zero, the "sphere" degenerates to a single point, and if it is negative, no real surface exists.

SECTION 5

Detailed Breakdown — Families of Level Surfaces

A single function f(x, y, z) generates an entire family of level surfaces as the constant c varies. The geometry of these surfaces can change dramatically with c, and classifying them provides deep insight into the function's behavior. This section catalogs several important examples and provides a second diagram showing nested level surfaces.

Function f(x, y, z)Level Surface f = cShape & Notes
x² + y² + z²x² + y² + z² = cConcentric spheres of radius √c for c > 0. Empty for c < 0; origin for c = 0.
x²/4 + y²/9 + z²x²/4 + y²/9 + z² = cConcentric ellipsoids with semi-axes 2√c, 3√c, √c for c > 0.
x² + y² − z²x² + y² − z² = cHyperboloid of one sheet (c > 0), cone (c = 0), hyperboloid of two sheets (c < 0).
x² + y²x² + y² = cCircular cylinders of radius √c for c > 0 (independent of z).
z − x² − y²z = x² + y² + cFamily of paraboloids opening upward, shifted vertically by c.

Common functions and their families of level surfaces

Nested Level Surfaces: f(x, y, z) = x²/a² + y²/b² + z²/c²Centerc = 9(outermost)c = 4c = 1z-axisx-axisy-axis∇f points radially outward, perpendicular to each ellipsoidal shell
Three nested ellipsoidal level surfaces for f(x, y, z) = x²/a² + y²/b² + z²/c² at levels c = 1 (innermost, pink), c = 4 (middle, violet), and c = 9 (outermost, cyan). The gradient ∇f points radially outward from the center, perpendicular to every level surface it crosses.

The diagram illustrates how level surfaces of an ellipsoidal function nest inside one another like Russian dolls. As c increases, the ellipsoids expand outward while maintaining the same shape ratios determined by a, b, and c. The gradient vector at any point on a level surface points in the direction of increasing f — directly toward the next higher-valued surface. The spacing between adjacent level surfaces encodes the magnitude of the gradient: closely packed surfaces signal a rapidly changing function.

SECTION 6

Worked Example

Let us work through a problem that combines sphere identification, ellipsoid analysis, and level surface interpretation.

Identifying and Analyzing a Quadric Surface

  1. 1

    Step 1 — State the Problem

    Consider the equation 4x² + 4y² + 4z² − 8x + 16y − 24z + 36 = 0. Determine whether this equation represents a sphere. If so, find its center and radius. Then describe the level surfaces of the function g(x, y, z) = (x − 1)² + (y + 2)² + (z − 3)².
  2. 2

    Step 2 — Simplify the Equation

    Divide the entire equation by 4 to obtain: x² + y² + z² − 2x + 4y − 6z + 9 = 0. This eliminates the leading coefficient and produces a monic equation suitable for completing the square.
    x² + y² + z² − 2x + 4y − 6z + 9 = 0
  3. 3

    Step 3 — Complete the Square

    Group by variable: (x² − 2x) + (y² + 4y) + (z² − 6z) = −9. Complete each square: (x² − 2x + 1) + (y² + 4y + 4) + (z² − 6z + 9) = −9 + 1 + 4 + 9. This simplifies to (x − 1)² + (y + 2)² + (z − 3)² = 5.
    (x − 1)² + (y + 2)² + (z − 3)² = 5
  4. 4

    Step 4 — Identify the Sphere

    The equation (x − 1)² + (y + 2)² + (z − 3)² = 5 matches the standard form (x − h)² + (y − k)² + (z − l)² = r². The center is (h, k, l) = (1, −2, 3), and the radius is r = √5 ≈ 2.236.
    Center: (1, −2, 3), Radius: √5
  5. 5

    Step 5 — Describe the Level Surfaces of g

    Since g(x, y, z) = (x − 1)² + (y + 2)² + (z − 3)², the level surfaces g = c are given by (x − 1)² + (y + 2)² + (z − 3)² = c. For c > 0, each level surface is a sphere centered at (1, −2, 3) with radius √c. For c = 0, the "surface" degenerates to the single point (1, −2, 3). For c < 0, no points satisfy the equation, so the level set is empty. The original sphere in the problem corresponds to the specific level surface g = 5.
    Level surfaces of g: concentric spheres centered at (1, −2, 3) with radii √c for c > 0

SECTION 7

Comparing Spheres, Ellipsoids & Other Quadric Surfaces

Spheres and ellipsoids are just two members of the larger quadric surface family. Understanding their relationship to other quadric surfaces — and the strengths and limitations of each representation — provides a richer geometric vocabulary for multivariable calculus.

PropertySphereEllipsoidHyperboloid (1 sheet)
BoundednessBounded (closed surface)Bounded (closed surface)Unbounded (extends to infinity)
SymmetryFull rotational symmetry about any axis through centerThree planes of reflective symmetryOne axis of rotational symmetry, two planes of reflection
Cross-sectionsCircles in every plane through centerEllipses in coordinate planes through centerEllipses (horizontal), hyperbolas (vertical)
Parameters1 (radius r)3 (semi-axes a, b, c)3 (semi-axes a, b, c)
Equation sign pattern+ + + = r²+ + + = 1+ + − = 1

Comparison of three fundamental quadric surfaces

✦

KEY TAKEAWAY

The sign pattern of the squared terms is the fingerprint of a quadric surface. All three positive → ellipsoid (or sphere). Two positive, one negative → hyperboloid of one sheet. One positive, two negative → hyperboloid of two sheets. Memorizing these sign patterns is analogous to how an engineer reads a circuit schematic — the signs tell you the "topology" of the surface before you ever sketch it.

SECTION 8

Connections to Advanced Theory

The ideas explored in this lesson serve as launching points for several advanced topics in multivariable calculus, differential geometry, and applied mathematics. Understanding how spheres, ellipsoids, and level surfaces interact with gradients and tangent planes will prove essential as you move forward.

This Lesson's TopicAdvanced Extension
Level surfaces f(x, y, z) = cImplicit differentiation in 3D; the Implicit Function Theorem guarantees when a level surface is locally a graph z = g(x, y).
∇f ⊥ level surfaceTangent plane equation: ∇f · (r − r₀) = 0. This directly yields the equation of the tangent plane at any point on the surface.
Quadric surface classificationEigenvalue analysis of the associated matrix A in x⃗ᵀAx⃗ = 1. Principal axis theorem and rotations to eliminate cross-terms.
Concentric level surfacesLagrange multipliers: optimizing a function h(x, y, z) subject to a constraint f(x, y, z) = c is geometrically finding where level surfaces of h are tangent to a level surface of f.
Sphere parameterizationSpherical coordinates (ρ, θ, φ); surface integrals over spheres; flux integrals and the Divergence Theorem.

How this lesson connects to advanced calculus topics

Perhaps the most powerful connection is to Lagrange multipliers. When you optimize f(x, y, z) subject to a constraint g(x, y, z) = c, you are geometrically seeking points where a level surface of f just grazes (is tangent to) the level surface g = c. At such points, ∇f = λ∇g — the two gradient vectors are parallel. Without the geometric intuition of level surfaces developed in this lesson, Lagrange's method can seem like an algebraic trick; with it, the method becomes a beautiful exercise in surface geometry.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why every sphere centered at the origin can be viewed as a level surface of some function f(x, y, z). What is the function, and what is the corresponding constant c?
Show answer
The function f(x, y, z) = x² + y² + z² measures the square of the distance from the origin to any point in space. A sphere of radius r centered at the origin is the set of all points at distance r from the origin, which is precisely the level surface f(x, y, z) = r². Thus every such sphere is the level set f = c where c = r². This perspective also reveals why the gradient ∇f = (2x, 2y, 2z) always points radially outward — perpendicular to the sphere — since f increases in the direction away from the center.

Question 2: BASIC CALCULATION

Rewrite the equation x² + y² + z² + 6x − 4y + 2z + 5 = 0 in standard form by completing the square. Identify the center and radius of the sphere.
Show answer
Group and complete the square for each variable: (x² + 6x + 9) + (y² − 4y + 4) + (z² + 2z + 1) = −5 + 9 + 4 + 1, yielding (x + 3)² + (y − 2)² + (z + 1)² = 9. The center is (−3, 2, −1) and the radius is r = √9 = 3. The constants added to each group (9, 4, and 1) are the squares of half the linear coefficients (3², 2², 1²), which must be added to both sides to preserve equality.

Question 3: INTERMEDIATE

Describe the level surfaces of f(x, y, z) = x²/4 + y²/9 + z² for various values of c. What happens at c = 0, c = 1, and c = 4? Sketch or describe the traces in the xy-plane for c = 1.
Show answer
For c > 0, the level surface f = c is the ellipsoid x²/(4c) + y²/(9c) + z²/c = 1 with semi-axes a = 2√c, b = 3√c, c₃ = √c. At c = 1 the semi-axes are (2, 3, 1); at c = 4 they are (4, 6, 2), an ellipsoid of the same shape but scaled by a factor of 2. At c = 0 the only solution is the origin (0, 0, 0), a degenerate point. For c < 0, no real points satisfy the equation, so the level set is empty. The trace in the xy-plane (z = 0) for c = 1 is the ellipse x²/4 + y²/9 = 1 with semi-axes 2 and 3 along x and y respectively.

Question 4: APPLIED

The temperature distribution in a region of space is modeled by T(x, y, z) = 100 − 2x² − 3y² − 5z². Find the equation of the isothermal surface (level surface of T) corresponding to T = 50. What shape is this surface, and what are its semi-axes? In which direction does the temperature decrease most rapidly at the point (1, 2, 1)?
Show answer
Setting T = 50: 100 − 2x² − 3y² − 5z² = 50, so 2x² + 3y² + 5z² = 50, equivalently x²/25 + y²/(50/3) + z²/10 = 1. This is an ellipsoid centered at the origin with semi-axes a = 5, b = √(50/3) ≈ 4.08, c = √10 ≈ 3.16. To find the direction of most rapid decrease, compute −∇T. We have ∇T = (−4x, −6y, −10z); at (1, 2, 1), ∇T = (−4, −12, −10). The direction of most rapid decrease is therefore (4, 12, 10), or the unit vector (4, 12, 10)/√(16 + 144 + 100) = (4, 12, 10)/√260. The rate of decrease is |∇T| = √260 ≈ 16.12 degrees per unit distance.

Question 5: CRITICAL THINKING

Let f(x, y, z) = x² + y² − z². Describe how the topology of the level surfaces f = c changes as c passes through zero. Explain why the level surface at c = 0 is qualitatively different from those at c > 0 and c < 0, and relate this to the behavior of ∇f on that surface.
Show answer
For c > 0, the level surface x² + y² − z² = c is a hyperboloid of one sheet — a connected surface that wraps around the z-axis, with circular cross-sections in horizontal planes and hyperbolic cross-sections in vertical planes. For c < 0, the level surface is a hyperboloid of two sheets, consisting of two disconnected components, one above and one below the xy-plane. At c = 0, the equation x² + y² = z² defines a circular cone with vertex at the origin. This surface is qualitatively different because it is singular at the origin: ∇f = (2x, 2y, −2z) = (0, 0, 0) there, meaning the gradient vanishes. The Implicit Function Theorem fails at this point, and the surface is not smooth — it has a vertex or "pinch point." This critical value c = 0 separates two topologically distinct regimes (connected vs. disconnected) and corresponds to the value of f at the saddle-type critical point of the function restricted to any vertical plane through the z-axis.

SUMMARY

Lesson Summary

Summary

This lesson established the equations and geometric intuition for the most fundamental closed surfaces in three-dimensional space. A sphere is defined by (x − h)² + (y − k)² + (z − l)² = r², encoding the condition that every surface point lies at distance r from the center (h, k, l). An ellipsoid generalizes this by introducing three independent semi-axes a, b, c, replacing the single radius and producing the equation ((x − h)/a)² + ((y − k)/b)² + ((z − l)/c)² = 1. Completing the square is the essential algebraic technique for converting a general second-degree equation into standard form, revealing the center, semi-axes, and whether the equation represents a real surface.

A level surface of a function f(x, y, z) is the set of all points satisfying f = c for a constant c, analogous to a contour line on a topographic map but now a full surface in ℝ³. Both spheres and ellipsoids arise naturally as level surfaces of simple quadratic functions. The gradient ∇f is always perpendicular to the level surface at every point, pointing in the direction of steepest increase. This orthogonality principle links the geometry of level surfaces to tangent planes, optimization via Lagrange multipliers, and the broader framework of differential geometry in higher dimensions.

Varsity Tutors • Calculus 3 • Spheres, Ellipsoids & Level Surfaces