Flagship subject
✓ Official Syllabus VerifiedStandards & Rigor ↗
15

Vector Calculus

∫ Calculus I–III · Vector Calculus University Core · 15  ·  Vector Calculus

The capstone of multivariable calculus integrates vector fields—assignments of directed force, flow, or field vectors to every spatial point—along paths and across surfaces. Connecting line and surface integrals to internal differential operators (\nabla f, \nabla times F, \(\nabla \times \mathbf{F}\)), the fundamental theorems of vector calculus (Green's, Stokes', and the Divergence Theorem) unify physical conservation laws across dimensions.

● Definition 15.1 — Vector Fields, Line Integrals & Work

A vector field on \(\mathbb{R}^3\) is a mapping \(\mathbf{F}(x, y, z) = P\mathbf{i} + Q\mathbf{j} + R\mathbf{k}\). If \(C\) is a smooth curve parameterized by \(\mathbf{r}(t)\) for \(a \le t \le b\), the line integral of \(\mathbf{F}\) along \(C\) (representing physical work done by \(\mathbf{F}\) on a moving particle) is:

\[ \int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \mathbf{F}\big(\mathbf{r}(t)\big) \cdot \mathbf{r}'(t)\,dt = \int_C (P\,dx + Q\,dy + R\,dz) \]

A vector field is conservative if there exists a scalar potential function \(f\) such that \(\mathbf{F} = \nabla f\).

Streamlines of the radial source field \(\mathbf{F}(x, y) = \langle x, y \rangle\) with positive divergence \(\nabla \cdot \mathbf{F} = 2 > 0\) everywhere.
▲ Theorem 15.1 — Fundamental Theorem for Line Integrals (The Gradient Theorem)

Let \(C\) be a piecewise-smooth curve from initial point \(A = \mathbf{r}(a)\) to terminal point \(B = \mathbf{r}(b)\). If \(f\) is a continuously differentiable scalar function, then:

\[ \int_C \nabla f \cdot d\mathbf{r} = f(B) - f(A) = f\big(\mathbf{r}(b)\big) - f\big(\mathbf{r}(a)\big) \]

Fundamental Consequences of Path Independence:

  • Path Independence: The work done depends only on the endpoints \(A\) and \(B\), completely independent of the specific trajectory taken.
  • Zero Closed-Loop Circulation: For any closed path \(C\) (where \(A = B\)):
    \[ \oint_C \mathbf{F} \cdot d\mathbf{r} = 0 \]
  • Curl Test on Simply Connected Domains: A field \(\mathbf{F}\) with continuous derivatives on a simply connected domain is conservative if and only if \(\nabla \times \mathbf{F} = \mathbf{0}\) (in 2D: \(\frac{\partial Q}{\partial x} = \frac{\partial P}{\partial y}\)).

Analytical Proof via Multivariable Chain Rule

Let \(C\) be parameterized by \(\mathbf{r}(t) = \langle x(t), y(t), z(t) \rangle\) for \(a \le t \le b\). By definition of the line integral:

\[ \int_C \nabla f \cdot d\mathbf{r} = \int_a^b \nabla f\big(\mathbf{r}(t)\big) \cdot \mathbf{r}'(t)\,dt \]\[ = \int_a^b \left( \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt} + \frac{\partial f}{\partial z}\frac{dz}{dt} \right) dt \]

By the Multivariable Chain Rule, the integrand inside the parentheses is precisely the total time derivative \(\frac{d}{dt}\big[f(\mathbf{r}(t))\big]\):

\[ \int_a^b \nabla f\big(\mathbf{r}(t)\big) \cdot \mathbf{r}'(t)\,dt = \int_a^b \frac{d}{dt}\big[f(\mathbf{r}(t))\big]\,dt \]

By the single-variable Fundamental Theorem of Calculus, integrating a derivative yields the net evaluation at boundary points:

\[ \int_a^b \frac{d}{dt}\big[f(\mathbf{r}(t))\big]\,dt = \Big[ f\big(\mathbf{r}(t)\big) \Big]_a^b = f\big(\mathbf{r}(b)\big) - f\big(\mathbf{r}(a)\big) = f(B) - f(A) \quad \blacksquare \]
◆ Why It Works — First-Principles Derivation (Vector Calculus)

Why Green's Theorem Unifies Boundary Circulation & Interior Curl: Partitioning planar domain \(D\) into infinitesimal rectangles \(\Delta x \times \Delta y\) causes shared interior edge integrals to cancel in opposite directions, leaving boundary circulation \(\oint_{\partial D} (P\,dx + Q\,dy)\) equal to the sum of microscopic curls \(\iint_D (Q_x - P_y)\,dA\).

Worked Example 15.1 — Foundations: Conservative Field Work & Potential Function
Problem. Show that \(\mathbf{F}(x, y) = \langle 2xy + 3, x^2 - 4y \rangle\) is conservative, find its scalar potential function \(f(x, y)\), and compute the work done moving a particle along any path from \(A(1, 0)\) to \(B(2, 3)\).
▸ Show step-by-step solution

Step 1: Verify the cross-derivative test.
\(P = 2xy + 3 \implies \frac{\partial P}{\partial y} = 2x\)
\(Q = x^2 - 4y \implies \frac{\partial Q}{\partial x} = 2x\)
Since \(\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}\) on all of \(\mathbb{R}^2\), \(\mathbf{F}\) is conservative.

Step 2: Construct potential function \(f(x, y)\).
Integrate \(f_x = 2xy + 3\) with respect to \(x\):

\[ f(x, y) = \int (2xy + 3)\,dx = x^2 y + 3x + g(y) \]

Differentiate with respect to \(y\) and set equal to \(Q\):

\[ f_y = x^2 + g'(y) = x^2 - 4y \implies g'(y) = -4y \implies g(y) = -2y^2 + C \]\[ f(x, y) = x^2 y + 3x - 2y^2 \]

Step 3: Apply the Fundamental Theorem for Line Integrals.

\[ W = \int_C \mathbf{F} \cdot d\mathbf{r} = f(2, 3) - f(1, 0) = \big(2^2(3) + 3(2) - 2(3^2)\big) - \big(1^2(0) + 3(1) - 2(0)\big) \]\[ = (12 + 6 - 18) - (0 + 3 - 0) = 0 - 3 = -3 \]
Worked Example \(B\) — Vector Calculus (Medium Application)
Problem. Evaluate \(\int \frac{1}{x\ln x}\,dx\).
▸ Show step-by-step solution

Let \(u = \ln x\), so \(du = \frac{1}{x}\,dx\). Substituting gives \(\int \frac{1}{u}\,du = \ln|u| + C = \ln|\ln x| + C\).

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Vector Calculus)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Computing angle at \(B\) using \(\overrightarrow{AB}\cdot\overrightarrow{BC}\)Vectors are head-to-tail instead of tail-to-tail, giving \(180^\circ - \theta\).Reverse \(\overrightarrow{AB}\) so both emanate from \(B\): use \(\overrightarrow{BA}\cdot\overrightarrow{BC}\).
Using the same parameter \(t\) for two intersecting 3D lines \(\mathbf{r}_1(t) = \mathbf{r}_2(t)\)Tests for a simultaneous collision at time \(t\) rather than geometric intersection of paths.Assign distinct parameters \(\lambda\) and \(\mu\) to the two lines before equating components.
Assuming \((AB)^{-1} = A^{-1}B^{-1}\)Multiplying \((AB)(A^{-1}B^{-1})\) does not cancel inner factors when \(AB \ne BA\).Use the shoe-sock reversal law: \((AB)^{-1} = B^{-1}A^{-1}\).
▲ Exam Pacing & Verification Strategy — Vector Calculus

Fast Matrix & Vector Verification (University Single-Variable & Multivariable Calculus): Check every \(2\times 2\) or \(3\times 3\) eigenvalue computation using the trace and determinant invariants: \(\sum \lambda_i = \operatorname{tr}(A)\) (sum of diagonal entries) and \(\prod \lambda_i = \det(A)\).

Level 1 · Foundations
Evaluate the line integral \(\displaystyle \int_C \mathbf{F} \cdot d\mathbf{r}\) for \(\mathbf{F} = \nabla(x^3 y + 2z)\) along any curve \(C\) from \((0, 0, 1)\) to \((2, 1, 3)\).
💡 Hint 1 of 3
The field is conservative with potential function \(f(x, y, z) = x^3 y + 2z\).
💡 Hint 2 of 3
By the Fundamental Theorem for Line Integrals: \(\int_C \nabla f \cdot d\mathbf{r} = f(2, 1, 3) - f(0, 0, 1)\) Evaluate at endpoints: \(f(2, 1, 3) = 2^3(1) + 2(3) = 8 + 6 = 14\) \(f(0, 0, 1) = 0^3(0) + 2(1)\).
💡 Hint 3 of 3
Therefore: \(\int_C F \cdot dr = 14 - 2\).
The field is conservative with potential function \(f(x, y, z) = x^3 y + 2z\).
By the Fundamental Theorem for Line Integrals:
\[ \int_C \nabla f \cdot d\mathbf{r} = f(2, 1, 3) - f(0, 0, 1) \]
Evaluate at endpoints:
\(f(2, 1, 3) = 2^3(1) + 2(3) = 8 + 6 = 14\)
\(f(0, 0, 1) = 0^3(0) + 2(1) = 2\)
Therefore:
\[ \int_C \mathbf{F} \cdot d\mathbf{r} = 14 - 2 = 12 \]
⊙ Explorer · Vector field — divergence & curl
interactive
divergence ∇·\(F\)\(0.00\)
curl ∇×F\(2.00\)
field typerotational

At \(t=1\) the field is \(\langle -y,x\rangle\) (pure rotation, curl \(2\)); at \(t=0\) it is \(\langle x,y\rangle\) (pure source, divergence \(2\)).

▲ Theorem 15.2 — Green's Theorem (Planar Circulation & Flux)

Let \(C\) be a positively oriented (counterclockwise), piecewise-smooth, simple closed curve in \(\mathbb{R}^2\) enclosing a region \(D\). If \(P(x, y)\) and \(Q(x, y)\) have continuous first partial derivatives on an open domain containing \(D\), then:

\[ \oint_C (P\,dx + Q\,dy) = \iint_D \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dA \]

Divergence & Flux Form: With unit outward normal \(\mathbf{n}\) and \(\mathbf{F} = \langle P, Q \rangle\):

\[ \oint_C \mathbf{F} \cdot \mathbf{n}\,ds = \iint_D (\nabla \cdot \mathbf{F})\,dA = \iint_D \left( \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} \right) dA \]

Planar Area Computation: By choosing \(Q_x - P_y = 1\), the enclosed area of \(D\) can be computed solely from boundary line integrals:

\[ \text{Area}(D) = \oint_C x\,dy = -\oint_C y\,dx = \frac{1}{2}\oint_C (x\,dy - y\,dx) \]

Positively oriented (counterclockwise) closed boundary curve \(C\) enclosing planar region \(R\) for Green's Theorem.
Line Integral
\( \int_C \mathbf{F}\cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt \)
Green's Theorem
\( \oint_C (P\,dx + Q\,dy) = \iint_D (Q_x - P_y)\,dA \)
Divergence
\( \nabla \cdot \mathbf{F} = P_x + Q_y + R_z \)
Curl
\( \nabla \times \mathbf{F} = \det[\mathbf{i},\mathbf{j},\mathbf{k}; \partial; \mathbf{F}] \)
Worked Example 15.2 — Medium: Green's Theorem Line Integral Evaluation
Problem. Evaluate \(\displaystyle \oint_C (3y - e^x)\,dx + (7x + \sqrt{y^4 + 1})\,dy\), where \(C\) is the circle \(x^2 + y^2 = 9\) oriented counterclockwise.
▸ Show step-by-step solution

Step 1: Identify \(P\) and \(Q\) and compute partials.
\(P = 3y - e^x \implies \frac{\partial P}{\partial y} = 3\)
\(Q = 7x + \sqrt{y^4 + 1} \implies \frac{\partial Q}{\partial x} = 7\)

Step 2: Apply Green's Theorem.

\[ \oint_C (P\,dx + Q\,dy) = \iint_D \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dA = \iint_D (7 - 3)\,dA = 4 \iint_D dA \]

Step 3: Evaluate over the enclosed disk \(D\).
The region \(D\) is a circle of radius \(R = 3\), so \(\text{Area}(D) = \pi(3^2) = 9\pi\):

\[ 4 \iint_D dA = 4(9\pi) = 36\pi \]
Level 2 · Medium
Use Green's Theorem to evaluate \(\displaystyle\oint_C (3y\,dx + 5x\,dy)\) where \(C\) is the counterclockwise circle \(x^2 + y^2 = 4\).
💡 Hint 1 of 3
Identify components: \(P = 3y\) and \(Q = 5x\).
💡 Hint 2 of 3
Apply Green's Theorem: \(\oint_C (3y\,dx + 5x\,dy) = \iint_R \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)\,dA = \iint_R (5 - 3)\,dA = 2 \iint_R dA\).
💡 Hint 3 of 3
Therefore, \(2 \iint_R dA = 2(4\pi)\).
Identify components: \(P = 3y\) and \(Q = 5x\).
Compute partial derivatives: \(\frac{\partial Q}{\partial x} = 5\) and \(\frac{\partial P}{\partial y} = 3\).
Apply Green's Theorem:
\[ \oint_C (3y\,dx + 5x\,dy) = \iint_R \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)\,dA = \iint_R (5 - 3)\,dA = 2 \iint_R dA. \]
The region \(R\) is a disk of radius \(r = 2\), so its area is \(\pi(2^2) = 4\pi\).
Therefore, \(2 \iint_R dA = 2(4\pi) = 8\pi\).
▲ Theorem 15.3 — Stokes' Theorem & The Divergence Theorem (Gauss's Theorem)

Green's Theorem generalizes into two grand higher-dimensional theorems:

Stokes' Theorem (Surface Curl to Boundary Circulation): Let \(S\) be an oriented piecewise-smooth surface bounded by a simple, closed, piecewise-smooth curve \(C = \partial S\) with positive orientation relative to normal \(\mathbf{n}\). If \(\mathbf{F}\) is continuously differentiable:

\[ \oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \iint_S (\nabla \times \mathbf{F}) \cdot \mathbf{n}\,dS \]

The Divergence Theorem (Volume Divergence to Surface Flux): Let \(E\) be a simple solid region enclosed by a closed surface \(S = \partial E\) oriented with outward unit normal \(\mathbf{n}\). Then:

\[ \iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E (\nabla \cdot \mathbf{F})\,dV \]

Fundamental Vector Identities:

  • \(\nabla \times (\nabla f) \equiv \mathbf{0}\) (the curl of any gradient field is zero).
  • \(\nabla \cdot (\nabla \times \mathbf{F}) \equiv 0\) (the divergence of any curl field is zero).
Worked Example 15.3 — Advanced: Divergence Theorem for Outward Net Flux
Problem. Calculate the outward flux of \(\mathbf{F}(x, y, z) = \langle 2x + z^2, y^2 - x, 3z - y \rangle\) across the closed surface \(S\) bounding the cylinder \(x^2 + y^2 \le 4\) between \(z = 0\) and \(z = 3\).
▸ Show step-by-step solution

Step 1: Compute divergence \(\nabla \cdot \mathbf{F}\).

\[ \nabla \cdot \mathbf{F} = \frac{\partial}{\partial x}(2x + z^2) + \frac{\partial}{\partial y}(y^2 - x) + \frac{\partial}{\partial z}(3z - y) = 2 + 2y + 3 = 5 + 2y \]

Step 2: Apply the Divergence Theorem.

\[ \iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E (5 + 2y)\,dV = 5 \iiint_E dV + 2 \iiint_E y\,dV \]

Step 3: Evaluate using cylindrical geometry and symmetry.
By symmetry across the \(xz\)-plane (since the cylinder \(x^2 + y^2 \le 4\) is symmetric in \(y\)), the odd integral \(\iiint_E y\,dV = 0\).
The volume of the cylinder is \(\text{Vol}(E) = \pi R^2 h = \pi(2^2)(3) = 12\pi\).
Thus:

\[ \iint_S \mathbf{F} \cdot d\mathbf{S} = 5(12\pi) + 2(0) = 60\pi \]
⚠ Common Traps & Exam Pitfalls
Green's Theorem Orientation: Green's Theorem \(\oint_C (P\,dx + Q\,dy) = \iint_R (Q_x - P_y)\,dA\) strictly requires a positively oriented (counterclockwise) boundary curve \(C\) keeping the region on the left. If traversing clockwise, you MUST insert a negative sign!

Conservative Vector Fields Checklist: A vector field \(\mathbf{F} = \nabla f\) has \(\text{curl}(\mathbf{F}) = \mathbf{0}\). On simply connected domains: (1) Path independence \(\int_{C_1} = \int_{C_2}\); (2) Zero work around any closed loop: \(\oint_C \mathbf{F} \cdot d\mathbf{r} = 0\); (3) Fundamental Theorem for Line Integrals: \(\int_C \nabla f \cdot d\mathbf{r} = f(B) - f(A)\).

Divergence vs Curl: Divergence \(\nabla \cdot \mathbf{F}\) yields a scalar measuring net outflow; Curl \(\nabla \times \mathbf{F}\) yields a vector measuring rotational circulation.

Stokes' Theorem Closed Boundary: Stokes' Theorem applies to OPEN surfaces with a boundary curve: \(\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}\). If the surface \(S\) is CLOSED (like a complete sphere), it has no boundary curve (\(C = \emptyset\)), so the flux of curl through any closed surface is identically \(0\).
Level 3 · Advanced
Use the Divergence Theorem to find the outward flux of \(\mathbf{F} = \langle x^3, y^3, z^3 \rangle\) across the boundary sphere \(S: x^2 + y^2 + z^2 = 1\).
💡 Hint 1 of 3
Compute the divergence: \(\nabla \cdot \mathbf{F} = \frac{\partial}{\partial x}(x^3) + \frac{\partial}{\partial y}(y^3) + \frac{\partial}{\partial z}(z^3) = 3x^2 + 3y^2 + 3z^2 = 3(x^2 + y^2 + z^2)\).
💡 Hint 2 of 3
Apply the Divergence Theorem: \(\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E 3(x^2 + y^2 + z^2)\,dV\).
💡 Hint 3 of 3
Convert to spherical coordinates: \(x^2 + y^2 + z^2 = \rho^2\), \(dV = \rho^2 \sin\phi\,d\rho\,d\phi\,d\theta\): \(= 3 \int_0^{2\pi} d\theta \int_0^{\pi} \sin\phi\,d\phi \int_0^1 \rho^2 (\rho^2\,d\rho) = 3(2\pi)(2) \int_0^1 \rho^4\,d\rho = 12\pi \left[ \frac{\rho^5}{5} \right]_0^1\).
Compute the divergence:
\[ \nabla \cdot \mathbf{F} = \frac{\partial}{\partial x}(x^3) + \frac{\partial}{\partial y}(y^3) + \frac{\partial}{\partial z}(z^3) = 3x^2 + 3y^2 + 3z^2 = 3(x^2 + y^2 + z^2) \]
Apply the Divergence Theorem:
\[ \iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E 3(x^2 + y^2 + z^2)\,dV \]
Convert to spherical coordinates: \(x^2 + y^2 + z^2 = \rho^2\), \(dV = \rho^2 \sin\phi\,d\rho\,d\phi\,d\theta\):
\[ = 3 \int_0^{2\pi} d\theta \int_0^{\pi} \sin\phi\,d\phi \int_0^1 \rho^2 (\rho^2\,d\rho) = 3(2\pi)(2) \int_0^1 \rho^4\,d\rho = 12\pi \left[ \frac{\rho^5}{5} \right]_0^1 = \frac{12\pi}{5} \]
[Practice 4 · Hard] Let \( f{\left(x \right)} = x^{3} + 3 x \), which is one-to-one. Find \( (f^{-1})'(4) \).
💡 Hint 1 of 3
Set up the initial relation: \( f{\left(1 \right)} = 4 \).
💡 Hint 2 of 3
So: \((f^{-1})'(4)\). Rewrite and substitute: \((f^{-1})'(4) = \dfrac1{f'(1)}\).
💡 Hint 3 of 3
Evaluate \(\dfrac1{f'(1)}\) to obtain the final answer.
\( f{\left(1 \right)} = 4 \), so \( (f^{-1})'(4)=\dfrac1{f'(1)} \) \( = \) \( \frac{1}{6} \) since \( f' = 3 x^{2} + 3 \).
\(\lim_{n\to\infty}\left(1-\frac{1}{n}\right)^n=\)
💡 Hint 1 of 3
Start by examining the given mathematical expression in the problem: \(\lim_{n\to\infty}\left(1-\frac{1}{n}\right)^n=\).
💡 Hint 2 of 3
Rewrite and simplify to obtain: \((1-1/n)^n\to e^{-1}\).
💡 Hint 3 of 3
Apply this step to \((1-1/n)^n\to e^{-1}\) and simplify to determine the final result.
Applying Limits and Continuity principles, \((1-1/n)^n\to e^{-1}\). Therefore, the verified correct option is \(e^{-1}\).

Vector Calculus — 6-Mark Structured Problem

6 pts No Calculator
For Vector Calculus, examine the quadratic-rate model \(f(x) = 2x^2 - 4x + 1\) on \(x \in [0, 3]\).
  1. (a)2 pts
    Compute \(f(0)\) and \(f(2)\).
    Scoring Guideline & Justification
    • [M1] Substitutes x=0 and x=2 (1 pt)
    • [A1] Obtains 1 and 1 (1 pt)
  2. (b)2 pts
    Find the derivative/rate \(f'(x)\) and critical point \(x_c\).
    Scoring Guideline & Justification
    • [M1] Differentiates to 4x - 4 (1 pt)
    • [A1] Solves x_c = 4/4 (1 pt)
  3. (c)2 pts
    Calculate the average rate of change from \(x = 0\) to \(x = 2\).
    Scoring Guideline & Justification
    • [M1] Applies (f(2) - f(0)) / 2 (1 pt)
    • [A1] Evaluates 0 (1 pt)
Complete Worked Solution
(a) \(f(0)=1, f(2)=1\). (b) \(f'(x)=4x-4 \implies x_c = \frac{4}{4}\). (c) Average rate \(= \frac{0}{2} = 0\).
📝 Chapter Quiz