THE GOLD STANDARD · VECTOR CALCULUS
From local change to circulation and flux
Gradient, divergence and curl answer different questions. Line, surface and volume integrals accumulate different contributions. Learn how the ideas connect, why orientation matters and when a tempting theorem cannot be used.
Find your next learning step
Choose the question closest to yours. Expand a contents group for the chapter links; all teaching chapters remain open below.
Read the full guide · Practice and worked answers · Calculus root
Fields and local change · Chapters 1–5
Curl, paths and surfaces · Chapters 6–10
Theorems, conditions and practice · Chapters 11–15
CHAPTER 1 OF 15 · Understand local change
1. Start with a field, not a page of operators
A single vector can describe one displacement or one force. A vector field assigns a vector to each point of a region. A scalar field assigns a number instead. Vector calculus studies how such fields change and accumulate along curves, across surfaces and throughout volumes. Its central questions are geometric: in which direction does a quantity increase, how much field follows a path, and how much crosses a boundary?
Think of a hypothetical room with a temperature value and an air-velocity vector at each location. Temperature is scalar; velocity includes direction. A map of temperature does not directly give the velocity. Likewise, an arrow diagram of velocity does not directly give temperature. The first calculation should identify the field and its meaning, not simply apply an operator to whichever symbols appear.
Throughout the worked mathematical examples, coordinates and fields are dimensionless unless units are stated. We use perpendicular Cartesian axes with the usual Euclidean dot product and right-handed orientation in three dimensions. These conventions matter: changing coordinates or introducing physical units requires transforming the relationships appropriately.
This is an advanced mathematical root, not a claim that every school syllabus requires vector calculus. Begin with Vectors and Calculus if components, dot products, derivatives or integrals are not yet secure. The goal here is a connected explanation rather than a collection of examination shortcuts.
MIT’s Multivariable Calculus course provides a broader study route through partial derivatives, multiple integrals and vector calculus. Read the examples below as original teaching cases, not models for operating real equipment.
CHAPTER 2 OF 15 · Understand local change
2. Partial derivatives separate different directions of change
For a function f(x,y), the partial derivative with respect to x examines change in x while y is held fixed. The partial derivative with respect to y answers a different question. This is why a surface needs more than one slope to describe its local behaviour.
Take f(x,y) = x² + 3y². Its partial derivatives are fₓ = 2x and fᵧ = 6y. At (1,1), these are 2 and 6. The numbers describe changes along the positive coordinate directions, not a claim that every direction has one of those two rates.
Now suppose x and y both depend on a parameter t. Along a differentiable path, the chain rule gives df/dt = fₓ dx/dt + fᵧ dy/dt. It is not generally correct to use only fₓ when the path also changes y. The path determines how much each coordinate direction contributes.
For an original check, use x(t) = t and y(t) = 2t. Direct substitution gives f = t² + 3(2t)² = 13t², so df/dt = 26t. The chain rule gives (2t)(1) + (12t)(2) = 26t as well. Agreement between two methods helps reveal a missing factor.
Do not infer differentiability merely from the existence of individual partial derivatives at one point. The standard gradient-based local approximation requires differentiability; continuous first partial derivatives in a neighbourhood provide a familiar sufficient condition. Keep that condition visible when moving from separate derivatives to a statement about arbitrary small movements.
CHAPTER 3 OF 15 · Understand local change
3. The gradient turns scalar change into a vector
In these Cartesian coordinates, the gradient of a differentiable scalar field f is ∇f = (fₓ, fᵧ) in two dimensions, or (fₓ, fᵧ, f_z) in three. It packages directional information about the scalar field. The input is a scalar field; the output is a vector field.
For a unit direction u, the directional derivative is ∇f · u. With f(x,y) = x² + 3y² at (1,1), the gradient is (2,6). In the unit direction u = (3/5,4/5), the derivative is 2(3/5) + 6(4/5) = 6. Check that the direction really has length one before interpreting the result as change per unit distance.
Where the gradient is nonzero, its direction gives the greatest instantaneous increase among unit directions, and its magnitude gives that maximum rate. Here the maximum is √(2² + 6²) = 2√10, slightly greater than 6. The chosen direction is favourable but not exactly the steepest direction.
The unit-vector requirement can be derived from the chain rule rather than memorised. Moving from a point p along p + su gives a change rate df/ds = ∇f · u. When u has length one, s measures distance along that straight line. If u is twice as long, the same parameter step travels twice as far and the derivative doubles. Normalisation fixes the question being asked.
If the gradient is zero, there is no distinguished steepest direction from this first-order calculation. That does not prove a maximum or minimum. For example, x² − y² has zero gradient at the origin but increases along one axis and decreases along the other.
OpenStax’s gradient and directional derivative section develops the formal relationship. The useful learning habit is to distinguish the gradient vector, a chosen unit direction and the scalar rate obtained by taking their dot product.
CHAPTER 4 OF 15 · Understand local change
4. Use level sets and local approximation without overclaiming
A level curve consists of points with the same scalar value. For f(x,y) = x² + 3y², the level f = 4 is an ellipse. At (1,1), the gradient is (2,6). A tangent direction such as (3,−1) has dot product 2(3) + 6(−1) = 0 with that gradient.
This perpendicularity follows from the chain rule. Along a differentiable path that remains on a level curve, f is constant, so its derivative along that path is zero. Where the gradient is nonzero and the level curve is regular, the gradient is normal to the curve. The qualification prevents a misleading normal-direction claim at a singular point.
The local linear approximation at (1,1) is f(1 + h,1 + k) ≈ 4 + 2h + 6k. For h = 0.01 and k = −0.02, the prediction is 3.90. Direct evaluation gives 1.01² + 3(0.98²) = 3.9013. The difference is 0.0013.
In this polynomial example the omitted terms are exactly h² + 3k², which explains the discrepancy. In a general problem, an approximation needs a suitable error analysis rather than an assumption that small-looking inputs always make the error negligible.
The same first-order structure appears in sensitivity analysis: several small input changes contribute to an output change. But sensitivity is local, and the coordinate scales matter. Linear Algebra develops the wider framework of linear maps behind these approximations.
CHAPTER 5 OF 15 · Compare field operations
5. Divergence measures a local outward balance
For a three-dimensional field F = (P,Q,R), divergence is ∇ · F = Pₓ + Qᵧ + R_z. Its output is scalar. The geometric interpretation concerns net outward flux per small volume in the limiting sense, not simply whether arrows point somewhere on a drawing.
Compare two original fields: A(x,y,z) = (2x,2y,2z) and B(x,y,z) = (−y,x,0). For A, divergence is 2 + 2 + 2 = 6. For B, it is 0 + 0 + 0 = 0. The rotational appearance of B does not require a nonzero divergence.
An even simpler example is C = (5,0,0). It is nonzero everywhere but has zero divergence. Across a small box, flow through one side is balanced by flow through the opposite side. Zero divergence therefore does not mean no movement or no boundary crossing.
To see why only particular component derivatives appear, compare opposite faces of a tiny box. The right and left x-faces involve the x-component P evaluated at nearby x-values. Their difference is approximately Pₓ times the box width, multiplied by its face area. Dividing by volume leaves Pₓ. Repeating for the other two pairs produces the sum. This is a local limiting argument, not a replacement for checking differentiability.
If F represents velocity in metres per second and coordinates are in metres, divergence has units per second. Integrating divergence over a volume produces the same units as volume flow through its boundary: cubic metres per second. A unit check helps distinguish velocity, flux and a local rate.
OpenStax’s divergence and curl section provides the operator definitions and interpretations. Avoid treating positive divergence as a complete physical explanation: whether a velocity model is compatible with density changes or conservation requires additional equations and assumptions.
CHAPTER 6 OF 15 · Compare field operations
6. Curl measures local circulation, not outward flow
In a right-handed Cartesian system, curl F = ∇ × F = (Rᵧ − Q_z, P_z − Rₓ, Qₓ − Pᵧ). In three dimensions its output is a vector. The component in a chosen normal direction is connected to circulation around a small loop per enclosed area in the limit.
For B = (−y,x,0), the curl is (0,0,2). Its divergence is zero, yet its curl is not. For A = (2x,2y,2z), the curl is zero, yet its divergence is six. These two fields separate the operations more clearly than memorising two formulas without examples.
In a planar field (P,Q), the expression Qₓ − Pᵧ is often called the scalar curl. It is the z-component of the curl of the three-dimensional extension (P,Q,0) when the components do not depend on z. State that convention rather than switching silently between scalar and vector outputs.
A circulating-looking path of a particle is not, by itself, a calculation of curl at a point. Curl concerns the local field structure. In particular, the trajectory of one particle and the behaviour of neighbouring velocities are different kinds of information.
Check the order of subtraction using a known test field such as B. Reversing Qₓ − Pᵧ reverses the sign. The right-hand convention and the loop orientation must agree before a circulation calculation can be interpreted. A correct magnitude with the wrong orientation answers a different signed question.
| Operation | Input → output | Question |
|---|---|---|
| Gradient ∇f | Scalar field → vector field | How does the scalar change with direction? |
| Divergence ∇ · F | Vector field → scalar field | What is the local net outward balance? |
| Curl ∇ × F | 3D vector field → vector field | What is the local circulation density and orientation? |
CHAPTER 7 OF 15 · Integrate along boundaries
7. Line integrals distinguish following a path from measuring its length
A scalar line integral ∫C g ds accumulates a scalar quantity along arc length. A vector line integral ∫C F · dr accumulates the field’s tangential contribution along an oriented curve. The second can represent work when F is force and the curve is a displacement path.
For a piecewise smooth parametrised curve r(t), the vector line integral becomes ∫ F(r(t)) · r′(t) dt over the parameter interval. The derivative belongs in the integrand. Substituting the path into F without accounting for the path’s direction and rate does not reconstruct the integral.
Take F = (−y,x,0) and r(t) = (2 cos t,2 sin t,0), with t from 0 to 2π. Then F(r(t)) = (−2 sin t,2 cos t,0), exactly matching r′(t). Their dot product is four, so the circulation is ∫₀²π 4 dt = 8π.
Parameter speed is not an extra physical force. If the same oriented curve is described more quickly by a different admissible parameter, the derivative and integration limits change together, leaving the vector line integral unchanged. Traversing the curve twice is different: it repeats the accumulation. A parameter interval must therefore describe how many times the path is covered, not merely list its starting and ending coordinates.
The circle has circumference 4π, not 8π. Circulation and length are different quantities. Reversing the direction of traversal changes the vector line integral to −8π, while the scalar integral ∫C 1 ds remains 4π.
The OpenStax line-integral section gives the formal constructions. In a physical problem, identify what is being accumulated before attaching a familiar unit or interpretation. An integral of velocity along a spatial path is not automatically the travelled distance.
CHAPTER 8 OF 15 · Integrate along boundaries
8. Potentials make some path integrals depend only on endpoints
A field is conservative when it is the gradient of a suitable scalar potential on the domain under consideration. For F = ∇φ, the line integral along a piecewise smooth path from A to B is φ(B) − φ(A), under the usual differentiability conditions. The path must stay within the domain.
Use φ(x,y,z) = x²y + z². Its gradient is F = (2xy,x²,2z). For A = (0,1,0), the potential is zero. For B = (2,3,1), it is 4(3) + 1 = 13. Every admissible path between these endpoints has line integral thirteen for this field.
Check the field before using the shortcut. Differentiating φ reproduces every component of F, which is a direct verification of the proposed potential. Matching only the first component is not enough; integrating it with respect to x can leave an unknown function of the other variables.
On a closed path in a conservative field, the endpoint values agree and the integral is zero. Conversely, a claim of path independence concerns the field throughout its stated domain, not the outcome of one conveniently chosen pair of paths.
The OpenStax conservative-field section explains the theorem and domain conditions. Keep the sign convention distinct from physics terminology: a physical force may be written as the negative gradient of potential energy, whereas the mathematical potential φ here is defined by F = ∇φ.
CHAPTER 9 OF 15 · Integrate along boundaries
9. Green’s theorem connects a planar boundary to its interior
In its circulation form, Green’s theorem relates the counterclockwise boundary integral ∮C P dx + Q dy to the area integral ∬D (Qₓ − Pᵧ) dA. For the standard simple-region statement, the boundary is a positively oriented, piecewise smooth simple closed curve, and the components have continuous first partial derivatives on an open set containing the region and its boundary.
Take D to be the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 1 and F = (−y,x). The scalar curl is two, and the rectangle has area two. Green’s theorem therefore gives circulation four around its counterclockwise boundary.
Verify without the theorem. The bottom edge contributes zero. On the right edge, x = 2 and y increases from zero to one, giving ∫ 2 dy = 2. Along the top, y = 1 while x decreases from two to zero, giving ∫ −1 dx = 2. The left edge contributes zero. Total: four.
The separate-edge calculation makes the orientation visible. If the boundary is traversed clockwise, every directed contribution reverses, and the total becomes −4. Merely drawing the same rectangle does not preserve the signed integral.
OpenStax’s Green’s theorem section also develops more general regions. When a region has holes, the boundary includes the hole boundaries with their appropriate orientations. Do not silently fill a missing region or omit a boundary component to make the formula look simpler.
CHAPTER 10 OF 15 · Connect surfaces and volumes
10. Flux measures crossing a surface
For a vector field F and an oriented surface S with unit normal n, flux is ∬S F · n dS. The normal component is the part crossing the surface; the tangential component does not contribute to this integral. Reversing the chosen normal reverses the sign.
Use a flat rectangular patch of area three in the plane z = 1, with upward normal (0,0,1). For the constant field F = (4,0,2), the dot product is two everywhere, so the flux is six. The component four lies parallel to the patch and adds nothing to its upward flux.
If the same area-three patch is instead normal to the positive x-direction, the constant-field flux becomes twelve. Thus field magnitude and area alone do not determine flux. Orientation is part of the input, not a decorative arrow added after calculation.
For a flat patch this area-vector idea is easy to test. Use r(u,v) = (2u,3v,1), with both parameters between zero and one. The tangent vectors are (2,0,0) and (0,3,0), whose cross product is (0,0,6). The parameter square has area one, while the physical rectangle has area six. The cross product supplies exactly that scaling as well as the upward orientation.
On a parametrised surface, the cross product of the two parameter tangent vectors supplies an oriented area vector. Its magnitude includes the area-scaling factor. Replacing it by a unit normal without including the corresponding surface-area factor loses part of the calculation.
An open surface has a chosen side but does not enclose a volume by itself. Before applying a closed-surface theorem, identify any missing faces or caps. Adding a cap can be a valid method only when its contribution is included and then handled correctly.
CHAPTER 11 OF 15 · Connect surfaces and volumes
11. Stokes’ theorem connects circulation to curl flux
Stokes’ theorem states ∮C F · dr = ∬S (∇ × F) · n dS when the surface, boundary, field and orientations satisfy its hypotheses. In the standard setting, S is a piecewise smooth oriented surface with boundary C, the components of F have continuous first partial derivatives in an open region containing S, and the boundary orientation is induced by the surface normal.
Return to F = (−y,x,0) and the radius-two circle in the xy-plane. Choose the upward-oriented disk. Curl F = (0,0,2), so the curl flux is two times the disk area 4π, giving 8π. This agrees with the direct line integral in Chapter 7.
The right-hand rule connects the choices: the upward normal corresponds to counterclockwise traversal as viewed from positive z. A downward normal requires the opposite boundary direction. Changing just one orientation changes one side’s sign and breaks the comparison.
The theorem can allow a different surface with the same boundary, but the replacement must satisfy the conditions and the field must remain suitably defined around it. ‘Same boundary’ alone is not permission to pass a surface through a singularity.
The OpenStax Stokes’ theorem section gives the precise framework. The conceptual gain is a connection between local circulation and accumulated boundary circulation, not a rule that every surface integral equals every line integral.
CHAPTER 12 OF 15 · Connect surfaces and volumes
12. The divergence theorem connects outward flux to volume
The divergence theorem states ∬∂V F · n dS = ∭V ∇ · F dV for a suitable bounded solid V with a closed, piecewise smooth boundary, outward unit normal n, and a continuously differentiable field on an open region containing the solid and its boundary. Its boundary integral uses F itself, not curl F.
For an original verification, take F = (2x,2y,2z) on the cube 0 ≤ x,y,z ≤ a, where a is positive. Divergence is six and volume is a³, so the theorem gives outward flux 6a³.
Check the six faces. On x = a, the outward normal is positive x, so the integrand is 2a and the face contributes 2a³. The faces y = a and z = a contribute the same amount. On x = 0, y = 0 and z = 0, the relevant normal component is zero. The sum is 6a³.
This check shows why a positive component is not enough to determine the sign of a face contribution: the outward normal differs between opposite faces. A field can enter through one face and leave through another, with net flux measuring their signed balance.
The OpenStax divergence theorem section develops the formal statement. For applications, continue to Fluid Mechanics and Electromagnetism, where field equations supply the physical relationships that the mathematics alone does not specify.
| Connection | Boundary quantity | Interior quantity |
|---|---|---|
| Green’s theorem, circulation form | Circulation around a planar boundary | Area integral of Qₓ − Pᵧ |
| Stokes’ theorem | Circulation around a surface boundary | Flux of curl through the oriented surface |
| Divergence theorem | Outward flux through a closed boundary | Volume integral of divergence |
CHAPTER 13 OF 15 · Check, practise and transfer
13. A hole in the domain can invalidate a tempting shortcut
Consider G(x,y) = (−y/(x² + y²), x/(x² + y²)) on the plane with the origin removed. Its scalar curl is zero wherever it is defined. Yet its circulation around the unit circle, traversed counterclockwise once, is 2π.
Verify the loop integral directly. With r(t) = (cos t,sin t), G(r(t)) = (−sin t,cos t) and r′(t) is the same vector. Their dot product is one, so the integral from zero to 2π is 2π. No contradiction appears: zero curl was a local condition, while the loop surrounds a point absent from the domain.
For a continuously differentiable planar field on an open simply connected domain, zero scalar curl provides a standard sufficient condition for a potential. The punctured plane does not satisfy that domain condition. Simply connected means, informally, that loops can be contracted within the domain without crossing a missing obstruction.
Likewise, Green’s theorem cannot be applied to the whole disk for G because the field is undefined at the origin inside it. An annulus avoids the singularity, but then both the outer and inner boundaries must be included with their induced orientations.
This is a transferable mathematical lesson: an algebraic test and its domain conditions form one argument. A computer producing a derivative of zero does not verify the geometry of the domain. Mathematical Modelling and Numerical Analysis extend that habit to assumptions, approximation and computational checks.
CHAPTER 14 OF 15 · Check, practise and transfer
14. Practise, repair and answer the common questions
Practice A: for f(x,y) = x² + 3y² at (1,1), find the directional derivative in direction (1,−1). First convert that direction into a unit vector. Explain why the unnormalised vector would answer a differently scaled question.
Practice B: for F = (3x,−y,2z), calculate divergence and curl. Then find the outward flux through the closed unit cube 0 ≤ x,y,z ≤ 1 using the divergence theorem. State why the theorem is admissible for this field and solid.
Practice C: for F = (−y,x,0), find the circulation around the radius-three circle in the xy-plane, clockwise as viewed from positive z. Use both a sign argument and a curl-area calculation. Name the compatible surface normal.
If a learner confuses divergence and curl, repair the output types before assigning another long integral. Ask whether the result should be scalar or vector and which geometric question it answers. If signs are unstable, practise a single edge or flat face with an explicit arrow and normal.
Does zero divergence mean zero field? No: a nonzero constant field is a counterexample. Does zero curl always imply a global potential? No: domain conditions matter. Does a zero gradient identify a maximum? No: it identifies a first-order stationary point, which can have different local behaviours.
Are the Cartesian formulas unchanged in every coordinate system? No. Coordinate-dependent formulas must respect basis changes and geometric scale factors. Can a numerical picture prove a theorem’s conditions? No. It can suggest a pattern, while the required smoothness, domain and orientation checks remain part of the argument.
Worked answers and checks
A: The direction (1,−1) has length √2, so u = (1/√2,−1/√2). Dotting with ∇f(1,1) = (2,6) gives (2 − 6)/√2 = −2√2. Using (1,−1) directly gives −4, the rate per parameter step along that non-unit vector rather than per unit distance.
B: Divergence is 3 − 1 + 2 = 4. Every component of curl is zero because the cross-partials involved vanish. The outward flux is four times unit volume, hence four. The field is polynomial and continuously differentiable everywhere; the cube has a closed piecewise smooth boundary, oriented outward.
C: Curl is (0,0,2). The radius-three disk has area 9π. Clockwise boundary traversal viewed from positive z corresponds to a downward normal, so curl flux is −2 × 9π = −18π. Equivalently, counterclockwise circulation is 18π and reversal gives −18π. A calculation of positive 18π with clockwise traversal has lost the orientation.
CHAPTER 15 OF 15 · Check, practise and transfer
15. Connect the methods and carry the learning elsewhere
This root belongs to The Gold Standard of Education: Learning Transfers into Life. The standard is being able to choose a field operation or integral because of the question, explain its conditions and check the result through another representation.
Use Vectors for components and direction, Calculus for local change and accumulation, and Linear Algebra for linear structure. Follow Differential Equations when field relationships become equations to solve: Differential Equations adds initial and boundary conditions that a derivative formula alone cannot supply.
The Secondary 1 Mathematics learning guide offers a foundational learning connection. The same teaching sequence remains useful at this higher level: locate the first unstable idea, explain it, verify it independently and extend it only after it becomes dependable.
Sources were reviewed on 21 October 2026. The linked textbook sections and MIT course support formal study; they do not define the requirements of every examination or qualify a reader to design a physical system. The worked cases are deliberately simple enough to reconstruct by hand.
For a final transfer task, invent one scalar field and one vector field. Identify what a gradient, divergence and curl would mean for the appropriate inputs. Choose a curve, a surface and a volume, state their orientations where needed, and decide which theorem could connect their integrals. Explain one change to the domain that would make your chosen shortcut invalid.