Skip to content

Multivariable Calculus

1. Partial Derivatives

1.1 Definition

Let f:DRnRf : 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

fxi(a)=limh0f(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 fxi\frac{\partial f}{\partial x_i}. We use these interchangeably.

1.2 Clairaut”s Theorem

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

2fxy(a,b)=2fyx(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,k0h, 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)=hkfxy(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)=hkfyx(a+θ3h,b+θ4k)\Delta(h, k) = hk \cdot f_{yx}(a + \theta_3 h,\, b + \theta_4 k)

For h,k0h, 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.

1.3 Differentiability

Definition. f:DRnRf : D \subseteq \mathbb{R}^n \to \mathbb{R} is differentiable at a\mathbf{a} if There exists a linear map L:RnRL : \mathbb{R}^n \to \mathbb{R} such that

limh0f(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.

1.4 The Gradient

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

f(a)=(fx1(a),,fxn(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)hf(\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 h0\mathbf{h} \to \mathbf{0}. As h0\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

1.5 Directional Derivatives

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

Duf(a)=limh0f(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)huh\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 h0\mathbf{h} \to \mathbf{0}. Taking h0h \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, fufu=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

1.6 Chain Rule

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

(fg)(a)=Jg(a)Tf(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 k0\mathbf{k} \to \mathbf{0} as t0t \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 t0t \to 0:

h(0)=f(g(a))Jg(a)v=[Jg(a)Tf(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)Tf(g(a))\nabla h(0) = J\mathbf{g}(\mathbf{a})^T \nabla f(\mathbf{g}(\mathbf{a})). \blacksquare

1.7 Chain Rule Worked Example

Problem. Let f(x,y)=x2yf(x, y) = x^2 y and let x=costx = \cos t, y=sinty = \sin t. Find ddtf(cost,sint)\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))=fxx(t)+fyy(t)\frac{d}{dt} f(x(t), y(t)) = f_x \cdot x'(t) + f_y \cdot y'(t)

=2xy(sint)+x2cost=2costsin2t+cos3t= 2xy \cdot (-\sin t) + x^2 \cdot \cos t = -2\cos t \sin^2 t + \cos^3 t

Via direct substitution: f(cost,sint)=cos2tsintf(\cos t, \sin t) = \cos^2 t \sin t.

ddt[cos2tsint]=2costsin2t+cos3t\frac{d}{dt}[\cos^2 t \sin t] = -2\cos t \sin^2 t + \cos^3 t

Both methods agree. \blacksquare

1.8 Worked Example

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.

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

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

f(1,π)=(2π+πcos(π),1+cos(π))=(2ππ,11)=(π,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

1.9 Additional Worked Examples

Problem. Let f(x,y,z)=x2yez+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

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

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

fz=x2yez+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)=(21(1),311)=(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)=6125=185D_{\mathbf{u}} f(1, -1) = (-2)(3/5) + (3)(-4/5) = \frac{-6 - 12}{5} = -\frac{18}{5}

\blacksquare

1.10 Implicit Differentiation

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+Fzzx=0    zx=FxFzF_x + F_z \cdot \frac{\partial z}{\partial x} = 0 \implies \frac{\partial z}{\partial x} = -\frac{F_x}{F_z}

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

Proposition 1.6 (Implicit Function Theorem, special case). If F:R3RF : \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 φ:UV\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 zx\frac{\partial z}{\partial x} and zy\frac{\partial z}{\partial y} at the point (1,1,1)(1, 1, 1).

Solution

Let F(x,y,z)=x2y+y2z+z2x3F(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.

zx=FxFz=33=1,zy=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

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

f(x)=f(a)+f(a)(xa)+12!(xa)THf(a)(xa)++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)(xa)α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(xa))\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(xa))(xa)\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+τ(xa)\mathbf{c} = \mathbf{a} + \tau(\mathbf{x}-\mathbf{a}) yields the result. \blacksquare

1.12 Common Pitfalls

:::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=fuD_{\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. :::

2. Multiple Integrals

2.1 Double Integrals

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=limP0i,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=1mcdf(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 P0\lVert P \rVert \to 0 these sums converge to both RfdA\iint_R f\, dA and abF(x)dx\int_a^b F(x)\, dx. The Reversal of integration order follows by symmetry. \blacksquare

2.2 General Regions

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

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

DfdA=abg1(x)g2(x)f(x,y)dydx\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):cyd,h1(y)xh2(y)D = \\{(x,y) : c \leq y \leq d,\, h_1(y) \leq x \leq h_2(y)\\}

DfdA=cdh1(y)h2(y)f(x,y)dxdy\iint_D f\, dA = \int_c^d \int_{h_1(y)}^{h_2(y)} f(x,y)\, dx\, dy

Problem. Evaluate DxydA\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., x2x2=0x^2 - x - 2 = 0So (x2)(x+1)=0(x-2)(x+1) = 0Giving x=1x = -1 and x=2x = 2. As a Type I region, D=(x,y):1x2,x2yx+2D = \\{(x,y) : -1 \leq x \leq 2,\, x^2 \leq y \leq x+2\\}.

DxydA=12x2x+2xydydx=12x[y22]x2x+2dx\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)2x4]dx=1212[x(x+2)2x5]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

=1212[x3+4x2+4xx5]dx= \frac{1}{2} \int_{-1}^{2} \left[x^3 + 4x^2 + 4x - x^5\right]\, dx

=12[x44+4x33+2x2x66]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+8646)(1443+216)]= \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[363912]=12[1234]=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 DxdA\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 0x2/30 \leq x \leq 2/3, xy2xx \leq y \leq 2x; for 2/3x12/3 \leq x \leq 1, xy2xx \leq y \leq 2 - x.

DxdA=02/3x2xxdydx+2/31x2xxdydx\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(xx)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 0y4/30 \leq y \leq 4/3) and from y/2y/2 to 2y2 - y (for 4/3y14/3 \leq y \leq 1). Actually, the simplest approach is to split DD at y=4/3y = 4/3.

For 0y10 \leq y \leq 1: y/2xyy/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=2yx = 2 - y. For y1y \leq 1: both y2yy \leq 2 - y (since y1y \leq 1) and y/2yy/2 \leq ySo the right boundary is yy. But we also need x+y2x + y \leq 2I.e., x2yx \leq 2 - y. For y1y \leq 1: y2yy \leq 2 - ySo the constraint xyx \leq y is tighter.

For 0y10 \leq y \leq 1: y/2xyy/2 \leq x \leq y.

DxdA=01y/2yxdxdy=01[x22]y/2ydy=01y22y28dy=013y28dy=3813=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

2.3 Triple Integrals

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 EzdV\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):0x1,0y1x,0z1xy\\{(x,y,z) : 0 \leq x \leq 1,\, 0 \leq y \leq 1-x,\, 0 \leq z \leq 1-x-y\\}.

EzdV=0101x01xyzdzdydx\iiint_E z\, dV = \int_0^1 \int_0^{1-x} \int_0^{1-x-y} z\, dz\, dy\, dx

=0101x[z22]01xydydx=0101x(1xy)22dydx= \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=1xyu = 1 - x - y, du=dydu = -dy:

=01(1x)36dx=16[(1x)44]01=1614=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

2.4 Change of Variables

Theorem 2.2 (Change of Variables). Let T:DRnRnT : 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)(uxΔx,vxΔ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)(uyΔy,vyΔ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

uxvyuyvxΔ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=Df(rcosθ,rsinθ)rdrdθ\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=Ef(rcosθ,rsinθ,z)rdrdθ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=Ef(ρ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

2.5 Coordinate System Worked Examples

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 DD' is 0r<0 \leq r \lt \infty, 0θ2π0 \leq \theta \leq 2\pi.

De(x2+y2)dA=02π0er2rdrdθ\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: 0rer2dr=[12er2]0=12\int_0^{\infty} r e^{-r^2}\, dr = \left[-\frac{1}{2}e^{-r^2}\right]_0^{\infty} = \frac{1}{2}.

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

\blacksquare

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

Problem. Evaluate EzdV\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)(r21)=0(r^2 + 2)(r^2 - 1) = 0So r=1r = 1 (positive root). Use Cylindrical coordinates. The region EE' is

0r1,0θ2π,r2z2r20 \leq r \leq 1, \quad 0 \leq \theta \leq 2\pi, \quad r^2 \leq z \leq \sqrt{2 - r^2}

EzdV=02π01r22r2zrdzdrdθ\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[(2r2)r4]drdθ=02π01r2(2r2r4)drdθ= \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[r2r44r66]01dθ=02π12712dθ=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+z2a2x^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 EE' 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ρ4dρ)(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)

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

\blacksquare

2.6 Worked Example

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 DD' is 0r20 \leq r \leq 2, 0θ2π0 \leq \theta \leq 2\pi.

D(x2+y2)dA=02π02r2rdrdθ=02π02r3drdθ\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π4dθ=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 DyxdA\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):0x1,xy2xD = \\{(x,y) : 0 \leq x \leq 1,\, x \leq y \leq 2x\\}.

DyxdA=01x2xyxdydx=011x[y22]x2xdx\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[4x22x22]dx=011x3x22dx=3201xdx=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: 01x21xey2dydx\int_0^1 \int_{x^2}^1 x e^{y^2}\, dy\, dx.

Solution

The region is 0x10 \leq x \leq 1, x2y1x^2 \leq y \leq 1Which is the same as 0y10 \leq y \leq 1 0xy0 \leq x \leq \sqrt{y}.

01x21xey2dydx=010yxey2dxdy=01ey2[x22]0ydy\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

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

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

=1401eudu=14(e1)= \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.

2.7 Common Pitfalls

:::caution Common Pitfalls

  • Order of integration limits. When setting up abg1(x)g2(x)fdydx\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. :::

3. Vector Calculus

3.1 Vector Fields

A vector field on Rn\mathbb{R}^n is a function F:DRnRn\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 CFdr=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)=x0xFdr\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

3.2 Line Integrals

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

CFdr=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

CFdr=ϕ(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.

CFdr=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 CFdr\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 0t10 \leq t \leq 1.

Solution

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

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

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

(×F)z=(x+ey)xyy=11=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:

CFdr=ϕ(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

3.3 Green’s Theorem

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

CPdx+Qdy=D(QxPy)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):axb,g1(x)yg2(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 CPdx=DPydA\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 C1Pdx=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 C3Pdx=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 C2Pdx=C4Pdx=0\int_{C_2} P\, dx = \int_{C_4} P\, dx = 0.

Therefore:

CPdx=abP(x,g1(x))dxabP(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:

DPydA=abg1(x)g2(x)Pydydx=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))dxabP(x,g2(x))dx=CPdx= \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 CQdy=DQxdA\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(x2y)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=x2yP = x^2 - y and Q=y2+xQ = y^2 + x:

Qx=1,Py=1\frac{\partial Q}{\partial x} = 1, \quad \frac{\partial P}{\partial y} = -1

CPdx+Qdy=D(1(1))dA=2DdA=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

3.4 Curl and Divergence

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=(RyQz,PzRx,QxPy)\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=Px+Qy+Rz\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(RyQz)+y(PzRx)+z(QxPy)\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: 2Rxy=2Ryx\frac{\partial^2 R}{\partial x\,\partial y} = \frac{\partial^2 R}{\partial y\,\partial x}Etc. \blacksquare

3.5 Stokes’ Theorem

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

CFdr=S(×F)dS\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}

Where dS=ndSd\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:

CFdr=DF(r(u,v))(rudu+rvdv)\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~uP~v)dudv\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=nru×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)nru×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 CFdr\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=0x=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=02x=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=z2y(\nabla \times \mathbf{F})_z = \frac{\partial (xz)}{\partial x} - \frac{\partial (y^2)}{\partial y} = z - 2y

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

Parametrise the triangle in the xyxy-plane: 0x10 \leq x \leq 1, 0y1x0 \leq y \leq 1 - x. On the plane z=1xyz = 1 - x - yThe surface element dS=3dxdydS = \sqrt{3}\, dx\, dy.

S(×F)dS=13S(x2x+z2y)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: 3x2y+z=3x2y+1xy=4x3y+1-3x - 2y + z = -3x - 2y + 1 - x - y = -4x - 3y + 1.

=130101x(4x3y+1)3dydx=0101x(4x3y+1)dydx= \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)y3y22]01xdx=01(4x+1)(1x)3(1x)22dx= \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[4x25x+132+3x3x22]dx=01[5x222x12]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

=[5x36x2x2]01=56112=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

3.6 Divergence Theorem

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

SFdS=EFdV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E \nabla \cdot \mathbf{F}\, dV

Where F=Px+Qy+Rz\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)zg2(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., SRkdS=ERzdV\iint_S R\, \mathbf{k} \cdot d\mathbf{S} = \iiint_E \frac{\partial R}{\partial z}\, dV.

The right-hand side:

ERzdV=Dg1(x,y)g2(x,y)RzdzdA=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 RkdS=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 RkdS=R(x,y,g1)dAR\, \mathbf{k} \cdot d\mathbf{S} = -R(x,y,g_1)\, dA.

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

Therefore SRkdS=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θ=302π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

=32π215=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+y21x^2 + y^2 \leq 1, 0z20 \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 EE' is 0r10 \leq r \leq 1, 0θ2π0 \leq \theta \leq 2\pi 0z20 \leq z \leq 2.

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

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

=202π0102zrdzdrdθ=202π01r[z22]02drdθ= 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

=202π012rdrdθ=202π1dθ=22π=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

Definition. A vector field F\mathbf{F} on a domain DRnD \subseteq \mathbb{R}^n is conservative if There exists a scalar function ϕ:DR\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 DR2D \subseteq \mathbb{R}^2. The following are equivalent:

  1. F\mathbf{F} is conservative: F=ϕ\mathbf{F} = \nabla \phi for some ϕ\phi.
  2. CFdr=0\oint_C \mathbf{F} \cdot d\mathbf{r} = 0 for every closed curve CC in DD.
  3. CFdr\int_C \mathbf{F} \cdot d\mathbf{r} is path-independent in DD.
  4. Py=Qx\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: ϕ=Pdx+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=gydy+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)=2y2y=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)=2z2z=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)=2x2x=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

3.8 Common Pitfalls

:::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

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)}

CFdr=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)}

SFdS=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 (k1)(k-1)-form, And dωd\omega is its exterior derivative.

4. Optimization

4.1 Local Extrema

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.

4.2 Second Derivative Test

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

4.3 Lagrange Multipliers

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=λ1g1++λkgk\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

4.4 Worked Example

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+y21g(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: xy0xy \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

4.5 Additional Worked Examples

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

Solution

Compute the gradient:

f=(4x34y,4y34x)\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(x81)=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=0016=16<0D = 0 \cdot 0 - 16 = -16 \lt 0. Saddle point.

At (1,1)(1,1): D=121216=14416=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+14=2f(1,1) = 1 + 1 - 4 = -2.

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

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

Solution

Compute the gradient:

f=(3x23y,3y23x)\nabla f = (3x^2 - 3y,\, 3y^2 - 3x)

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

3x23y=0    y=x2,3y23x=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 x4x=0x^4 - x = 0Giving x(x31)=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=fxxfyyfxy2=009=9<0D = f_{xx} f_{yy} - f_{xy}^2 = 0 \cdot 0 - 9 = -9 \lt 0. Saddle point.

At (1,1)(1,1): D=669=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+3z6=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

4.6 Multiple Constraints

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+z1g_1 = x + y + z - 1 and g2=x2+y2+z21/3g_2 = x^2 + y^2 + z^2 - 1/3. The Lagrange multiplier system is:

f=λ1g1+λ2g2\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(yx)=2λ2(xy)z(y - x) = 2\lambda_2(x - y)Giving (yx)(z+2λ2)=0(y - x)(z + 2\lambda_2) = 0.

Similarly, (zy)(x+2λ2)=0(z - y)(x + 2\lambda_2) = 0 and (xz)(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 xyx \neq y: Then z+2λ2=0z + 2\lambda_2 = 0. If also yzy \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=12xy = 1 - 2x: 6x24x+2/3=06x^2 - 4x + 2/3 = 0I.e., (3x1)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

4.7 Common Pitfalls

:::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. :::

5. Curves and Surfaces

5.1 Parametric Curves

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=abr(t)dt=ab(dxdt)2+(dydt)2+(dzdt)2dtL = \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)=atr(τ)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)=(etcost,etsint,et)\mathbf{r}(t) = (e^t \cos t,\, e^t \sin t,\, e^t) for 0tln20 \leq t \leq \ln 2.

Solution

r(t)=(etcostetsint,etsint+etcost,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(costsint)2+e2t(sint+cost)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[(cos2t2sintcost+sin2t)+(sin2t+2sintcost+cos2t)+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)=3et\lVert \mathbf{r}'(t) \rVert = \sqrt{3}\, e^t

L=0ln23etdt=3[et]0ln2=3(21)=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)=(cost,sint,t)\mathbf{r}(t) = (\cos t,\, \sin t,\, t) for 0t4π0 \leq t \leq 4\pi.

Solution

r(t)=(sint,cost,1)\mathbf{r}'(t) = (-\sin t,\, \cos t,\, 1)So r(t)=sin2t+cos2t+1=2\lVert \mathbf{r}'(t) \rVert = \sqrt{\sin^2 t + \cos^2 t + 1} = \sqrt{2}.

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

\blacksquare

5.2 Curvature and Torsion

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, TT=1\mathbf{T} \cdot \mathbf{T} = 1So TT=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 BB=0\mathbf{B}' \cdot \mathbf{B} = 0. Also BT=0\mathbf{B} \cdot \mathbf{T} = 0So BT+BT=0\mathbf{B}' \cdot \mathbf{T} + \mathbf{B} \cdot \mathbf{T}' = 0 Giving BT=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=(NT)T+(NN)N+(NB)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 NT=0\mathbf{N} \cdot \mathbf{T} = 0: NT=NT=κ\mathbf{N}' \cdot \mathbf{T} = -\mathbf{N} \cdot \mathbf{T}' = -\kappa. From NN=1\mathbf{N} \cdot \mathbf{N} = 1: NN=0\mathbf{N}' \cdot \mathbf{N} = 0. From NB=0\mathbf{N} \cdot \mathbf{B} = 0: NB=NB=τ\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)=(acost,asint,bt)\mathbf{r}(t) = (a\cos t,\, a\sin t,\, bt) where a,b>0a, b \gt 0.

Solution

r(t)=(asint,acost,b)\mathbf{r}'(t) = (-a\sin t,\, a\cos t,\, b)

r(t)=(acost,asint,0)\mathbf{r}''(t) = (-a\cos t,\, -a\sin t,\, 0)

r(t)=(asint,acost,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=ijkasintacostbacostasint0=(absint,abcost,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=absintasint+(abcost)(acost)+a20=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.

5.3 Parametric Surfaces

A parametric surface is a C1C^1 map r:DR2R3\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=ru,rv=rv\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×rvru×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}}.

5.4 Surface Area

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

A(S)=Dru×rvdudvA(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+y24x^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+y244x2+4y2+1dxdyA = \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, 0r20 \leq r \leq 2, 0θ2π0 \leq \theta \leq 2\pi.

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

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

=2π18117udu=π4[2u3/23]117=π6(173/21)= 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

5.5 Surface Integrals

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

SfdS=Df(r(u,v))ru×rvdudv\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

SFdS=DF(r(u,v))(ru×rv)dudv\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 SFdS\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, z0z \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 SFdS=EFdV=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+2EzdV= 2V + 2\iiint_E z\, dV

Where V=1243π(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

EzdV=zˉV=3416π3=4π\iiint_E z\, dV = \bar{z} \cdot V = \frac{3}{4} \cdot \frac{16\pi}{3} = 4\pi

=216π3+24π=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+y24x^2 + y^2 \leq 4 (with downward normal k-\mathbf{k}): diskF(k)dS=disk0dS=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 SzdS\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=42x2yz = 4 - 2x - 2y where x0x \geq 0, y0y \geq 0, z0z \geq 0 I.e., 2x+2y42x + 2y \leq 4 or x+y2x + y \leq 2.

r(x,y)=(x,y,42x2y)\mathbf{r}(x,y) = (x,\, y,\, 4 - 2x - 2y), D=(x,y):x0,y0,x+y2D = \\{(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

SzdS=D(42x2y)3dxdy=30202x(42x2y)dydx\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

=302[(42x)yy2]02xdx=302(2x)(2x)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

=302(2x)2dx=3[(2x)33]02=383=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

5.6 Common Pitfalls

:::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).

6. Problem Set

Problem 1

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.

Problem 2

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

Solution

fx=3x23y2=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=000=0D = 0 \cdot 0 - 0 = 0. The second derivative test is inconclusive.

To classify, note f(x,y)=x33xy2+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.

Problem 3

Find the directional derivative of f(x,y)=excosyf(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=excosyf_x = e^x \cos y, fy=exsinyf_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.

Problem 4

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

Solution

Let F(x,y,z)=x2z+y2z25F(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.

zx=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.

Problem 5

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(0x2+20xy+0y2)+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(x3+y3)R_2 = O(\lvert x \rvert^3 + \lvert y \rvert^3).

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

Problem 6

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(x1)=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):0x1,x2yxD = \\{(x,y) : 0 \leq x \leq 1,\, x^2 \leq y \leq x\\}.

D(x+y)dA=01x2x(x+y)dydx=01[xy+y22]x2xdx\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+x22x3x42)dx=01(3x22x3x42)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

=[x32x44x510]01=1214110=105220=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.

Problem 7

Evaluate ExdV\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):0x1,0y1x,0z1xyE = \\{(x,y,z) : 0 \leq x \leq 1,\, 0 \leq y \leq 1-x,\, 0 \leq z \leq 1-x-y\\}.

ExdV=0101x01xyxdzdydx=0101xx(1xy)dydx\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[(1x)yy22]01xdx=01x(1x)22dx= \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

=1201x(12x+x2)dx=1201(x2x2+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[x222x33+x44]01=12[1223+14]=1268+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.

Problem 8

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

Solution

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

Dex2+y2dA=02π12er2rdrdθ=2π12rer2dr\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=2rdrdu = 2r\, dr:

=2π1214eudu=π(e4e)= 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.

Problem 9

Evaluate EzdV\iiint_E z\, dV where EE is the solid cone zx2+y2z \leq \sqrt{x^2 + y^2}, 0z10 \leq z \leq 1.

Solution

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

EzdV=02π01r1zrdzdrdθ=2π01r[z22]r1dr\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(1r2)dr=π01(rr3)dr=π[r22r44]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.

Problem 10

Use Green’s theorem to evaluate C(3yesinx)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=3yesinxP = 3y - e^{\sin x}, Q=7x+y4+1Q = 7x + \sqrt{y^4 + 1}.

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

By Green’s theorem:

CPdx+Qdy=D(73)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.

Problem 11

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)

=(xx,yy,zz)=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.

Problem 12

Use Stokes’ theorem to evaluate CFdr\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+y21x^2 + y^2 \leq 1, z=1z = 1 with upward normal n=(0,0,1)\mathbf{n} = (0, 0, 1).

×F=(xy(z)z,(2y)zxx,(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),01,02)=(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

CFdr=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.

Problem 13

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=xx+yy+zz=3\nabla \cdot \mathbf{F} = \frac{\partial x}{\partial x} + \frac{\partial y}{\partial y} + \frac{\partial z}{\partial z} = 3

SFdS=E3dV=313=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.

Problem 14

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

Solution

First check: ×F=(22,00,11)=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.

Problem 20

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, 0z30 \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, 0z30 \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=4cos2θ+4sin2θ=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π0342dzdθ=832π=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.

Problem 21

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:

QxPy=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=D1dA=Cy2dx+x2dy=12CxdyydxA = \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=acostx = a\cos t, y=bsinty = b\sin t, 0t2π0 \leq t \leq 2\pi.

A=1202π[acostbcostbsint(asint)]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

=1202π(abcos2t+absin2t)dt=ab202π1dt=π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.

Problem 15

Find the minimum value of f(x,y,z)=x2+y2+z2f(x,y,z) = x^2 + y^2 + z^2 subject to x+yz=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+yz1g = x + y - z - 1.

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

From x+yz=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 f0f \geq 0).

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

Problem 16

Find the arc length of the curve r(t)=(t2,2t,lnt)\mathbf{r}(t) = (t^2,\, 2t,\, \ln t) for 1te1 \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+t2=(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+lnt]1e=e2+110=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.

Problem 17

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=(126,(60),20)=(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.

Problem 18

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θ=42π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.

Problem 19

Show that F=(yexy+2x,xexy+2y)\mathbf{F} = (ye^{xy} + 2x,\, xe^{xy} + 2y) is conservative and evaluate CFdr\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: Py=exy+xyexy\frac{\partial P}{\partial y} = e^{xy} + xye^{xy}, Qx=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

CFdr=ϕ(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.

Problem 22

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

Solution

r(t)=(sinht,cosht,1)\mathbf{r}'(t) = (\sinh t,\, \cosh t,\, 1), r(t)=(cosht,sinht,0)\mathbf{r}''(t) = (\cosh t,\, \sinh t,\, 0) r(t)=(sinht,cosht,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.

Problem 23

Evaluate E1x2+y2+z2dV\iiint_E \frac{1}{\sqrt{x^2 + y^2 + z^2}}\, dV where EE is the solid unit ball x2+y2+z21x^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)

=1222π=2π= \frac{1}{2} \cdot 2 \cdot 2\pi = 2\pi

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

Common Pitfalls

  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.

Worked Examples

Example 1: Double Integral Over a Region

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: 0x10 \leq x \leq 1, 0y1x0 \leq y \leq 1-x.

0101x(x+y)dydx=01[xy+y22]01xdx\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(1x)+(1x)22)dx= \int_0^1 \left(x(1-x) + \frac{(1-x)^2}{2}\right) dx

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

\blacksquare

Example 2: Stokes’ Theorem

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, z0z \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.

=2SzdS=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): CFdr=02π(1)dt=2π\oint_C \mathbf{F} \cdot d\mathbf{r} = \int_0^{2\pi} (-1)\,dt = -2\pi. ✓

\blacksquare

Summary

  • Partial derivatives: fx=fxf_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=fr(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).

Cross-References

TopicSiteLink
Real AnalysisWyattsNotesView
Linear AlgebraWyattsNotesView
Differential EquationsWyattsNotesView
Multivariable Calculus — MIT 18.02MIT OCWView

:::