Vector Calculus
This chapter studies the calculus of vector fields — functions that attach a vector to every point of space. Line integrals measure work done by a force along a curve; surface integrals measure flux across a surface. The three great theorems — Green's, Stokes', and the Divergence Theorem — are higher-dimensional cousins of the Fundamental Theorem of Calculus.
Vector Fields
Assigning a vector to each point of the plane or of space.
Vector Field
A vector field on a region \(D\) is a function \(\mathbf{F}\) that assigns to each point a vector. On a plane region \(D\subseteq\mathbb{R}^2\) it returns a 2-D vector \(\mathbf{F}(x,y)\); on a solid region \(E\subseteq\mathbb{R}^3\) it returns a 3-D vector \(\mathbf{F}(x,y,z)\). The arrow for each vector is drawn starting at the point it belongs to.
Writing \(\mathbf{F}\) in components separates it into scalar functions (scalar fields): \(\mathbf{F}=P\,\mathbf{i}+Q\,\mathbf{j}\) in the plane, or \(\mathbf{F}=P\,\mathbf{i}+Q\,\mathbf{j}+R\,\mathbf{k}\) in space. The field is continuous exactly when each component is continuous.
Velocity & Force Fields
A velocity field attaches a flow vector to each point — wind patterns, ocean currents, or fluid moving through a pipe. A force field attaches a force vector to each point, such as the gravitational pull toward a mass or the electric force around a charge.
Gradient (Conservative) Fields
The gradient of a scalar function \(f\) is itself a vector field, \(\nabla f\), called a gradient field. A vector field \(\mathbf{F}\) is conservative if \(\mathbf{F}=\nabla f\) for some scalar \(f\); that \(f\) is called a potential function. Gradient vectors point in the direction of steepest increase and are perpendicular to level curves.
Figure 16.1.1 Original schematic of the rotational field \(\mathbf{F}(x,y)=-y\,\mathbf{i}+x\,\mathbf{j}\): every arrow is tangent to a circle centered at the origin, with length equal to the radius.
In fluid mechanics you'll meet vector fields constantly — velocity fields for flow, pressure gradients as force fields. Get comfortable reading them as "arrows at every point." When you see \(-y\,\mathbf{i}+x\,\mathbf{j}\), immediately picture rotation; that intuition saves time later in the curl and circulation sections.
Line Integrals
Integrating along a curve instead of along an interval.
Line Integral with Respect to Arc Length
A line integral generalizes the single integral: instead of integrating over an interval \([a,b]\), we integrate a function over a curve \(C\). We chop \(C\) into small arcs, sample \(f\) on each, weight by the arc length \(\Delta s_i\), and take the limit of the resulting Riemann-type sum.
Line Integral of a Vector Field (Work)
The work done by a force field \(\mathbf{F}\) in moving a particle along \(C\) is the integral of the tangential component \(\mathbf{F}\cdot\mathbf{T}\) over the curve. Unlike arc-length integrals, this depends on orientation: reversing the direction of travel flips the sign.
Watch the difference between \(ds\) (arc length, orientation-independent) and \(d\mathbf{r}\) (vector, orientation-dependent). Mass and center-of-mass problems use \(ds\); work problems use \(d\mathbf{r}\). Mixing them up is the single most common exam mistake I see.
The Fundamental Theorem for Line Integrals
When a line integral cares only about the endpoints.
Conditions: Let \(C\) be a smooth curve given by \(\mathbf{r}(t)\), \(a\le t\le b\), and let \(f\) be a differentiable function whose gradient \(\nabla f\) is continuous on \(C\).
Conclusion: \[ \int_C \nabla f\cdot d\mathbf{r}=f\big(\mathbf{r}(b)\big)-f\big(\mathbf{r}(a)\big). \] The integral of a gradient field is just the net change in the potential between the endpoints.
Independence of Path
A line integral \(\int_C \mathbf{F}\cdot d\mathbf{r}\) is independent of path if it gives the same value for any two paths sharing the same endpoints. Line integrals of conservative fields are independent of path.
Conditions: \(\mathbf{F}\) is continuous on an open region \(D\).
Conclusion: \(\int_C \mathbf{F}\cdot d\mathbf{r}\) is independent of path in \(D\) if and only if \(\oint_C \mathbf{F}\cdot d\mathbf{r}=0\) for every closed path \(C\) in \(D\).
Conditions: \(\mathbf{F}=P\,\mathbf{i}+Q\,\mathbf{j}\) on an open, simply-connected region, with \(P,Q\) having continuous first-order partials.
Conclusion: \(\mathbf{F}\) is conservative if and only if \[ \frac{\partial P}{\partial y}=\frac{\partial Q}{\partial x}\quad\text{throughout the region.} \]
Conservation of Energy
For a conservative force \(\mathbf{F}=-\nabla P\) (with \(P\) the potential energy), the work done equals the change in kinetic energy and also the drop in potential energy. Combining these gives \(P_A+K_A=P_B+K_B\): the total mechanical energy stays constant — the reason such fields are called "conservative."
Before grinding through a messy work integral, always test \(P_y\stackrel{?}{=}Q_x\). If it passes, find the potential and just subtract endpoint values — minutes instead of pages. This shortcut is gold in dynamics problems involving gravity or springs.
Green's Theorem
A line integral around a closed curve equals a double integral over the region inside.
Conditions: \(C\) is a positively oriented (counterclockwise), piecewise-smooth, simple closed curve bounding a region \(D\); \(P\) and \(Q\) have continuous partials on an open region containing \(D\).
Conclusion: \[ \oint_C P\,dx+Q\,dy=\iint_D\!\left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)dA. \]
Figure 16.4.1 Original sketch: region \(D\) with its boundary \(C\) traversed counterclockwise (positive orientation) so that \(D\) stays on the left.
Green's Theorem works both ways. Usually you convert a nasty line integral into an easy area integral — but the reverse trick (computing area as a boundary line integral) is exactly how planimeters and CAD area tools work in practice.
Curl and Divergence
Two derivative-like operations: one yields a vector, the other a scalar.
Curl
The curl of a vector field measures its rotational tendency. Where \(\mathbf{F}\) is a fluid velocity, a tiny paddle wheel spins fastest about the axis pointing along \(\operatorname{curl}\mathbf{F}\), and the magnitude tells how fast. A field with zero curl everywhere is called irrotational.
Divergence
The divergence of a vector field is a scalar measuring net outflow per unit volume at a point. For a fluid, positive divergence marks a source (fluid expanding outward) and negative divergence a sink. A field with zero divergence is incompressible.
Conditions: \(f\) has continuous second-order partials.
Conclusion: \(\operatorname{curl}(\nabla f)=\mathbf{0}\). Hence if \(\mathbf{F}\) is conservative, then \(\operatorname{curl}\mathbf{F}=\mathbf{0}\) — a quick way to show a field is not conservative.
Conditions: \(\mathbf{F}\) is defined on all of \(\mathbb{R}^3\) (or a simply-connected domain) with continuous partials, and \(\operatorname{curl}\mathbf{F}=\mathbf{0}\).
Conclusion: \(\mathbf{F}\) is conservative.
Conditions: \(\mathbf{F}\) has continuous second-order partials.
Conclusion: \(\operatorname{div}(\operatorname{curl}\mathbf{F})=0\). So a field with nonzero divergence cannot be written as the curl of another field.
Mnemonic that never fails me: curl is a cross product (gives a vector, measures spin); divergence is a dot product (gives a scalar, measures spreading). In electromagnetics these two operators ARE Maxwell's equations — learn them cold now.
Parametric Surfaces and Their Areas
Describing surfaces with two parameters and measuring their area.
Parametric Surface
Just as a curve is traced by a vector function of one parameter, a surface is traced by a vector function of two parameters: \(\mathbf{r}(u,v)=x(u,v)\,\mathbf{i}+y(u,v)\,\mathbf{j}+z(u,v)\,\mathbf{k}\) for \((u,v)\) in a domain \(D\). Holding one parameter fixed sweeps out grid curves that lie on the surface.
Smooth Surface
A surface is smooth where \(\mathbf{r}_u\times\mathbf{r}_v\neq\mathbf{0}\) — it has no corners and a well-defined tangent plane. That cross product is normal to the tangent plane at each point.
Parametric surfaces are the language of CAD and finite-element meshing. The cross product \(\mathbf{r}_u\times\mathbf{r}_v\) you compute here is exactly the "surface normal" your CAD software draws — same math, different notation.
Surface Integrals
Integrating over a surface — including the flux of a vector field.
Surface Integral of a Scalar Field
The surface integral of \(f\) over \(S\) is the surface analogue of an arc-length line integral: chop \(S\) into patches, sample \(f\), weight by patch area, and sum. When \(f=1\) it returns the surface area; with a density it gives mass and center of mass.
Oriented Surfaces
An orientable surface has two sides; choosing a continuously-varying unit normal \(\mathbf{n}\) fixes an orientation. A closed surface is positively oriented when its normals point outward. The Möbius strip is the classic non-orientable counterexample — it has only one side.
The surface integral (flux) of a continuous field \(\mathbf{F}\) across an oriented surface \(S\) with unit normal \(\mathbf{n}\) is \[ \iint_S \mathbf{F}\cdot d\mathbf{S}=\iint_S \mathbf{F}\cdot\mathbf{n}\,dS=\iint_D \mathbf{F}\cdot(\mathbf{r}_u\times\mathbf{r}_v)\,dA. \] Physically it measures the rate at which fluid crosses \(S\).
Applications: Electric Flux & Heat Flow
If \(\mathbf{E}\) is an electric field, \(\iint_S \mathbf{E}\cdot d\mathbf{S}\) is the electric flux (Gauss's Law links it to enclosed charge). If \(u\) is temperature, the heat-flow field \(\mathbf{F}=-K\nabla u\) gives the rate of heat transfer across \(S\) as a flux integral.
Flux is the workhorse of thermofluids. "Mass flow rate through a duct," "heat rate through a wall," "current through a cross-section" — all are flux integrals \(\iint_S \mathbf{F}\cdot\mathbf{n}\,dS\). Learn to spot the pattern and you'll read engineering papers far faster.
Stokes' Theorem
A higher-dimensional Green's Theorem relating a surface to its boundary curve.
Conditions: \(S\) is an oriented, piecewise-smooth surface bounded by a simple, closed, piecewise-smooth boundary curve \(C\) with positive orientation; \(\mathbf{F}\) has continuous partials on an open region containing \(S\).
Conclusion: \[ \oint_C \mathbf{F}\cdot d\mathbf{r}=\iint_S \operatorname{curl}\mathbf{F}\cdot d\mathbf{S}. \] The circulation of \(\mathbf{F}\) around \(C\) equals the flux of \(\operatorname{curl}\mathbf{F}\) through any surface spanning \(C\).
Curl as Circulation Density
Stokes' Theorem shows \(\operatorname{curl}\mathbf{F}\cdot\mathbf{n}\) is the limiting circulation per unit area about the axis \(\mathbf{n}\). A paddle wheel placed in the flow spins fastest when its axis aligns with \(\operatorname{curl}\mathbf{F}\) — the precise meaning of "rotational tendency."
The killer feature of Stokes' Theorem: you can swap the surface for any easier one with the same boundary. Stuck on a weird curved surface? Replace it with the flat disk on the same rim. This trade is worth real marks under time pressure.
The Divergence Theorem
Flux out of a closed surface equals the integral of divergence inside.
Conditions: \(E\) is a simple solid region with boundary surface \(S\) given the outward (positive) orientation; \(\mathbf{F}\) has continuous partials on an open region containing \(E\).
Conclusion: \[ \iint_S \mathbf{F}\cdot d\mathbf{S}=\iiint_E \operatorname{div}\mathbf{F}\,dV. \] Total outward flux equals the total divergence inside.
Divergence as Outflow Density & Gauss's Law
Shrinking the region to a point shows \(\operatorname{div}\mathbf{F}(P)\) is the net outward flux per unit volume there — the reason for the name. Applied to the electric field, the theorem reproduces Gauss's Law: the flux through any closed surface enclosing a charge \(Q\) is \(4\pi\varepsilon Q\), independent of the surface's shape.
This is the integral form of every conservation law you'll use: mass, momentum, energy, charge. "Rate of accumulation inside = net flux through the boundary." When you derive the continuity equation in fluids, the Divergence Theorem is the bridge from integral to differential form.
Summary & Connections
Every theorem in this chapter is one idea wearing different dimensions.
If you remember just one thing from this chapter, make it this table. Once you see all five as "integrate the derivative inside = evaluate the function on the boundary," the whole chapter collapses into a single beautiful idea — and that's exactly the insight that powers continuum mechanics and field theory.