Module 22 · 10 min read · Free chapter
Vector calculus: gradient, divergence and curl, line and surface integrals, Gauss and Stokes theorems, curvilinear coordinates
Start from zero: fields everywhere
A weather map shows a temperature at every point (a scalar field) and wind arrows at every point (a vector field). Physics is full of such fields: gravitational potential, electric field, fluid velocity, magnetic flux density. Vector calculus is the language for asking how a field changes from place to place.
Three questions cover almost everything.
Which way is the field increasing fastest (gradient)? Is something flowing out of a point (divergence)? Is the flow swirling round a point (curl)? Two theorems then connect what happens inside a region to what happens on its boundary.
The del operator and the gradient
In Cartesian coordinates the vector differential operator is
Acting on a scalar field it gives the gradient:
Meaning. For a small step , the change is . This is largest when the step is along , so the gradient points in the direction of steepest ascent and its magnitude is the maximum rate of change. Along a level surface ( = constant) , so is normal to that surface.
The directional derivative along a unit vector is .
Worked example. For at (1, 2, 1): . The unit normal to the surface = 4 there is .
In physics. A conservative force is ; the electric field is ; heat flows down the temperature gradient, (Fourier's law).
Divergence, curl and the Laplacian
Divergence of :
Physically, it is the net outward flux per unit volume from a tiny box around the point:
Positive divergence marks a source, negative a sink, zero a field that is solenoidal (as much flows in as out). Examples: (charges are sources) and (no magnetic monopoles). For an incompressible fluid .
Curl:
Its component along is the circulation per unit area of a tiny loop normal to . A small paddle wheel placed in a flow spins if the curl is non-zero. For a rigidly rotating body, gives .
Worked example. . Divergence . Curl .
Laplacian. . It measures how much at a point differs from its average nearby. It appears in Poisson's equation , the wave equation and the heat equation (partial differential equations).
Standard identities (proved by writing out components):
- : a gradient field has no curl.
- : a curl field has no divergence, which is why .
- .
- , used to derive the EM wave equation.
Conservative fields. These statements are equivalent for a field in a simply connected region: ; ; ; the line integral between two points is independent of path.
Integral theorems: Gauss, Stokes and Green
Line integral (work done along a path), surface integral (flux through a surface, with outward for a closed surface), and volume integral .
Gauss's divergence theorem. For a closed surface S enclosing volume V:
Proof idea. Split V into tiny cubes. For each, the outward flux equals by the definition of divergence. On every interior face two neighbouring cubes have opposite normals, so their fluxes cancel, leaving only the flux through the outer surface S.
Use. Applying it to Gauss's law for any volume gives . The same step turns the conservation of charge into the continuity equation .
Stokes's theorem. For an open surface S bounded by the closed curve C (orientation by the right-hand rule):
Tile S with tiny loops; circulation round each is , and shared interior edges are traversed in opposite directions and cancel. From Ampère's law it gives (Maxwell's equations).
Green's theorem in the plane is Stokes's theorem for a flat region R in the xy-plane:
Taking M = −y and N = x gives area .
Worked example (verify Gauss). over a sphere of radius R. = 3, so the volume integral is . On the surface , so the flux is . Both sides agree.
Worked example (verify Stokes). round the circle . On the circle , , so . And , so the surface integral is .
Curvilinear coordinates
Problems with spherical or cylindrical symmetry are easier in matching coordinates. For orthogonal coordinates with scale factors (so that ):
| System | Coordinates | Scale factors | Volume element |
|---|---|---|---|
| Cartesian | x, y, z | 1, 1, 1 | dx dy dz |
| cylindrical | ρ, φ, z | 1, ρ, 1 | ρ dρ dφ dz |
| spherical polar | r, θ, φ | 1, r, r sin θ | r² sin θ dr dθ dφ |
Spherical Laplacian:
Worked example. Show that satisfies Laplace's equation for r ≠ 0. Only the radial part matters: , whose derivative is 0. So away from the origin.
At the origin, Gauss's theorem shows that . That is why the potential of a point charge solves Poisson's equation.
Also note except at r = 0, where the flux through any enclosing sphere is .
Geophysics link. Gravity and magnetic potentials outside the Earth satisfy in spherical coordinates. Their solutions are spherical harmonics, which are used to model the geoid and the geomagnetic field (the IGRF model).
Mains lens: how UPSC asks this
Vector calculus is tested inside electrodynamics and fluid questions in the CSE and IFoS papers, and directly in Geo-Scientist Geophysics (Part A3 and B1) and NET Part A.
Expect:
- State and prove Gauss's divergence theorem or Stokes's theorem (10 marks).
- Verify a theorem for a given field and surface (10 to 15 marks, a pure calculation).
- Show that a field is conservative and find its potential.
- Prove an identity such as .
- Derive the differential forms of Maxwell's equations using the theorems.
Model answer plan: "State Gauss's divergence theorem and verify it for over the unit cube." (15 marks).
- Statement with a sketch of the closed surface and outward normals.
- ; volume integral over the cube .
- Six faces: x = 1 gives 2, y = 1 gives −1, z = 1 gives , the three faces through the origin give 0.
- Total flux , equal to the volume integral.
- Comment: physical meaning as net outflow equals total source strength.
Quick revision
- : steepest ascent, normal to level surfaces; .
- : flux per volume (source); : circulation per area (rotation).
- Gauss: ; Stokes: .
- curl grad = 0; div curl = 0; curl curl = grad div − .
- Conservative: curl zero, potential exists, path independent (simply connected).
- Spherical scale factors 1, r, r sin θ; .