Curl and Divergence
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn two operations that measure what a vector field is doing at each point: divergence (is the field spreading out or converging?) and curl (is the field rotating?). These are the building blocks for the Divergence Theorem and Stokes’ Theorem.
The Concept
Section titled “The Concept”Divergence: Spreading vs Converging
Section titled “Divergence: Spreading vs Converging”The divergence of a 3D vector field is a scalar that measures the net outward flow at each point:
The symbol is read “del dot F” or “divergence of F.” It’s a dot product between the del operator and the vector field F.
- Positive divergence means the field is spreading outward like a fountain. The point is a source.
- Negative divergence means the field is converging inward like a drain. The point is a sink.
- Zero divergence means no net flow in or out. The field is incompressible at that point.
Curl: Rotation
Section titled “Curl: Rotation”The curl of a 3D vector field is a vector that measures the rotation at each point:
The symbol is read “del cross F” or “curl of F.” It’s a cross product between the del operator and F.
The curl vector points along the axis of rotation, following the right-hand rule: if you curl the fingers of your right hand in the direction the field swirls, your thumb points in the direction of the curl vector. The magnitude tells you how fast the rotation is.
The orange circle with a dot represents a vector pointing out of the page (toward you). This is the standard notation: a dot in a circle means “coming toward you” and an X in a circle means “going away from you.”
The Connection to Conservative Fields
Section titled “The Connection to Conservative Fields”In Lesson 15, we said a field is conservative if it’s the gradient of some potential function. Here’s the curl version of that test:
If everywhere on a simply connected domain, then F is conservative.
This is the 3D generalization of the cross-partial test from 2D. The z-component of the curl is which is exactly the expression from the 2D test.
Divergence and Curl of Common Fields
Section titled “Divergence and Curl of Common Fields”- The radial field has divergence 3 and curl zero. It spreads but doesn’t rotate.
- The rotational field has divergence 0 and curl . It rotates but doesn’t spread.
- A constant field like has both divergence 0 and curl zero. It neither spreads nor rotates.
Worked Examples
Section titled “Worked Examples”Example 1: Computing divergence
Find the divergence of
The divergence varies from point to point. At the origin it’s zero (no net flow). At (1, 0, 1) it’s 3 + 2 = 5 (strong outward flow). The field acts as a source wherever 3x + 2z is positive and a sink wherever it’s negative.
Example 2: Computing curl
Find the curl of (the rotational field from earlier lessons).
The blue arrows show the field at sample points, swirling counterclockwise. The orange dot-in-circle at the center represents the curl vector pointing out of the page toward you. The label shows the computed result.
The curl is a constant vector pointing in the positive z-direction with magnitude 2. This confirms what we see visually: the field rotates counterclockwise in the xy-plane everywhere, with the same strength at every point.
Example 3: Checking if a field is conservative using curl
Is conservative?
Compute the curl:
The curl is zero everywhere, so F is conservative. The potential function is since
Example 4: A field with both nonzero divergence and curl
Find the divergence and curl of
Divergence:
Curl:
This field both spreads (divergence = 3) and rotates (curl = ). It’s not conservative because the curl is nonzero.
Real-World Application
Section titled “Real-World Application”Divergence and curl are the language of physics and simulation:
- Maxwell’s equations for electromagnetism are written entirely in terms of divergence and curl. The divergence of the electric field gives the charge density. The curl of the magnetic field gives the current.
- Fluid dynamics uses divergence to identify sources and sinks in a flow, and curl to identify vortices (whirlpools, tornadoes).
- Game engines use divergence for explosion effects (outward blast) and curl for swirling smoke, fire, and water effects. Curl noise is a popular technique for generating turbulent-looking particle motion.
- Weather models use curl to measure the rotation of wind patterns (cyclones have high curl).
Retrying will remove your ✅ checkmark until you pass again.