MULTIVARIABLE CALCULUS • SURFACE INTEGRALS

Flux Across Surfaces — Compute flux across surfaces

Learn how to measure how much of a vector field flows through a surface in three-dimensional space.

Historical Context & Motivation

Throughout the history of physics and mathematics, scientists have needed a way to measure how much of something — whether it be water, wind, heat, or electric charge — passes through a surface. The idea of flux captures exactly this notion: the total amount of a field that flows through a given area. Early work in fluid dynamics and electromagnetism drove mathematicians to develop the tools for computing flux, and those tools eventually became the surface integral — one of the most powerful ideas in multivariable calculus.

1760s
Euler and Fluid Flow
Leonhard Euler formulated equations of fluid dynamics, introducing the concept of tracking how fluid moves through imaginary surfaces within a flow.
1813
Gauss's Law Emerges
Carl Friedrich Gauss related the electric flux through a closed surface to the charge enclosed inside, creating one of the first formal uses of surface flux in physics.
1828
Green's Theorem Published
George Green connected line integrals to area integrals in two dimensions, laying groundwork for the more general Divergence Theorem relating volume and surface integrals.
1850s
Stokes and the Divergence Theorem
George Gabriel Stokes and others formalized the Divergence Theorem, which directly involves computing flux across closed surfaces to understand the behavior of vector fields in three dimensions.
1860s
Maxwell's Equations
James Clerk Maxwell unified electricity, magnetism, and light using equations that hinge on flux computations — cementing surface integrals as essential tools in physics.

The central question that flux answers is deceptively simple: how much of a vector field passes through a surface? Whether the field represents wind velocity, electric field lines, or the flow of a river, computing flux gives you a single number that summarizes the net "throughput" across the surface. In this lesson, you will learn exactly how to set up and evaluate these calculations.

Core Principles & Definitions

Before diving into computation, you need to understand four foundational ideas that make flux calculations possible. Each one builds on ideas from earlier calculus courses — vectors, dot products, and integration — but combines them in a new three-dimensional setting.

1

Vector Field

A vector field assigns a vector (with magnitude and direction) to every point in space. For example, F(x, y, z) = ⟨x, y, z⟩ points outward from the origin at every point.
2

Oriented Surface

An oriented surface is a surface with a chosen "positive" side, defined by a unit normal vector n̂ at each point. Choosing the orientation tells you which direction counts as 'through.'
3

Normal Vector (n̂)

The unit normal vector n̂ is perpendicular to the surface at each point. Flux measures the component of the field that is parallel to n̂ — only the part of the field that actually "pierces" the surface counts.
4

The Dot Product Filter

The dot product F · n̂ extracts the component of the field perpendicular to the surface. If the field is parallel to the surface, the dot product is zero and no flux passes through.
KEY TAKEAWAY
Think of flux like holding a window screen in the wind. If you hold the screen face-on to the wind, maximum air passes through. Tilt it so the wind blows along the screen sideways, and almost nothing passes through. Turn the screen completely parallel to the wind, and the flow through it is zero. The dot product F · n̂ is the mathematical way to measure how "face-on" the field hits the surface at each point.

Visual Explanation

How a Vector Field Flows Through a Surface

The cyan arrows represent the vector field F flowing upward through the surface S (shown as the violet-cyan ellipse). The pink arrows are the unit normal vectors n̂ pointing outward. Notice how the field arrows that are more aligned with n̂ contribute more flux, while arrows at steep angles contribute less.

In the diagram above, pay attention to the relationship between the field vectors (cyan) and the normal vectors (pink). Where the field flows nearly parallel to n̂, the dot product F · n̂ is large, meaning a lot of flux passes through that part of the surface. Where the field is nearly tangent to the surface, the dot product approaches zero, contributing almost no flux. The total flux is found by summing (integrating) F · n̂ over the entire surface.

Mathematical Framework

Now let's formalize the idea of flux into equations you can actually compute. Suppose you have a vector field F = ⟨P, Q, R⟩ and an oriented surface S. The flux of F across S is defined by a surface integral.

FLUX INTEGRAL (GENERAL FORM)
Φ = ∬_S F · dS = ∬_S F · n̂ dA
Φ (capital phi) = total flux through S; F = the vector field; = unit normal to S; dA = area element on S. The double integral adds up contributions from every tiny piece of the surface.

To actually evaluate this integral, you typically parameterize the surface using two parameters, u and v. A common special case is when the surface is the graph of a function z = g(x, y), which leads to a much simpler formula.

FLUX OVER z = g(x, y), UPWARD ORIENTATION
Φ = ∬_D (−P · gₓ − Q · gᵧ + R) dA
Here D is the projection of the surface onto the xy-plane; gₓ and gᵧ are the partial derivatives of g with respect to x and y; P, Q, R are the components of F evaluated at (x, y, g(x, y)). The upward orientation means n̂ has a positive z-component.
FLUX VIA PARAMETERIZATION
Φ = ∬_D F(r(u, v)) · (rᵤ × rᵥ) dA
r(u, v) is the parameterization of S; rᵤ and rᵥ are the partial derivative vectors with respect to u and v; rᵤ × rᵥ is the cross product, which gives a vector normal to the surface whose magnitude equals the area scaling factor. This is the most general method.
⚠️ Orientation Matters!
Switching the orientation of the surface (flipping n̂ to −n̂) multiplies the flux by −1. Always check whether the problem specifies "outward," "upward," or another orientation before computing.

Step-by-Step Setup Guide

Setting up a flux integral involves several decisions. The following diagram and breakdown walk you through the process so you can approach any problem systematically.

This flowchart outlines the decision process for setting up a flux integral. After identifying F and S, choose the orientation. Then decide: if S is given as z = g(x, y), use the shortcut formula (green path). Otherwise, parameterize and use the cross product method (pink path). Both lead to a double integral to evaluate.
  1. Step 1: Clearly write out F = ⟨P, Q, R⟩ and identify the surface S and the region D it projects onto.
  2. Step 2: Determine which direction the normal vector should point (upward, outward, etc.) based on the problem statement.
  3. Step 3: If S is z = g(x, y), compute gₓ and gᵧ and plug into the shortcut formula. Otherwise, parameterize S as r(u, v) and compute rᵤ × rᵥ.
  4. Step 4: Set up the bounds of the double integral over D and evaluate using standard techniques (iterated integrals, polar coordinates, etc.).

Worked Example

Let's compute the flux of F = ⟨0, 0, z⟩ across the surface S: z = 4 − x² − y² for x² + y² ≤ 4, with upward orientation. This surface is a paraboloid capping off above the disk of radius 2.

Flux of F = ⟨0, 0, z⟩ Through a Paraboloid
1
Step 1 — Identify F, S, and gThe vector field is F = ⟨P, Q, R⟩ = ⟨0, 0, z⟩. The surface is given as z = g(x, y) = 4 − x² − y². The domain D is the disk x² + y² ≤ 4 in the xy-plane.
P = 0, Q = 0, R = z = 4 − x² − y²
2
Step 2 — Compute Partial DerivativesSince the surface is z = g(x, y) = 4 − x² − y², we compute the partial derivatives: gₓ = ∂g/∂x = −2x and gᵧ = ∂g/∂y = −2y.
gₓ = −2x, gᵧ = −2y
3
Step 3 — Apply the Shortcut FormulaFor upward orientation, Φ = ∬_D (−P·gₓ − Q·gᵧ + R) dA. Substituting: −(0)(−2x) − (0)(−2y) + (4 − x² − y²) = 4 − x² − y². So the integral simplifies to Φ = ∬_D (4 − x² − y²) dA.
Φ = ∬_D (4 − x² − y²) dA
4
Step 4 — Convert to Polar CoordinatesThe domain D is a disk of radius 2 centered at the origin. In polar coordinates, x² + y² = r², and dA = r dr dθ. The integral becomes Φ = ∫₀²π ∫₀² (4 − r²) · r dr dθ = ∫₀²π ∫₀² (4r − r³) dr dθ.
Φ = ∫₀²π ∫₀² (4r − r³) dr dθ
5
Step 5 — Evaluate the IntegralInner integral: ∫₀² (4r − r³) dr = [2r² − r⁴/4]₀² = (2·4 − 16/4) − 0 = 8 − 4 = 4. Outer integral: ∫₀²π 4 dθ = 4 × 2π = 8π.
Φ = 8π
💡 What Does Φ = 8π Mean?
The result 8π ≈ 25.13 tells us the net amount of the field F = ⟨0, 0, z⟩ flowing upward through the paraboloid. Since the field points purely in the z-direction and the surface opens downward (bowl shape), the field passes through every part of the surface in the upward direction, giving a positive flux.

Flux Integrals vs. Other Integrals

It is easy to confuse flux integrals with other types of integrals you have seen. The table below compares the flux integral (surface integral of a vector field) with the scalar surface integral and the line integral, highlighting what each one measures and how the setup differs.

Comparison of integral types in multivariable calculus
FeatureFlux (Surface) IntegralScalar Surface IntegralLine Integral of F
What it measuresNet flow of a vector field through a surface"Weighted area" of a surface using a scalar functionWork done by a vector field along a curve
IntegrandF · n̂ dA (dot product with normal)f(x, y, z) dS (scalar times area element)F · dr (dot product with tangent)
DomainA 2D surface in 3D spaceA 2D surface in 3D spaceA curve in 2D or 3D space
Orientation needed?Yes — must choose n̂ directionNoYes — must choose direction of traversal
Result can be negative?Yes — flow can oppose the chosen normalOnly if f < 0Yes — work can be negative
KEY TAKEAWAY
A flux integral is the surface-level cousin of the line integral. Just as the line integral of a force field measures work (force dotted with the direction of motion), the flux integral measures throughput (field dotted with the direction perpendicular to the surface). The line integral uses a tangent vector; the flux integral uses a normal vector. Both require an orientation choice.

Connection to the Divergence Theorem

Computing flux across a surface is not just a standalone skill — it connects to one of the most important theorems in all of calculus. The Divergence Theorem (also called Gauss's Theorem) states that the total outward flux through a closed surface equals the triple integral of the divergence of F over the enclosed volume.

DIVERGENCE THEOREM
∬_S F · dS = ∭_E (∇ · F) dV
S is a closed surface enclosing volume E; ∇ · F = ∂P/∂x + ∂Q/∂y + ∂R/∂z is the divergence. This theorem lets you replace a hard surface integral with an easier volume integral (or vice versa).
AspectDirect Flux ComputationVia Divergence Theorem
When to useOpen surfaces, or when parameterization is straightforwardClosed surfaces enclosing a nice volume (sphere, cube, cylinder)
Computation typeSurface integral (double integral)Volume integral (triple integral)
AdvantageWorks for any oriented surfaceOften much simpler for closed surfaces with symmetric regions
LimitationCan be difficult if surface is complicatedOnly works for closed surfaces; must compute divergence

As you continue in multivariable calculus, the Divergence Theorem and its two-dimensional counterpart (Green's Theorem) will give you powerful shortcuts for many flux problems. For now, the key insight is that flux through a closed surface tells you how much the field "creates" or "absorbs" inside the volume — a concept called divergence. Mastering direct flux computation, as covered in this lesson, is the foundation for understanding these deeper connections.

Practice Problems

PROBLEM 1CONCEPTUAL
If a vector field F is everywhere tangent to a surface S (meaning F is parallel to S at every point), what is the flux of F across S? Explain your reasoning using the dot product.
PROBLEM 2BASIC CALCULATION
Compute the flux of F = ⟨0, 0, 3⟩ across the flat surface z = 0 over the square 0 ≤ x ≤ 2, 0 ≤ y ≤ 2, with upward orientation.
PROBLEM 3INTERMEDIATE
Compute the flux of F = ⟨x, y, 0⟩ across the surface z = 1 − x² − y² for x² + y² ≤ 1, oriented upward.
PROBLEM 4APPLIED
A fluid has velocity field v = ⟨0, 0, 5 − x² − y²⟩ (in m/s). A circular filter of radius 1 is placed horizontally at height z = 3 (upward orientation). How many cubic meters of fluid per second flow upward through the filter?
PROBLEM 5CRITICAL THINKING
Consider the vector field F = ⟨x, y, z⟩ and the surface S that is the upper hemisphere of x² + y² + z² = 9 (z ≥ 0), oriented outward. Without fully evaluating the integral, explain how you could use the Divergence Theorem and a clever 'cap' to relate this flux to a simpler computation. What would ∇ · F be, and what is the flux through the entire closed surface (hemisphere + disk)?

Lesson Summary

Flux measures the total amount of a vector field that flows through an oriented surface. The key mathematical tool is the dot product F · n̂, which extracts the component of the field perpendicular to the surface at each point. Only this perpendicular component contributes to flux — anything parallel to the surface slides along without passing through.

For surfaces given as z = g(x, y) with upward orientation, the flux integral simplifies to Φ = ∬(−P gₓ − Q gᵧ + R) dA. For general parameterized surfaces r(u, v), you compute the cross product rᵤ × rᵥ and integrate F · (rᵤ × rᵥ) over the parameter domain. Mastering these techniques prepares you for the Divergence Theorem, which relates flux through closed surfaces to the divergence of the field inside the enclosed volume.

Varsity Tutors • Multivariable Calculus • Flux Across Surfaces — Compute flux across surfaces