Multivariable Calculus on the Putnam

Study Sheet

Multivariable Calculus on the Putnam

Double integrals by symmetry, Jacobians that collapse integrands, Lagrange multipliers, and Green's theorem in disguise

The Moves That Recur

Concept
Symmetrize before integrating

Over a region symmetric under x↔yx \leftrightarrow y, ∬f(x,y)=∬f(y,x)\iint f(x, y) = \iint f(y, x); average the two. Over a region symmetric under x→−xx \to -x, odd parts vanish.

The Putnam almost never wants a double integral computed by brute force. The integrand is chosen so that a symmetry of the region turns it into something trivial: ∬[0,1]2xx+y dA\iint_{[0,1]^2}\frac{x}{x + y}\,dA averages with its mirror to ∬12=12\iint\frac12 = \frac12. Whenever the region is a square, a disk, or a simplex, list its symmetries FIRST and apply each to the integrand.

Concept
Change variables to match the integrand

With u=x+yu = x + y, v=x−yv = x - y (Jacobian 12\tfrac12), or polar coordinates, or u=xyu = xy, v=y/xv = y/x: choose the substitution that makes the integrand a function of one new variable.

A Jacobian is not a nuisance factor — it is the reason the trick works. The polar rr is what makes ∫e−x2\int e^{-x^2} computable; the 12\tfrac12 from u=x+yu = x + y, v=x−yv = x - y is what turns ∬[0,1]2∣x−y∣ dA\iint_{[0,1]^2}|x - y|\,dA into a one-variable integral. The other classic: ∬\iint over the triangle x,y≥0x, y \ge 0, x+y≤1x + y \le 1 of f(x+y)f(x + y) equals ∫01tf(t) dt\int_0^1 t f(t)\,dt, because the level sets x+y=tx + y = t have length proportional to tt.

Concept
Lagrange multipliers, then check the boundary

To extremize ff on g=cg = c: solve ∇f=λ∇g\nabla f = \lambda\nabla g together with g=cg = c. On a compact region also test the boundary; on an unbounded one, argue that ff blows up (or decays) away from the candidates.

The Putnam version usually has symmetric ff and gg, so the candidates are points with several equal coordinates — but the maximum is not always at the fully symmetric point. Compute ff at every candidate. For a sum ∑xi2\sum x_i^2 with ∑xi\sum x_i fixed, the extremes are "all equal" and "one variable takes everything", and Lagrange tells you which is which.

Concept
Green, Stokes and the divergence theorem as identities

A line integral around a closed curve equals a double integral of a curl; the flux of r/∣r∣3\mathbf r/|\mathbf r|^3 through any surface enclosing the origin is 4π4\pi; the area of a region is 12∮(x dy−y dx)\tfrac12\oint(x\,dy - y\,dx).

These appear on the Putnam as identities to recognize, not theorems to apply mechanically. The area formula turns "area of a polygon with vertices…" into the shoelace formula; the flux fact makes a hideous surface integral equal 4π4\pi or 00 depending only on whether the surface encloses the origin.

Side note
Where it goes wrong

Forgetting the Jacobian entirely, or applying Lagrange multipliers where ∇g=0\nabla g = 0 (the method finds nothing there) or on a region with a boundary you never tested.

Try it
Try it: symmetry

Compute ∬[0,1]2x2x2+y2 dA\displaystyle\iint_{[0,1]^2}\frac{x^2}{x^2 + y^2}\,dA.

Show the answer

Average with the x↔yx \leftrightarrow y mirror: 12∬x2+y2x2+y2=12⋅1=12\frac12\iint\frac{x^2 + y^2}{x^2 + y^2} = \frac12\cdot1 = \frac12. No polar coordinates needed.

Double Integrals by Substitution, Worked

Tip
Coordinates adapted to the integrand

If the integrand depends on xx and yy only through some combinations u(x,y)u(x, y), v(x,y)v(x, y), integrate in u,vu, v: ∬Rf dx dy=∬R′f ∣J∣ du dv\iint_Rf\,dx\,dy = \iint_{R'}f\,|J|\,du\,dv with J=∂(x,y)∂(u,v)J = \dfrac{\partial(x, y)}{\partial(u, v)}. Choose u,vu, v so that the integrand AND the boundary of the region become simple; for a quadratic form, complete the square or rotate to its eigenvectors.

The Jacobian determinant measures how the map from (u,v)(u, v) to (x,y)(x, y) stretches area (see "Why It Works" below): a tiny du×dvdu\times dv rectangle becomes a parallelogram of area ∣J∣ du dv|J|\,du\,dv. For a linear substitution JJ is a constant, so it simply scales the answer — which is why forgetting it gives an answer off by a fixed factor. Before computing, list what the substitution does to each edge of the region; a substitution that simplifies the integrand but scrambles the region has not helped.

Example
Worked: the area of an ellipse (folklore)

Find the area of the region x2a2+y2b2≤1\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} \le 1 (a,b>0a, b > 0).

Step 1 — substitute x=aux = au, y=bvy = bv. The region becomes the unit disk u2+v2≤1u^2 + v^2 \le 1.

Step 2 — the Jacobian is det⁡(a00b)=ab\det\begin{pmatrix}a&0\\0&b\end{pmatrix} = ab.

Step 3 — area =∬u2+v2≤1ab du dv=ab⋅π=πab= \iint_{u^2 + v^2 \le 1}ab\,du\,dv = ab\cdot\pi = \pi ab. For a=ba = b it is the circle's πa2\pi a^2.

How to find it. A linear map that sends a hard region to an easy one multiplies every area by ∣det⁡∣|\det|: that single number is all the integral needs.

Example
Worked: an integrand with a ratio (folklore)
11x + y = 1dashed: (y − x)/(y + x) = const
The integrand is constant along each ray from the origin; with u = y − x and v = y + x the triangle becomes −v ≤ u ≤ v, 0 ≤ v ≤ 1.

Evaluate ∬Te(y−x)/(y+x) dA\displaystyle\iint_T e^{(y - x)/(y + x)}\,dA, where TT is the triangle x≥0x \ge 0, y≥0y \ge 0, x+y≤1x + y \le 1.

Step 1 — the exponent is uv\tfrac uv with u=y−xu = y - x, v=y+xv = y + x. Inverting, x=v−u2x = \tfrac{v - u}{2}, y=u+v2y = \tfrac{u + v}{2}, and ∣J∣=∣det⁡(−12121212)∣=12|J| = \left|\det\begin{pmatrix}-\tfrac12 & \tfrac12\\ \tfrac12 & \tfrac12\end{pmatrix}\right| = \tfrac12.

Step 2 — the region: x≥0x \ge 0 is u≤vu \le v, y≥0y \ge 0 is u≥−vu \ge -v, and x+y≤1x + y \le 1 is v≤1v \le 1. So TT becomes 0≤v≤10 \le v \le 1, −v≤u≤v-v \le u \le v.

Step 3 — integrate in uu first: ∫−vveu/v du=v(e−e−1)\int_{-v}^{v}e^{u/v}\,du = v\left(e - e^{-1}\right).

Step 4 — then 12∫01v(e−e−1)dv=e−e−14=sinh⁡12≈0.588\tfrac12\int_0^1 v\left(e - e^{-1}\right)dv = \tfrac{e - e^{-1}}{4} = \tfrac{\sinh 1}{2} \approx 0.588.

How to find it. The integrand is constant on rays through the origin (dashed), so one new variable should measure the ray (uv\tfrac uv) and the other the distance along it (vv). Integrating over uu at fixed vv sweeps across the rays, where the exponential integrates in closed form.

Example
Worked: a Gaussian with a cross term (folklore)
c = 3
The level curves x² + xy + y² = 1, 2, 3 are ellipses with axes along y = ±x; the substitution turns them into circles.

Evaluate ∬R2e−(x2+xy+y2) dA\displaystyle\iint_{\mathbb R^2}e^{-(x^2 + xy + y^2)}\,dA.

Step 1 — complete the square: x2+xy+y2=(x+y2)2+34y2x^2 + xy + y^2 = \left(x + \tfrac y2\right)^2 + \tfrac34y^2.

Step 2 — substitute u=x+y2u = x + \tfrac y2, w=32yw = \tfrac{\sqrt3}{2}y. Then ∂(u,w)∂(x,y)=det⁡(112032)=32\tfrac{\partial(u, w)}{\partial(x, y)} = \det\begin{pmatrix}1 & \tfrac12\\ 0 & \tfrac{\sqrt3}{2}\end{pmatrix} = \tfrac{\sqrt3}{2}, so dx dy=23 du dwdx\,dy = \tfrac{2}{\sqrt3}\,du\,dw, and the plane maps onto the plane.

Step 3 — ∬e−(u2+w2) du dw=π\iint e^{-(u^2 + w^2)}\,du\,dw = \pi (polar coordinates, or the square of the Gaussian integral).

Step 4 — the answer is 2π3≈3.628\tfrac{2\pi}{\sqrt3} \approx 3.628. In general ∬e−xTAx dA=πdet⁡A\iint e^{-\mathbf x^{\mathsf T}A\mathbf x}\,dA = \tfrac{\pi}{\sqrt{\det A}} for positive definite AA; here A=(112121)A = \begin{pmatrix}1 & \tfrac12\\ \tfrac12 & 1\end{pmatrix}, det⁡A=34\det A = \tfrac34.

How to find it. A quadratic form with a cross term is a circle in disguise. Completing the square (or diagonalizing AA: eigenvalues 32\tfrac32 and 12\tfrac12 along y=±xy = \pm x) turns it into a sum of squares, and the Jacobian records the determinant.

Side note
Where it goes wrong

"The area of x24+y2≤1\tfrac{x^2}{4} + y^2 \le 1: substitute x=2ux = 2u, y=vy = v; the region becomes the unit disk, so the area is π\pi." The true area is 2π2\pi. The substitution changed the region but the dAdA was copied across as du dvdu\,dv; it is dx dy=∣J∣ du dv=2 du dvdx\,dy = |J|\,du\,dv = 2\,du\,dv. A linear substitution that stretches one direction by 22 doubles every area, and the Jacobian is the only place that fact enters the computation.

Try it
Try it: a rotated square

Evaluate ∬D(x+y)2 dA\displaystyle\iint_D(x + y)^2\,dA over the square D={∣x∣+∣y∣≤1}D = \{|x| + |y| \le 1\}.

Show the answer

Let u=x+yu = x + y, v=x−yv = x - y. Since ∣x∣+∣y∣=max⁡(∣u∣,∣v∣)|x| + |y| = \max(|u|, |v|), DD becomes the square ∣u∣≤1|u| \le 1, ∣v∣≤1|v| \le 1, and ∣J∣=∣det⁡(121212−12)∣=12|J| = \left|\det\begin{pmatrix}\tfrac12&\tfrac12\\ \tfrac12&-\tfrac12\end{pmatrix}\right| = \tfrac12. So the integral is 12∫−11 ⁣∫−11u2 du dv=12⋅23⋅2=23\tfrac12\int_{-1}^1\!\int_{-1}^1u^2\,du\,dv = \tfrac12\cdot\tfrac23\cdot2 = \tfrac23.

Constrained Extrema, Worked

Tip
Tangency, then compare the candidates

At an extremum of ff on the curve (or surface) g=cg = c, at a point where ∇g≠0\nabla g \ne 0: ∇f=λ∇g\nabla f = \lambda\nabla g for some λ\lambda. On a region, the extremum is at an interior critical point (∇f=0\nabla f = 0) or on the boundary. Collect every candidate — including points where ∇g=0\nabla g = 0 — and compare the values.

If ∇f\nabla f had a component along the constraint set at a point pp, moving from pp along the set in that direction would increase ff and moving the other way would decrease it, so pp would not be an extremum. Hence ∇f\nabla f is perpendicular to the set, and so is ∇g\nabla g; in the plane, perpendicular to the same curve means parallel. Geometrically, the level curve of ff through an extremum is TANGENT to the constraint. The method produces candidates, not answers: it says nothing about points where ∇g=0\nabla g = 0, and it does not say which candidate is the maximum — on a compact set the extreme value theorem guarantees both extremes exist, and comparing the values finishes the problem.

Example
Worked: a product on an ellipse (folklore)
xy(2, 1)xy = 2
The ellipse and the level curves xy = ±2 (dashed): at the four extremal points the hyperbolas touch the ellipse.

Find the largest and smallest values of xyxy on the ellipse x28+y22=1\dfrac{x^2}{8} + \dfrac{y^2}{2} = 1.

Step 1 — the ellipse is compact, so both extremes exist, and ∇g=(x4,y)≠0\nabla g = \left(\tfrac x4, y\right) \ne 0 on it.

Step 2 — ∇(xy)=(y,x)=λ(x4,y)\nabla(xy) = (y, x) = \lambda\left(\tfrac x4, y\right) gives y=λx4y = \tfrac{\lambda x}{4} and x=λyx = \lambda y. If y=0y = 0 then x=0x = 0, not on the ellipse; so y≠0y \ne 0 and y=λ24yy = \tfrac{\lambda^2}{4}y, i.e. λ=±2\lambda = \pm2 and x=±2yx = \pm2y.

Step 3 — on the ellipse, 4y28+y22=y2=1\tfrac{4y^2}{8} + \tfrac{y^2}{2} = y^2 = 1, so the candidates are (±2,±1)(\pm2, \pm1) with all four sign choices.

Step 4 — xy=2xy = 2 at (2,1)(2, 1) and (−2,−1)(-2, -1), and −2-2 at the other two. Maximum 22, minimum −2-2. (Check by AM–GM: 1=x28+y22≥2x2y216=∣xy∣21 = \tfrac{x^2}{8} + \tfrac{y^2}{2} \ge 2\sqrt{\tfrac{x^2y^2}{16}} = \tfrac{|xy|}{2}.)

How to find it. Picture the level curves xy=kxy = k growing until they last touch the ellipse; the touching points are where Lagrange's condition holds, and symmetry (x→−xx \to -x, y→−yy \to -y) predicts four of them.

Example
Worked: interior versus boundary (folklore)

Find the maximum and minimum of f(x,y)=x2yf(x, y) = x^2y on the closed disk x2+y2≤3x^2 + y^2 \le 3.

Step 1 — the disk is compact and ff continuous: both extremes exist.

Step 2 — interior: ∇f=(2xy,x2)=0\nabla f = (2xy, x^2) = 0 forces x=0x = 0, where f=0f = 0.

Step 3 — boundary: on x2+y2=3x^2 + y^2 = 3, f=(3−y2)y=h(y)f = (3 - y^2)y = h(y) for y∈[−3,3]y \in [-\sqrt3, \sqrt3]. h′(y)=3−3y2=0h'(y) = 3 - 3y^2 = 0 at y=±1y = \pm1, with h(±1)=±2h(\pm1) = \pm2; at the ends h(±3)=0h(\pm\sqrt3) = 0.

Step 4 — compare all candidates: 00 (interior), ±2\pm2, 00. The maximum is 22 at (±2,1)(\pm\sqrt2, 1) and the minimum is −2-2 at (±2,−1)(\pm\sqrt2, -1).

How to find it. On a region the boundary is a separate problem one dimension lower; parametrizing it (here by yy) often beats Lagrange. The interior critical points of a polynomial like x2yx^2y are usually degenerate and rarely win.

Example
Worked: two constraints and a hidden cubic (folklore)
z112/27414/327/3
On the allowed range 1 ≤ z ≤ 7/3, xyz = z³ − 5z² + 8z takes its minimum 4 twice (z = 1, 2) and its maximum 112/27 twice (z = 4/3, 7/3).

Real numbers x,y,zx, y, z satisfy x+y+z=5x + y + z = 5 and xy+yz+zx=8xy + yz + zx = 8. Find the largest and smallest possible values of xyzxyz.

Step 1 — find the range of one variable. Given zz, the other two have x+y=5−zx + y = 5 - z and xy=8−z(x+y)=8−5z+z2xy = 8 - z(x + y) = 8 - 5z + z^2. They are real iff the discriminant of t2−(5−z)t+(8−5z+z2)t^2 - (5 - z)t + (8 - 5z + z^2) is ≥0\ge 0: (5−z)2−4(8−5z+z2)=−3z2+10z−7=−(3z−7)(z−1)≥0(5 - z)^2 - 4(8 - 5z + z^2) = -3z^2 + 10z - 7 = -(3z - 7)(z - 1) \ge 0, i.e. 1≤z≤731 \le z \le \tfrac73.

Step 2 — the target in terms of zz: xyz=z(8−5z+z2)=z3−5z2+8z=p(z)xyz = z(8 - 5z + z^2) = z^3 - 5z^2 + 8z = p(z).

Step 3 — p′(z)=3z2−10z+8=(3z−4)(z−2)p'(z) = 3z^2 - 10z + 8 = (3z - 4)(z - 2), so the candidates on [1,73][1, \tfrac73] are z=1,43,2,73z = 1, \tfrac43, 2, \tfrac73, with p=4,11227,4,11227p = 4, \tfrac{112}{27}, 4, \tfrac{112}{27}.

Step 4 — the maximum is 11227\tfrac{112}{27} (at (43,43,73)(\tfrac43, \tfrac43, \tfrac73) and permutations) and the minimum is 44 (at (2,2,1)(2, 2, 1) and permutations). In both, two variables are equal — as Lagrange with two constraints predicts — but which equal pair wins is decided only by computing: the configuration with the larger lone variable wins the maximum.

How to find it. With the sum and the pairwise sum fixed, the three numbers are the roots of t3−5t2+8t−pt^3 - 5t^2 + 8t - p, and p=xyzp = xyz is the only free parameter; the cubic has three real roots exactly on an interval of pp, whose ends are where two roots merge. Reducing to one variable makes that interval visible.

Side note
Where it goes wrong

Minimize f=xf = x on the curve y2=x3y^2 = x^3. The curve lies in x≥0x \ge 0 and passes through the origin, so the minimum is 00, at (0,0)(0, 0). Lagrange with g=y2−x3g = y^2 - x^3: (1,0)=λ(−3x2,2y)(1, 0) = \lambda(-3x^2, 2y) requires 2λy=02\lambda y = 0 and −3λx2=1-3\lambda x^2 = 1; the first forces y=0y = 0 (hence x=0x = 0 on the curve) or λ=0\lambda = 0, and both contradict the second. The system has NO solution, and concluding "no minimum" would be wrong. The minimum sits at the cusp, where ∇g=(0,0)\nabla g = (0, 0) — exactly the kind of point the method cannot see and must be checked separately.

Try it
Try it: a box under a plane

Find the maximum of xyzxyz for positive x,y,zx, y, z with x+2y+3z=18x + 2y + 3z = 18.

Show the answer

Lagrange: (yz,xz,xy)=λ(1,2,3)(yz, xz, xy) = \lambda(1, 2, 3). Dividing, xzyz=2\tfrac{xz}{yz} = 2 and xyyz=3\tfrac{xy}{yz} = 3, so x=2y=3zx = 2y = 3z. Then x+x+x=18x + x + x = 18 gives x=6x = 6, y=3y = 3, z=2z = 2 and xyz=36xyz = 36. It is the maximum: on the boundary of the region (some variable →0\to 0) the product tends to 00, and the only interior candidate is this one. (AM–GM confirms it: 18=x+2y+3z≥36xyz318 = x + 2y + 3z \ge 3\sqrt[3]{6xyz} gives xyz≤36xyz \le 36.)

Why It Works

A change of variables (u,v)↦(x,y)(u, v) \mapsto (x, y) sends a tiny du×dvdu\times dv rectangle to a tiny parallelogram spanned by the vectors (xu,yu) du(x_u, y_u)\,du and (xv,yv) dv(x_v, y_v)\,dv. The area of that parallelogram is the absolute value of the determinant xuyv−xvyux_uy_v - x_vy_u times du dvdu\,dv. Summing over all tiny rectangles — which is what an integral does — the determinant appears as the scale factor between the two coordinate systems. In polar coordinates the parallelogram is (nearly) an r dθ×drr\,d\theta \times dr rectangle, which is why dA=r dr dθdA = r\,dr\,d\theta.