Skip to content

Multivariable Calculus

Let f:D⊆Rn→Rf : D \subseteq \mathbb{R}^n \to \mathbb{R}. The partial derivative of ff with respect to xix_i at a=(a1,…,an)\mathbf{a} = (a_1, \ldots, a_n) is

∂f∂xi(a)=lim⁡h→0f(a1,…,ai+h,…,an)−f(a1,…,an)h\frac{\partial f}{\partial x_i}(\mathbf{a}) = \lim_{h \to 0} \frac{f(a_1, \ldots, a_i + h, \ldots, a_n) - f(a_1, \ldots, a_n)}{h}

Provided the limit exists. This is the rate of change of ff in the direction of the xix_i-axis, Holding all other variables fixed.

Notation. Common notations for the partial derivative with respect to xix_i include fxif_{x_i}, ∂if\partial_i fAnd ∂f∂xi\frac{\partial f}{\partial x_i}. We use these interchangeably.

Theorem 1.1 (Clairaut’s Theorem / Schwarz’s Theorem). If fxyf_{xy} and fyxf_{yx} are continuous on an Open set containing (a,b)(a, b)Then

∂2f∂x∂y(a,b)=∂2f∂y∂x(a,b)\frac{\partial^2 f}{\partial x \partial y}(a,b) = \frac{\partial^2 f}{\partial y \partial x}(a,b)

Proof. Define the second-order difference function

Δ(h,k)=f(a+h, b+k)−f(a+h, b)−f(a, b+k)+f(a,b)\Delta(h, k) = f(a+h,\, b+k) - f(a+h,\, b) - f(a,\, b+k) + f(a, b)

For h,k≠0h, k \neq 0. Define ϕ(s)=f(s,b+k)−f(s,b)\phi(s) = f(s, b+k) - f(s, b). Then Δ(h,k)=ϕ(a+h)−ϕ(a)\Delta(h,k) = \phi(a+h) - \phi(a). By the Mean Value Theorem, there exists θ1∈(0,1)\theta_1 \in (0, 1) such that

Δ(h,k)=h⋅ϕ′(a+θ1h)=h[fx(a+θ1h, b+k)−fx(a+θ1h, b)]\Delta(h, k) = h \cdot \phi'(a + \theta_1 h) = h \left[f_x(a + \theta_1 h,\, b+k) - f_x(a + \theta_1 h,\, b)\right]

Apply the Mean Value Theorem again to the function g(t)=fx(a+θ1h, t)g(t) = f_x(a + \theta_1 h,\, t) on [b,b+k][b, b+k]. There exists θ2∈(0,1)\theta_2 \in (0, 1) such that

Δ(h,k)=hk⋅fxy(a+θ1h, b+θ2k)\Delta(h, k) = hk \cdot f_{xy}(a + \theta_1 h,\, b + \theta_2 k)

Similarly, by reversing the order of application, there exist θ3,θ4∈(0,1)\theta_3, \theta_4 \in (0,1) such That

Δ(h,k)=hk⋅fyx(a+θ3h, b+θ4k)\Delta(h, k) = hk \cdot f_{yx}(a + \theta_3 h,\, b + \theta_4 k)

For h,k≠0h, k \neq 0 we have

fxy(a+θ1h, b+θ2k)=fyx(a+θ3h, b+θ4k)f_{xy}(a + \theta_1 h,\, b + \theta_2 k) = f_{yx}(a + \theta_3 h,\, b + \theta_4 k)

Taking the limit as (h,k)→(0,0)(h, k) \to (0, 0) and using continuity of fxyf_{xy} and fyxf_{yx}We obtain fxy(a,b)=fyx(a,b)f_{xy}(a, b) = f_{yx}(a, b). ■\blacksquare

Intuition. Clairaut’s theorem tells us that, under a mild regularity condition (continuity of the Mixed second partials), the order in which we differentiate does not matter. Without this Condition, the mixed partials may differ.

Definition. f:D⊆Rn→Rf : D \subseteq \mathbb{R}^n \to \mathbb{R} is differentiable at a\mathbf{a} if There exists a linear map L:Rn→RL : \mathbb{R}^n \to \mathbb{R} such that

lim⁡h→0f(a+h)−f(a)−L(h)∥h∥=0\lim_{\mathbf{h} \to \mathbf{0}} \frac{f(\mathbf{a} + \mathbf{h}) - f(\mathbf{a}) - L(\mathbf{h})}{\lVert \mathbf{h} \rVert} = 0

When ff is differentiable at a\mathbf{a}The linear map LL is given by the gradient.

Remark. Existence of all partial derivatives at a point does not imply differentiability at That point. The canonical counterexample is

f(x,y)={xyx2+y2if (x,y)≠(0,0),0if (x,y)=(0,0).f(x,y) = \begin{cases} \dfrac{xy}{x^2 + y^2} & \mathrm{if\ }(x,y) \neq (0,0), \\ 0 & \mathrm{if\ }(x,y) = (0,0). \end{cases}

Both fx(0,0)f_x(0,0) and fy(0,0)f_y(0,0) exist (and equal 00), yet ff is not even continuous at the origin, Hence not differentiable.

The gradient of ff at a\mathbf{a} is

∇f(a)=(∂f∂x1(a),…,∂f∂xn(a))\nabla f(\mathbf{a}) = \left(\frac{\partial f}{\partial x_1}(\mathbf{a}), \ldots, \frac{\partial f}{\partial x_n}(\mathbf{a})\right)

The linear approximation of ff near a\mathbf{a} is

f(a+h)≈f(a)+∇f(a)⋅hf(\mathbf{a} + \mathbf{h}) \approx f(\mathbf{a}) + \nabla f(\mathbf{a}) \cdot \mathbf{h}

Theorem 1.2. If all partial derivatives of ff exist and are continuous in a neighbourhood of a\mathbf{a}Then ff is differentiable at a\mathbf{a}.

Remark. Functions whose partial derivatives exist and are continuous on an open set UU are called C1(U)C^1(U). Theorem 1.2 says C1  ⟹  C^1 \implies differentiable. The converse is false: there exist Differentiable functions whose partial derivatives are not continuous.

Proposition. If ff is differentiable at a\mathbf{a}Then ff is continuous at a\mathbf{a}.

Proof. From the definition of differentiability:

f(a+h)−f(a)=L(h)+ε(h)∥h∥f(\mathbf{a} + \mathbf{h}) - f(\mathbf{a}) = L(\mathbf{h}) + \varepsilon(\mathbf{h})\lVert \mathbf{h} \rVert

Where LL is linear and ε(h)→0\varepsilon(\mathbf{h}) \to 0 as h→0\mathbf{h} \to \mathbf{0}. As h→0\mathbf{h} \to \mathbf{0} Both terms on the right vanish, so f(a+h)→f(a)f(\mathbf{a} + \mathbf{h}) \to f(\mathbf{a}). ■\blacksquare

The directional derivative of ff at a\mathbf{a} in the direction of a unit vector u\mathbf{u} is

Duf(a)=lim⁡h→0f(a+hu)−f(a)hD_{\mathbf{u}} f(\mathbf{a}) = \lim_{h \to 0} \frac{f(\mathbf{a} + h\mathbf{u}) - f(\mathbf{a})}{h}

Theorem 1.3. If ff is differentiable at a\mathbf{a}Then

Duf(a)=∇f(a)⋅uD_{\mathbf{u}} f(\mathbf{a}) = \nabla f(\mathbf{a}) \cdot \mathbf{u}

Proof. Since ff is differentiable at a\mathbf{a}

f(a+hu)−f(a)h=∇f(a)⋅(hu)+ε(hu)∥hu∥h\frac{f(\mathbf{a} + h\mathbf{u}) - f(\mathbf{a})}{h} = \frac{\nabla f(\mathbf{a}) \cdot (h\mathbf{u}) + \varepsilon(h\mathbf{u}) \lVert h\mathbf{u} \rVert}{h}

=∇f(a)⋅u+ε(hu)∥u∥= \nabla f(\mathbf{a}) \cdot \mathbf{u} + \varepsilon(h\mathbf{u}) \lVert \mathbf{u} \rVert

Where ε(h)→0\varepsilon(\mathbf{h}) \to 0 as h→0\mathbf{h} \to \mathbf{0}. Taking h→0h \to 0 gives the result. ■\blacksquare

Corollary 1.4. The gradient points in the direction of steepest ascent, and ∥∇f∥\lVert \nabla f \rVert Is the rate of steepest ascent.

Proof. By the Cauchy—Schwarz inequality, ∣∇f⋅u∣≤∥∇f∥⋅∥u∥=∥∇f∥\lvert \nabla f \cdot \mathbf{u} \rvert \leq \lVert \nabla f \rVert \cdot \lVert \mathbf{u} \rVert = \lVert \nabla f \rVert With equality when u\mathbf{u} is parallel to ∇f\nabla f. ■\blacksquare

Theorem 1.5 (Multivariable Chain Rule). If g:Rm→Rn\mathbf{g} : \mathbb{R}^m \to \mathbb{R}^n is Differentiable at a\mathbf{a} and f:Rn→Rf : \mathbb{R}^n \to \mathbb{R} is differentiable at g(a)\mathbf{g}(\mathbf{a})Then

∇(f∘g)(a)=Jg(a)T∇f(g(a))\nabla (f \circ \mathbf{g})(\mathbf{a}) = J\mathbf{g}(\mathbf{a})^T \nabla f(\mathbf{g}(\mathbf{a}))

Where JgJ\mathbf{g} is the Jacobian matrix of g\mathbf{g}.

Proof. Write h(t)=f(g(a+tv))h(t) = f(\mathbf{g}(\mathbf{a} + t\mathbf{v})) for a fixed direction v\mathbf{v}. Then

h(t)−h(0)t=f(g(a+tv))−f(g(a))t\frac{h(t) - h(0)}{t} = \frac{f(\mathbf{g}(\mathbf{a} + t\mathbf{v})) - f(\mathbf{g}(\mathbf{a}))}{t}

Let k=g(a+tv)−g(a)\mathbf{k} = \mathbf{g}(\mathbf{a} + t\mathbf{v}) - \mathbf{g}(\mathbf{a}). By differentiability of g\mathbf{g} k=Jg(a)(tv)+o(t)\mathbf{k} = J\mathbf{g}(\mathbf{a})(t\mathbf{v}) + o(t)And k→0\mathbf{k} \to \mathbf{0} as t→0t \to 0. By Differentiability of ff:

f(g(a)+k)−f(g(a))=∇f(g(a))⋅k+o(∥k∥)f(\mathbf{g}(\mathbf{a}) + \mathbf{k}) - f(\mathbf{g}(\mathbf{a})) = \nabla f(\mathbf{g}(\mathbf{a})) \cdot \mathbf{k} + o(\lVert \mathbf{k} \rVert)

=∇f(g(a))⋅[Jg(a)(tv)+o(t)]+o(t)= \nabla f(\mathbf{g}(\mathbf{a})) \cdot [J\mathbf{g}(\mathbf{a})(t\mathbf{v}) + o(t)] + o(t)

Dividing by tt and taking t→0t \to 0:

h′(0)=∇f(g(a))⋅Jg(a)v=[Jg(a)T∇f(g(a))]⋅vh'(0) = \nabla f(\mathbf{g}(\mathbf{a})) \cdot J\mathbf{g}(\mathbf{a})\mathbf{v} = [J\mathbf{g}(\mathbf{a})^T \nabla f(\mathbf{g}(\mathbf{a}))] \cdot \mathbf{v}

Since v\mathbf{v} was arbitrary, ∇h(0)=Jg(a)T∇f(g(a))\nabla h(0) = J\mathbf{g}(\mathbf{a})^T \nabla f(\mathbf{g}(\mathbf{a})). ■\blacksquare

Problem. Let f(x,y)=x2yf(x, y) = x^2 y and let x=cos⁡tx = \cos t, y=sin⁡ty = \sin t. Find ddtf(cos⁡t,sin⁡t)\frac{d}{dt} f(\cos t, \sin t) Using the chain rule, and verify by direct substitution.

Solution

Via the chain rule:

ddtf(x(t),y(t))=fx⋅x′(t)+fy⋅y′(t)\frac{d}{dt} f(x(t), y(t)) = f_x \cdot x'(t) + f_y \cdot y'(t)

=2xy⋅(−sin⁡t)+x2⋅cos⁡t=−2cos⁡tsin⁡2t+cos⁡3t= 2xy \cdot (-\sin t) + x^2 \cdot \cos t = -2\cos t \sin^2 t + \cos^3 t

Via direct substitution: f(cos⁡t,sin⁡t)=cos⁡2tsin⁡tf(\cos t, \sin t) = \cos^2 t \sin t.

ddt[cos⁡2tsin⁡t]=−2cos⁡tsin⁡2t+cos⁡3t\frac{d}{dt}[\cos^2 t \sin t] = -2\cos t \sin^2 t + \cos^3 t

Both methods agree. ■\blacksquare

Problem. Let f(x,y)=x2y+sin⁡(xy)f(x, y) = x^2 y + \sin(xy). Compute ∇f\nabla f and find the directional derivative At (1,π)(1, \pi) in the direction u=(1/2,1/2)\mathbf{u} = (1/\sqrt{2}, 1/\sqrt{2}).

Solution.

∂f∂x=2xy+ycos⁡(xy)\frac{\partial f}{\partial x} = 2xy + y\cos(xy)

∂f∂y=x2+xcos⁡(xy)\frac{\partial f}{\partial y} = x^2 + x\cos(xy)

∇f(1,π)=(2π+πcos⁡(π),1+cos⁡(π))=(2π−π,1−1)=(π,0)\nabla f(1, \pi) = (2\pi + \pi\cos(\pi), 1 + \cos(\pi)) = (2\pi - \pi, 1 - 1) = (\pi, 0)

Duf(1,π)=∇f(1,π)⋅u=π⋅12+0=π2D_{\mathbf{u}} f(1, \pi) = \nabla f(1, \pi) \cdot \mathbf{u} = \pi \cdot \frac{1}{\sqrt{2}} + 0 = \frac{\pi}{\sqrt{2}} ■\blacksquare

Problem. Let f(x,y,z)=x2y ez+sin⁡(xz)f(x, y, z) = x^2 y\, e^z + \sin(xz). Compute ∇f\nabla f and evaluate it at (1,0,π)(1, 0, \pi).

Solution

∂f∂x=2xy ez+zcos⁡(xz)\frac{\partial f}{\partial x} = 2xy\, e^z + z\cos(xz)

∂f∂y=x2ez\frac{\partial f}{\partial y} = x^2 e^z

∂f∂z=x2y ez+xcos⁡(xz)\frac{\partial f}{\partial z} = x^2 y\, e^z + x\cos(xz)

At (1,0,π)(1, 0, \pi):

fx(1,0,π)=0+πcos⁡(π)=−π,fy(1,0,π)=eπ,fz(1,0,π)=0+cos⁡(π)=−1f_x(1,0,\pi) = 0 + \pi\cos(\pi) = -\pi, \quad f_y(1,0,\pi) = e^{\pi}, \quad f_z(1,0,\pi) = 0 + \cos(\pi) = -1

∇f(1,0,π)=(−π, eπ, −1)\nabla f(1, 0, \pi) = (-\pi,\, e^{\pi},\, -1)

■\blacksquare

Problem. Find the directional derivative of f(x,y)=x2y3f(x,y) = x^2 y^3 at (1,−1)(1, -1) in the direction of v=(3,−4)\mathbf{v} = (3, -4).

Solution

First normalise v\mathbf{v}: ∥v∥=9+16=5\lVert \mathbf{v} \rVert = \sqrt{9 + 16} = 5So u=(3/5, −4/5)\mathbf{u} = (3/5,\, -4/5).

∇f=(2xy3, 3x2y2)\nabla f = (2xy^3,\, 3x^2 y^2)

∇f(1,−1)=(2⋅1⋅(−1), 3⋅1⋅1)=(−2,3)\nabla f(1, -1) = (2 \cdot 1 \cdot (-1),\, 3 \cdot 1 \cdot 1) = (-2, 3)

Duf(1,−1)=(−2)(3/5)+(3)(−4/5)=−6−125=−185D_{\mathbf{u}} f(1, -1) = (-2)(3/5) + (3)(-4/5) = \frac{-6 - 12}{5} = -\frac{18}{5}

■\blacksquare

Suppose F(x,y,z)=0F(x, y, z) = 0 defines zz implicitly as a function of xx and yy near a point (a,b,c)(a, b, c) with Fz(a,b,c)≠0F_z(a, b, c) \neq 0. By the Implicit Function Theorem, there exists a C1C^1 function φ\varphi defined on a neighbourhood of (a,b)(a, b) such that φ(a,b)=c\varphi(a, b) = c and F(x,y,φ(x,y))=0F(x, y, \varphi(x, y)) = 0.

Differentiating F(x,y,φ(x,y))=0F(x, y, \varphi(x, y)) = 0 with respect to xx:

Fx+Fz⋅∂z∂x=0  ⟹  ∂z∂x=−FxFzF_x + F_z \cdot \frac{\partial z}{\partial x} = 0 \implies \frac{\partial z}{\partial x} = -\frac{F_x}{F_z}

Similarly, ∂z∂y=−FyFz\frac{\partial z}{\partial y} = -\frac{F_y}{F_z}.

Proposition 1.6 (Implicit Function Theorem, special case). If F:R3→RF : \mathbb{R}^3 \to \mathbb{R} is C1C^1 and F(a,b,c)=0F(a,b,c) = 0 with Fz(a,b,c)≠0F_z(a,b,c) \neq 0Then there exist neighbourhoods UU of (a,b)(a,b) and VV of cc and a unique C1C^1 function φ:U→V\varphi : U \to V with φ(a,b)=c\varphi(a,b) = c and F(x,y,φ(x,y))=0F(x, y, \varphi(x,y)) = 0 for all (x,y)∈U(x,y) \in U.

Problem. If x2y+y2z+z2x=3x^2 y + y^2 z + z^2 x = 3Find ∂z∂x\frac{\partial z}{\partial x} and ∂z∂y\frac{\partial z}{\partial y} at the point (1,1,1)(1, 1, 1).

Solution

Let F(x,y,z)=x2y+y2z+z2x−3F(x,y,z) = x^2 y + y^2 z + z^2 x - 3. Then Fx=2xy+z2F_x = 2xy + z^2 Fy=x2+2yzF_y = x^2 + 2yz, Fz=y2+2zxF_z = y^2 + 2zx.

At (1,1,1)(1,1,1): Fx=3F_x = 3, Fy=3F_y = 3, Fz=3F_z = 3.

∂z∂x=−FxFz=−33=−1,∂z∂y=−FyFz=−33=−1\frac{\partial z}{\partial x} = -\frac{F_x}{F_z} = -\frac{3}{3} = -1, \quad \frac{\partial z}{\partial y} = -\frac{F_y}{F_z} = -\frac{3}{3} = -1

■\blacksquare

1.11 Taylor’s Theorem for Multivariable Functions

Section titled “1.11 Taylor’s Theorem for Multivariable Functions”

Theorem 1.7 (Taylor’s Theorem). Let f:U⊆Rn→Rf : U \subseteq \mathbb{R}^n \to \mathbb{R} be of class Ck+1C^{k+1} On an open convex set UUAnd let a∈U\mathbf{a} \in U. Then for all x∈U\mathbf{x} \in U:

f(x)=f(a)+∇f(a)⋅(x−a)+12!(x−a)THf(a)(x−a)+⋯+Rkf(\mathbf{x}) = f(\mathbf{a}) + \nabla f(\mathbf{a}) \cdot (\mathbf{x} - \mathbf{a}) + \frac{1}{2!}(\mathbf{x} - \mathbf{a})^T H_f(\mathbf{a})(\mathbf{x} - \mathbf{a}) + \cdots + R_k

Where HfH_f is the Hessian matrix and the remainder RkR_k can be written in Lagrange form:

Rk=1(k+1)!∑∣α∣=k+1(k+1)!α!Dαf(c) (x−a)αR_k = \frac{1}{(k+1)!} \sum_{\lvert \alpha \rvert = k+1} \frac{(k+1)!}{\alpha!} D^{\alpha} f(\mathbf{c})\, (\mathbf{x} - \mathbf{a})^{\alpha}

For some c\mathbf{c} on the line segment joining a\mathbf{a} and x\mathbf{x}.

For n=2n = 2 and k=2k = 2The second-order Taylor expansion is:

f(a+h,b+k)=f(a,b)+fxh+fyk+12(fxxh2+2fxyhk+fyyk2)+R2f(a+h, b+k) = f(a,b) + f_x h + f_y k + \frac{1}{2}\left(f_{xx} h^2 + 2f_{xy} hk + f_{yy} k^2\right) + R_2

Where all partial derivatives are evaluated at (a,b)(a, b) and the remainder is

R2=16(fxxxh3+3fxxyh2k+3fxyyhk2+fyyyk3)∣cR_2 = \frac{1}{6}\left(f_{xxx} h^3 + 3f_{xxy} h^2 k + 3f_{xyy} hk^2 + f_{yyy} k^3\right)\Big|_{\mathbf{c}}

Proof (sketch). Define ϕ(t)=f(a+t(x−a))\phi(t) = f(\mathbf{a} + t(\mathbf{x} - \mathbf{a})) for t∈[0,1]t \in [0, 1]. Apply the single-variable Taylor theorem to ϕ\phi at t=0t = 0:

ϕ(1)=ϕ(0)+ϕ′(0)+12!ϕ′′(0)+⋯+1k!ϕ(k)(0)+1(k+1)!ϕ(k+1)(τ)\phi(1) = \phi(0) + \phi'(0) + \frac{1}{2!}\phi''(0) + \cdots + \frac{1}{k!}\phi^{(k)}(0) + \frac{1}{(k+1)!}\phi^{(k+1)}(\tau)

For some τ∈(0,1)\tau \in (0, 1). By the multivariable chain rule, ϕ′(t)=∇f(a+t(x−a))⋅(x−a)\phi'(t) = \nabla f(\mathbf{a} + t(\mathbf{x}-\mathbf{a})) \cdot (\mathbf{x}-\mathbf{a})And higher Derivatives involve higher-order partial derivatives of ff. Substituting c=a+τ(x−a)\mathbf{c} = \mathbf{a} + \tau(\mathbf{x}-\mathbf{a}) yields the result. ■\blacksquare

:::caution Common Pitfalls

  • Existence ≠\neq continuity of partials. A function can have all partial derivatives at a point yet fail to be continuous (hence not differentiable) there.
  • Existence ≠\neq differentiability. Even if all partials exist at a point, the function need not be differentiable. Continuity of the partials in a neighbourhood (i.e., C1C^1) is sufficient but not necessary.
  • Clairaut’s theorem requires continuity. Without continuity of the mixed partials, the equality fxy=fyxf_{xy} = f_{yx} can fail.
  • Normalise the direction vector. The formula Duf=∇f⋅uD_{\mathbf{u}} f = \nabla f \cdot \mathbf{u} assumes ∥u∥=1\lVert \mathbf{u} \rVert = 1. If the direction is given by a non-unit vector v\mathbf{v}Divide by ∥v∥\lVert \mathbf{v} \rVert first. :::

The double integral of ff over a rectangle R=[a,b]×[c,d]R = [a,b] \times [c,d] is defined as the limit of Riemann sums:

∬Rf(x,y) dA=lim⁡∥P∥→0∑i,jf(xij∗,yij∗)ΔAij\iint_R f(x,y)\, dA = \lim_{\lVert P \rVert \to 0} \sum_{i,j} f(x_{ij}^*, y_{ij}^*) \Delta A_{ij}

Theorem 2.1 (Fubini’s Theorem). If ff is continuous on R=[a,b]×[c,d]R = [a,b] \times [c,d]Then

∬Rf(x,y) dA=∫ab(∫cdf(x,y) dy)dx=∫cd(∫abf(x,y) dx)dy\iint_R f(x,y)\, dA = \int_a^b \left(\int_c^d f(x,y)\, dy\right) dx = \int_c^d \left(\int_a^b f(x,y)\, dx\right) dy

Proof (sketch). For a continuous function ff on the compact rectangle RRDefine

F(x)=∫cdf(x,y) dyF(x) = \int_c^d f(x,y)\, dy

Since ff is continuous, FF is continuous on [a,b][a,b]. For each partition P=(x0,…,xm)P = \\{(x_0, \ldots, x_m)\\} of [a,b][a,b]Define Riemann sums for the outer integral:

S(P)=∑i=1mF(xi∗) Δxi=∑i=1m∫cdf(xi∗,y) dy ΔxiS(P) = \sum_{i=1}^m F(x_i^*)\, \Delta x_i = \sum_{i=1}^m \int_c^d f(x_i^*, y)\, dy\, \Delta x_i

By Fubini’s theorem for Riemann integrals (proven via uniform continuity of ff on the compact set RR), As ∥P∥→0\lVert P \rVert \to 0 these sums converge to both ∬Rf dA\iint_R f\, dA and ∫abF(x) dx\int_a^b F(x)\, dx. The Reversal of integration order follows by symmetry. ■\blacksquare

For a general region DD in R2\mathbb{R}^2:

  • Type I region: D=(x,y):a≤x≤b, g1(x)≤y≤g2(x)D = \\{(x,y) : a \leq x \leq b,\, g_1(x) \leq y \leq g_2(x)\\}

∬Df dA=∫ab∫g1(x)g2(x)f(x,y) dy dx\iint_D f\, dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f(x,y)\, dy\, dx

  • Type II region: D=(x,y):c≤y≤d, h1(y)≤x≤h2(y)D = \\{(x,y) : c \leq y \leq d,\, h_1(y) \leq x \leq h_2(y)\\}

∬Df dA=∫cd∫h1(y)h2(y)f(x,y) dx dy\iint_D f\, dA = \int_c^d \int_{h_1(y)}^{h_2(y)} f(x,y)\, dx\, dy

Problem. Evaluate ∬Dxy dA\iint_D xy\, dA where DD is the region bounded by y=x2y = x^2 and y=x+2y = x + 2.

Solution

The curves intersect when x2=x+2x^2 = x + 2I.e., x2−x−2=0x^2 - x - 2 = 0So (x−2)(x+1)=0(x-2)(x+1) = 0Giving x=−1x = -1 and x=2x = 2. As a Type I region, D=(x,y):−1≤x≤2, x2≤y≤x+2D = \\{(x,y) : -1 \leq x \leq 2,\, x^2 \leq y \leq x+2\\}.

∬Dxy dA=∫−12∫x2x+2xy dy dx=∫−12x[y22]x2x+2 dx\iint_D xy\, dA = \int_{-1}^{2} \int_{x^2}^{x+2} xy\, dy\, dx = \int_{-1}^{2} x \left[\frac{y^2}{2}\right]_{x^2}^{x+2}\, dx

=∫−12x2[(x+2)2−x4] dx=12∫−12[x(x+2)2−x5] dx= \int_{-1}^{2} \frac{x}{2}\left[(x+2)^2 - x^4\right]\, dx = \frac{1}{2} \int_{-1}^{2} \left[x(x+2)^2 - x^5\right]\, dx

=12∫−12[x3+4x2+4x−x5] dx= \frac{1}{2} \int_{-1}^{2} \left[x^3 + 4x^2 + 4x - x^5\right]\, dx

=12[x44+4x33+2x2−x66]−12= \frac{1}{2}\left[\frac{x^4}{4} + \frac{4x^3}{3} + 2x^2 - \frac{x^6}{6}\right]_{-1}^{2}

=12[(4+323+8−646)−(14−43+2−16)]= \frac{1}{2}\left[\left(4 + \frac{32}{3} + 8 - \frac{64}{6}\right) - \left(\frac{1}{4} - \frac{4}{3} + 2 - \frac{1}{6}\right)\right]

=12[363−912]=12[12−34]=458= \frac{1}{2}\left[\frac{36}{3} - \frac{9}{12}\right] = \frac{1}{2}\left[12 - \frac{3}{4}\right] = \frac{45}{8}

■\blacksquare

Problem. Evaluate ∬Dx dA\iint_D x\, dA where DD is the region bounded by y=xy = x, y=2xy = 2xAnd x+y=2x + y = 2.

Solution

First, find the intersections. The lines y=xy = x and y=2xy = 2x intersect at (0,0)(0, 0). The line x+y=2x + y = 2 intersects y=xy = x at (1,1)(1, 1) and y=2xy = 2x at (2/3,4/3)(2/3, 4/3).

As a Type I region, we must split: for 0≤x≤2/30 \leq x \leq 2/3, x≤y≤2xx \leq y \leq 2x; for 2/3≤x≤12/3 \leq x \leq 1, x≤y≤2−xx \leq y \leq 2 - x.

∬Dx dA=∫02/3∫x2xx dy dx+∫2/31∫x2−xx dy dx\iint_D x\, dA = \int_0^{2/3} \int_x^{2x} x\, dy\, dx + \int_{2/3}^1 \int_x^{2-x} x\, dy\, dx

=∫02/3x(x−x) dx...= \int_0^{2/3} x(x - x)\, dx...

Wait, this is getting messy. Let me use Type II instead. For each yy, xx ranges from y/2y/2 to yy (for 0≤y≤4/30 \leq y \leq 4/3) and from y/2y/2 to 2−y2 - y (for 4/3≤y≤14/3 \leq y \leq 1). Actually, the simplest approach is to split DD at y=4/3y = 4/3.

For 0≤y≤10 \leq y \leq 1: y/2≤x≤yy/2 \leq x \leq y (between y=xy = x and y=2xy = 2xBut only up to x+y=2x + y = 2). Actually y=2xy = 2x gives x=y/2x = y/2And y=xy = x gives x=yx = y. But x+y=2x + y = 2 gives x=2−yx = 2 - y. For y≤1y \leq 1: both y≤2−yy \leq 2 - y (since y≤1y \leq 1) and y/2≤yy/2 \leq ySo the right boundary is yy. But we also need x+y≤2x + y \leq 2I.e., x≤2−yx \leq 2 - y. For y≤1y \leq 1: y≤2−yy \leq 2 - ySo the constraint x≤yx \leq y is tighter.

For 0≤y≤10 \leq y \leq 1: y/2≤x≤yy/2 \leq x \leq y.

∬Dx dA=∫01∫y/2yx dx dy=∫01[x22]y/2y dy=∫01y22−y28 dy=∫013y28 dy=38⋅13=18\iint_D x\, dA = \int_0^1 \int_{y/2}^y x\, dx\, dy = \int_0^1 \left[\frac{x^2}{2}\right]_{y/2}^y\, dy = \int_0^1 \frac{y^2}{2} - \frac{y^2}{8}\, dy = \int_0^1 \frac{3y^2}{8}\, dy = \frac{3}{8} \cdot \frac{1}{3} = \frac{1}{8}

■\blacksquare

Triple integrals extend to R3\mathbb{R}^3:

∭Ef(x,y,z) dV=∬D(∫g1(x,y)g2(x,y)f(x,y,z) dz)dA\iiint_E f(x,y,z)\, dV = \iint_D \left(\int_{g_1(x,y)}^{g_2(x,y)} f(x,y,z)\, dz\right) dA

Problem. Evaluate ∭Ez dV\iiint_E z\, dV where EE is the tetrahedron in the first octant bounded by The coordinate planes and x+y+z=1x + y + z = 1.

Solution

The region EE can be described as (x,y,z):0≤x≤1, 0≤y≤1−x, 0≤z≤1−x−y\\{(x,y,z) : 0 \leq x \leq 1,\, 0 \leq y \leq 1-x,\, 0 \leq z \leq 1-x-y\\}.

∭Ez dV=∫01∫01−x∫01−x−yz dz dy dx\iiint_E z\, dV = \int_0^1 \int_0^{1-x} \int_0^{1-x-y} z\, dz\, dy\, dx

=∫01∫01−x[z22]01−x−y dy dx=∫01∫01−x(1−x−y)22 dy dx= \int_0^1 \int_0^{1-x} \left[\frac{z^2}{2}\right]_0^{1-x-y}\, dy\, dx = \int_0^1 \int_0^{1-x} \frac{(1-x-y)^2}{2}\, dy\, dx

Substituting u=1−x−yu = 1 - x - y, du=−dydu = -dy:

=∫01(1−x)36 dx=16[−(1−x)44]01=16⋅14=124= \int_0^1 \frac{(1-x)^3}{6}\, dx = \frac{1}{6}\left[-\frac{(1-x)^4}{4}\right]_0^1 = \frac{1}{6} \cdot \frac{1}{4} = \frac{1}{24}

■\blacksquare

Theorem 2.2 (Change of Variables). Let T:D⊆Rn→RnT : D \subseteq \mathbb{R}^n \to \mathbb{R}^n be a C1C^1 diffeomorphism with Jacobian determinant JTJ_T. Then

∫T(D)f(u) du=∫Df(T(x)) ∣JT(x)∣ dx\int_{T(D)} f(\mathbf{u})\, d\mathbf{u} = \int_D f(T(\mathbf{x}))\, \lvert J_T(\mathbf{x})\rvert\, d\mathbf{x}

Derivation of the Jacobian factor (for n=2n = 2). Let T(x,y)=(u(x,y), v(x,y))T(x, y) = (u(x,y),\, v(x,y)) be a C1C^1 Diffeomorphism. Partition DD into small rectangles RijR_{ij} of area Δx Δy\Delta x\, \Delta y. The image T(Rij)T(R_{ij}) is approximately a parallelogram spanned by the vectors

a=T(x+Δx,y)−T(x,y)≈(∂u∂xΔx, ∂v∂xΔx)\mathbf{a} = T(x + \Delta x, y) - T(x, y) \approx \left(\frac{\partial u}{\partial x}\Delta x,\, \frac{\partial v}{\partial x}\Delta x\right)

b=T(x,y+Δy)−T(x,y)≈(∂u∂yΔy, ∂v∂yΔy)\mathbf{b} = T(x, y + \Delta y) - T(x, y) \approx \left(\frac{\partial u}{\partial y}\Delta y,\, \frac{\partial v}{\partial y}\Delta y\right)

The area of this parallelogram is ∣a×b∣\lvert \mathbf{a} \times \mathbf{b} \rvertWhich equals

∣∂u∂x∂v∂y−∂u∂y∂v∂x∣Δx Δy=∣JT∣ Δx Δy\left\lvert \frac{\partial u}{\partial x}\frac{\partial v}{\partial y} - \frac{\partial u}{\partial y}\frac{\partial v}{\partial x} \right\rvert \Delta x\, \Delta y = \lvert J_T \rvert\, \Delta x\, \Delta y

Summing over all subrectangles and taking the limit gives the change of variables formula. ■\blacksquare

Polar coordinates: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, ∣J∣=r\lvert J \rvert = r.

∬Df(x,y) dA=∬D′f(rcos⁡θ,rsin⁡θ) r dr dθ\iint_D f(x,y)\, dA = \iint_{D'} f(r\cos\theta, r\sin\theta)\, r\, dr\, d\theta

Cylindrical coordinates: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, z=zz = z, ∣J∣=r\lvert J \rvert = r.

∭Ef(x,y,z) dV=∭E′f(rcos⁡θ,rsin⁡θ,z) r dr dθ dz\iiint_E f(x,y,z)\, dV = \iiint_{E'} f(r\cos\theta, r\sin\theta, z)\, r\, dr\, d\theta\, dz

Spherical coordinates: x=ρsin⁡ϕcos⁡θx = \rho\sin\phi\cos\theta, y=ρsin⁡ϕsin⁡θy = \rho\sin\phi\sin\theta, z=ρcos⁡ϕz = \rho\cos\phi ∣J∣=ρ2sin⁡ϕ\lvert J \rvert = \rho^2 \sin\phi.

∭Ef(x,y,z) dV=∭E′f(ρsin⁡ϕcos⁡θ,ρsin⁡ϕsin⁡θ,ρcos⁡ϕ) ρ2sin⁡ϕ dρ dϕ dθ\iiint_E f(x,y,z)\, dV = \iiint_{E'} f(\rho\sin\phi\cos\theta, \rho\sin\phi\sin\theta, \rho\cos\phi)\, \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta

Problem. Evaluate ∬De−(x2+y2) dA\iint_D e^{-(x^2+y^2)}\, dA where DD is the entire R2\mathbb{R}^2 plane.

Solution

Use polar coordinates. The region D′D' is 0≤r<∞0 \leq r \lt \infty, 0≤θ≤2π0 \leq \theta \leq 2\pi.

∬De−(x2+y2) dA=∫02π∫0∞e−r2 r dr dθ\iint_D e^{-(x^2+y^2)}\, dA = \int_0^{2\pi} \int_0^{\infty} e^{-r^2}\, r\, dr\, d\theta

The inner integral: ∫0∞re−r2 dr=[−12e−r2]0∞=12\int_0^{\infty} r e^{-r^2}\, dr = \left[-\frac{1}{2}e^{-r^2}\right]_0^{\infty} = \frac{1}{2}.

=∫02π12 dθ=π= \int_0^{2\pi} \frac{1}{2}\, d\theta = \pi

■\blacksquare

Remark. This is the classic Gaussian integral computation, yielding ∫−∞∞e−x2 dx=π\int_{-\infty}^{\infty} e^{-x^2}\, dx = \sqrt{\pi}.

Problem. Evaluate ∭Ez dV\iiint_E z\, dV where EE is the solid bounded above by the sphere x2+y2+z2=2x^2 + y^2 + z^2 = 2 and below by the paraboloid z=x2+y2z = x^2 + y^2.

Solution

The surfaces intersect when x2+y2+(x2+y2)2=2x^2 + y^2 + (x^2 + y^2)^2 = 2. Let r2=x2+y2r^2 = x^2 + y^2. Then r2+r4=2r^2 + r^4 = 2I.e., (r2+2)(r2−1)=0(r^2 + 2)(r^2 - 1) = 0So r=1r = 1 (positive root). Use Cylindrical coordinates. The region E′E' is

0≤r≤1,0≤θ≤2π,r2≤z≤2−r20 \leq r \leq 1, \quad 0 \leq \theta \leq 2\pi, \quad r^2 \leq z \leq \sqrt{2 - r^2}

∭Ez dV=∫02π∫01∫r22−r2z r dz dr dθ\iiint_E z\, dV = \int_0^{2\pi} \int_0^1 \int_{r^2}^{\sqrt{2-r^2}} z\, r\, dz\, dr\, d\theta

=∫02π∫01r2[(2−r2)−r4] dr dθ=∫02π∫01r2(2−r2−r4) dr dθ= \int_0^{2\pi} \int_0^1 \frac{r}{2}\left[(2 - r^2) - r^4\right]\, dr\, d\theta = \int_0^{2\pi} \int_0^1 \frac{r}{2}(2 - r^2 - r^4)\, dr\, d\theta

=∫02π12[r2−r44−r66]01 dθ=∫02π12⋅712 dθ=7π12= \int_0^{2\pi} \frac{1}{2}\left[r^2 - \frac{r^4}{4} - \frac{r^6}{6}\right]_0^1\, d\theta = \int_0^{2\pi} \frac{1}{2} \cdot \frac{7}{12}\, d\theta = \frac{7\pi}{12}

■\blacksquare

Problem. Evaluate ∭E(x2+y2+z2) dV\iiint_E (x^2 + y^2 + z^2)\, dV where EE is the solid ball x2+y2+z2≤a2x^2 + y^2 + z^2 \leq a^2.

Solution

Use spherical coordinates. In spherical: x2+y2+z2=ρ2x^2 + y^2 + z^2 = \rho^2And E′E' is 0≤ρ≤a0 \leq \rho \leq a, 0≤ϕ≤π0 \leq \phi \leq \pi, 0≤θ≤2π0 \leq \theta \leq 2\pi.

∭E(x2+y2+z2) dV=∫02π∫0π∫0aρ2⋅ρ2sin⁡ϕ dρ dϕ dθ\iiint_E (x^2 + y^2 + z^2)\, dV = \int_0^{2\pi} \int_0^{\pi} \int_0^a \rho^2 \cdot \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta

=(∫0aρ4 dρ)(∫0πsin⁡ϕ dϕ)(∫02πdθ)= \left(\int_0^a \rho^4\, d\rho\right)\left(\int_0^{\pi} \sin\phi\, d\phi\right)\left(\int_0^{2\pi} d\theta\right)

=a55⋅2⋅2π=4πa55= \frac{a^5}{5} \cdot 2 \cdot 2\pi = \frac{4\pi a^5}{5}

■\blacksquare

Problem. Compute ∬D(x2+y2) dA\iint_D (x^2 + y^2)\, dA where DD is the region bounded by x2+y2=4x^2 + y^2 = 4.

Solution. Use polar coordinates. The region D′D' is 0≤r≤20 \leq r \leq 2, 0≤θ≤2π0 \leq \theta \leq 2\pi.

∬D(x2+y2) dA=∫02π∫02r2⋅r dr dθ=∫02π∫02r3 dr dθ\iint_D (x^2 + y^2)\, dA = \int_0^{2\pi} \int_0^2 r^2 \cdot r\, dr\, d\theta = \int_0^{2\pi} \int_0^2 r^3\, dr\, d\theta

=∫02π[r44]02dθ=∫02π4 dθ=8π= \int_0^{2\pi} \left[\frac{r^4}{4}\right]_0^2 d\theta = \int_0^{2\pi} 4\, d\theta = 8\pi

■\blacksquare

Problem. Evaluate ∬Dyx dA\iint_D \frac{y}{x}\, dA where DD is bounded by y=xy = x, y=2xy = 2xAnd x=1x = 1.

Solution

The region D=(x,y):0≤x≤1, x≤y≤2xD = \\{(x,y) : 0 \leq x \leq 1,\, x \leq y \leq 2x\\}.

∬Dyx dA=∫01∫x2xyx dy dx=∫011x[y22]x2x dx\iint_D \frac{y}{x}\, dA = \int_0^1 \int_x^{2x} \frac{y}{x}\, dy\, dx = \int_0^1 \frac{1}{x}\left[\frac{y^2}{2}\right]_x^{2x}\, dx

=∫011x[4x22−x22] dx=∫011x⋅3x22 dx=32∫01x dx=34= \int_0^1 \frac{1}{x}\left[\frac{4x^2}{2} - \frac{x^2}{2}\right]\, dx = \int_0^1 \frac{1}{x} \cdot \frac{3x^2}{2}\, dx = \frac{3}{2}\int_0^1 x\, dx = \frac{3}{4}

■\blacksquare

Problem. Swap the order of integration and evaluate: ∫01∫x21xey2 dy dx\int_0^1 \int_{x^2}^1 x e^{y^2}\, dy\, dx.

Solution

The region is 0≤x≤10 \leq x \leq 1, x2≤y≤1x^2 \leq y \leq 1Which is the same as 0≤y≤10 \leq y \leq 1 0≤x≤y0 \leq x \leq \sqrt{y}.

∫01∫x21xey2 dy dx=∫01∫0yxey2 dx dy=∫01ey2[x22]0y dy\int_0^1 \int_{x^2}^1 x e^{y^2}\, dy\, dx = \int_0^1 \int_0^{\sqrt{y}} x e^{y^2}\, dx\, dy = \int_0^1 e^{y^2}\left[\frac{x^2}{2}\right]_0^{\sqrt{y}}\, dy

=∫01y2ey2 dy= \int_0^1 \frac{y}{2} e^{y^2}\, dy

Let u=y2u = y^2, du=2y dydu = 2y\, dy:

=14∫01eu du=14(e−1)= \frac{1}{4}\int_0^1 e^u\, du = \frac{1}{4}(e - 1)

■\blacksquare

Remark. This integral cannot be evaluated in the original order because ey2e^{y^2} has no elementary Antiderivative with respect to yy. Swapping the order was essential.

:::caution Common Pitfalls

  • Order of integration limits. When setting up ∫ab∫g1(x)g2(x)f dy dx\int_a^b \int_{g_1(x)}^{g_2(x)} f\, dy\, dxVerify that g1(x)≤g2(x)g_1(x) \leq g_2(x) for all x∈[a,b]x \in [a, b]. If the region is described as “between two curves,” determine which curve is above the other.
  • Forgetting the Jacobian. In a change of variables, the Jacobian determinant ∣J∣\lvert J \rvert must be included. For polar coordinates, this factor is rr; omitting it is one of the most common errors.
  • Spherical coordinate conventions. Different texts use different conventions for ϕ\phi and θ\theta. Here, ϕ∈[0,π]\phi \in [0, \pi] is the polar angle (from the positive zz-axis) and θ∈[0,2π]\theta \in [0, 2\pi] is the azimuthal angle.
  • Region description. When swapping integration order, carefully redraw the region and re-derive the bounds. The new bounds may require splitting the integral into multiple pieces. :::

A vector field on Rn\mathbb{R}^n is a function F:D⊆Rn→Rn\mathbf{F} : D \subseteq \mathbb{R}^n \to \mathbb{R}^n.

A vector field F=(P,Q,R)\mathbf{F} = (P, Q, R) on R3\mathbb{R}^3 is conservative if there exists a scalar Potential ϕ\phi such that F=∇ϕ\mathbf{F} = \nabla \phi.

Theorem 3.1. F\mathbf{F} is conservative (on a connected domain) if and only if ∇×F=0\nabla \times \mathbf{F} = \mathbf{0}.

Proof. (⇒\Rightarrow) If F=∇ϕ\mathbf{F} = \nabla \phi with ϕ∈C2\phi \in C^2Then by Clairaut’s theorem fxy=fyxf_{xy} = f_{yx}Etc., which directly gives ∇×(∇ϕ)=0\nabla \times (\nabla \phi) = \mathbf{0}.

(⇐\Leftarrow) If ∇×F=0\nabla \times \mathbf{F} = \mathbf{0} on a connected domain DDThen for any Closed curve CC in DDStokes’ theorem gives ∮CF⋅dr=∬S(∇×F)⋅dS=0\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = 0. This means line integrals are path-independent, so we can define ϕ(x)=∫x0xF⋅dr\phi(\mathbf{x}) = \int_{\mathbf{x}_0}^{\mathbf{x}} \mathbf{F} \cdot d\mathbf{r} (independent of path), And one verifies that ∇ϕ=F\nabla \phi = \mathbf{F}. ■\blacksquare

Definition. The line integral of a vector field F\mathbf{F} along a curve CC parameterised by r(t)\mathbf{r}(t) for a≤t≤ba \leq t \leq b is

∫CF⋅dr=∫abF(r(t))⋅r′(t) dt\int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\, dt

Theorem 3.2 (Fundamental Theorem for Line Integrals). If F=∇ϕ\mathbf{F} = \nabla \phi and CC is a Piecewise smooth curve from AA to BBThen

∫CF⋅dr=ϕ(B)−ϕ(A)\int_C \mathbf{F} \cdot d\mathbf{r} = \phi(B) - \phi(A)

Proof. Parameterise CC by r(t)\mathbf{r}(t) for t∈[a,b]t \in [a,b] with r(a)=A\mathbf{r}(a) = A r(b)=B\mathbf{r}(b) = B.

∫CF⋅dr=∫ab∇ϕ(r(t))⋅r′(t) dt=∫abddt[ϕ(r(t))] dt=ϕ(r(b))−ϕ(r(a))=ϕ(B)−ϕ(A)\int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \nabla \phi(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\, dt = \int_a^b \frac{d}{dt}\left[\phi(\mathbf{r}(t))\right]\, dt = \phi(\mathbf{r}(b)) - \phi(\mathbf{r}(a)) = \phi(B) - \phi(A)

By the chain rule. ■\blacksquare

Corollary 3.3. The line integral of a conservative field around any closed curve is zero.

Problem. Evaluate ∫CF⋅dr\int_C \mathbf{F} \cdot d\mathbf{r} where F=(y, x+ey, z+1)\mathbf{F} = (y,\, x + e^y,\, z + 1) and CC is the Curve r(t)=(t, t2, t3)\mathbf{r}(t) = (t,\, t^2,\, t^3) for 0≤t≤10 \leq t \leq 1.

Solution

First check if F\mathbf{F} is conservative. Compute the curl:

(∇×F)x=∂(z+1)∂y−∂(x+ey)∂z=0−0=0(\nabla \times \mathbf{F})_x = \frac{\partial (z+1)}{\partial y} - \frac{\partial (x + e^y)}{\partial z} = 0 - 0 = 0

(∇×F)y=∂y∂z−∂(z+1)∂x=0−0=0(\nabla \times \mathbf{F})_y = \frac{\partial y}{\partial z} - \frac{\partial (z+1)}{\partial x} = 0 - 0 = 0

(∇×F)z=∂(x+ey)∂x−∂y∂y=1−1=0(\nabla \times \mathbf{F})_z = \frac{\partial (x + e^y)}{\partial x} - \frac{\partial y}{\partial y} = 1 - 1 = 0

Since ∇×F=0\nabla \times \mathbf{F} = \mathbf{0}, F\mathbf{F} is conservative. Find ϕ\phi:

∂ϕ∂x=y  ⟹  ϕ=xy+g(y,z)\frac{\partial \phi}{\partial x} = y \implies \phi = xy + g(y,z)

∂ϕ∂y=x+gy=x+ey  ⟹  gy=ey  ⟹  g=ey+h(z)\frac{\partial \phi}{\partial y} = x + g_y = x + e^y \implies g_y = e^y \implies g = e^y + h(z)

∂ϕ∂z=h′(z)=z+1  ⟹  h(z)=z22+z+C\frac{\partial \phi}{\partial z} = h'(z) = z + 1 \implies h(z) = \frac{z^2}{2} + z + C

ϕ(x,y,z)=xy+ey+z22+z\phi(x,y,z) = xy + e^y + \frac{z^2}{2} + z

Now apply the fundamental theorem:

∫CF⋅dr=ϕ(1,1,1)−ϕ(0,0,0)=(1+e+12+1)−(1+1)=e+12\int_C \mathbf{F} \cdot d\mathbf{r} = \phi(1, 1, 1) - \phi(0, 0, 0) = \left(1 + e + \frac{1}{2} + 1\right) - (1 + 1) = e + \frac{1}{2}

■\blacksquare

Theorem 3.4 (Green’s Theorem). Let CC be a positively oriented, piecewise smooth, simple closed Curve bounding a region DD. If PP and QQ have continuous partial derivatives on an open set Containing DDThen

∮CP dx+Q dy=∬D(∂Q∂x−∂P∂y)dA\oint_C P\, dx + Q\, dy = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA

Proof (for a Type I region). Assume DD is a Type I region: D=(x,y):a≤x≤b, g1(x)≤y≤g2(x)D = \\{(x,y) : a \leq x \leq b,\, g_1(x) \leq y \leq g_2(x)\\}. The boundary CC consists of Four pieces: bottom C1C_1Right C2C_2Top C3C_3And left C4C_4.

We first prove ∮CP dx=−∬D∂P∂y dA\oint_C P\, dx = -\iint_D \frac{\partial P}{\partial y}\, dA.

On C1C_1: y=g1(x)y = g_1(x), xx goes from aa to bbSo ∫C1P dx=∫abP(x,g1(x)) dx\int_{C_1} P\, dx = \int_a^b P(x, g_1(x))\, dx.

On C3C_3: y=g2(x)y = g_2(x), xx goes from bb to aaSo ∫C3P dx=∫baP(x,g2(x)) dx=−∫abP(x,g2(x)) dx\int_{C_3} P\, dx = \int_b^a P(x, g_2(x))\, dx = -\int_a^b P(x, g_2(x))\, dx.

On C2C_2 and C4C_4: xx is constant, so dx=0dx = 0Hence ∫C2P dx=∫C4P dx=0\int_{C_2} P\, dx = \int_{C_4} P\, dx = 0.

Therefore:

∮CP dx=∫abP(x,g1(x)) dx−∫abP(x,g2(x)) dx\oint_C P\, dx = \int_a^b P(x, g_1(x))\, dx - \int_a^b P(x, g_2(x))\, dx

Meanwhile:

−∬D∂P∂y dA=−∫ab∫g1(x)g2(x)∂P∂y dy dx=−∫ab[P(x,g2(x))−P(x,g1(x))] dx-\iint_D \frac{\partial P}{\partial y}\, dA = -\int_a^b \int_{g_1(x)}^{g_2(x)} \frac{\partial P}{\partial y}\, dy\, dx = -\int_a^b \left[P(x, g_2(x)) - P(x, g_1(x))\right]\, dx

=∫abP(x,g1(x)) dx−∫abP(x,g2(x)) dx=∮CP dx= \int_a^b P(x, g_1(x))\, dx - \int_a^b P(x, g_2(x))\, dx = \oint_C P\, dx

An identical argument (using Type II regions) proves ∮CQ dy=∬D∂Q∂x dA\oint_C Q\, dy = \iint_D \frac{\partial Q}{\partial x}\, dA. Adding the two equalities gives the result. For general regions, decompose DD into finitely many Type I and Type II regions and note that the line integrals along shared boundaries cancel. ■\blacksquare

Worked Example. Evaluate ∮C(x2−y) dx+(y2+x) dy\oint_C (x^2 - y)\, dx + (y^2 + x)\, dy where CC is the unit circle Traversed counterclockwise.

Solution. By Green’s theorem with P=x2−yP = x^2 - y and Q=y2+xQ = y^2 + x:

∂Q∂x=1,∂P∂y=−1\frac{\partial Q}{\partial x} = 1, \quad \frac{\partial P}{\partial y} = -1

∮CP dx+Q dy=∬D(1−(−1)) dA=2∬DdA=2⋅π⋅12=2π\oint_C P\, dx + Q\, dy = \iint_D (1 - (-1))\, dA = 2 \iint_D dA = 2 \cdot \pi \cdot 1^2 = 2\pi

■\blacksquare

Definition. Let F=(P,Q,R)\mathbf{F} = (P, Q, R) be a C1C^1 vector field on R3\mathbb{R}^3.

The curl of F\mathbf{F} is

∇×F=(∂R∂y−∂Q∂z, ∂P∂z−∂R∂x, ∂Q∂x−∂P∂y)\nabla \times \mathbf{F} = \left(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z},\, \frac{\partial P}{\partial z} - \frac{\partial R}{\partial x},\, \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)

The divergence of F\mathbf{F} is

∇⋅F=∂P∂x+∂Q∂y+∂R∂z\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}

Physical interpretation. If F\mathbf{F} represents the velocity field of a fluid:

  • Curl ∇×F\nabla \times \mathbf{F} measures the local rotational tendency (vorticity) of the fluid. At a point p\mathbf{p}The component (∇×F)⋅n(\nabla \times \mathbf{F}) \cdot \mathbf{n} gives twice the angular velocity of a small paddle wheel placed at p\mathbf{p} with axis along n\mathbf{n}.

  • Divergence ∇⋅F\nabla \cdot \mathbf{F} measures the net rate of outward flux per unit volume at a point. If ∇⋅F>0\nabla \cdot \mathbf{F} \gt 0 at p\mathbf{p}There is a net source at p\mathbf{p}; if ∇⋅F<0\nabla \cdot \mathbf{F} \lt 0There is a net sink.

Proposition 3.5. For any C2C^2 vector field F\mathbf{F}:

∇⋅(∇×F)=0(div of curl is zero)\nabla \cdot (\nabla \times \mathbf{F}) = 0 \quad \mathrm{(div\ of\ curl\ is\ zero)}

∇×(∇ϕ)=0(curl of gradient is zero)\nabla \times (\nabla \phi) = \mathbf{0} \quad \mathrm{(curl\ of\ gradient\ is\ zero)}

Proof. Both follow from Clairaut’s theorem on equality of mixed partials. For the first:

∇⋅(∇×F)=∂∂x(∂R∂y−∂Q∂z)+∂∂y(∂P∂z−∂R∂x)+∂∂z(∂Q∂x−∂P∂y)\nabla \cdot (\nabla \times \mathbf{F}) = \frac{\partial}{\partial x}\left(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z}\right) + \frac{\partial}{\partial y}\left(\frac{\partial P}{\partial z} - \frac{\partial R}{\partial x}\right) + \frac{\partial}{\partial z}\left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)

Each pair cancels by Clairaut: ∂2R∂x ∂y=∂2R∂y ∂x\frac{\partial^2 R}{\partial x\,\partial y} = \frac{\partial^2 R}{\partial y\,\partial x}Etc. ■\blacksquare

Theorem 3.6 (Stokes’ Theorem). Let SS be an oriented surface with piecewise smooth boundary curve CC (positively oriented). If F\mathbf{F} has continuous partial derivatives on an open set containing SSThen

∮CF⋅dr=∬S(∇×F)⋅dS\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}

Where dS=n dSd\mathbf{S} = \mathbf{n}\, dS is the vector surface element with unit normal n\mathbf{n}.

Proof (sketch). Parametrise SS by r(u,v)\mathbf{r}(u,v) over a region DD in the uvuv-plane. The boundary CC of SS corresponds to the boundary ∂D\partial D of DD. The left-hand side becomes:

∮CF⋅dr=∮∂DF(r(u,v))⋅(∂r∂u du+∂r∂v dv)\oint_C \mathbf{F} \cdot d\mathbf{r} = \oint_{\partial D} \mathbf{F}(\mathbf{r}(u,v)) \cdot \left(\frac{\partial \mathbf{r}}{\partial u}\, du + \frac{\partial \mathbf{r}}{\partial v}\, dv\right)

Define P~(u,v)=F(r(u,v))⋅ru\tilde{P}(u,v) = \mathbf{F}(\mathbf{r}(u,v)) \cdot \mathbf{r}_u and Q~(u,v)=F(r(u,v))⋅rv\tilde{Q}(u,v) = \mathbf{F}(\mathbf{r}(u,v)) \cdot \mathbf{r}_v. Applying Green’s theorem in the uvuv-plane:

∮∂DP~ du+Q~ dv=∬D(∂Q~∂u−∂P~∂v)du dv\oint_{\partial D} \tilde{P}\, du + \tilde{Q}\, dv = \iint_D \left(\frac{\partial \tilde{Q}}{\partial u} - \frac{\partial \tilde{P}}{\partial v}\right) du\, dv

Expanding the partial derivatives and using the identity ru×rv=n ∥ru×rv∥\mathbf{r}_u \times \mathbf{r}_v = \mathbf{n}\, \lVert \mathbf{r}_u \times \mathbf{r}_v \rVertOne Verifies that the integrand equals (∇×F)⋅n ∥ru×rv∥(\nabla \times \mathbf{F}) \cdot \mathbf{n}\, \lVert \mathbf{r}_u \times \mathbf{r}_v \rVert Which gives ∬S(∇×F)⋅dS\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}. ■\blacksquare

Remark. Green’s theorem is the special case of Stokes’ theorem where SS is a planar region in R2\mathbb{R}^2.

Problem. Use Stokes’ theorem to evaluate ∮CF⋅dr\oint_C \mathbf{F} \cdot d\mathbf{r} where F=(y2, xz, x2)\mathbf{F} = (y^2,\, xz,\, x^2) and CC is the triangle with vertices (1,0,0)(1,0,0), (0,1,0)(0,1,0) (0,0,1)(0,0,1) traversed counterclockwise when viewed from above.

Solution

The triangle lies in the plane x+y+z=1x + y + z = 1. Compute ∇×F\nabla \times \mathbf{F}:

(∇×F)x=∂(x2)∂y−∂(xz)∂z=0−x=−x(\nabla \times \mathbf{F})_x = \frac{\partial (x^2)}{\partial y} - \frac{\partial (xz)}{\partial z} = 0 - x = -x

(∇×F)y=∂(y2)∂z−∂(x2)∂x=0−2x=−2x(\nabla \times \mathbf{F})_y = \frac{\partial (y^2)}{\partial z} - \frac{\partial (x^2)}{\partial x} = 0 - 2x = -2x

(∇×F)z=∂(xz)∂x−∂(y2)∂y=z−2y(\nabla \times \mathbf{F})_z = \frac{\partial (xz)}{\partial x} - \frac{\partial (y^2)}{\partial y} = z - 2y

So ∇×F=(−x, −2x, z−2y)\nabla \times \mathbf{F} = (-x,\, -2x,\, z - 2y).

Parametrise the triangle in the xyxy-plane: 0≤x≤10 \leq x \leq 1, 0≤y≤1−x0 \leq y \leq 1 - x. On the plane z=1−x−yz = 1 - x - yThe surface element dS=3 dx dydS = \sqrt{3}\, dx\, dy.

∬S(∇×F)⋅dS=13∬S(−x−2x+z−2y) dS\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \frac{1}{\sqrt{3}} \iint_S (-x - 2x + z - 2y)\, dS

On the plane: −3x−2y+z=−3x−2y+1−x−y=−4x−3y+1-3x - 2y + z = -3x - 2y + 1 - x - y = -4x - 3y + 1.

=13∫01∫01−x(−4x−3y+1) 3 dy dx=∫01∫01−x(−4x−3y+1) dy dx= \frac{1}{\sqrt{3}} \int_0^1 \int_0^{1-x} (-4x - 3y + 1)\, \sqrt{3}\, dy\, dx = \int_0^1 \int_0^{1-x} (-4x - 3y + 1)\, dy\, dx

=∫01[(−4x+1)y−3y22]01−x dx=∫01(−4x+1)(1−x)−3(1−x)22 dx= \int_0^1 \left[(-4x + 1)y - \frac{3y^2}{2}\right]_0^{1-x}\, dx = \int_0^1 (-4x + 1)(1 - x) - \frac{3(1-x)^2}{2}\, dx

=∫01[4x2−5x+1−32+3x−3x22] dx=∫01[5x22−2x−12] dx= \int_0^1 \left[4x^2 - 5x + 1 - \frac{3}{2} + 3x - \frac{3x^2}{2}\right]\, dx = \int_0^1 \left[\frac{5x^2}{2} - 2x - \frac{1}{2}\right]\, dx

=[5x36−x2−x2]01=56−1−12=−23= \left[\frac{5x^3}{6} - x^2 - \frac{x}{2}\right]_0^1 = \frac{5}{6} - 1 - \frac{1}{2} = -\frac{2}{3}

■\blacksquare

Theorem 3.7 (Divergence Theorem / Gauss’s Theorem). Let EE be a solid region bounded by a closed Surface SS with outward normal n\mathbf{n}. If F\mathbf{F} has continuous partial derivatives on an Open set containing EEThen

∬SF⋅dS=∭E∇⋅F dV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E \nabla \cdot \mathbf{F}\, dV

Where ∇⋅F=∂P∂x+∂Q∂y+∂R∂z\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z} Is the divergence of F\mathbf{F}.

Proof (sketch for a Type I region). Assume EE is a Type I region: E=(x,y,z):(x,y)∈D, g1(x,y)≤z≤g2(x,y)E = \\{(x,y,z) : (x,y) \in D,\, g_1(x,y) \leq z \leq g_2(x,y)\\}. The boundary consists of Bottom surface S1S_1 (normal pointing downward), top surface S2S_2 (normal pointing upward), And the lateral surface S3S_3 (where the normal is horizontal).

We prove the result for the RR-component, i.e., ∬SR k⋅dS=∭E∂R∂z dV\iint_S R\, \mathbf{k} \cdot d\mathbf{S} = \iiint_E \frac{\partial R}{\partial z}\, dV.

The right-hand side:

∭E∂R∂z dV=∬D∫g1(x,y)g2(x,y)∂R∂z dz dA=∬D[R(x,y,g2)−R(x,y,g1)] dA\iiint_E \frac{\partial R}{\partial z}\, dV = \iint_D \int_{g_1(x,y)}^{g_2(x,y)} \frac{\partial R}{\partial z}\, dz\, dA = \iint_D \left[R(x,y,g_2) - R(x,y,g_1)\right]\, dA

On S2S_2 (top): dS=(−g2x,−g2y,1) dAd\mathbf{S} = (-g_{2x}, -g_{2y}, 1)\, dA (upward), so R k⋅dS=R(x,y,g2) dAR\, \mathbf{k} \cdot d\mathbf{S} = R(x,y,g_2)\, dA.

On S1S_1 (bottom): dS=(g1x,g1y,−1) dAd\mathbf{S} = (g_{1x}, g_{1y}, -1)\, dA (downward), so R k⋅dS=−R(x,y,g1) dAR\, \mathbf{k} \cdot d\mathbf{S} = -R(x,y,g_1)\, dA.

On S3S_3: k⋅n=0\mathbf{k} \cdot \mathbf{n} = 0 (the normal is horizontal), so R k⋅dS=0R\, \mathbf{k} \cdot d\mathbf{S} = 0.

Therefore ∬SR k⋅dS=∬D[R(x,y,g2)−R(x,y,g1)] dA\iint_S R\, \mathbf{k} \cdot d\mathbf{S} = \iint_D [R(x,y,g_2) - R(x,y,g_1)]\, dAMatching the Volume integral. The PP and QQ components follow by an identical argument for Type II and Type III Regions. For general regions, decompose into finitely many regions of each type. ■\blacksquare

Worked Example. Compute the flux of F=(x3,y3,z3)\mathbf{F} = (x^3, y^3, z^3) through the unit sphere SS.

Solution. By the divergence theorem:

∇⋅F=3x2+3y2+3z2=3(x2+y2+z2)=3ρ2\nabla \cdot \mathbf{F} = 3x^2 + 3y^2 + 3z^2 = 3(x^2 + y^2 + z^2) = 3\rho^2

Using spherical coordinates:

∭E3ρ2⋅ρ2sin⁡ϕ dρ dϕ dθ=3∫02π∫0π∫01ρ4sin⁡ϕ dρ dϕ dθ\iiint_E 3\rho^2 \cdot \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta = 3 \int_0^{2\pi} \int_0^{\pi} \int_0^1 \rho^4 \sin\phi\, d\rho\, d\phi\, d\theta

=3⋅2π⋅2⋅15=12π5= 3 \cdot 2\pi \cdot 2 \cdot \frac{1}{5} = \frac{12\pi}{5}

■\blacksquare

Problem. Compute the flux of F=(x2, y2, z2)\mathbf{F} = (x^2,\, y^2,\, z^2) outward through the surface of the Cylinder x2+y2≤1x^2 + y^2 \leq 1, 0≤z≤20 \leq z \leq 2.

Solution

By the divergence theorem:

∇⋅F=2x+2y+2z\nabla \cdot \mathbf{F} = 2x + 2y + 2z

Use cylindrical coordinates. The region E′E' is 0≤r≤10 \leq r \leq 1, 0≤θ≤2π0 \leq \theta \leq 2\pi 0≤z≤20 \leq z \leq 2.

∭E(2x+2y+2z) dV=∭E2z dV\iiint_E (2x + 2y + 2z)\, dV = \iiint_E 2z\, dV

Since ∬Ex dV=∬Ey dV=0\iint_E x\, dV = \iint_E y\, dV = 0 by symmetry (odd functions over a symmetric domain).

=2∫02π∫01∫02z⋅r dz dr dθ=2∫02π∫01r[z22]02 dr dθ= 2 \int_0^{2\pi} \int_0^1 \int_0^2 z \cdot r\, dz\, dr\, d\theta = 2 \int_0^{2\pi} \int_0^1 r\left[\frac{z^2}{2}\right]_0^2\, dr\, d\theta

=2∫02π∫012r dr dθ=2∫02π1 dθ=2⋅2π=4π= 2 \int_0^{2\pi} \int_0^1 2r\, dr\, d\theta = 2 \int_0^{2\pi} 1\, d\theta = 2 \cdot 2\pi = 4\pi

■\blacksquare

3.7 Conservative Fields and Potential Functions

Section titled “3.7 Conservative Fields and Potential Functions”

Definition. A vector field F\mathbf{F} on a domain D⊆RnD \subseteq \mathbb{R}^n is conservative if There exists a scalar function ϕ:D→R\phi : D \to \mathbb{R} (called a potential function) such that F=∇ϕ\mathbf{F} = \nabla \phi.

Proposition 3.8 (Equivalent conditions for conservative fields). Let F=(P,Q)\mathbf{F} = (P, Q) be a C1C^1 vector field on a connected domain D⊆R2D \subseteq \mathbb{R}^2. The following are equivalent:

  1. F\mathbf{F} is conservative: F=∇ϕ\mathbf{F} = \nabla \phi for some ϕ\phi.
  2. ∮CF⋅dr=0\oint_C \mathbf{F} \cdot d\mathbf{r} = 0 for every closed curve CC in DD.
  3. ∫CF⋅dr\int_C \mathbf{F} \cdot d\mathbf{r} is path-independent in DD.
  4. ∂P∂y=∂Q∂x\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} everywhere in DD.

Procedure for finding a potential function. Given F=(P,Q,R)\mathbf{F} = (P, Q, R) with ∇×F=0\nabla \times \mathbf{F} = \mathbf{0}:

  1. Integrate PP with respect to xx: ϕ=∫P dx+g(y,z)\phi = \int P\, dx + g(y, z).
  2. Differentiate with respect to yy and set equal to QQ to determine gyg_y.
  3. Integrate gyg_y with respect to yy: g=∫gy dy+h(z)g = \int g_y\, dy + h(z).
  4. Differentiate with respect to zz and set equal to RR to determine h′(z)h'(z).
  5. Integrate to find h(z)h(z) and assemble ϕ\phi.

Problem. Determine whether F=(2xy+z2, x2+2yz, 2xz+y2)\mathbf{F} = (2xy + z^2,\, x^2 + 2yz,\, 2xz + y^2) is conservative, And if so, find a potential function.

Solution

Check the curl:

(∇×F)x=∂∂y(2xz+y2)−∂∂z(x2+2yz)=2y−2y=0(\nabla \times \mathbf{F})_x = \frac{\partial}{\partial y}(2xz + y^2) - \frac{\partial}{\partial z}(x^2 + 2yz) = 2y - 2y = 0

(∇×F)y=∂∂z(2xy+z2)−∂∂x(2xz+y2)=2z−2z=0(\nabla \times \mathbf{F})_y = \frac{\partial}{\partial z}(2xy + z^2) - \frac{\partial}{\partial x}(2xz + y^2) = 2z - 2z = 0

(∇×F)z=∂∂x(x2+2yz)−∂∂y(2xy+z2)=2x−2x=0(\nabla \times \mathbf{F})_z = \frac{\partial}{\partial x}(x^2 + 2yz) - \frac{\partial}{\partial y}(2xy + z^2) = 2x - 2x = 0

Since ∇×F=0\nabla \times \mathbf{F} = \mathbf{0}, F\mathbf{F} is conservative. Find ϕ\phi:

∂ϕ∂x=2xy+z2  ⟹  ϕ=x2y+xz2+g(y,z)\frac{\partial \phi}{\partial x} = 2xy + z^2 \implies \phi = x^2 y + xz^2 + g(y,z)

∂ϕ∂y=x2+gy(y,z)=x2+2yz  ⟹  gy(y,z)=2yz  ⟹  g(y,z)=y2z+h(z)\frac{\partial \phi}{\partial y} = x^2 + g_y(y,z) = x^2 + 2yz \implies g_y(y,z) = 2yz \implies g(y,z) = y^2 z + h(z)

∂ϕ∂z=2xz+y2+h′(z)\frac{\partial \phi}{\partial z} = 2xz + y^2 + h'(z)

This must equal 2xz+y22xz + y^2So h′(z)=0h'(z) = 0Giving h(z)=Ch(z) = C.

Therefore ϕ(x,y,z)=x2y+xz2+y2z+C\phi(x,y,z) = x^2 y + xz^2 + y^2 z + C. ■\blacksquare

:::caution Common Pitfalls

  • Singularities. When applying Green’s, Stokes’, or the Divergence theorem, verify that the field has continuous partial derivatives on the region (including interior). If there are singularities inside the region, the theorems do not apply directly; the singularity must be handled separately.
  • ** connected domains.** The condition ∇×F=0\nabla \times \mathbf{F} = \mathbf{0} guarantees that F\mathbf{F} is conservative only on a connected domain. For example, F=(−y,x)x2+y2\mathbf{F} = \frac{(-y, x)}{x^2 + y^2} has zero curl on R2∖(0,0)\mathbb{R}^2 \setminus \\{(0,0)\\} but is not conservative there (the domain is not connected).
  • Orientation. Green’s and Stokes’ theorems require positive orientation (counterclockwise for planar curves, right-hand rule for surfaces). The divergence theorem requires the outward normal. Reversing orientation changes the sign of the result. :::

3.9 Relationships Among the Fundamental Theorems

Section titled “3.9 Relationships Among the Fundamental Theorems”

The three major integral theorems of vector calculus are deeply connected:

Remark. Green’s theorem is the planar special case of Stokes’ theorem. Stokes’ theorem relates the Circulation around a curve to the curl through the surface it bounds. The divergence theorem relates The flux through a closed surface to the divergence inside the volume it encloses. Together, these Form the higher-dimensional analogues of the Fundamental Theorem of Calculus:

∫abf′(x) dx=f(b)−f(a)(FTC)\int_a^b f'(x)\, dx = f(b) - f(a) \quad \mathrm{(FTC)}

∫C∇ϕ⋅dr=ϕ(B)−ϕ(A)(FTLI)\int_C \nabla \phi \cdot d\mathbf{r} = \phi(B) - \phi(A) \quad \mathrm{(FTLI)}

∮CF⋅dr=∬S(∇×F)⋅dS(Stokes)\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} \quad \mathrm{(Stokes)}

∬SF⋅dS=∭E(∇⋅F) dV(Divergence)\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E (\nabla \cdot \mathbf{F})\, dV \quad \mathrm{(Divergence)}

In each case, the integral of a “derivative” over a region equals the integral of the original function Over the boundary of that region. This is the generalised Stokes’ theorem:

∫∂Ωω=∫Ωdω\int_{\partial \Omega} \omega = \int_{\Omega} d\omega

Where Ω\Omega is a kk-dimensional manifold with boundary ∂Ω\partial \Omega, ω\omega is a (k−1)(k-1)-form, And dωd\omega is its exterior derivative.

Theorem 4.1 (First Derivative Test). If ff has a local extremum at an interior point a\mathbf{a} And ∇f(a)\nabla f(\mathbf{a}) exists, then ∇f(a)=0\nabla f(\mathbf{a}) = \mathbf{0}.

Points where ∇f=0\nabla f = \mathbf{0} are called critical points (or stationary points).

Remark. Not all critical points are extrema. A critical point can be a local minimum, local maximum, Or saddle point. The second derivative test (Section 4.2) distinguishes these cases.

Theorem 4.2 (Second Derivative Test). Let ff have continuous second partial derivatives near a Critical point (a,b)(a,b) with fx(a,b)=fy(a,b)=0f_x(a,b) = f_y(a,b) = 0. Let

D=fxx(a,b)fyy(a,b)−[fxy(a,b)]2D = f_{xx}(a,b) f_{yy}(a,b) - [f_{xy}(a,b)]^2

Be the Hessian determinant. Then:

  • If D>0D \gt 0 and fxx(a,b)>0f_{xx}(a,b) \gt 0: local minimum.
  • If D>0D \gt 0 and fxx(a,b)<0f_{xx}(a,b) \lt 0: local maximum.
  • If D<0D \lt 0: saddle point.
  • If D=0D = 0: the test is inconclusive.

Proof. By Taylor’s theorem to second order, for small h,kh, k:

f(a+h,b+k)−f(a,b)=12[fxxh2+2fxyhk+fyyk2]+R2f(a+h, b+k) - f(a,b) = \frac{1}{2}\left[f_{xx} h^2 + 2f_{xy} hk + f_{yy} k^2\right] + R_2

Where the remainder R2=o(h2+k2)R_2 = o(h^2 + k^2) and all partials are evaluated at (a,b)(a,b). The sign of the Right-hand side is determined by the quadratic form

Q(h,k)=fxxh2+2fxyhk+fyyk2=(hk)H(hk)Q(h,k) = f_{xx} h^2 + 2f_{xy} hk + f_{yy} k^2 = \begin{pmatrix} h & k \end{pmatrix} H \begin{pmatrix} h \\ k \end{pmatrix}

Where H=(fxxfxyfxyfyy)H = \begin{pmatrix} f_{xx} & f_{xy} \\ f_{xy} & f_{yy} \end{pmatrix} is the Hessian matrix.

By Sylvester’s criterion for 2×22 \times 2 symmetric matrices:

  • If det⁡(H)=D>0\det(H) = D \gt 0 and fxx>0f_{xx} \gt 0Then HH is positive definite, so Q>0Q \gt 0 for all (h,k)≠(0,0)(h,k) \neq (0,0)Giving a local minimum.
  • If det⁡(H)=D>0\det(H) = D \gt 0 and fxx<0f_{xx} \lt 0Then HH is negative definite, so Q<0Q \lt 0 for all (h,k)≠(0,0)(h,k) \neq (0,0)Giving a local maximum.
  • If det⁡(H)=D<0\det(H) = D \lt 0Then HH is indefinite, so QQ takes both positive and negative values, giving a saddle point.

When D=0D = 0The quadratic form is degenerate and the sign is determined by higher-order terms. ■\blacksquare

Theorem 4.3 (Method of Lagrange Multipliers). To find the extrema of f(x,y,z)f(x,y,z) subject to the Constraint g(x,y,z)=0g(x,y,z) = 0Solve the system:

∇f=λ∇g,g=0\nabla f = \lambda \nabla g, \quad g = 0

More generally, for kk constraints g1=0,…,gk=0g_1 = 0, \ldots, g_k = 0:

∇f=λ1∇g1+⋯+λk∇gk\nabla f = \lambda_1 \nabla g_1 + \cdots + \lambda_k \nabla g_k

Proof (single constraint, geometric justification). Let M=(x,y,z):g(x,y,z)=0M = \\{(x,y,z) : g(x,y,z) = 0\\} be the constraint surface. If ff has a local extremum on MM at p\mathbf{p}Then the directional derivative Dvf(p)=0D_{\mathbf{v}} f(\mathbf{p}) = 0 for every tangent Vector v\mathbf{v} to MM at p\mathbf{p}. Since ∇f(p)⋅v=0\nabla f(\mathbf{p}) \cdot \mathbf{v} = 0 for all Such v\mathbf{v}The gradient ∇f(p)\nabla f(\mathbf{p}) must be orthogonal to the tangent space of MM At p\mathbf{p}. But the tangent space of MM is orthogonal to ∇g(p)\nabla g(\mathbf{p}) (by the implicit Function theorem). Therefore ∇f(p)\nabla f(\mathbf{p}) must be parallel to ∇g(p)\nabla g(\mathbf{p})I.e., ∇f(p)=λ ∇g(p)\nabla f(\mathbf{p}) = \lambda\, \nabla g(\mathbf{p}) for some scalar λ\lambda. ■\blacksquare

Problem. Find the maximum of f(x,y)=xyf(x,y) = xy subject to x2+y2=1x^2 + y^2 = 1.

Solution. Set g(x,y)=x2+y2−1g(x,y) = x^2 + y^2 - 1. The Lagrange multiplier equations:

∇f=λ∇g  ⟹  (y,x)=λ(2x,2y)\nabla f = \lambda \nabla g \implies (y, x) = \lambda(2x, 2y)

This gives y=2λxy = 2\lambda x and x=2λyx = 2\lambda y. Multiplying: xy=4λ2xyxy = 4\lambda^2 xy.

Case 1: xy≠0xy \neq 0. Then 4λ2=14\lambda^2 = 1So λ=±1/2\lambda = \pm 1/2.

  • λ=1/2\lambda = 1/2: y=xy = xAnd x2+x2=1x^2 + x^2 = 1So x=±1/2x = \pm 1/\sqrt{2}. Points: (1/2,1/2)(1/\sqrt{2}, 1/\sqrt{2}) and (−1/2,−1/2)(-1/\sqrt{2}, -1/\sqrt{2}) with f=1/2f = 1/2.
  • λ=−1/2\lambda = -1/2: y=−xy = -xAnd x2+x2=1x^2 + x^2 = 1So x=±1/2x = \pm 1/\sqrt{2}. Points: (1/2,−1/2)(1/\sqrt{2}, -1/\sqrt{2}) and (−1/2,1/2)(-1/\sqrt{2}, 1/\sqrt{2}) with f=−1/2f = -1/2.

Case 2: xy=0xy = 0. Then either x=0x = 0 or y=0y = 0. From the constraint: (0,±1)(0, \pm 1) or (±1,0)(\pm 1, 0) with f=0f = 0.

Maximum: f=1/2f = 1/2 at (±1/2,±1/2)(\pm 1/\sqrt{2}, \pm 1/\sqrt{2}). Minimum: f=−1/2f = -1/2 at (±1/2,∓1/2)(\pm 1/\sqrt{2}, \mp 1/\sqrt{2}). ■\blacksquare

Problem. Find and classify all critical points of f(x,y)=x4+y4−4xyf(x,y) = x^4 + y^4 - 4xy.

Solution

Compute the gradient:

∇f=(4x3−4y, 4y3−4x)\nabla f = (4x^3 - 4y,\, 4y^3 - 4x)

Set ∇f=(0,0)\nabla f = (0,0):

x3=y,y3=xx^3 = y, \quad y^3 = x

Substituting y=x3y = x^3 into y3=xy^3 = x: (x3)3=x(x^3)^3 = xI.e., x9=xx^9 = xGiving x(x8−1)=0x(x^8 - 1) = 0. So x=0x = 0 or x=±1x = \pm 1.

  • x=0x = 0: y=0y = 0. Critical point: (0,0)(0, 0).
  • x=1x = 1: y=1y = 1. Critical point: (1,1)(1, 1).
  • x=−1x = -1: y=−1y = -1. Critical point: (−1,−1)(-1, -1).

Second derivatives: fxx=12x2f_{xx} = 12x^2, fyy=12y2f_{yy} = 12y^2, fxy=−4f_{xy} = -4.

At (0,0)(0,0): D=0⋅0−16=−16<0D = 0 \cdot 0 - 16 = -16 \lt 0. Saddle point.

At (1,1)(1,1): D=12⋅12−16=144−16=128>0D = 12 \cdot 12 - 16 = 144 - 16 = 128 \gt 0 and fxx=12>0f_{xx} = 12 \gt 0. Local minimum with f(1,1)=1+1−4=−2f(1,1) = 1 + 1 - 4 = -2.

At (−1,−1)(-1,-1): D=12⋅12−16=128>0D = 12 \cdot 12 - 16 = 128 \gt 0 and fxx=12>0f_{xx} = 12 \gt 0. Local minimum with f(−1,−1)=1+1−4=−2f(-1,-1) = 1 + 1 - 4 = -2. ■\blacksquare

Problem. Find and classify all critical points of f(x,y)=x3+y3−3xyf(x,y) = x^3 + y^3 - 3xy.

Solution

Compute the gradient:

∇f=(3x2−3y, 3y2−3x)\nabla f = (3x^2 - 3y,\, 3y^2 - 3x)

Set ∇f=(0,0)\nabla f = (0,0):

3x2−3y=0  ⟹  y=x2,3y2−3x=0  ⟹  y2=x3x^2 - 3y = 0 \implies y = x^2, \quad 3y^2 - 3x = 0 \implies y^2 = x

Substituting: (x2)2=x(x^2)^2 = xSo x4−x=0x^4 - x = 0Giving x(x3−1)=0x(x^3 - 1) = 0So x=0x = 0 or x=1x = 1.

  • x=0x = 0: y=0y = 0. Critical point: (0,0)(0, 0).
  • x=1x = 1: y=1y = 1. Critical point: (1,1)(1, 1).

Second derivatives: fxx=6xf_{xx} = 6x, fyy=6yf_{yy} = 6y, fxy=−3f_{xy} = -3.

At (0,0)(0,0): D=fxxfyy−fxy2=0⋅0−9=−9<0D = f_{xx} f_{yy} - f_{xy}^2 = 0 \cdot 0 - 9 = -9 \lt 0. Saddle point.

At (1,1)(1,1): D=6⋅6−9=27>0D = 6 \cdot 6 - 9 = 27 \gt 0 and fxx=6>0f_{xx} = 6 \gt 0. Local minimum with f(1,1)=−1f(1,1) = -1. ■\blacksquare

Problem. Find the point on the plane x+2y+3z=6x + 2y + 3z = 6 closest to the origin.

Solution

Minimise f(x,y,z)=x2+y2+z2f(x,y,z) = x^2 + y^2 + z^2 subject to g(x,y,z)=x+2y+3z−6=0g(x,y,z) = x + 2y + 3z - 6 = 0.

∇f=λ∇g\nabla f = \lambda \nabla g:

(2x,2y,2z)=λ(1,2,3)(2x, 2y, 2z) = \lambda(1, 2, 3)

This gives x=λ/2x = \lambda/2, y=λy = \lambda, z=3λ/2z = 3\lambda/2. Substituting into the constraint:

λ2+2λ+9λ2=6  ⟹  λ+4λ+9λ2=6  ⟹  7λ=6  ⟹  λ=67\frac{\lambda}{2} + 2\lambda + \frac{9\lambda}{2} = 6 \implies \frac{\lambda + 4\lambda + 9\lambda}{2} = 6 \implies 7\lambda = 6 \implies \lambda = \frac{6}{7}

Therefore x=3/7x = 3/7, y=6/7y = 6/7, z=9/7z = 9/7. The closest point is (3/7, 6/7, 9/7)(3/7,\, 6/7,\, 9/7) with Distance 9/49+36/49+81/49=126/49=3147\sqrt{9/49 + 36/49 + 81/49} = \sqrt{126/49} = \frac{3\sqrt{14}}{7}. ■\blacksquare

Problem. Maximise f(x,y,z)=xyzf(x,y,z) = xyz subject to x+y+z=1x + y + z = 1 and x2+y2+z2=1/3x^2 + y^2 + z^2 = 1/3.

Solution

Set g1=x+y+z−1g_1 = x + y + z - 1 and g2=x2+y2+z2−1/3g_2 = x^2 + y^2 + z^2 - 1/3. The Lagrange multiplier system is:

∇f=λ1∇g1+λ2∇g2\nabla f = \lambda_1 \nabla g_1 + \lambda_2 \nabla g_2

(yz,xz,xy)=λ1(1,1,1)+λ2(2x,2y,2z)(yz, xz, xy) = \lambda_1(1, 1, 1) + \lambda_2(2x, 2y, 2z)

This gives three equations:

yz=λ1+2λ2x,xz=λ1+2λ2y,xy=λ1+2λ2zyz = \lambda_1 + 2\lambda_2 x, \quad xz = \lambda_1 + 2\lambda_2 y, \quad xy = \lambda_1 + 2\lambda_2 z

Subtracting the first two: z(y−x)=2λ2(x−y)z(y - x) = 2\lambda_2(x - y)Giving (y−x)(z+2λ2)=0(y - x)(z + 2\lambda_2) = 0.

Similarly, (z−y)(x+2λ2)=0(z - y)(x + 2\lambda_2) = 0 and (x−z)(y+2λ2)=0(x - z)(y + 2\lambda_2) = 0.

If x=y=zx = y = z: From g1g_1: 3x=13x = 1So x=1/3x = 1/3. From g2g_2: 3(1/9)=1/33(1/9) = 1/3. This satisfies both constraints.

At (1/3,1/3,1/3)(1/3, 1/3, 1/3): f=1/27f = 1/27.

If x≠yx \neq y: Then z+2λ2=0z + 2\lambda_2 = 0. If also y≠zy \neq z: x+2λ2=0x + 2\lambda_2 = 0So x=zx = z.

With x=zx = z: from x+y+z=1x + y + z = 1: 2x+y=12x + y = 1. From 2x2+y2=1/32x^2 + y^2 = 1/3: Substituting y=1−2xy = 1 - 2x: 6x2−4x+2/3=06x^2 - 4x + 2/3 = 0I.e., (3x−1)2=0(3x - 1)^2 = 0So x=1/3x = 1/3 y=1/3y = 1/3. This reduces to the symmetric case.

Therefore the only critical point is (1/3,1/3,1/3)(1/3, 1/3, 1/3)Which gives f=1/27f = 1/27.

Since the constraint set is compact (intersection of a plane and a sphere in R3\mathbb{R}^3), the Extreme value theorem guarantees both a maximum and minimum exist. The maximum of xyzxyz is 1/271/27 at (1/3,1/3,1/3)(1/3, 1/3, 1/3). ■\blacksquare

:::caution Common Pitfalls

  • Lagrange multipliers find candidates only. The method produces candidates for constrained extrema but does not guarantee they are extrema. Always evaluate ff at all candidates and use additional reasoning (e.g., compactness of the constraint set via the extreme value theorem) to determine which gives the max/min.
  • Boundary vs. Interior. For unconstrained problems on a closed, bounded domain, check both interior critical points and boundary points separately.
  • Degenerate Hessian. When the Hessian determinant D=0D = 0The second derivative test is inconclusive. Use higher-order Taylor expansions or direct analysis of the function near the critical point.
  • Non-normalised constraint gradients. Ensure the constraint functions are written in the form g=0g = 0; multiplying gg by a constant changes λ\lambda but not the critical points. :::

A parametric curve in R3\mathbb{R}^3 is a C1C^1 function r:[a,b]→R3\mathbf{r} : [a, b] \to \mathbb{R}^3 Written r(t)=(x(t), y(t), z(t))\mathbf{r}(t) = (x(t),\, y(t),\, z(t)).

Definition. The arc length of r\mathbf{r} over [a,b][a, b] is

L=∫ab∥r′(t)∥ dt=∫ab(dxdt)2+(dydt)2+(dzdt)2 dtL = \int_a^b \lVert \mathbf{r}'(t) \rVert\, dt = \int_a^b \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2 + \left(\frac{dz}{dt}\right)^2}\, dt

Proposition 5.1. The arc length function s(t)=∫at∥r′(τ)∥ dτs(t) = \int_a^t \lVert \mathbf{r}'(\tau) \rVert\, d\tau Satisfies dsdt=∥r′(t)∥\frac{ds}{dt} = \lVert \mathbf{r}'(t) \rVertAnd reparametrising by arc length gives a Unit-speed curve: ∥drds∥=1\lVert \frac{d\mathbf{r}}{ds} \rVert = 1.

Proof. By the Fundamental Theorem of Calculus, dsdt=∥r′(t)∥\frac{ds}{dt} = \lVert \mathbf{r}'(t) \rVert. If we reparametrise by ssI.e., write r(s)=r(t(s))\mathbf{r}(s) = \mathbf{r}(t(s))Then by the chain rule drds=r′(t)⋅dtds\frac{d\mathbf{r}}{ds} = \mathbf{r}'(t) \cdot \frac{dt}{ds}So ∥drds∥=∥r′(t)∥⋅∣dtds∣=1\lVert \frac{d\mathbf{r}}{ds} \rVert = \lVert \mathbf{r}'(t) \rVert \cdot \left\lvert \frac{dt}{ds} \right\rvert = 1. ■\blacksquare

Problem. Find the arc length of the curve r(t)=(etcos⁡t, etsin⁡t, et)\mathbf{r}(t) = (e^t \cos t,\, e^t \sin t,\, e^t) for 0≤t≤ln⁡20 \leq t \leq \ln 2.

Solution

r′(t)=(etcos⁡t−etsin⁡t, etsin⁡t+etcos⁡t, et)\mathbf{r}'(t) = (e^t \cos t - e^t \sin t,\, e^t \sin t + e^t \cos t,\, e^t)

∥r′(t)∥2=e2t(cos⁡t−sin⁡t)2+e2t(sin⁡t+cos⁡t)2+e2t\lVert \mathbf{r}'(t) \rVert^2 = e^{2t}(\cos t - \sin t)^2 + e^{2t}(\sin t + \cos t)^2 + e^{2t}

=e2t[(cos⁡2t−2sin⁡tcos⁡t+sin⁡2t)+(sin⁡2t+2sin⁡tcos⁡t+cos⁡2t)+1]= e^{2t}[(\cos^2 t - 2\sin t \cos t + \sin^2 t) + (\sin^2 t + 2\sin t \cos t + \cos^2 t) + 1]

=e2t[1+1+1]=3e2t= e^{2t}[1 + 1 + 1] = 3e^{2t}

∥r′(t)∥=3 et\lVert \mathbf{r}'(t) \rVert = \sqrt{3}\, e^t

L=∫0ln⁡23 et dt=3 [et]0ln⁡2=3(2−1)=3L = \int_0^{\ln 2} \sqrt{3}\, e^t\, dt = \sqrt{3}\, [e^t]_0^{\ln 2} = \sqrt{3}(2 - 1) = \sqrt{3}

■\blacksquare

Problem. Find the arc length of the helix r(t)=(cos⁡t, sin⁡t, t)\mathbf{r}(t) = (\cos t,\, \sin t,\, t) for 0≤t≤4π0 \leq t \leq 4\pi.

Solution

r′(t)=(−sin⁡t, cos⁡t, 1)\mathbf{r}'(t) = (-\sin t,\, \cos t,\, 1)So ∥r′(t)∥=sin⁡2t+cos⁡2t+1=2\lVert \mathbf{r}'(t) \rVert = \sqrt{\sin^2 t + \cos^2 t + 1} = \sqrt{2}.

L=∫04π2 dt=42 πL = \int_0^{4\pi} \sqrt{2}\, dt = 4\sqrt{2}\,\pi

■\blacksquare

Definition. Let r(s)\mathbf{r}(s) be a unit-speed curve (∥r′(s)∥=1\lVert \mathbf{r}'(s) \rVert = 1). Define:

  • Unit tangent vector: T(s)=r′(s)\mathbf{T}(s) = \mathbf{r}'(s)
  • Curvature: κ(s)=∥T′(s)∥=∥r′′(s)∥\kappa(s) = \lVert \mathbf{T}'(s) \rVert = \lVert \mathbf{r}''(s) \rVert
  • Principal normal: N(s)=T′(s)∥T′(s)∥\mathbf{N}(s) = \frac{\mathbf{T}'(s)}{\lVert \mathbf{T}'(s) \rVert} (when κ≠0\kappa \neq 0)
  • Binormal: B(s)=T(s)×N(s)\mathbf{B}(s) = \mathbf{T}(s) \times \mathbf{N}(s)
  • Torsion: τ(s)=−B′(s)⋅N(s)\tau(s) = -\mathbf{B}'(s) \cdot \mathbf{N}(s)

The vectors T\mathbf{T}, N\mathbf{N}, B\mathbf{B} form the Frenet—Serret frame, an orthonormal Basis that moves with the curve.

Theorem 5.2 (Frenet—Serret Formulas).

T′=κ N,N′=−κ T+τ B,B′=−τ N\mathbf{T}' = \kappa\, \mathbf{N}, \quad \mathbf{N}' = -\kappa\, \mathbf{T} + \tau\, \mathbf{B}, \quad \mathbf{B}' = -\tau\, \mathbf{N}

Proof. Since T\mathbf{T} is a unit vector, T⋅T=1\mathbf{T} \cdot \mathbf{T} = 1So T′⋅T=0\mathbf{T}' \cdot \mathbf{T} = 0. Therefore T′\mathbf{T}' is orthogonal to T\mathbf{T}So T′\mathbf{T}' is parallel to N\mathbf{N} (when κ≠0\kappa \neq 0). This gives T′=κ N\mathbf{T}' = \kappa\,\mathbf{N}.

Similarly, B=T×N\mathbf{B} = \mathbf{T} \times \mathbf{N} is a unit vector, so B′⋅B=0\mathbf{B}' \cdot \mathbf{B} = 0. Also B⋅T=0\mathbf{B} \cdot \mathbf{T} = 0So B′⋅T+B⋅T′=0\mathbf{B}' \cdot \mathbf{T} + \mathbf{B} \cdot \mathbf{T}' = 0 Giving B′⋅T=−B⋅κ N=0\mathbf{B}' \cdot \mathbf{T} = -\mathbf{B} \cdot \kappa\,\mathbf{N} = 0. So B′\mathbf{B}' is Parallel to N\mathbf{N}Giving B′=−τ N\mathbf{B}' = -\tau\,\mathbf{N}.

For N′\mathbf{N}': since {T,N,B}\{\mathbf{T}, \mathbf{N}, \mathbf{B}\} is an orthonormal basis, N′=(N′⋅T) T+(N′⋅N) N+(N′⋅B) B\mathbf{N}' = (\mathbf{N}' \cdot \mathbf{T})\,\mathbf{T} + (\mathbf{N}' \cdot \mathbf{N})\,\mathbf{N} + (\mathbf{N}' \cdot \mathbf{B})\,\mathbf{B}. From N⋅T=0\mathbf{N} \cdot \mathbf{T} = 0: N′⋅T=−N⋅T′=−κ\mathbf{N}' \cdot \mathbf{T} = -\mathbf{N} \cdot \mathbf{T}' = -\kappa. From N⋅N=1\mathbf{N} \cdot \mathbf{N} = 1: N′⋅N=0\mathbf{N}' \cdot \mathbf{N} = 0. From N⋅B=0\mathbf{N} \cdot \mathbf{B} = 0: N′⋅B=−N⋅B′=τ\mathbf{N}' \cdot \mathbf{B} = -\mathbf{N} \cdot \mathbf{B}' = \tau. This gives N′=−κ T+τ B\mathbf{N}' = -\kappa\,\mathbf{T} + \tau\,\mathbf{B}. ■\blacksquare

Intuition. The curvature κ\kappa measures how sharply the curve bends (deviation from a straight line). The torsion τ\tau measures how sharply the curve twists out of the osculating plane (deviation from a Plane curve). A curve lies in a plane if and only if τ=0\tau = 0 everywhere.

For a curve parameterised by an arbitrary parameter tt (not necessarily unit-speed):

κ=∥r′(t)×r′′(t)∥∥r′(t)∥3\kappa = \frac{\lVert \mathbf{r}'(t) \times \mathbf{r}''(t) \rVert}{\lVert \mathbf{r}'(t) \rVert^3}

τ=[r′(t)×r′′(t)]⋅r′′′(t)∥r′(t)×r′′(t)∥2\tau = \frac{[\mathbf{r}'(t) \times \mathbf{r}''(t)] \cdot \mathbf{r}^{\prime\prime\prime}(t)}{\lVert \mathbf{r}'(t) \times \mathbf{r}''(t) \rVert^2}

Problem. Find the curvature and torsion of the helix r(t)=(acos⁡t, asin⁡t, bt)\mathbf{r}(t) = (a\cos t,\, a\sin t,\, bt) where a,b>0a, b \gt 0.

Solution

r′(t)=(−asin⁡t, acos⁡t, b)\mathbf{r}'(t) = (-a\sin t,\, a\cos t,\, b)

r′′(t)=(−acos⁡t, −asin⁡t, 0)\mathbf{r}''(t) = (-a\cos t,\, -a\sin t,\, 0)

r′′′(t)=(asin⁡t, −acos⁡t, 0)\mathbf{r}^{\prime\prime\prime}(t) = (a\sin t,\, -a\cos t,\, 0)

∥r′∥=a2+b2\lVert \mathbf{r}' \rVert = \sqrt{a^2 + b^2}

r′×r′′=∣ijk−asin⁡tacos⁡tb−acos⁡t−asin⁡t0∣=(absin⁡t, −abcos⁡t, a2)\mathbf{r}' \times \mathbf{r}'' = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ -a\sin t & a\cos t & b \\ -a\cos t & -a\sin t & 0 \end{vmatrix} = (ab\sin t,\, -ab\cos t,\, a^2)

∥r′×r′′∥=a2b2+a4=aa2+b2\lVert \mathbf{r}' \times \mathbf{r}'' \rVert = \sqrt{a^2 b^2 + a^4} = a\sqrt{a^2 + b^2}

κ=aa2+b2(a2+b2)3/2=aa2+b2\kappa = \frac{a\sqrt{a^2 + b^2}}{(a^2 + b^2)^{3/2}} = \frac{a}{a^2 + b^2}

For the torsion:

(r′×r′′)⋅r′′′=absin⁡t⋅asin⁡t+(−abcos⁡t)(−acos⁡t)+a2⋅0=a2b(\mathbf{r}' \times \mathbf{r}'') \cdot \mathbf{r}^{\prime\prime\prime} = ab\sin t \cdot a\sin t + (-ab\cos t)(-a\cos t) + a^2 \cdot 0 = a^2 b

τ=a2ba2(a2+b2)=ba2+b2\tau = \frac{a^2 b}{a^2(a^2 + b^2)} = \frac{b}{a^2 + b^2}

■\blacksquare

Remark. The helix has constant curvature and constant torsion, reflecting its uniform geometry.

A parametric surface is a C1C^1 map r:D⊆R2→R3\mathbf{r} : D \subseteq \mathbb{R}^2 \to \mathbb{R}^3 r(u,v)=(x(u,v), y(u,v), z(u,v))\mathbf{r}(u, v) = (x(u,v),\, y(u,v),\, z(u,v)).

The tangent plane at r(u0,v0)\mathbf{r}(u_0, v_0) is spanned by the tangent vectors

ru=∂r∂u,rv=∂r∂v\mathbf{r}_u = \frac{\partial \mathbf{r}}{\partial u}, \quad \mathbf{r}_v = \frac{\partial \mathbf{r}}{\partial v}

The unit normal to the surface is

n=ru×rv∥ru×rv∥\mathbf{n} = \frac{\mathbf{r}_u \times \mathbf{r}_v}{\lVert \mathbf{r}_u \times \mathbf{r}_v \rVert}

Examples of parametric surfaces:

  • Sphere (spherical coordinates): r(θ,ϕ)=(ρsin⁡ϕcos⁡θ, ρsin⁡ϕsin⁡θ, ρcos⁡ϕ)\mathbf{r}(\theta, \phi) = (\rho\sin\phi\cos\theta,\, \rho\sin\phi\sin\theta,\, \rho\cos\phi)
  • Cylinder: r(θ,z)=(rcos⁡θ, rsin⁡θ, z)\mathbf{r}(\theta, z) = (r\cos\theta,\, r\sin\theta,\, z)
  • Graph of z=f(x,y)z = f(x,y): r(x,y)=(x, y, f(x,y))\mathbf{r}(x, y) = (x,\, y,\, f(x,y))

For the graph z=f(x,y)z = f(x,y)The normal is n=(−fx, −fy, 1)1+fx2+fy2\mathbf{n} = \frac{(-f_x,\, -f_y,\, 1)}{\sqrt{1 + f_x^2 + f_y^2}}.

Definition. The area of a parametric surface r:D→R3\mathbf{r} : D \to \mathbb{R}^3 is

A(S)=∬D∥ru×rv∥ du dvA(S) = \iint_D \lVert \mathbf{r}_u \times \mathbf{r}_v \rVert\, du\, dv

Derivation. Partition DD into small rectangles DijD_{ij} of area Δu Δv\Delta u\, \Delta v. The image r(Dij)\mathbf{r}(D_{ij}) is approximately a parallelogram spanned by ru Δu\mathbf{r}_u\, \Delta u and rv Δv\mathbf{r}_v\, \Delta vWith area ∥ru×rv∥ Δu Δv\lVert \mathbf{r}_u \times \mathbf{r}_v \rVert\, \Delta u\, \Delta v. Summing and taking the limit gives the formula. ■\blacksquare

Problem. Find the surface area of the part of the paraboloid z=x2+y2z = x^2 + y^2 that lies below The plane z=4z = 4.

Solution

Parametrise by r(x,y)=(x, y, x2+y2)\mathbf{r}(x, y) = (x,\, y,\, x^2 + y^2) where x2+y2≤4x^2 + y^2 \leq 4.

rx=(1, 0, 2x)\mathbf{r}_x = (1,\, 0,\, 2x), ry=(0, 1, 2y)\mathbf{r}_y = (0,\, 1,\, 2y).

rx×ry=∣ijk102x012y∣=(−2x, −2y, 1)\mathbf{r}_x \times \mathbf{r}_y = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ 1 & 0 & 2x \\ 0 & 1 & 2y \end{vmatrix} = (-2x,\, -2y,\, 1)

∥rx×ry∥=4x2+4y2+1\lVert \mathbf{r}_x \times \mathbf{r}_y \rVert = \sqrt{4x^2 + 4y^2 + 1}

A=∬x2+y2≤44x2+4y2+1 dx dyA = \iint_{x^2+y^2 \leq 4} \sqrt{4x^2 + 4y^2 + 1}\, dx\, dy

Use polar coordinates: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, 0≤r≤20 \leq r \leq 2, 0≤θ≤2π0 \leq \theta \leq 2\pi.

A=∫02π∫024r2+1 r dr dθA = \int_0^{2\pi} \int_0^2 \sqrt{4r^2 + 1}\, r\, dr\, d\theta

Let u=4r2+1u = 4r^2 + 1, du=8r drdu = 8r\, dr:

=2π⋅18∫117u du=π4[2u3/23]117=π6(173/2−1)= 2\pi \cdot \frac{1}{8} \int_1^{17} \sqrt{u}\, du = \frac{\pi}{4}\left[\frac{2u^{3/2}}{3}\right]_1^{17} = \frac{\pi}{6}(17^{3/2} - 1)

■\blacksquare

Definition (Scalar surface integral). The integral of a scalar function ff over a parametric Surface SS is

∬Sf dS=∬Df(r(u,v)) ∥ru×rv∥ du dv\iint_S f\, dS = \iint_D f(\mathbf{r}(u,v))\, \lVert \mathbf{r}_u \times \mathbf{r}_v \rVert\, du\, dv

Definition (Vector surface integral / flux). The flux of a vector field F\mathbf{F} through an Oriented surface SS is

∬SF⋅dS=∬DF(r(u,v))⋅(ru×rv) du dv\iint_S \mathbf{F} \cdot d\mathbf{S} = \iint_D \mathbf{F}(\mathbf{r}(u,v)) \cdot (\mathbf{r}_u \times \mathbf{r}_v)\, du\, dv

Where the orientation is determined by the choice of normal ru×rv\mathbf{r}_u \times \mathbf{r}_v vs. rv×ru\mathbf{r}_v \times \mathbf{r}_u.

Problem. Evaluate ∬SF⋅dS\iint_S \mathbf{F} \cdot d\mathbf{S} where F=(x, y, z2)\mathbf{F} = (x,\, y,\, z^2) and SS is the hemisphere x2+y2+z2=4x^2 + y^2 + z^2 = 4, z≥0z \geq 0With Upward orientation.

Solution

Use the divergence theorem on the closed hemisphere plus the disk at z=0z = 0. Let EE be the solid hemisphere. Then:

∬closed SF⋅dS=∭E∇⋅F dV=∭E(1+1+2z) dV\iint_{\mathrm{closed\ S} \mathbf{F} \cdot d\mathbf{S} = \iiint_E \nabla \cdot \mathbf{F}\, dV = \iiint_E (1 + 1 + 2z)\, dV}

=2V+2∭Ez dV= 2V + 2\iiint_E z\, dV

Where V=12⋅43π(23)=16π3V = \frac{1}{2} \cdot \frac{4}{3}\pi(2^3) = \frac{16\pi}{3}.

By symmetry, the centroid of a hemisphere of radius R=2R = 2 is at z=3R/8=3/4z = 3R/8 = 3/4So

∭Ez dV=zˉ⋅V=34⋅16π3=4π\iiint_E z\, dV = \bar{z} \cdot V = \frac{3}{4} \cdot \frac{16\pi}{3} = 4\pi

=2⋅16π3+2⋅4π=32π3+8π=56π3= 2 \cdot \frac{16\pi}{3} + 2 \cdot 4\pi = \frac{32\pi}{3} + 8\pi = \frac{56\pi}{3}

The flux through the disk z=0z = 0, x2+y2≤4x^2 + y^2 \leq 4 (with downward normal −k-\mathbf{k}): ∬diskF⋅(−k) dS=∬disk0 dS=0\iint_{\mathrm{disk} \mathbf{F} \cdot (-\mathbf{k})\, dS = \iint_{\mathrm{disk} 0\, dS = 0}}.

So the flux through the hemisphere alone is 56π3\frac{56\pi}{3}. ■\blacksquare

Problem. Evaluate ∬Sz dS\iint_S z\, dS where SS is the part of the plane 2x+2y+z=42x + 2y + z = 4 in the First octant.

Solution

Parametrise the surface. Solve for z=4−2x−2yz = 4 - 2x - 2y where x≥0x \geq 0, y≥0y \geq 0, z≥0z \geq 0 I.e., 2x+2y≤42x + 2y \leq 4 or x+y≤2x + y \leq 2.

r(x,y)=(x, y, 4−2x−2y)\mathbf{r}(x,y) = (x,\, y,\, 4 - 2x - 2y), D=(x,y):x≥0, y≥0, x+y≤2D = \\{(x,y) : x \geq 0,\, y \geq 0,\, x + y \leq 2\\}.

rx=(1, 0, −2)\mathbf{r}_x = (1,\, 0,\, -2), ry=(0, 1, −2)\mathbf{r}_y = (0,\, 1,\, -2).

rx×ry=(2, 2, 1)\mathbf{r}_x \times \mathbf{r}_y = (2,\, 2,\, 1)

∥rx×ry∥=4+4+1=3\lVert \mathbf{r}_x \times \mathbf{r}_y \rVert = \sqrt{4 + 4 + 1} = 3

∬Sz dS=∬D(4−2x−2y)⋅3 dx dy=3∫02∫02−x(4−2x−2y) dy dx\iint_S z\, dS = \iint_D (4 - 2x - 2y) \cdot 3\, dx\, dy = 3 \int_0^2 \int_0^{2-x} (4 - 2x - 2y)\, dy\, dx

=3∫02[(4−2x)y−y2]02−x dx=3∫02(2−x)(2−x) dx= 3 \int_0^2 \left[(4-2x)y - y^2\right]_0^{2-x}\, dx = 3 \int_0^2 (2-x)(2-x)\, dx

=3∫02(2−x)2 dx=3[−(2−x)33]02=3⋅83=8= 3 \int_0^2 (2-x)^2\, dx = 3\left[-\frac{(2-x)^3}{3}\right]_0^2 = 3 \cdot \frac{8}{3} = 8

■\blacksquare

:::caution Common Pitfalls

  • Parameterisation domain. Always verify that the parameterisation covers the entire surface and that the map is one-to-one (except possibly on the boundary).
  • Normal orientation. The cross product ru×rv\mathbf{r}_u \times \mathbf{r}_v determines the orientation. Swapping the order changes the sign of the flux integral.
  • Surface area vs. Flux. Surface area uses ∥ru×rv∥\lVert \mathbf{r}_u \times \mathbf{r}_v \rVert (scalar), while flux uses ru×rv\mathbf{r}_u \times \mathbf{r}_v (vector, oriented).

Compute ∇f\nabla f for f(x,y,z)=ln⁡(x2+y2)+exzf(x,y,z) = \ln(x^2 + y^2) + e^{xz} and evaluate at (1,0,0)(1, 0, 0).

Solution

fx=2xx2+y2+zexzf_x = \frac{2x}{x^2+y^2} + ze^{xz}, fy=2yx2+y2f_y = \frac{2y}{x^2+y^2}, fz=xexzf_z = xe^{xz}.

At (1,0,0)(1,0,0): fx=2+0=2f_x = 2 + 0 = 2, fy=0f_y = 0, fz=1f_z = 1.

∇f(1,0,0)=(2,0,1)\nabla f(1,0,0) = (2, 0, 1).

If you get this wrong, revise: Section 1.4 The Gradient.

Let f(x,y)=x3−3xy2+y3f(x,y) = x^3 - 3xy^2 + y^3. Find all critical points and classify them using the second Derivative test.

Solution

fx=3x2−3y2=0f_x = 3x^2 - 3y^2 = 0 and fy=−6xy+3y2=3y(−2x+y)=0f_y = -6xy + 3y^2 = 3y(-2x + y) = 0.

From fx=0f_x = 0: x2=y2x^2 = y^2So y=±xy = \pm x.

If y=xy = x: fy=3x(−2x+x)=−3x2=0f_y = 3x(-2x + x) = -3x^2 = 0So x=0x = 0. Point: (0,0)(0,0).

If y=−xy = -x: fy=3(−x)(2x+x)=−9x2=0f_y = 3(-x)(2x + x) = -9x^2 = 0So x=0x = 0. Point: (0,0)(0,0).

The only critical point is (0,0)(0, 0). Now fxx=6xf_{xx} = 6x, fyy=−6x+6yf_{yy} = -6x + 6y, fxy=−6yf_{xy} = -6y.

At (0,0)(0,0): D=0⋅0−0=0D = 0 \cdot 0 - 0 = 0. The second derivative test is inconclusive.

To classify, note f(x,y)=x3−3xy2+y3f(x, y) = x^3 - 3xy^2 + y^3. Along y=0y = 0: f(x,0)=x3f(x, 0) = x^3Which changes sign At 00. Along x=yx = y: f(x,x)=−x3f(x, x) = -x^3Which also changes sign but with opposite sign. Since the behaviour differs by direction, (0,0)(0, 0) is a saddle point.

If you get this wrong, revise: Section 4.2 Second Derivative Test.

Find the directional derivative of f(x,y)=excos⁡yf(x,y) = e^x \cos y at (0,π/2)(0, \pi/2) in the direction v=(1,1)\mathbf{v} = (1, 1).

Solution

Normalise: ∥v∥=2\lVert \mathbf{v} \rVert = \sqrt{2}So u=(1/2, 1/2)\mathbf{u} = (1/\sqrt{2},\, 1/\sqrt{2}).

fx=excos⁡yf_x = e^x \cos y, fy=−exsin⁡yf_y = -e^x \sin y.

∇f(0,π/2)=(e0cos⁡(π/2), −e0sin⁡(π/2))=(0,−1)\nabla f(0, \pi/2) = (e^0 \cos(\pi/2),\, -e^0 \sin(\pi/2)) = (0, -1).

Duf=(0,−1)⋅(1/2, 1/2)=−12D_{\mathbf{u}} f = (0, -1) \cdot (1/\sqrt{2},\, 1/\sqrt{2}) = -\frac{1}{\sqrt{2}}

If you get this wrong, revise: Section 1.5 Directional Derivatives.

If x2z+y2z2=5x^2 z + y^2 z^2 = 5Find ∂z∂x\frac{\partial z}{\partial x} at (1,1,1)(1, 1, 1).

Solution

Let F(x,y,z)=x2z+y2z2−5F(x,y,z) = x^2 z + y^2 z^2 - 5. Then Fx=2xzF_x = 2xz, Fy=2yz2F_y = 2yz^2, Fz=x2+2y2zF_z = x^2 + 2y^2 z.

At (1,1,1)(1,1,1): Fx=2F_x = 2, Fz=1+2=3F_z = 1 + 2 = 3.

∂z∂x=−FxFz=−23\frac{\partial z}{\partial x} = -\frac{F_x}{F_z} = -\frac{2}{3}

If you get this wrong, revise: Section 1.9 Implicit Differentiation.

Write the second-order Taylor expansion of f(x,y)=sin⁡(x+y)f(x,y) = \sin(x + y) at (0,0)(0, 0).

Solution

f(0,0)=0f(0,0) = 0, fx=cos⁡(x+y)f_x = \cos(x+y), fy=cos⁡(x+y)f_y = \cos(x+y)So fx(0,0)=fy(0,0)=1f_x(0,0) = f_y(0,0) = 1.

fxx=−sin⁡(x+y)f_{xx} = -\sin(x+y), fxy=−sin⁡(x+y)f_{xy} = -\sin(x+y), fyy=−sin⁡(x+y)f_{yy} = -\sin(x+y)So fxx(0,0)=fxy(0,0)=fyy(0,0)=0f_{xx}(0,0) = f_{xy}(0,0) = f_{yy}(0,0) = 0.

f(x,y)=0+x+y+12(0⋅x2+2⋅0⋅xy+0⋅y2)+R2=x+y+R2f(x,y) = 0 + x + y + \frac{1}{2}(0 \cdot x^2 + 2 \cdot 0 \cdot xy + 0 \cdot y^2) + R_2 = x + y + R_2

Where R2=O(∣x∣3+∣y∣3)R_2 = O(\lvert x \rvert^3 + \lvert y \rvert^3).

If you get this wrong, revise: Section 1.10 Taylor’s Theorem.

Evaluate ∬D(x+y) dA\iint_D (x + y)\, dA where DD is bounded by y=xy = x and y=x2y = x^2.

Solution

The curves intersect when x=x2x = x^2I.e., x(x−1)=0x(x-1) = 0So x=0x = 0 and x=1x = 1. For x∈(0,1)x \in (0,1) x2<xx^2 \lt xSo D=(x,y):0≤x≤1, x2≤y≤xD = \\{(x,y) : 0 \leq x \leq 1,\, x^2 \leq y \leq x\\}.

∬D(x+y) dA=∫01∫x2x(x+y) dy dx=∫01[xy+y22]x2x dx\iint_D (x + y)\, dA = \int_0^1 \int_{x^2}^x (x + y)\, dy\, dx = \int_0^1 \left[xy + \frac{y^2}{2}\right]_{x^2}^x\, dx

=∫01(x2+x22−x3−x42) dx=∫01(3x22−x3−x42) dx= \int_0^1 \left(x^2 + \frac{x^2}{2} - x^3 - \frac{x^4}{2}\right)\, dx = \int_0^1 \left(\frac{3x^2}{2} - x^3 - \frac{x^4}{2}\right)\, dx

=[x32−x44−x510]01=12−14−110=10−5−220=320= \left[\frac{x^3}{2} - \frac{x^4}{4} - \frac{x^5}{10}\right]_0^1 = \frac{1}{2} - \frac{1}{4} - \frac{1}{10} = \frac{10 - 5 - 2}{20} = \frac{3}{20}

If you get this wrong, revise: Section 2.2 General Regions.

Evaluate ∭Ex dV\iiint_E x\, dV where EE is the region bounded by the coordinate planes and x+y+z=1x + y + z = 1.

Solution

E=(x,y,z):0≤x≤1, 0≤y≤1−x, 0≤z≤1−x−yE = \\{(x,y,z) : 0 \leq x \leq 1,\, 0 \leq y \leq 1-x,\, 0 \leq z \leq 1-x-y\\}.

∭Ex dV=∫01∫01−x∫01−x−yx dz dy dx=∫01∫01−xx(1−x−y) dy dx\iiint_E x\, dV = \int_0^1 \int_0^{1-x} \int_0^{1-x-y} x\, dz\, dy\, dx = \int_0^1 \int_0^{1-x} x(1-x-y)\, dy\, dx

=∫01x[(1−x)y−y22]01−x dx=∫01x⋅(1−x)22 dx= \int_0^1 x\left[(1-x)y - \frac{y^2}{2}\right]_0^{1-x}\, dx = \int_0^1 x \cdot \frac{(1-x)^2}{2}\, dx

=12∫01x(1−2x+x2) dx=12∫01(x−2x2+x3) dx= \frac{1}{2}\int_0^1 x(1 - 2x + x^2)\, dx = \frac{1}{2}\int_0^1 (x - 2x^2 + x^3)\, dx

=12[x22−2x33+x44]01=12[12−23+14]=12⋅6−8+312=124= \frac{1}{2}\left[\frac{x^2}{2} - \frac{2x^3}{3} + \frac{x^4}{4}\right]_0^1 = \frac{1}{2}\left[\frac{1}{2} - \frac{2}{3} + \frac{1}{4}\right] = \frac{1}{2} \cdot \frac{6 - 8 + 3}{12} = \frac{1}{24}

If you get this wrong, revise: Section 2.3 Triple Integrals.

Evaluate ∬Dex2+y2 dA\iint_D e^{x^2+y^2}\, dA where D=(x,y):1≤x2+y2≤4D = \\{(x,y) : 1 \leq x^2 + y^2 \leq 4\\}.

Solution

Use polar coordinates: 1≤r≤21 \leq r \leq 2, 0≤θ≤2π0 \leq \theta \leq 2\pi.

∬Dex2+y2 dA=∫02π∫12er2 r dr dθ=2π∫12rer2 dr\iint_D e^{x^2+y^2}\, dA = \int_0^{2\pi} \int_1^2 e^{r^2}\, r\, dr\, d\theta = 2\pi \int_1^2 r e^{r^2}\, dr

Let u=r2u = r^2, du=2r drdu = 2r\, dr:

=2π⋅12∫14eu du=π(e4−e)= 2\pi \cdot \frac{1}{2}\int_1^4 e^u\, du = \pi(e^4 - e)

If you get this wrong, revise: Section 2.4 Change of Variables.

Evaluate ∭Ez dV\iiint_E z\, dV where EE is the solid cone z≤x2+y2z \leq \sqrt{x^2 + y^2}, 0≤z≤10 \leq z \leq 1.

Solution

Use cylindrical coordinates. The cone z=rz = r intersects z=1z = 1 at r=1r = 1. E′=(r,θ,z):0≤r≤1, 0≤θ≤2π, r≤z≤1E' = \\{(r, \theta, z) : 0 \leq r \leq 1,\, 0 \leq \theta \leq 2\pi,\, r \leq z \leq 1\\}.

∭Ez dV=∫02π∫01∫r1z r dz dr dθ=2π∫01r[z22]r1 dr\iiint_E z\, dV = \int_0^{2\pi} \int_0^1 \int_r^1 z\, r\, dz\, dr\, d\theta = 2\pi \int_0^1 r\left[\frac{z^2}{2}\right]_r^1\, dr

=2π∫01r2(1−r2) dr=π∫01(r−r3) dr=π[r22−r44]01=π⋅14=π4= 2\pi \int_0^1 \frac{r}{2}(1 - r^2)\, dr = \pi \int_0^1 (r - r^3)\, dr = \pi\left[\frac{r^2}{2} - \frac{r^4}{4}\right]_0^1 = \pi \cdot \frac{1}{4} = \frac{\pi}{4}

If you get this wrong, revise: Section 2.5 Coordinate System Worked Examples.

Use Green’s theorem to evaluate ∮C(3y−esin⁡x) dx+(7x+y4+1) dy\oint_C (3y - e^{\sin x})\, dx + (7x + \sqrt{y^4 + 1})\, dy Where CC is the circle x2+y2=9x^2 + y^2 = 9 traversed counterclockwise.

Solution

P=3y−esin⁡xP = 3y - e^{\sin x}, Q=7x+y4+1Q = 7x + \sqrt{y^4 + 1}.

∂Q∂x=7,∂P∂y=3\frac{\partial Q}{\partial x} = 7, \quad \frac{\partial P}{\partial y} = 3

By Green’s theorem:

∮CP dx+Q dy=∬D(7−3) dA=4⋅π⋅9=36π\oint_C P\, dx + Q\, dy = \iint_D (7 - 3)\, dA = 4 \cdot \pi \cdot 9 = 36\pi

If you get this wrong, revise: Section 3.3 Green’s Theorem.

Compute the curl and divergence of F=(yz, xz, xy)\mathbf{F} = (yz,\, xz,\, xy).

Solution

Curl:

∇×F=(∂(xy)∂y−∂(xz)∂z, ∂(yz)∂z−∂(xy)∂x, ∂(xz)∂x−∂(yz)∂y)\nabla \times \mathbf{F} = \left(\frac{\partial (xy)}{\partial y} - \frac{\partial (xz)}{\partial z},\, \frac{\partial (yz)}{\partial z} - \frac{\partial (xy)}{\partial x},\, \frac{\partial (xz)}{\partial x} - \frac{\partial (yz)}{\partial y}\right)

=(x−x, y−y, z−z)=0= (x - x,\, y - y,\, z - z) = \mathbf{0}

Divergence:

∇⋅F=∂(yz)∂x+∂(xz)∂y+∂(xy)∂z=0+0+0=0\nabla \cdot \mathbf{F} = \frac{\partial (yz)}{\partial x} + \frac{\partial (xz)}{\partial y} + \frac{\partial (xy)}{\partial z} = 0 + 0 + 0 = 0

Since the curl is zero and the domain is connected, F\mathbf{F} is conservative. Indeed, F=∇(xyz)\mathbf{F} = \nabla(xyz).

If you get this wrong, revise: Section 3.4 Curl and Divergence.

Use Stokes’ theorem to evaluate ∮CF⋅dr\oint_C \mathbf{F} \cdot d\mathbf{r} where F=(2y, −z, x)\mathbf{F} = (2y,\, -z,\, x) and CC is the circle x2+y2=1x^2 + y^2 = 1, z=1z = 1 Traversed counterclockwise when viewed from above.

Solution

Take SS to be the disk x2+y2≤1x^2 + y^2 \leq 1, z=1z = 1 with upward normal n=(0,0,1)\mathbf{n} = (0, 0, 1).

∇×F=(∂x∂y−∂(−z)∂z, ∂(2y)∂z−∂x∂x, ∂(−z)∂x−∂(2y)∂y)\nabla \times \mathbf{F} = \left(\frac{\partial x}{\partial y} - \frac{\partial (-z)}{\partial z},\, \frac{\partial (2y)}{\partial z} - \frac{\partial x}{\partial x},\, \frac{\partial (-z)}{\partial x} - \frac{\partial (2y)}{\partial y}\right)

=(0−(−1), 0−1, 0−2)=(1,−1,−2)= (0 - (-1),\, 0 - 1,\, 0 - 2) = (1, -1, -2)

(∇×F)⋅n=(1,−1,−2)⋅(0,0,1)=−2(\nabla \times \mathbf{F}) \cdot \mathbf{n} = (1, -1, -2) \cdot (0, 0, 1) = -2

∮CF⋅dr=∬S(−2) dS=−2⋅π⋅12=−2π\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (-2)\, dS = -2 \cdot \pi \cdot 1^2 = -2\pi

If you get this wrong, revise: Section 3.5 Stokes’ Theorem.

Use the divergence theorem to compute the flux of F=(x, y, z)\mathbf{F} = (x,\, y,\, z) through the Surface of the cube [0,1]3[0, 1]^3.

Solution

∇⋅F=∂x∂x+∂y∂y+∂z∂z=3\nabla \cdot \mathbf{F} = \frac{\partial x}{\partial x} + \frac{\partial y}{\partial y} + \frac{\partial z}{\partial z} = 3

∬SF⋅dS=∭E3 dV=3⋅13=3\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E 3\, dV = 3 \cdot 1^3 = 3

If you get this wrong, revise: Section 3.6 Divergence Theorem.

Find a potential function for F=(2x+y, x+2z, 2y)\mathbf{F} = (2x + y,\, x + 2z,\, 2y).

Solution

First check: ∇×F=(2−2, 0−0, 1−1)=0\nabla \times \mathbf{F} = (2 - 2,\, 0 - 0,\, 1 - 1) = \mathbf{0}. Conservative.

∂ϕ∂x=2x+y  ⟹  ϕ=x2+xy+g(y,z)\frac{\partial \phi}{\partial x} = 2x + y \implies \phi = x^2 + xy + g(y,z)

∂ϕ∂y=x+gy=x+2z  ⟹  gy=2z  ⟹  g=2yz+h(z)\frac{\partial \phi}{\partial y} = x + g_y = x + 2z \implies g_y = 2z \implies g = 2yz + h(z)

∂ϕ∂z=2y+h′(z)=2y  ⟹  h′(z)=0  ⟹  h(z)=C\frac{\partial \phi}{\partial z} = 2y + h'(z) = 2y \implies h'(z) = 0 \implies h(z) = C

ϕ(x,y,z)=x2+xy+2yz+C\phi(x,y,z) = x^2 + xy + 2yz + C

If you get this wrong, revise: Section 3.7 Conservative Fields and Potential Functions.

Evaluate the surface integral ∬S(x2+y2) dS\iint_S (x^2 + y^2)\, dS where SS is the cylinder x2+y2=4x^2 + y^2 = 4, 0≤z≤30 \leq z \leq 3.

Solution

Parametrise the cylinder: r(θ,z)=(2cos⁡θ, 2sin⁡θ, z)\mathbf{r}(\theta, z) = (2\cos\theta,\, 2\sin\theta,\, z) for 0≤θ≤2π0 \leq \theta \leq 2\pi, 0≤z≤30 \leq z \leq 3.

rθ=(−2sin⁡θ, 2cos⁡θ, 0)\mathbf{r}_\theta = (-2\sin\theta,\, 2\cos\theta,\, 0), rz=(0, 0, 1)\mathbf{r}_z = (0,\, 0,\, 1).

rθ×rz=(2cos⁡θ, 2sin⁡θ, 0)\mathbf{r}_\theta \times \mathbf{r}_z = (2\cos\theta,\, 2\sin\theta,\, 0)

∥rθ×rz∥=4cos⁡2θ+4sin⁡2θ=2\lVert \mathbf{r}_\theta \times \mathbf{r}_z \rVert = \sqrt{4\cos^2\theta + 4\sin^2\theta} = 2

On SS: x2+y2=4x^2 + y^2 = 4.

∬S(x2+y2) dS=∫02π∫034⋅2 dz dθ=8⋅3⋅2π=48π\iint_S (x^2 + y^2)\, dS = \int_0^{2\pi} \int_0^3 4 \cdot 2\, dz\, d\theta = 8 \cdot 3 \cdot 2\pi = 48\pi

If you get this wrong, revise: Section 5.5 Surface Integrals.

Use Green’s theorem to find the area enclosed by the ellipse x2a2+y2b2=1\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1.

Solution

By Green’s theorem with P=−y/2P = -y/2 and Q=x/2Q = x/2:

∂Q∂x−∂P∂y=12−(−12)=1\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = \frac{1}{2} - \left(-\frac{1}{2}\right) = 1

So the area is:

A=∬D1 dA=∮C−y2 dx+x2 dy=12∮Cx dy−y dxA = \iint_D 1\, dA = \oint_C -\frac{y}{2}\, dx + \frac{x}{2}\, dy = \frac{1}{2}\oint_C x\, dy - y\, dx

Parametrise the ellipse: x=acos⁡tx = a\cos t, y=bsin⁡ty = b\sin t, 0≤t≤2π0 \leq t \leq 2\pi.

A=12∫02π[acos⁡t⋅bcos⁡t−bsin⁡t⋅(−asin⁡t)] dtA = \frac{1}{2}\int_0^{2\pi} \left[a\cos t \cdot b\cos t - b\sin t \cdot (-a\sin t)\right]\, dt

=12∫02π(abcos⁡2t+absin⁡2t) dt=ab2∫02π1 dt=πab= \frac{1}{2}\int_0^{2\pi} (ab\cos^2 t + ab\sin^2 t)\, dt = \frac{ab}{2}\int_0^{2\pi} 1\, dt = \pi ab

If you get this wrong, revise: Section 3.3 Green’s Theorem.

Find the minimum value of f(x,y,z)=x2+y2+z2f(x,y,z) = x^2 + y^2 + z^2 subject to x+y−z=1x + y - z = 1.

Solution

∇f=(2x,2y,2z)\nabla f = (2x, 2y, 2z), ∇g=(1,1,−1)\nabla g = (1, 1, -1) where g=x+y−z−1g = x + y - z - 1.

2x=λ2x = \lambda, 2y=λ2y = \lambda, 2z=−λ2z = -\lambdaSo x=y=−zx = y = -z.

From x+y−z=1x + y - z = 1: 2x−(−x)=3x=12x - (-x) = 3x = 1So x=1/3x = 1/3, y=1/3y = 1/3, z=−1/3z = -1/3.

f(1/3,1/3,−1/3)=19+19+19=13f(1/3, 1/3, -1/3) = \frac{1}{9} + \frac{1}{9} + \frac{1}{9} = \frac{1}{3}

This is the minimum (the Hessian of ff is positive definite, and the constraint set is unbounded But f≥0f \geq 0).

If you get this wrong, revise: Section 4.3 Lagrange Multipliers.

Find the arc length of the curve r(t)=(t2, 2t, ln⁡t)\mathbf{r}(t) = (t^2,\, 2t,\, \ln t) for 1≤t≤e1 \leq t \leq e.

Solution

r′(t)=(2t, 2, 1/t)\mathbf{r}'(t) = (2t,\, 2,\, 1/t)So ∥r′(t)∥=4t2+4+1/t2\lVert \mathbf{r}'(t) \rVert = \sqrt{4t^2 + 4 + 1/t^2}.

Note: 4t2+4+t−2=(2t+1/t)24t^2 + 4 + t^{-2} = (2t + 1/t)^2. So ∥r′∥=2t+1/t\lVert \mathbf{r}' \rVert = 2t + 1/t.

L=∫1e(2t+1t) dt=[t2+ln⁡t]1e=e2+1−1−0=e2L = \int_1^e \left(2t + \frac{1}{t}\right)\, dt = \left[t^2 + \ln t\right]_1^e = e^2 + 1 - 1 - 0 = e^2

If you get this wrong, revise: Section 5.1 Parametric Curves.

Find the curvature of r(t)=(t, t2, t3)\mathbf{r}(t) = (t,\, t^2,\, t^3) at t=1t = 1.

Solution

r′(t)=(1, 2t, 3t2)\mathbf{r}'(t) = (1,\, 2t,\, 3t^2), r′′(t)=(0, 2, 6t)\mathbf{r}''(t) = (0,\, 2,\, 6t).

At t=1t = 1: r′=(1,2,3)\mathbf{r}' = (1, 2, 3), r′′=(0,2,6)\mathbf{r}'' = (0, 2, 6).

∥r′∥=1+4+9=14\lVert \mathbf{r}' \rVert = \sqrt{1 + 4 + 9} = \sqrt{14}.

r′×r′′=∣ijk123026∣=(12−6, −(6−0), 2−0)=(6,−6,2)\mathbf{r}' \times \mathbf{r}'' = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ 1 & 2 & 3 \\ 0 & 2 & 6 \end{vmatrix} = (12 - 6,\, -(6 - 0),\, 2 - 0) = (6, -6, 2)

∥r′×r′′∥=36+36+4=76=219\lVert \mathbf{r}' \times \mathbf{r}'' \rVert = \sqrt{36 + 36 + 4} = \sqrt{76} = 2\sqrt{19}

κ=219(14)3=2191414=26698\kappa = \frac{2\sqrt{19}}{(\sqrt{14})^3} = \frac{2\sqrt{19}}{14\sqrt{14}} = \frac{\sqrt{266}}{98}

If you get this wrong, revise: Section 5.2 Curvature and Torsion.

Find the surface area of the part of the sphere x2+y2+z2=4x^2 + y^2 + z^2 = 4 that lies above the Plane z=1z = 1.

Solution

Use spherical coordinates. The sphere has ρ=2\rho = 2. The plane z=1z = 1 intersects when 2cos⁡ϕ=12\cos\phi = 1So cos⁡ϕ=1/2\cos\phi = 1/2Giving ϕ=π/3\phi = \pi/3.

The region: 0≤ρ≤20 \leq \rho \leq 2, 0≤ϕ≤π/30 \leq \phi \leq \pi/3, 0≤θ≤2π0 \leq \theta \leq 2\pi.

A=∫02π∫0π/3ρ2sin⁡ϕ dϕ dθ=4⋅2π∫0π/3sin⁡ϕ dϕA = \int_0^{2\pi} \int_0^{\pi/3} \rho^2 \sin\phi\, d\phi\, d\theta = 4 \cdot 2\pi \int_0^{\pi/3} \sin\phi\, d\phi

=8π[−cos⁡ϕ]0π/3=8π(−12+1)=8π⋅12=4π= 8\pi \left[-\cos\phi\right]_0^{\pi/3} = 8\pi \left(-\frac{1}{2} + 1\right) = 8\pi \cdot \frac{1}{2} = 4\pi

If you get this wrong, revise: Section 5.4 Surface Area.

Show that F=(yexy+2x, xexy+2y)\mathbf{F} = (ye^{xy} + 2x,\, xe^{xy} + 2y) is conservative and evaluate ∫CF⋅dr\int_C \mathbf{F} \cdot d\mathbf{r} where CC is any path from (0,0)(0, 0) to (1,1)(1, 1).

Solution

Check: ∂P∂y=exy+xyexy\frac{\partial P}{\partial y} = e^{xy} + xye^{xy}, ∂Q∂x=exy+xyexy\frac{\partial Q}{\partial x} = e^{xy} + xye^{xy}. These are equal, so F\mathbf{F} is conservative (on R2\mathbb{R}^2Which is connected).

Find ϕ\phi:

∂ϕ∂x=yexy+2x  ⟹  ϕ=exy+x2+g(y)\frac{\partial \phi}{\partial x} = ye^{xy} + 2x \implies \phi = e^{xy} + x^2 + g(y)

∂ϕ∂y=xexy+g′(y)=xexy+2y  ⟹  g′(y)=2y  ⟹  g(y)=y2+C\frac{\partial \phi}{\partial y} = xe^{xy} + g'(y) = xe^{xy} + 2y \implies g'(y) = 2y \implies g(y) = y^2 + C

ϕ(x,y)=exy+x2+y2\phi(x,y) = e^{xy} + x^2 + y^2

∫CF⋅dr=ϕ(1,1)−ϕ(0,0)=(e+1+1)−(1+0+0)=e+1\int_C \mathbf{F} \cdot d\mathbf{r} = \phi(1,1) - \phi(0,0) = (e + 1 + 1) - (1 + 0 + 0) = e + 1

If you get this wrong, revise: Section 3.2 Line Integrals and Section 3.7 Conservative Fields.

Compute the torsion of the curve r(t)=(cosh⁡t, sinh⁡t, t)\mathbf{r}(t) = (\cosh t,\, \sinh t,\, t) at t=0t = 0.

Solution

r′(t)=(sinh⁡t, cosh⁡t, 1)\mathbf{r}'(t) = (\sinh t,\, \cosh t,\, 1), r′′(t)=(cosh⁡t, sinh⁡t, 0)\mathbf{r}''(t) = (\cosh t,\, \sinh t,\, 0) r′′′(t)=(sinh⁡t, cosh⁡t, 0)\mathbf{r}^{\prime\prime\prime}(t) = (\sinh t,\, \cosh t,\, 0).

At t=0t = 0: r′=(0,1,1)\mathbf{r}' = (0, 1, 1), r′′=(1,0,0)\mathbf{r}'' = (1, 0, 0) r′′′=(0,1,0)\mathbf{r}^{\prime\prime\prime} = (0, 1, 0).

r′×r′′=∣ijk011100∣=(0, 1, −1)\mathbf{r}' \times \mathbf{r}'' = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ 0 & 1 & 1 \\ 1 & 0 & 0 \end{vmatrix} = (0,\, 1,\, -1)

∥r′×r′′∥=2\lVert \mathbf{r}' \times \mathbf{r}'' \rVert = \sqrt{2}

(r′×r′′)⋅r′′′=1(\mathbf{r}' \times \mathbf{r}'') \cdot \mathbf{r}^{\prime\prime\prime} = 1

τ=1(2)2=12\tau = \frac{1}{(\sqrt{2})^2} = \frac{1}{2}

If you get this wrong, revise: Section 5.2 Curvature and Torsion.

Evaluate ∭E1x2+y2+z2 dV\iiint_E \frac{1}{\sqrt{x^2 + y^2 + z^2}}\, dV where EE is the solid unit ball x2+y2+z2≤1x^2 + y^2 + z^2 \leq 1.

Solution

Use spherical coordinates. The integrand is 1ρ\frac{1}{\rho}.

∭E1ρ dV=∫02π∫0π∫011ρ⋅ρ2sin⁡ϕ dρ dϕ dθ\iiint_E \frac{1}{\rho}\, dV = \int_0^{2\pi} \int_0^{\pi} \int_0^1 \frac{1}{\rho} \cdot \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta

=(∫01ρ dρ)(∫0πsin⁡ϕ dϕ)(∫02πdθ)= \left(\int_0^1 \rho\, d\rho\right)\left(\int_0^{\pi} \sin\phi\, d\phi\right)\left(\int_0^{2\pi} d\theta\right)

=12⋅2⋅2π=2π= \frac{1}{2} \cdot 2 \cdot 2\pi = 2\pi

If you get this wrong, revise: Section 2.5 Coordinate System Worked Examples.

  1. Forgetting to check that solutions satisfy the original equation (especially with squaring both sides or dividing by variables).

  2. Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’. The former requires using previous work.

  3. Confusing partial derivatives with total derivatives. A partial derivative only varies one variable, holding others constant.

Problem. Evaluate ∬R(x+y) dA\iint_R (x + y)\,dA where RR is the triangle with vertices (0,0)(0,0), (1,0)(1,0), (0,1)(0,1).

Solution. The region: 0≤x≤10 \leq x \leq 1, 0≤y≤1−x0 \leq y \leq 1-x.

∫01∫01−x(x+y) dy dx=∫01[xy+y22]01−xdx\int_0^1 \int_0^{1-x} (x+y)\,dy\,dx = \int_0^1 \left[xy + \frac{y^2}{2}\right]_0^{1-x} dx

=∫01(x(1−x)+(1−x)22)dx= \int_0^1 \left(x(1-x) + \frac{(1-x)^2}{2}\right) dx

After simplification: =13= \frac{1}{3}.

■\blacksquare

Problem. Verify Stokes’ theorem for F=(y,−x,z)\mathbf{F} = (y, -x, z) over the hemisphere x2+y2+z2=1x^2 + y^2 + z^2 = 1, z≥0z \geq 0.

Solution. ∇×F=(0,0,−2)\nabla \times \mathbf{F} = (0, 0, -2).

Surface integral: ∬S(∇×F)⋅dS\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}. For hemisphere, n^=(x,y,z)\hat{n} = (x, y, z), so k^⋅n^=z\hat{k} \cdot \hat{n} = z.

=−2∬Sz dS=−2π= -2 \iint_S z\,dS = -2\pi (using spherical coordinates).

Line integral over boundary (z=0z = 0, x2+y2=1x^2 + y^2 = 1): ∮CF⋅dr=∫02π(−1) dt=−2π\oint_C \mathbf{F} \cdot d\mathbf{r} = \int_0^{2\pi} (-1)\,dt = -2\pi. ✓

■\blacksquare

  • Partial derivatives: fx=∂f∂xf_x = \frac{\partial f}{\partial x}; gradient ∇f=(fx,fy,fz)\nabla f = (f_x, f_y, f_z) points in direction of steepest ascent.
  • Chain rule: dfdt=∇f⋅r′(t)\frac{df}{dt} = \nabla f \cdot \mathbf{r}'(t); for z=f(g(s,t),h(s,t))z = f(g(s,t), h(s,t)), use tree diagrams.
  • Multiple integrals: iterated integrals via Fubini’s theorem; change of variables with Jacobian ∣J∣=∣∂(x,y)/∂(u,v)∣|J| = |\partial(x,y)/\partial(u,v)|.
  • Vector calculus: divergence (∇⋅F\nabla \cdot \mathbf{F}), curl (∇×F\nabla \times \mathbf{F}); integral theorems (Green’s, Stokes’, Divergence).
  • Extrema: critical points where ∇f=0\nabla f = 0; classify using Hessian matrix (positive definite → local min, negative definite → local max, indefinite → saddle).
TopicSiteLink
Real AnalysisWyattsNotesView
Linear AlgebraWyattsNotesView
Differential EquationsWyattsNotesView
Multivariable Calculus — MIT 18.02MIT OCWView

:::