01 / 21

Curl & Divergence

Learn to compute and interpret the curl and divergence of vector fields: the two fundamental differential operators of multivariable calculus.

Calculus 3

What Is a Vector Field?

A vector field assigns a vector to every point in space. In three dimensions, we write it as:

where \(P\), \(Q\), and \(R\) are the component functions. Think of wind velocity, fluid flow, or magnetic fields: at every location, there is both a direction and a magnitude.

Introducing Divergence

The divergence of a vector field measures how much the field spreads out (or converges) at each point: it is a scalar quantity.

Positive div
Field spreads outward: a source of flow at that point.
Negative div
Field converges inward: a sink absorbing flow at that point.
Zero div
Flow in equals flow out: incompressible at that point.

Visualizing Divergence

\(\text{div}\,\mathbf{F} > 0\) (Source)
\(\text{div}\,\mathbf{F} < 0\) (Sink)

Introducing Curl

The curl of a vector field measures the rotation or swirling tendency at each point: it is a vector quantity.

Expanding the determinant gives:

Visualizing Curl

\(\text{curl}\,\mathbf{F}\) (out of page)
Counterclockwise rotation: curl points toward you

Divergence vs. Curl

Divergence \(\nabla \cdot \mathbf{F}\) Curl \(\nabla \times \mathbf{F}\)
Output type Scalar Vector
Measures Expansion / compression Rotation / circulation
Physical analogy Air pump (source/sink) Whirlpool (paddle wheel)
Operator notation Dot product with \(\nabla\) Cross product with \(\nabla\)
Domain \(\mathbb{R}^2\) or \(\mathbb{R}^3\) \(\mathbb{R}^3\) (full 3D curl)

Fundamental Identities

Two identities that are always true (when partial derivatives are continuous):

1
Curl of a gradient is zero: \(\nabla \times (\nabla f) = \mathbf{0}\) for any scalar field \(f\). A conservative field has no rotation.
2
Divergence of a curl is zero: \(\nabla \cdot (\nabla \times \mathbf{F}) = 0\) for any vector field \(\mathbf{F}\). Rotation does not create sources.

How to Compute Divergence

1
Identify components: write \(\mathbf{F} = \langle P, Q, R \rangle\).
2
Take partial derivatives: compute \(\frac{\partial P}{\partial x}\), \(\frac{\partial Q}{\partial y}\), \(\frac{\partial R}{\partial z}\).
3
Add them together: \(\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}\).
4
Interpret the sign: positive means source, negative means sink, zero means incompressible at that point.

How to Compute Curl

1
Set up the determinant: write the 3×3 matrix with \(\mathbf{i}, \mathbf{j}, \mathbf{k}\) on top, partials in the middle, components on the bottom.
2
\(\mathbf{i}\) component: \(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z}\).
3
\(\mathbf{j}\) component: \(-\!\left(\frac{\partial R}{\partial x} - \frac{\partial P}{\partial z}\right)\). Watch the negative sign.
4
\(\mathbf{k}\) component: \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\).

Example 1: Computing Divergence

1
Identify: \(P = x^2 y\), \(Q = -2yz\), \(R = 3xz^2\).
2
Partial derivatives: \(\frac{\partial P}{\partial x} = 2xy\), \(\frac{\partial Q}{\partial y} = -2z\), \(\frac{\partial R}{\partial z} = 6xz\).
3
Sum: \(\nabla \cdot \mathbf{F} = 2xy - 2z + 6xz\).

Example 2: Computing Curl

i
\(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z} = -2y - xy\) \(= -y(2+x)\).
j
\(-\!\left(\frac{\partial R}{\partial x} - \frac{\partial P}{\partial z}\right) = -(0 - x) = x\).
k
\(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = yz - 0 = yz\).

Example 3: Is \(\mathbf{F}\) Conservative?

A vector field is conservative if and only if \(\nabla \times \mathbf{F} = \mathbf{0}\). Let us check:

i
\(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z} = 0 - 0 = 0\) ✓
j
\(-\!\left(\frac{\partial R}{\partial x} - \frac{\partial P}{\partial z}\right) = -(1 - 1) = 0\) ✓
k
\(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 2x - 2x = 0\) ✓

The \(\nabla\) Operator

The del operator \(\nabla\) is a "vector of partial derivatives" that unifies gradient, divergence, and curl:

Gradient
\(\nabla f : \text{scalar} \to \text{vector}\)
Divergence
\(\nabla \cdot \mathbf{F} : \text{vector} \to \text{scalar}\)
Curl
\(\nabla \times \mathbf{F} : \text{vector} \to \text{vector}\)

Common Mistakes

✕ Forgetting the \(\mathbf{j}\) sign
The \(\mathbf{j}\) component of curl carries a negative sign from the cofactor expansion. Missing it flips the middle component.
✕ Wrong partial pairing
Each component uses partials of the other two components. Mixing up which partial goes with which component gives garbage.
✕ Confusing output types
Divergence outputs a scalar. Curl outputs a vector. Writing divergence as a vector (or curl as a number) is a fundamental error.

Summary Reference

Property Divergence Curl
Formula \(\frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}\) Determinant with \(\nabla\) and \(\mathbf{F}\)
Output Scalar function Vector field
Measures Source / sink strength Rotation axis and strength
Zero means Incompressible flow Irrotational (conservative)
Key identity \(\nabla \cdot (\nabla \times \mathbf{F}) = 0\) \(\nabla \times (\nabla f) = \mathbf{0}\)
Big theorem Divergence Theorem Stokes' Theorem

Question 1 of 5

Compute \(\nabla \cdot \mathbf{F}\) for \(\mathbf{F} = \langle 3x^2, 5y, -2z \rangle\).

Question 2 of 5

What type of quantity does \(\nabla \times \mathbf{F}\) produce?

Question 3 of 5

If \(\mathbf{F} = \nabla f\) for some scalar function \(f\), what can we conclude?

Question 4 of 5

Find the \(\mathbf{k}\)-component of \(\nabla \times \mathbf{F}\) for \(\mathbf{F} = \langle y^2 z, x^3, 2xz \rangle\).

Question 5 of 5

If \(\nabla \cdot \mathbf{F} > 0\) at a point, what does this physically indicate about the vector field at that point?