Surface Area
How much paint does a curved roof need? A double integral answers it: chop the surface into tiny patches, replace each patch by a piece of its tangent plane, and add up the areas of those flat pieces. This lesson derives the surface-area formula for a graph from the cross product, works examples in Cartesian and polar coordinates, and connects it to computing the area of a triangle mesh.
The survey course treats surfaces in 3D in Surfaces in 3D and multiple integrals in Double and Triple Integrals.
The one-variable version for surfaces of revolution is Area of a Surface of Revolution; the general formula for parametric surfaces comes in Parametric Surfaces and Their Areas.
Deriving the formula
Let be the graph of over a region , with and continuous. Divide into small rectangles of size . Above the corner of sits the point on , and the tangent plane at is a good approximation of over .
The patch of the tangent plane above is a parallelogram spanned by the two vectors obtained by moving in and in along the plane:
The area of a parallelogram is the length of the cross product:
Summing over all rectangles gives a Riemann sum, and letting the mesh shrink gives the surface area
The integrand is , with equality exactly where the surface is horizontal: a tilted patch always has more area than its shadow. The factor , where is the angle between the surface normal and the -axis.
Note: For a curve , the analogue is arc length . Surface area is the same idea one dimension up, with the slope replaced by the gradient: .
Example: a tilted plane
The part of the plane above the unit square : , , so the integrand is the constant and the area is times the area of the square. For a plane, the area of any piece is its shadow's area divided by .
Example: a paraboloid cap
Find the area of the part of below the plane . The shadow is the disk , and , :
The integrand depends only on , so switch to polar coordinates ():
import sympy as sp
import numpy as np
from scipy import integrate
r, th = sp.symbols("r theta", positive=True)
exact = sp.integrate(sp.sqrt(1 + 4 * r**2) * r, (r, 0, 2), (th, 0, 2 * sp.pi))
print("exact :", sp.simplify(exact), "≈", round(float(exact), 6))
# numerically in Cartesian coordinates, over the disk x^2 + y^2 <= 4
val, err = integrate.dblquad(lambda y, x: np.sqrt(1 + 4 * x**2 + 4 * y**2),
-2, 2, lambda x: -np.sqrt(4 - x**2), lambda x: np.sqrt(4 - x**2))
print("dblquad:", round(val, 6))
print("shadow area (disk):", round(4 * np.pi, 6))exact : pi*(-1 + 17*sqrt(17))/6 ≈ 36.176903
dblquad: 36.176903
shadow area (disk): 12.566371
The surface is almost three times as large as its shadow, because it is steep near the rim (slope there).
Example: a hemisphere, and an improper integral
The upper hemisphere has , , so
The integrand blows up at the rim (the surface becomes vertical), so this is an improper integral, but it converges, giving half of the sphere's . Graph formulas struggle with vertical parts; parametric surfaces handle a whole sphere without that problem.
In software: the area of a mesh
A 3D model is a triangle mesh. The area of a triangle with vertices , , is , the same cross-product formula used in the derivation. The area of a mesh is the sum over its triangles, which is exactly a Riemann sum for the surface integral of the smooth shape the mesh approximates.
import numpy as np
def mesh_area(f, n):
"""Triangulate z = f(x, y) over the disk r <= 2 on a polar grid and add triangle areas."""
rs = np.linspace(0, 2, n + 1)
ts = np.linspace(0, 2 * np.pi, 4 * n + 1)
R, T = np.meshgrid(rs, ts, indexing="ij")
X, Y = R * np.cos(T), R * np.sin(T)
P = np.stack([X, Y, f(X, Y)], axis=-1)
a, b, c, d = P[:-1, :-1], P[1:, :-1], P[1:, 1:], P[:-1, 1:]
t1 = 0.5 * np.linalg.norm(np.cross(b - a, c - a), axis=-1)
t2 = 0.5 * np.linalg.norm(np.cross(c - a, d - a), axis=-1)
return float(t1.sum() + t2.sum())
f = lambda x, y: x**2 + y**2
exact = np.pi / 6 * (17**1.5 - 1)
for n in [4, 16, 64]:
A = mesh_area(f, n)
print(f"n={n:3d} triangles={2 * n * 4 * n:6d} area={A:.5f} error={exact - A:.5f}")n= 4 triangles= 128 area=35.38840 error=0.78850
n= 16 triangles= 2048 area=36.12781 error=0.04910
n= 64 triangles= 32768 area=36.17384 error=0.00307
The mesh always under-estimates a convex surface like this one (chords are shorter than arcs), and the error falls by about 16 each time the grid is refined by 4 in each direction: second-order convergence.
Where this shows up:
- Graphics and games. Mesh area weights random sampling of points on a surface (pick a triangle with probability proportional to its area), used for particle emitters, scattering foliage and area lights.
- Physics. Drag, pressure forces and heat loss are proportional to surface area; cloth simulations conserve triangle areas.
- Geometry processing. Area-weighted vertex normals and the cotangent Laplacian are built from these triangle areas.
Exercises
Exercise 1: A plane piece
Find the area of the part of the plane that lies in the first octant.
Answer
Solution
Exercise 2: A cylinder roof
Find the area of the part of the surface over the rectangle , .
Answer
.
Solution
import sympy as sp
y = sp.symbols("y")
A = 3 * sp.integrate(sp.sqrt(1 + 4 * y**2), (y, 0, 1))
print(sp.simplify(A), round(float(A), 4)) # SymPy writes ln(2 + √5) as asinh(2)3*asinh(2)/4 + 3*sqrt(5)/2 4.4368
Exercise 3: Which is larger?
For , compare the surface area above the unit disk with the area above the ring . The ring's shadow is 3 times as large as the disk's; is the ring's surface area more or less than 3 times the disk's? Explain, then compute both.
Answer
More than 3 times: the ring is also steeper (slope between 2 and 4, against 0 to 2 over the disk). Areas (disk) and (ring), a ratio of about 5.8.
Solution
Exercise 4: Triangle areas (code)
Compute the surface area of the regular tetrahedron with vertices , , , by summing triangle areas with cross products, and compare with where is the edge length.
Answer
Edge , so the area is .
Solution
import numpy as np
from itertools import combinations
V = np.array([[1, 1, 1], [1, -1, -1], [-1, 1, -1], [-1, -1, 1]], dtype=float)
area = sum(0.5 * np.linalg.norm(np.cross(V[j] - V[i], V[k] - V[i])) for i, j, k in combinations(range(4), 3))
s = np.linalg.norm(V[1] - V[0])
print(round(float(area), 4), round(float(np.sqrt(3) * s**2), 4))13.8564 13.8564
Test yourself
The surface-area integrand equals 1 exactly where…
- the tangent plane is horizontal
- the surface is vertical
Where does the factor come from?
- The length of the cross product of the two tangent vectors and
- The Jacobian of polar coordinates
- The arc length of the boundary
- The dot product of the gradient with itself
The plane lies over a region of area 10. What is the area of that piece of the plane?
- 10
- 30