Part 1 · Chapter 3

Vector Calculus

Maxwell's four equations are written in one symbol — the inverted triangle ∇. This chapter unpacks it into gradient, divergence and curl, and meets the two great theorems that swap a field's behaviour at every point for its behaviour on a boundary.

Electromagnetic Field Theory Prof. Mithun Mondal Reading time ≈ 55 min
i What you'll learn
  • The three field integrals — line (circulation/work), surface (flux), and volume.
  • The del operator \(\nabla\) and its three uses: gradient, divergence, curl.
  • Gradient — the direction and rate of steepest increase of a scalar field.
  • Divergence — the net outflow per unit volume — and the divergence theorem.
  • Curl — the circulation per unit area — and Stokes' theorem.
  • The Laplacian, and how to tell a solenoidal field from an irrotational one.
Section 3-1

Integrals of Fields

Three integrals recur throughout electromagnetics. The line integral adds up the component of a field along a path — it gives work done by a force, or voltage along a route. The surface integral adds up the field passing through a surface — this is flux. The volume integral sums a quantity throughout a region, such as total charge from a charge density.

The three field integrals
\[ \underbrace{\int_L \vec{A}\cdot d\vec{l}}_{\text{circulation / work}},\qquad \underbrace{\oint_S \vec{A}\cdot d\vec{S}}_{\text{flux through } S},\qquad \underbrace{\int_v \rho_v\,dv}_{\text{total quantity}} \]

A line integral around a closed loop, written \(\oint_L \vec{A}\cdot d\vec{l}\), is the field's circulation. A surface integral over a closed surface is the net flux out of the volume it encloses. These two closed integrals are exactly what the divergence and Stokes theorems will connect to the del operator.

Section 3-2

The Del Operator

The del (or nabla) operator \(\nabla\) is a vector whose components are partial-derivative instructions. In Cartesian coordinates:

Del operator (Cartesian)
\[ \nabla = \frac{\partial}{\partial x}\hat{a}_x + \frac{\partial}{\partial y}\hat{a}_y + \frac{\partial}{\partial z}\hat{a}_z \]

By itself \(\nabla\) does nothing; it waits for something to act on. Applied three different ways it produces the three operators of this chapter: on a scalar it gives the gradient (\(\nabla V\)); dotted into a vector it gives the divergence (\(\nabla\cdot\vec{A}\)); crossed into a vector it gives the curl (\(\nabla\times\vec{A}\)).

One symbol, three jobs. Gradient turns a scalar into a vector; divergence turns a vector into a scalar; curl turns a vector into a vector. The grammar of \(\nabla\) — what it acts on and whether by dot or cross — tells you instantly which one you are looking at. Every Maxwell equation is just one of these three operators set equal to a source.
Section 3-3

Gradient of a Scalar

The gradient of a scalar field \(V\) is a vector that points in the direction of steepest increase of \(V\), with magnitude equal to that maximum rate of change. Think of \(V\) as elevation on a hill: \(\nabla V\) points straight uphill, and is longest where the slope is steepest.

Gradient (Cartesian)
\[ \nabla V = \frac{\partial V}{\partial x}\hat{a}_x + \frac{\partial V}{\partial y}\hat{a}_y + \frac{\partial V}{\partial z}\hat{a}_z \]
V=1 V=4 ∇V
The gradient points perpendicular to contours, toward increasing V
🔑
Gradient is normal to equipotential surfaces
\[ dV = \nabla V\cdot d\vec{l} \]

The change in \(V\) along any step \(d\vec{l}\) is the gradient dotted with that step. Along a surface of constant \(V\) the change is zero, so \(\nabla V\) must be perpendicular to it. This is exactly why \(\vec{E} = -\nabla V\) is perpendicular to equipotentials in Chapter 6.

Section 3-4

Divergence & Its Theorem

The divergence of a vector field measures the net outflow per unit volume at a point — whether that point acts as a source (positive divergence), a sink (negative), or neither. It is a scalar:

Divergence (Cartesian)
\[ \nabla\cdot\vec{A} = \frac{\partial A_x}{\partial x} + \frac{\partial A_y}{\partial y} + \frac{\partial A_z}{\partial z} \]
∇·A > 0 ∇·A = 0
Positive divergence at a source (left); zero divergence for a uniform field (right)

The divergence theorem (Gauss's theorem) is one of the two pillars of the course. It says the total outflow through a closed surface equals the sum of all the little outflows inside — the volume integral of the divergence:

Divergence theorem
\[ \oint_S \vec{A}\cdot d\vec{S} = \int_v (\nabla\cdot\vec{A})\,dv \]

This is the bridge between the integral and differential forms of Gauss's law in Chapter 5. It lets you trade a surface flux you can picture for a volume integral you can compute.

Section 3-5

Curl & Stokes' Theorem

The curl of a vector field measures its circulation per unit area — how much the field swirls around a point. It is itself a vector, pointing along the axis of rotation by the right-hand rule. In Cartesian form it is a determinant:

Curl (Cartesian)
\[ \nabla\times\vec{A} = \begin{vmatrix} \hat{a}_x & \hat{a}_y & \hat{a}_z \\[2pt] \dfrac{\partial}{\partial x} & \dfrac{\partial}{\partial y} & \dfrac{\partial}{\partial z} \\[4pt] A_x & A_y & A_z \end{vmatrix} \]
∇×A ≠ 0 ∇×A = 0
Curl detects swirl (left); a uniform straight field has zero curl (right)

Stokes' theorem is the second pillar. It says the circulation of a field around a closed loop equals the flux of its curl through any surface bounded by that loop:

Stokes' theorem
\[ \oint_L \vec{A}\cdot d\vec{l} = \int_S (\nabla\times\vec{A})\cdot d\vec{S} \]

This converts Ampère's and Faraday's laws between their integral and differential forms in Part 4. Where the divergence theorem trades a closed surface for a volume, Stokes' theorem trades a closed loop for the surface it rims.

Section 3-6

The Laplacian

Applying divergence to a gradient gives the Laplacian of a scalar — the divergence of the steepest-ascent field. It measures how a point's value compares with the average of its neighbours, and it governs static potentials:

Laplacian of a scalar
\[ \nabla^2 V = \nabla\cdot(\nabla V) = \frac{\partial^2 V}{\partial x^2} + \frac{\partial^2 V}{\partial y^2} + \frac{\partial^2 V}{\partial z^2} \]

When \(\nabla^2 V = 0\) the field is harmonic — this is Laplace's equation, the heart of Chapters 9–10. Two null identities are worth memorising now, because they shape Maxwell's equations: the curl of a gradient is always zero, and the divergence of a curl is always zero.

Two null identities
\[ \nabla\times(\nabla V) = 0, \qquad \nabla\cdot(\nabla\times\vec{A}) = 0 \]
Section 3-7

Classifying Fields

The two null identities let us sort every vector field by what \(\nabla\) does to it. A field with zero divergence has no sources or sinks — its flux lines close on themselves; a field with zero curl does not swirl — it can be written as the gradient of a potential.

Field typeConditionMeaningEM example
Solenoidal\(\nabla\cdot\vec{A}=0\)No source/sink; flux lines closeMagnetic field \(\vec{B}\)
Irrotational\(\nabla\times\vec{A}=0\)No swirl; has a scalar potentialStatic electric field \(\vec{E}\)
Harmonic\(\nabla^2 V=0\)Value equals neighbour averagePotential in charge-free space
🔑
The whole course in two questions
Does it diverge? Does it curl?

Maxwell's equations answer exactly these for \(\vec{E}\) and \(\vec{B}\): their divergences give the source laws (Gauss), their curls give the circulation laws (Faraday, Ampère). The operators you learn here are the language those four equations are spoken in.

Section 3-8

Worked Examples

1 Gradient of a scalar

Problem. Find \(\nabla V\) for \(V = x^2 y + yz\).

Solution. Differentiate with respect to each coordinate:

Working
\[ \nabla V = 2xy\,\hat{a}_x + (x^2+z)\,\hat{a}_y + y\,\hat{a}_z \]
2 Divergence at a point

Problem. Find \(\nabla\cdot\vec{A}\) for \(\vec{A} = x^2\,\hat{a}_x + yz\,\hat{a}_y + 2z\,\hat{a}_z\) at \((1,1,1)\).

Solution. Add the three partial derivatives:

Working
\[ \nabla\cdot\vec{A} = 2x + z + 2 \;\xrightarrow{(1,1,1)}\; 2 + 1 + 2 = 5 \]
3 Curl of a field

Problem. Find \(\nabla\times\vec{A}\) for \(\vec{A} = y\,\hat{a}_x - x\,\hat{a}_y\).

Solution. Only the \(z\)-component of the determinant survives:

Working
\[ \nabla\times\vec{A} = \left(\frac{\partial(-x)}{\partial x} - \frac{\partial(y)}{\partial y}\right)\hat{a}_z = (-1-1)\hat{a}_z = -2\,\hat{a}_z \]
4 Verify the divergence theorem

Problem. For \(\vec{A} = x\,\hat{a}_x\) over the unit cube \(0\le x,y,z\le 1\), check \(\oint_S \vec{A}\cdot d\vec{S} = \int_v \nabla\cdot\vec{A}\,dv\).

Solution. The flux leaves only through the face at \(x=1\); the divergence is constant:

Working
\[ \oint_S \vec{A}\cdot d\vec{S} = 1, \qquad \int_v \nabla\cdot\vec{A}\,dv = \int_v 1\,dv = 1 \;\checkmark \]
5 Is the field conservative?

Problem. Show \(\vec{A} = y\,\hat{a}_x + x\,\hat{a}_y\) is irrotational and find its potential.

Solution. The curl vanishes, so a scalar \(V\) exists with \(\vec{A}=\nabla V\):

Working
\[ \nabla\times\vec{A} = (1-1)\hat{a}_z = 0, \qquad V = xy + C \]
6 Laplacian of a potential

Problem. Verify that \(V = x^2 - y^2\) satisfies Laplace's equation.

Solution. Sum the second derivatives:

Working
\[ \nabla^2 V = \frac{\partial^2 V}{\partial x^2} + \frac{\partial^2 V}{\partial y^2} = 2 + (-2) = 0 \;\Rightarrow\; \text{harmonic} \]
Review

Chapter Summary

Three integrals

Line = circulation/work, surface = flux, volume = total quantity. Closed versions feed the big theorems.

Del operator

\(\nabla\) acts three ways: gradient on a scalar, divergence (dot) and curl (cross) on a vector.

Gradient

\(\nabla V\) points uphill, perpendicular to equipotentials; \(dV=\nabla V\cdot d\vec{l}\).

Divergence

Net outflow per volume; \(\oint_S\vec{A}\cdot d\vec{S}=\int_v(\nabla\cdot\vec{A})\,dv\).

Curl

Circulation per area; \(\oint_L\vec{A}\cdot d\vec{l}=\int_S(\nabla\times\vec{A})\cdot d\vec{S}\).

Field types

Solenoidal (\(\nabla\cdot\vec{A}=0\)), irrotational (\(\nabla\times\vec{A}=0\)), harmonic (\(\nabla^2V=0\)).

Practice

Problems

For each item, identify whether it calls for gradient, divergence, curl, or a theorem, then apply it. Difficulty rises down the list.

  1. Find \(\nabla V\) for \(V = e^{-x}\sin y + z^2\).
  2. Find \(\nabla\cdot\vec{A}\) for \(\vec{A} = xy\,\hat{a}_x + y^2\,\hat{a}_y + xz\,\hat{a}_z\).
  3. Find \(\nabla\times\vec{A}\) for \(\vec{A} = z\,\hat{a}_x + x\,\hat{a}_y + y\,\hat{a}_z\).
  4. Compute \(\nabla^2 V\) for \(V = x^2 + y^2 + z^2\) and state whether it is harmonic.
  5. Evaluate the line integral of \(\vec{A} = x\,\hat{a}_x + y\,\hat{a}_y\) from \((0,0)\) to \((1,1)\) along the straight path.
  6. Verify Stokes' theorem for \(\vec{A} = y\,\hat{a}_x\) over the unit square in the \(xy\)-plane.
  7. Verify the divergence theorem for \(\vec{A} = r\,\hat{a}_r\) over a sphere of radius \(a\) (spherical divergence \(\nabla\cdot\vec{A} = \tfrac{1}{r^2}\tfrac{\partial}{\partial r}(r^2 A_r)\)).
  8. Show that any field of the form \(\vec{A} = \nabla V\) has zero curl, for arbitrary smooth \(V\).
  9. Determine whether \(\vec{A} = \rho\,\hat{a}_\phi\) is solenoidal (use the cylindrical divergence formula).
  10. Find the directional derivative of \(V = x^2 y\) at \((1,2,0)\) in the direction \(\hat{a}_x + \hat{a}_y\).
  11. Prove the identity \(\nabla\cdot(\nabla\times\vec{A}) = 0\) by direct expansion in Cartesian coordinates.
  12. A field is both solenoidal and irrotational in a region. What partial-differential equation must its potential satisfy, and why?
Tip: let the operator's grammar guide you. A scalar in, vector out, asking "which way is uphill?" → gradient. A vector in, scalar out, asking "is this a source?" → divergence. A vector in, vector out, asking "does it swirl?" → curl. A closed surface points you to the divergence theorem; a closed loop points you to Stokes. Master this routing and Part 4 reads like a summary rather than a surprise.