TExcelTAD
Home › Calculus in Depth › Surface Area

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 z=f(x,y)z = f(x, y) 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 SS be the graph of z=f(x,y)z = f(x, y) over a region DD, with fxf_x and fyf_y continuous. Divide DD into small rectangles RijR_{ij} of size Δx×Δy\Delta x \times \Delta y. Above the corner (xi,yj)(x_i, y_j) of RijR_{ij} sits the point PP on SS, and the tangent plane at PP is a good approximation of SS over RijR_{ij}.

The patch of the tangent plane above RijR_{ij} is a parallelogram spanned by the two vectors obtained by moving Δx\Delta x in xx and Δy\Delta y in yy along the plane:

a=⟨Δx,0,fx Δx⟩=Δx⋅⟨1,0,fx⟩b=⟨0,Δy,fy Δy⟩=Δy⋅⟨0,1,fy⟩\begin{aligned} \mathbf{a} &= \langle \Delta x, 0, f_x\,\Delta x \rangle = \Delta x \cdot \langle 1, 0, f_x \rangle \\ \mathbf{b} &= \langle 0, \Delta y, f_y\,\Delta y \rangle = \Delta y \cdot \langle 0, 1, f_y \rangle \end{aligned}

The area of a parallelogram is the length of the cross product:

⟨1,0,fx⟩×⟨0,1,fy⟩=⟨−fx,−fy,1⟩∥a×b∥=fx2+fy2+1⋅Δx Δy\begin{aligned} \langle 1, 0, f_x \rangle \times \langle 0, 1, f_y \rangle &= \langle -f_x, -f_y, 1 \rangle \\ \lVert \mathbf{a} \times \mathbf{b} \rVert &= \sqrt{f_x^2 + f_y^2 + 1} \cdot \Delta x\,\Delta y \end{aligned}

Summing over all rectangles gives a Riemann sum, and letting the mesh shrink gives the surface area

A(S)=∬D1+fx2+fy2 dAA(S) = \iint_D \sqrt{1 + f_x^2 + f_y^2}\,dA

The integrand is ≥1\ge 1, with equality exactly where the surface is horizontal: a tilted patch always has more area than its shadow. The factor 1+fx2+fy2=1cos⁡γ\sqrt{1 + f_x^2 + f_y^2} = \frac{1}{\cos\gamma}, where γ\gamma is the angle between the surface normal ⟨−fx,−fy,1⟩\langle -f_x, -f_y, 1 \rangle and the zz-axis.

Note: For a curve y=f(x)y = f(x), the analogue is arc length ∫1+f′2 dx\int \sqrt{1 + f'^2}\,dx. Surface area is the same idea one dimension up, with the slope replaced by the gradient: 1+∥∇f∥2\sqrt{1 + \lVert \nabla f \rVert^2}.

Example: a tilted plane

The part of the plane z=3−x−2yz = 3 - x - 2y above the unit square [0,1]×[0,1][0, 1] \times [0, 1]: fx=−1f_x = -1, fy=−2f_y = -2, so the integrand is the constant 1+1+4=6\sqrt{1 + 1 + 4} = \sqrt{6} and the area is 6≈2.449\sqrt{6} \approx 2.449 times the area of the square. For a plane, the area of any piece is its shadow's area divided by cos⁡γ\cos\gamma.

Example: a paraboloid cap

Find the area of the part of z=x2+y2z = x^2 + y^2 below the plane z=4z = 4. The shadow DD is the disk x2+y2≤4x^2 + y^2 \le 4, and fx=2xf_x = 2x, fy=2yf_y = 2y:

A=∬D1+4x2+4y2 dAA = \iint_D \sqrt{1 + 4x^2 + 4y^2}\,dA

The integrand depends only on r2=x2+y2r^2 = x^2 + y^2, so switch to polar coordinates (dA=r dr dθdA = r\,dr\,d\theta):

A=∫02π∫021+4r2 r dr dθ=2π⋅[112(1+4r2)3/2]02=π6(173/2−1)≈36.18\begin{aligned} A &= \int_0^{2\pi} \int_0^2 \sqrt{1 + 4r^2}\,r\,dr\,d\theta \\ &= 2\pi \cdot \left[ \tfrac{1}{12} (1 + 4r^2)^{3/2} \right]_0^2 \\ &= \frac{\pi}{6} \left(17^{3/2} - 1\right) \\ &\approx 36.18 \end{aligned}
python · try it yourself
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 2r=42r = 4 there).

Example: a hemisphere, and an improper integral

The upper hemisphere z=a2−x2−y2z = \sqrt{a^2 - x^2 - y^2} has fx=−x/zf_x = -x/z, fy=−y/zf_y = -y/z, so

1+fx2+fy2=z2+x2+y2z2=a2a2−r2A=∫02π∫0aara2−r2 dr dθ=2πa[−a2−r2]0a=2πa2\begin{aligned} 1 + f_x^2 + f_y^2 &= \frac{z^2 + x^2 + y^2}{z^2} = \frac{a^2}{a^2 - r^2} \\ A &= \int_0^{2\pi} \int_0^a \frac{a r}{\sqrt{a^2 - r^2}}\,dr\,d\theta = 2\pi a \left[-\sqrt{a^2 - r^2}\right]_0^a = 2\pi a^2 \end{aligned}

The integrand blows up at the rim r=ar = a (the surface becomes vertical), so this is an improper integral, but it converges, giving half of the sphere's 4πa24\pi a^2. 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 AA, BB, CC is 12∥(B−A)×(C−A)∥\frac{1}{2} \lVert (B - A) \times (C - A) \rVert, 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.

python · try it yourself
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 2x+2y+z=82x + 2y + z = 8 that lies in the first octant.

Answer
Solution
z=8−2x−2y,fx=fy=−2,1+4+4=3shadow: triangle x,y≥0, x+y≤4, area 12⋅4⋅4=8A=3⋅8=24\begin{aligned} &z = 8 - 2x - 2y, \quad f_x = f_y = -2, \quad \sqrt{1 + 4 + 4} = 3 \\ &\text{shadow: triangle } x, y \ge 0,\ x + y \le 4, \text{ area } \tfrac{1}{2} \cdot 4 \cdot 4 = 8 \\ &A = 3 \cdot 8 = 24 \end{aligned}

Exercise 2: A cylinder roof

Find the area of the part of the surface z=y2z = y^2 over the rectangle 0≤x≤30 \le x \le 3, 0≤y≤10 \le y \le 1.

Answer

3⋅[52+ln⁡(2+5)4]=352+34⋅asinh⁡2≈4.43683 \cdot \left[\frac{\sqrt{5}}{2} + \frac{\ln(2 + \sqrt{5})}{4}\right] = \frac{3\sqrt{5}}{2} + \frac{3}{4} \cdot \operatorname{asinh} 2 \approx 4.4368.

Solution
fx=0,fy=2yA=∫03∫011+4y2 dy dx=3∫011+4y2 dy∫011+4y2 dy=[y21+4y2+14ln⁡(2y+1+4y2)]01∫011+4y2 dy=52+ln⁡(2+5)4≈1.11803+0.36091=1.47894A=3⋅1.47894≈4.4368\begin{aligned} &f_x = 0, \quad f_y = 2y \\ &A = \int_0^3 \int_0^1 \sqrt{1 + 4y^2}\,dy\,dx = 3 \int_0^1 \sqrt{1 + 4y^2}\,dy \\ &\int_0^1 \sqrt{1 + 4y^2}\,dy = \left[ \frac{y}{2}\sqrt{1 + 4y^2} + \frac{1}{4} \ln\left(2y + \sqrt{1 + 4y^2}\right) \right]_0^1 \\ &\phantom{\int_0^1 \sqrt{1 + 4y^2}\,dy} = \frac{\sqrt{5}}{2} + \frac{\ln(2 + \sqrt{5})}{4} \approx 1.11803 + 0.36091 = 1.47894 \\ &A = 3 \cdot 1.47894 \approx 4.4368 \end{aligned}
python · try it yourself
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 z=x2+y2z = x^2 + y^2, compare the surface area above the unit disk r≤1r \le 1 with the area above the ring 1≤r≤21 \le r \le 2. 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 2r2r between 2 and 4, against 0 to 2 over the disk). Areas ≈5.330\approx 5.330 (disk) and ≈30.847\approx 30.847 (ring), a ratio of about 5.8.

Solution
inner:2π⋅112(53/2−1)=π6(55−1)≈5.330outer:π6(1717−1)−5.330≈36.177−5.330=30.847\begin{aligned} &\text{inner:} && 2\pi \cdot \tfrac{1}{12} \left(5^{3/2} - 1\right) = \frac{\pi}{6} (5\sqrt{5} - 1) \approx 5.330 \\ &\text{outer:} && \frac{\pi}{6} (17\sqrt{17} - 1) - 5.330 \approx 36.177 - 5.330 = 30.847 \end{aligned}

Exercise 4: Triangle areas (code)

Compute the surface area of the regular tetrahedron with vertices (1,1,1)(1, 1, 1), (1,−1,−1)(1, -1, -1), (−1,1,−1)(-1, 1, -1), (−1,−1,1)(-1, -1, 1) by summing triangle areas with cross products, and compare with 3⋅s2\sqrt{3} \cdot s^2 where ss is the edge length.

Answer

Edge s=22s = 2\sqrt{2}, so the area is 3⋅8≈13.8564\sqrt{3} \cdot 8 \approx 13.8564.

Solution
python · try it yourself
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 1+fx2+fy2\sqrt{1 + f_x^2 + f_y^2} equals 1 exactly where…

  1. f=0f = 0
  2. the tangent plane is horizontal
  3. the surface is vertical
  4. fx=fyf_x = f_y

Where does the factor 1+fx2+fy2 dA\sqrt{1 + f_x^2 + f_y^2}\,dA come from?

  1. The length of the cross product of the two tangent vectors ⟨1,0,fx⟩\langle 1, 0, f_x \rangle and ⟨0,1,fy⟩\langle 0, 1, f_y \rangle
  2. The Jacobian of polar coordinates
  3. The arc length of the boundary
  4. The dot product of the gradient with itself

The plane z=2x+2y+5z = 2x + 2y + 5 lies over a region DD of area 10. What is the area of that piece of the plane?

  1. 10
  2. 30
  3. 8⋅10\sqrt{8} \cdot 10
  4. 5⋅10\sqrt{5} \cdot 10