1. Home
  2. Explore
  3. Mathematics
  4. Multivariable Calculus Intro

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Multivariable Calculus Intro

Multivariable Calculus: Comprehensive Study Notes

🧭 The Gradient and Partial Derivatives

In single variable calculus, functions of the form y=f(x)y = f(x)y=f(x) live on a curve in a plane. The two fundamental questions were: how steep is it? (answered by the derivative dy/dxdy/dxdy/dx) and what is the area underneath? (answered by the integral ∫f(x) dx\int f(x) \, dx∫f(x)dx). Moving to multivariable calculus means entering a world of surfaces where z=f(x,y)z = f(x,y)z=f(x,y). This is a fundamental shift: the slope now depends on direction, and the area question becomes a volume question.

Motivating Problem: The Hill

Consider a hill described by the height function h(x,y)=100−x2−2y2h(x,y) = 100 - x^2 - 2y^2h(x,y)=100−x2−2y2. At the point (x=1,y=1)(x=1, y=1)(x=1,y=1), the height is h(1,1)=97h(1,1) = 97h(1,1)=97. Two critical questions arise:

  1. From this spot, which direction is the steepest ascent?

  2. How steep is that path? What is the slope?

In single variable calculus, slope was a single number. Here, slope depends on which direction one walks. The solution is to slice the mountain — freeze all variables except one and treat the problem as a simple 2D curve.

Partial Derivatives

Freezing variables is the core idea behind partial derivatives. To find the slope in the xxx-direction, lock yyy at a constant value (here y=1y=1y=1). The function becomes:

h(x,1)=100−x2−2(1)2=98−x2h(x,1) = 100 - x^2 - 2(1)^2 = 98 - x^2h(x,1)=100−x2−2(1)2=98−x2

This is a single-variable function. Its derivative is:

ddx(98−x2)=−2x\frac{d}{dx}(98 - x^2) = -2xdxd​(98−x2)=−2x

At x=1x=1x=1, the slope in the xxx-direction is −2-2−2.

The shortcut for partial derivatives: treat all other variables as constants. The partial derivative with respect to xxx is written ∂h∂x\frac{\partial h}{\partial x}∂x∂h​. For h(x,y)=100−x2−2y2h(x,y) = 100 - x^2 - 2y^2h(x,y)=100−x2−2y2:

  • Derivative of 100100100 with respect to xxx: 000 (constant)

  • Derivative of −x2-x^2−x2: −2x-2x−2x (variable)

  • Derivative of −2y2-2y^2−2y2: 000 (treat yyy as constant) Thus ∂h∂x=−2x\frac{\partial h}{\partial x} = -2x∂x∂h​=−2x. At (1,1)(1,1)(1,1): −2-2−2.

Similarly, for ∂h∂y\frac{\partial h}{\partial y}∂y∂h​ treat xxx as constant:

  • Derivative of 100100100: 000

  • Derivative of −x2-x^2−x2: 000 (constant)

  • Derivative of −2y2-2y^2−2y2: −4y-4y−4y (variable) Thus ∂h∂y=−4y\frac{\partial h}{\partial y} = -4y∂y∂h​=−4y. At (1,1)(1,1)(1,1): −4-4−4.

The Gradient Vector

The gradient packages the partial derivatives into a single vector. Written as ∇h\nabla h∇h or grad h\text{grad } hgrad h:

∇f(x,y)=⟨∂f∂x,∂f∂y⟩\nabla f(x,y) = \left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right\rangle∇f(x,y)=⟨∂x∂f​,∂y∂f​⟩

Definition: The gradient ∇f\nabla f∇f points in the direction of steepest ascent of the function. Its magnitude gives the slope in that direction.

For the hill at (1,1)(1,1)(1,1):

∇h(1,1)=⟨−2,−4⟩\nabla h(1,1) = \langle -2, -4 \rangle∇h(1,1)=⟨−2,−4⟩

Answers to the motivating problem:

  1. Direction of steepest ascent: The gradient vector ⟨−2,−4⟩\langle -2, -4 \rangle⟨−2,−4⟩ points exactly uphill from the point.

  2. Steepest slope: The magnitude of the gradient: $$ \nabla h(1,1) = \sqrt{(-2)^2 + (-4)^2} = \sqrt{4 + 16} = \sqrt{20} \approx 4.47 $$

The gradient is both a compass (direction) and a slope meter (magnitude).


🔧 The Jacobian: Derivative for Multiple Inputs and Outputs

When a function has multiple inputs and multiple outputs, the derivative is no longer a number or a vector — it becomes a matrix called the Jacobian.

Motivating Problem: The Factory

A factory takes inputs xxx (units of steel) and yyy (units of plastic) and produces outputs uuu (cars) and vvv (toys). The production functions are:

u(x,y)=2x+0.5yandv(x,y)=0.1x+3yu(x,y) = 2x + 0.5y \quad \text{and} \quad v(x,y) = 0.1x + 3yu(x,y)=2x+0.5yandv(x,y)=0.1x+3y

This can be written as a vector function f(x,y)=⟨u(x,y),v(x,y)⟩\mathbf{f}(x,y) = \langle u(x,y), v(x,y) \ranglef(x,y)=⟨u(x,y),v(x,y)⟩. The key question: how does a small change in inputs affect both outputs simultaneously?

Partial Sensitivities

Compute the four partial derivatives that describe sensitivities:

  • Steel's effect on cars: ∂u∂x=2\frac{\partial u}{\partial x} = 2∂x∂u​=2 (one extra steel → two more cars)

  • Plastic's effect on cars: ∂u∂y=0.5\frac{\partial u}{\partial y} = 0.5∂y∂u​=0.5 (one extra plastic → half a car)

  • Steel's effect on toys: ∂v∂x=0.1\frac{\partial v}{\partial x} = 0.1∂x∂v​=0.1 (one extra steel → 0.1 more toys)

  • Plastic's effect on toys: ∂v∂y=3\frac{\partial v}{\partial y} = 3∂y∂v​=3 (one extra plastic → three more toys)

The Jacobian Matrix

Organize these into a matrix. Rows correspond to outputs (uuu, vvv); columns correspond to inputs (xxx, yyy):

Jacobian matrix JJJ:

J=[∂u∂x∂u∂y∂v∂x∂v∂y]=[20.50.13]J = \begin{bmatrix} \frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} \\[4pt] \frac{\partial v}{\partial x} & \frac{\partial v}{\partial y} \end{bmatrix} = \begin{bmatrix} 2 & 0.5 \\ 0.1 & 3 \end{bmatrix}J=[∂x∂u​∂x∂v​​∂y∂u​∂y∂v​​]=[20.1​0.53​]

The Jacobian acts as a universal translator between input changes and output changes. For small changes Δx\Delta xΔx, Δy\Delta yΔy:

[ΔuΔv]≈J[ΔxΔy]\begin{bmatrix} \Delta u \\ \Delta v \end{bmatrix} \approx J \begin{bmatrix} \Delta x \\ \Delta y \end{bmatrix}[ΔuΔv​]≈J[ΔxΔy​]

Example: Suppose 10 extra units of steel (Δx=10\Delta x = 10Δx=10) and 5 extra units of plastic (Δy=5\Delta y = 5Δy=5):

Δu=2(10)+0.5(5)=20+2.5=22.5 more cars\Delta u = 2(10) + 0.5(5) = 20 + 2.5 = 22.5 \text{ more cars}Δu=2(10)+0.5(5)=20+2.5=22.5 more cars
Δv=0.1(10)+3(5)=1+15=16 more toys\Delta v = 0.1(10) + 3(5) = 1 + 15 = 16 \text{ more toys}Δv=0.1(10)+3(5)=1+15=16 more toys

The Chain Rule and Backpropagation

The true power of the Jacobian appears when composing functions. Extend the factory example with a profit function P(u,v)=3000u+500vP(u,v) = 3000u + 500vP(u,v)=3000u+500v. The chain of functions is:

(x,y)→production(u,v)→profitP(x,y) \xrightarrow{\text{production}} (u,v) \xrightarrow{\text{profit}} P(x,y)production​(u,v)profit​P

To find how profit changes with respect to an input (e.g., ∂P/∂x\partial P / \partial x∂P/∂x), multiply the Jacobians of each step:

∂P∂x=∂P∂u∂u∂x+∂P∂v∂v∂x\frac{\partial P}{\partial x} = \frac{\partial P}{\partial u} \frac{\partial u}{\partial x} + \frac{\partial P}{\partial v} \frac{\partial v}{\partial x}∂x∂P​=∂u∂P​∂x∂u​+∂v∂P​∂x∂v​

Using known values:

  • Partial derivatives of profit: ∂P/∂u=3000\partial P/\partial u = 3000∂P/∂u=3000, ∂P/∂v=500\partial P/\partial v = 500∂P/∂v=500

  • Production partials: ∂u/∂x=2\partial u/\partial x = 2∂u/∂x=2, ∂v/∂x=0.1\partial v/\partial x = 0.1∂v/∂x=0.1

Thus: $\frac{\partial P}{\partial x} = 3000(2) + 500(0.1) = 6000 + 50 = \6050 $$

Key insight: This process of multiplying Jacobians backward through a chain of functions is exactly the algorithm of backpropagation in neural networks. A deep neural network is a composition of functions (layers); backpropagation uses the chain rule to compute gradients of the error with respect to every weight. The Jacobian is the engine that drives modern artificial intelligence.


📐 The Hessian: Second Derivatives in Multiple Dimensions

The gradient gives a first-order (linear) approximation of a surface. To understand curvature — whether a surface is bending up like a valley, down like a peak, or twisting like a saddle — requires the second derivative, which in multiple dimensions is a matrix called the Hessian.

From Concavity to Curvature

In single variable calculus, the second derivative f′′(x)f''(x)f′′(x) indicates concavity:

  • f′′(x)>0f''(x) > 0f′′(x)>0: concave up (cup shape, holds water)

  • f′′(x)<0f''(x) < 0f′′(x)<0: concave down (frown shape, spills water)

In three dimensions, a surface can curve differently in different directions. A Pringle chip curves up along its short axis and down along its long axis — a single number cannot capture this.

Motivating Problem: The Flat Spot

When hiking, a perfectly flat spot occurs where the gradient is zero (∇f=⟨0,0⟩\nabla f = \langle 0,0 \rangle∇f=⟨0,0⟩). This critical point could be:

  • Local minimum (bottom of a valley)

  • Local maximum (peak of a mountain)

  • Saddle point (mountain pass — neither min nor max)

The gradient gives no information at a critical point. To classify it, one must examine the curvature using the Hessian.

The Hessian Matrix

Definition: The Hessian matrix HHH is the matrix of all second-order partial derivatives:

H=[fxxfxyfyxfyy]H = \begin{bmatrix} f_{xx} & f_{xy} \\ f_{yx} & f_{yy} \end{bmatrix}H=[fxx​fyx​​fxy​fyy​​]

where fxx=∂2f∂x2f_{xx} = \frac{\partial^2 f}{\partial x^2}fxx​=∂x2∂2f​, fxy=∂2f∂x∂yf_{xy} = \frac{\partial^2 f}{\partial x \partial y}fxy​=∂x∂y∂2f​, etc. By Clairaut's theorem, fxy=fyxf_{xy} = f_{yx}fxy​=fyx​ for well-behaved functions.

The diagonal entries fxxf_{xx}fxx​ and fyyf_{yy}fyy​ describe concavity along the xxx- and yyy-directions. The off-diagonal mixed partials measure the twist of the surface.

Examples of Hessians at Critical Points

Example 1: Valley (local minimum) — f(x,y)=x2+y2f(x,y) = x^2 + y^2f(x,y)=x2+y2

  • First partials: fx=2xf_x = 2xfx​=2x, fy=2yf_y = 2yfy​=2y → zero at (0,0)(0,0)(0,0)

  • Second partials: fxx=2f_{xx} = 2fxx​=2, fyy=2f_{yy} = 2fyy​=2, fxy=0f_{xy} = 0fxy​=0

  • Hessian at (0,0)(0,0)(0,0):

    H=[2002]H = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}H=[20​02​]
  • Both diagonal entries positive: curvature up in both directions → valley.

Example 2: Peak (local maximum) — f(x,y)=−x2−y2f(x,y) = -x^2 - y^2f(x,y)=−x2−y2

  • fxx=−2f_{xx} = -2fxx​=−2, fyy=−2f_{yy} = -2fyy​=−2, fxy=0f_{xy}=0fxy​=0 → Hessian [−200−2]\begin{bmatrix} -2 & 0 \\ 0 & -2 \end{bmatrix}[−20​0−2​]

  • Both diagonal entries negative: curvature down in both directions → peak.

Example 3: Saddle point — f(x,y)=x2−y2f(x,y) = x^2 - y^2f(x,y)=x2−y2

  • fxx=2f_{xx} = 2fxx​=2, fyy=−2f_{yy} = -2fyy​=−2, fxy=0f_{xy}=0fxy​=0 → Hessian [200−2]\begin{bmatrix} 2 & 0 \\ 0 & -2 \end{bmatrix}[20​0−2​]

  • Diagonal entries have opposite signs: curvature up in xxx, down in yyy → saddle point (Pringle shape).

The Second Derivative Test in 3D

At a critical point (a,b)(a,b)(a,b), compute the Hessian determinant:

D=det⁡(H)=fxxfyy−(fxy)2D = \det(H) = f_{xx} f_{yy} - (f_{xy})^2D=det(H)=fxx​fyy​−(fxy​)2

Classification table:

  • D>0D > 0D>0 and fxx>0f_{xx} > 0fxx​>0: local minimum (valley)

  • D>0D > 0D>0 and fxx<0f_{xx} < 0fxx​<0: local maximum (peak)

  • D<0D < 0D<0: saddle point

  • D=0D = 0D=0: test is inconclusive


📈 Unconstrained Optimization

Optimization in multiple dimensions follows the same two-step dance as single variable calculus, but with more powerful tools.

Algorithm: Find and Classify Critical Points

Step 1: Find critical points where the gradient is the zero vector: ∇f=0\nabla f = \mathbf{0}∇f=0. Set all first partial derivatives to zero and solve for (x,y)(x,y)(x,y).

Step 2: Classify each critical point using the Hessian matrix HHH and the second derivative test.

Example: Maximizing Profit

A company's daily profit from producing xxx units of product X and yyy units of product Y is:

P(x,y)=1500−10(x−10)2−3(y−25)2P(x,y) = 1500 - 10(x-10)^2 - 3(y-25)^2P(x,y)=1500−10(x−10)2−3(y−25)2

Step 1: Find critical point.

  • ∂P∂x=−20(x−10)=−2x+20⇒−2x+20=0⇒x=10\frac{\partial P}{\partial x} = -20(x-10) = -2x + 20 \Rightarrow -2x + 20 = 0 \Rightarrow x = 10∂x∂P​=−20(x−10)=−2x+20⇒−2x+20=0⇒x=10

  • ∂P∂y=−6(y−25)=−6y+150⇒−6y+150=0⇒y=25\frac{\partial P}{\partial y} = -6(y-25) = -6y + 150 \Rightarrow -6y + 150 = 0 \Rightarrow y = 25∂y∂P​=−6(y−25)=−6y+150⇒−6y+150=0⇒y=25 Critical point: (10,25)(10, 25)(10,25).

Step 2: Classify using Hessian.

  • Pxx=−20P_{xx} = -20Pxx​=−20, Pyy=−6P_{yy} = -6Pyy​=−6, Pxy=0P_{xy} = 0Pxy​=0

  • Hessian at (10,25)(10,25)(10,25): H=[−2000−6]H = \begin{bmatrix} -20 & 0 \\ 0 & -6 \end{bmatrix}H=[−200​0−6​]

  • Determinant: D=(−20)(−6)−(0)2=120>0D = (-20)(-6) - (0)^2 = 120 > 0D=(−20)(−6)−(0)2=120>0

  • Pxx=−20<0P_{xx} = -20 < 0Pxx​=−20<0

Since D>0D > 0D>0 and Pxx<0P_{xx} < 0Pxx​<0, the point is a local maximum.

Maximum profit: P(10,25) = 1500 - 10(0)^2 - 3(0)^2 = \1500$.

The company should produce 10 units of X and 25 units of Y to maximize daily profit at 1500.


🔒 Constrained Optimization: Lagrange Multipliers

Real-world problems often have constraints: a limited budget, a fixed perimeter, or a strength requirement. The goal is to optimize an objective function subject to a constraint equation. The method of Lagrange multipliers finds points where the gradients of the objective and constraint are parallel.

Motivating Problem: The Perfect Pen

Build a rectangular pen with a 24-meter perimeter to maximize area.

  • Objective function: area f(x,y)=xyf(x,y) = xyf(x,y)=xy

  • Constraint: perimeter 2x+2y=242x + 2y = 242x+2y=24, simplified to x+y=12x + y = 12x+y=12 (or g(x,y)=x+y=12g(x,y) = x + y = 12g(x,y)=x+y=12)

The Point of Tangency

Imagine walking along the constraint line x+y=12x+y=12x+y=12 on a contour plot of f(x,y)=xyf(x,y) = xyf(x,y)=xy. The maximum area occurs where the constraint line is tangent to a contour curve of fff. At tangency, the gradients of fff and ggg are parallel:

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

where λ\lambdaλ (lambda) is the Lagrange multiplier.

Lagrange Multiplier Algorithm

Step-by-step method:

  1. Identify the objective f(x,y)f(x,y)f(x,y) and constraint g(x,y)=cg(x,y) = cg(x,y)=c.

  2. Compute gradients ∇f\nabla f∇f and ∇g\nabla g∇g.

  3. Set up the system: $$ \begin{cases} f_x = \lambda g_x f_y = \lambda g_y g(x,y) = c \end{cases} $$

  4. Solve for xxx, yyy, and λ\lambdaλ (the critical point candidate).

Solving the Pen Problem

Step 1: f(x,y)=xyf(x,y) = xyf(x,y)=xy, g(x,y)=x+y=12g(x,y) = x + y = 12g(x,y)=x+y=12. Step 2: ∇f=⟨y,x⟩\nabla f = \langle y, x \rangle∇f=⟨y,x⟩, ∇g=⟨1,1⟩\nabla g = \langle 1, 1 \rangle∇g=⟨1,1⟩. Step 3: Equations:

  • y=λ(1)y = \lambda (1)y=λ(1)

  • x=λ(1)x = \lambda (1)x=λ(1)

  • x+y=12x + y = 12x+y=12

Step 4: From the first two equations, x=y=λx = y = \lambdax=y=λ. Substitute into constraint: x+x=12⇒2x=12⇒x=6x + x = 12 \Rightarrow 2x = 12 \Rightarrow x = 6x+x=12⇒2x=12⇒x=6, so y=6y = 6y=6, λ=6\lambda = 6λ=6.

Optimal pen: square of side 6 m, with maximum area 6×6=366 \times 6 = 366×6=36 m².

The Shadow Price

The Lagrange multiplier λ\lambdaλ has a profound interpretation: it is the shadow price — the rate at which the objective changes if the constraint is relaxed by one unit. Here λ=6\lambda = 6λ=6 means that for each additional meter of fencing, the maximum area increases by approximately 6 square meters.


📊 Double Integrals: Volume and Mass

Integration in multivariable calculus extends the single-variable notion of area under a curve to volume under a surface (and beyond, to mass and probability).

From Area to Volume

In single variable calculus:

Area=∫abf(x) dx\text{Area} = \int_a^b f(x) \, dxArea=∫ab​f(x)dx

Slicing the xxx-axis into tiny pieces dxdxdx, multiplying height f(x)f(x)f(x) by width dxdxdx, then summing.

In two variables:

Volume=∬Rf(x,y) dA\text{Volume} = \iint_R f(x,y) \, dAVolume=∬R​f(x,y)dA

Slicing the xyxyxy-plane into tiny patches dAdAdA, multiplying height f(x,y)f(x,y)f(x,y) by area dAdAdA, then summing.

Interpretation of f(x,y)f(x,y)f(x,y):

  • If f(x,y)f(x,y)f(x,y) represents height, the double integral gives volume.

  • If f(x,y)f(x,y)f(x,y) represents density (mass per unit area), the double integral gives mass.

Iterated Integrals

Double integrals are evaluated as iterated integrals — two nested single integrals.

Rule: Work from the inside out.

∬Rf(x,y) dA=∫cd∫abf(x,y) dx dy\iint_R f(x,y) \, dA = \int_c^d \int_a^b f(x,y) \, dx \, dy∬R​f(x,y)dA=∫cd​∫ab​f(x,y)dxdy

First integrate with respect to xxx (treating yyy as constant), then integrate the result with respect to yyy.

Example: Volume Over a Square

Find the volume under z=4−x2−y2z = 4 - x^2 - y^2z=4−x2−y2 over the square 0≤x≤10 \le x \le 10≤x≤1, 0≤y≤10 \le y \le 10≤y≤1.

Step 1: Set up iterated integral (constant bounds):

V=∫01∫01(4−x2−y2) dx dyV = \int_0^1 \int_0^1 (4 - x^2 - y^2) \, dx \, dyV=∫01​∫01​(4−x2−y2)dxdy

Step 2: Inner integral with respect to xxx:

∫01(4−x2−y2) dx=[4x−x33−y2x]x=0x=1=4(1)−13−y2(1)−0=113−y2\int_0^1 (4 - x^2 - y^2) \, dx = \left[4x - \frac{x^3}{3} - y^2 x\right]_{x=0}^{x=1} = 4(1) - \frac{1}{3} - y^2(1) - 0 = \frac{11}{3} - y^2∫01​(4−x2−y2)dx=[4x−3x3​−y2x]x=0x=1​=4(1)−31​−y2(1)−0=311​−y2

Step 3: Outer integral with respect to yyy:

V=∫01(113−y2)dy=[113y−y33]01=113−13=103V = \int_0^1 \left(\frac{11}{3} - y^2\right) dy = \left[\frac{11}{3}y - \frac{y^3}{3}\right]_0^1 = \frac{11}{3} - \frac{1}{3} = \frac{10}{3}V=∫01​(311​−y2)dy=[311​y−3y3​]01​=311​−31​=310​

The exact volume is 103\frac{10}{3}310​ cubic units.

Variable Bounds

The real challenge of double integrals is setting up bounds for non-rectangular regions. The outer bounds are constant; the inner bound contains the variable.

Example: Mass of a Triangular Plate

Find the mass of a triangular plate with vertices at (0,0)(0,0)(0,0), (2,0)(2,0)(2,0), (2,1)(2,1)(2,1) and density ρ(x,y)=xy\rho(x,y) = xyρ(x,y)=xy.

Region description: The triangle spans xxx from 000 to 222 (constant outer bound). For a given xxx, yyy goes from 000 (bottom edge) to the slanted line connecting (0,0)(0,0)(0,0) to (2,1)(2,1)(2,1), which is y=x/2y = x/2y=x/2. So the inner bound is 0≤y≤x/20 \le y \le x/20≤y≤x/2.

Set up the integral:

M=∫x=02∫y=0x/2xy dy dxM = \int_{x=0}^{2} \int_{y=0}^{x/2} xy \, dy \, dxM=∫x=02​∫y=0x/2​xydydx

Inner integral (with respect to yyy):

∫0x/2xy dy=x⋅[y22]0x/2=x⋅(x/2)22=x⋅x24⋅2=x38\int_0^{x/2} xy \, dy = x \cdot \left[\frac{y^2}{2}\right]_{0}^{x/2} = x \cdot \frac{(x/2)^2}{2} = x \cdot \frac{x^2}{4 \cdot 2} = \frac{x^3}{8}∫0x/2​xydy=x⋅[2y2​]0x/2​=x⋅2(x/2)2​=x⋅4⋅2x2​=8x3​

Outer integral:

M=∫02x38 dx=[x432]02=1632=12M = \int_0^2 \frac{x^3}{8} \, dx = \left[\frac{x^4}{32}\right]_0^2 = \frac{16}{32} = \frac{1}{2}M=∫02​8x3​dx=[32x4​]02​=3216​=21​

The total mass of the plate is 12\frac{1}{2}21​ unit.

Physical and Probabilistic Applications

Double integrals are the workhorse of physics, engineering, and statistics:

  • Mass: ∬ρ(x,y) dA\iint \rho(x,y) \, dA∬ρ(x,y)dA for variable density

  • Center of mass: 1M∬xρ(x,y) dA\frac{1}{M} \iint x \rho(x,y) \, dAM1​∬xρ(x,y)dA, 1M∬yρ(x,y) dA\frac{1}{M} \iint y \rho(x,y) \, dAM1​∬yρ(x,y)dA

  • Probability: ∬Rf(x,y) dA\iint_R f(x,y) \, dA∬R​f(x,y)dA where f(x,y)f(x,y)f(x,y) is a joint probability density function, giving the probability that the pair (X,Y)(X,Y)(X,Y) lies in region RRR


🔄 Change of Variables: Polar Coordinates

For regions with circular symmetry (e.g., disks, annuli), setting up bounds in Cartesian coordinates leads to messy square roots. Switching to polar coordinates simplifies the region dramatically, but requires a Jacobian factor to account for area distortion.

Cartesian Nightmare vs. Polar Relief

Problem: Find the volume under z=9−x2−y2z = 9 - x^2 - y^2z=9−x2−y2 above the xyxyxy-plane. The base is the disk x2+y2≤9x^2 + y^2 \le 9x2+y2≤9 (circle radius 3).

Cartesian bounds:

V=∫−33∫−9−x29−x2(9−x2−y2) dy dxV = \int_{-3}^{3} \int_{-\sqrt{9-x^2}}^{\sqrt{9-x^2}} (9 - x^2 - y^2) \, dy \, dxV=∫−33​∫−9−x2​9−x2​​(9−x2−y2)dydx

This integral is difficult due to the square root bounds and the x2+y2x^2 + y^2x2+y2 term.

Polar transformation:

x=rcos⁡θ,y=rsin⁡θ,x2+y2=r2x = r \cos\theta, \quad y = r \sin\theta, \quad x^2 + y^2 = r^2x=rcosθ,y=rsinθ,x2+y2=r2

The region becomes a simple rectangle in (r,θ)(r,\theta)(r,θ):

  • 0≤r≤30 \le r \le 30≤r≤3 (radius from 0 to 3)

  • 0≤θ≤2π0 \le \theta \le 2\pi0≤θ≤2π (full circle)

The function becomes z=9−r2z = 9 - r^2z=9−r2.

The Jacobian Factor

When changing coordinates, the area element dA=dx dydA = dx \, dydA=dxdy is not equal to dr dθdr \, d\thetadrdθ. The factor is the absolute value of the determinant of the Jacobian of the transformation.

Key formula:

dx dy=∣det⁡(J)∣ dr dθdx \, dy = |\det(J)| \, dr \, d\thetadxdy=∣det(J)∣drdθ

Compute the Jacobian of the map (r,θ)→(x,y)(r,\theta) \to (x,y)(r,θ)→(x,y):

J=[∂x∂r∂x∂θ∂y∂r∂y∂θ]=[cos⁡θ−rsin⁡θsin⁡θrcos⁡θ]J = \begin{bmatrix} \frac{\partial x}{\partial r} & \frac{\partial x}{\partial \theta} \\[4pt] \frac{\partial y}{\partial r} & \frac{\partial y}{\partial \theta} \end{bmatrix} = \begin{bmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{bmatrix}J=[∂r∂x​∂r∂y​​∂θ∂x​∂θ∂y​​]=[cosθsinθ​−rsinθrcosθ​]

The determinant:

det⁡(J)=(cos⁡θ)(rcos⁡θ)−(−rsin⁡θ)(sin⁡θ)=rcos⁡2θ+rsin⁡2θ=r(cos⁡2θ+sin⁡2θ)=r\det(J) = (\cos\theta)(r\cos\theta) - (-r\sin\theta)(\sin\theta) = r\cos^2\theta + r\sin^2\theta = r(\cos^2\theta + \sin^2\theta) = rdet(J)=(cosθ)(rcosθ)−(−rsinθ)(sinθ)=rcos2θ+rsin2θ=r(cos2θ+sin2θ)=r

Thus:

dx dy=r dr dθdx \, dy = r \, dr \, d\thetadxdy=rdrdθ

This is the golden ticket for integrations in polar coordinates: always include an extra factor of rrr.

Solving the Volume Problem the Easy Way

Step 1: Convert everything to polar.

  • Region: 0≤r≤30 \le r \le 30≤r≤3, 0≤θ≤2π0 \le \theta \le 2\pi0≤θ≤2π

  • Function: z=9−r2z = 9 - r^2z=9−r2

  • Area element: dA=r dr dθdA = r \, dr \, d\thetadA=rdrdθ

Step 2: Set up integral.

V=∫02π∫03(9−r2) r dr dθ=∫02π∫03(9r−r3) dr dθV = \int_0^{2\pi} \int_0^3 (9 - r^2) \, r \, dr \, d\theta = \int_0^{2\pi} \int_0^3 (9r - r^3) \, dr \, d\thetaV=∫02π​∫03​(9−r2)rdrdθ=∫02π​∫03​(9r−r3)drdθ

Step 3: Inner integral with respect to rrr.

∫03(9r−r3) dr=[9r22−r44]03=9(9)2−814=812−814=814\int_0^3 (9r - r^3) \, dr = \left[\frac{9r^2}{2} - \frac{r^4}{4}\right]_0^3 = \frac{9(9)}{2} - \frac{81}{4} = \frac{81}{2} - \frac{81}{4} = \frac{81}{4}∫03​(9r−r3)dr=[29r2​−4r4​]03​=29(9)​−481​=281​−481​=481​

Step 4: Outer integral with respect to θ\thetaθ.

V=∫02π814 dθ=814⋅2π=81π2V = \int_0^{2\pi} \frac{81}{4} \, d\theta = \frac{81}{4} \cdot 2\pi = \frac{81\pi}{2}V=∫02π​481​dθ=481​⋅2π=281π​

The volume is 81π2\frac{81\pi}{2}281π​ cubic units — solved in three simple lines.

General Change of Variables

The same principle extends to other coordinate systems:

  • Cylindrical coordinates (for problems with rotational symmetry about an axis):

    dV=r dz dr dθdV = r \, dz \, dr \, d\thetadV=rdzdrdθ
  • Spherical coordinates (for spheres, planets, atoms):

    dV=ρ2sin⁡ϕ dρ dϕ dθdV = \rho^2 \sin\phi \, d\rho \, d\phi \, d\thetadV=ρ2sinϕdρdϕdθ

In each case, the Jacobian determinant provides the correct volume/area element for the chosen coordinate system, turning impossible integrals into manageable ones.


✅ The Multivariable Calculus Toolbox

All the tools developed in this course fit together into a coherent framework for analyzing functions of multiple variables.

The Tools at a Glance

🧭 Gradient ∇f\nabla f∇f

  • Vector of first partial derivatives.

  • Points in direction of steepest ascent; magnitude gives slope.

  • Fundamental for finding critical points.

🔧 Jacobian JJJ

  • Matrix of first partial derivatives of a vector function.

  • Translates changes in inputs to changes in outputs.

  • Essential for the multivariable chain rule and backpropagation.

📐 Hessian HHH

  • Matrix of second partial derivatives.

  • Describes the curvature of a surface.

  • Used to classify critical points (min, max, saddle) via the second derivative test.

📈 Unconstrained Optimization

  1. Solve ∇f=0\nabla f = \mathbf{0}∇f=0 for critical points.

  2. Compute Hessian determinant D=fxxfyy−(fxy)2D = f_{xx}f_{yy} - (f_{xy})^2D=fxx​fyy​−(fxy​)2.

  3. Classify: D>0D>0D>0 and fxx>0f_{xx}>0fxx​>0 → min; D>0D>0D>0 and fxx<0f_{xx}<0fxx​<0 → max; D<0D<0D<0 → saddle.

🔒 Lagrange Multipliers

  • Optimize f(x,y)f(x,y)f(x,y) subject to g(x,y)=cg(x,y)=cg(x,y)=c.

  • Solve ∇f=λ∇g\nabla f = \lambda \nabla g∇f=λ∇g along with the constraint.

  • λ\lambdaλ gives the shadow price (sensitivity of objective to constraint relaxation).

📊 Double and Triple Integrals

  • ∬Rf(x,y) dA\iint_R f(x,y) \, dA∬R​f(x,y)dA gives volume (if fff is height) or mass (if fff is density).

  • Evaluate as iterated integrals, working from the inside out.

  • For non-rectangular regions, set variable bounds carefully.

🔄 Change of Variables

  • dx dy=∣det⁡(J)∣ du dvdx\,dy = |\det(J)| \, du\,dvdxdy=∣det(J)∣dudv where JJJ is the Jacobian of the transformation.

  • Key for polar (dx dy=r dr dθdx\,dy = r\,dr\,d\thetadxdy=rdrdθ), cylindrical (dV=r dz dr dθdV = r\,dz\,dr\,d\thetadV=rdzdrdθ), and spherical coordinates (dV=ρ2sin⁡ϕ dρ dϕ dθdV = \rho^2 \sin\phi\, d\rho\, d\phi\, d\thetadV=ρ2sinϕdρdϕdθ).

  • Transforms complicated regions into simple ones.

These tools, evolved from single-variable calculus, enable the analysis of real-world problems in engineering, physics, computer science, and economics. The fundamental shift from flatland to spaceand — from curves to surfaces, from scalar to vector, from one slope to infinite directions — is now a mastered perspective. Multivariable calculus clicks.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent