4.4.4Multivariable Calculus

Clairaut's theorem — mixed partials are equal (under conditions)

1,912 words9 min readdifficulty · medium2 backlinks

What is a mixed partial?


Deriving it from first principles

Step 1 — Build a symmetric second difference. Fix step sizes h,k>0h,k>0. Define Δ(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). Why this step? This combination is the discrete analogue of a mixed second derivative. Notice it is perfectly symmetric: swapping hkh\leftrightarrow k and aba\leftrightarrow b (i.e. swapping the roles of xx and yy) leaves Δ\Delta unchanged. That hidden symmetry is the whole trick.

Step 2 — Group it as an xx-difference of a yy-difference. Let g(x)=f(x,b+k)f(x,b)g(x) = f(x, b+k) - f(x, b). Then Δ(h,k)=g(a+h)g(a).\Delta(h,k) = g(a+h) - g(a). Why this step? We've turned Δ\Delta into a difference of gg in the xx-direction, so we can apply the Mean Value Theorem in xx.

Step 3 — Apply MVT in xx. By the MVT there is c1c_1 between aa and a+ha+h with g(a+h)g(a)=hg(c1)=h[fx(c1,b+k)fx(c1,b)].g(a+h)-g(a) = h\,g'(c_1) = h\big[f_x(c_1,b+k) - f_x(c_1,b)\big]. Why this step? g(x)=fx(x,b+k)fx(x,b)g'(x) = f_x(x,b+k)-f_x(x,b), and MVT converts a difference into a derivative times the step hh.

Step 4 — Apply MVT again, now in yy. The bracket is a yy-difference of fx(c1,)f_x(c_1,\cdot). By MVT there is d1d_1 between bb and b+kb+k with fx(c1,b+k)fx(c1,b)=kfxy(c1,d1).f_x(c_1,b+k)-f_x(c_1,b) = k\,f_{xy}(c_1,d_1). So Δ(h,k)=hkfxy(c1,d1).\Delta(h,k) = h\,k\,f_{xy}(c_1,d_1). Why this step? Differentiating fxf_x w.r.t. yy gives fxyf_{xy} — exactly the mixed partial we want.

Step 5 — Do Steps 2–4 in the other order. Now let ϕ(y)=f(a+h,y)f(a,y)\phi(y) = f(a+h,y)-f(a,y), so Δ(h,k)=ϕ(b+k)ϕ(b)\Delta(h,k)=\phi(b+k)-\phi(b). The same Δ\Delta. Two MVTs (first in yy, then in xx) give, for some c2,d2c_2,d_2, Δ(h,k)=hkfyx(c2,d2).\Delta(h,k) = h\,k\,f_{yx}(c_2,d_2). Why this step? The symmetry of Δ\Delta means we are free to peel it apart in either order.

Step 6 — Equate and take the limit. Both expressions equal the same Δ\Delta, so dividing by hkhk: fxy(c1,d1)=fyx(c2,d2).f_{xy}(c_1,d_1) = f_{yx}(c_2,d_2). As h,k0h,k\to 0, all four points (c1,d1),(c2,d2)(a,b)(c_1,d_1),(c_2,d_2)\to(a,b). Because fxyf_{xy} and fyxf_{yx} are continuous, both sides converge to their values at (a,b)(a,b): fxy(a,b)=fyx(a,b).\boxed{f_{xy}(a,b) = f_{yx}(a,b).} Why continuity is essential: the points ci,dic_i,d_i are unknown; we only know they squeeze toward (a,b)(a,b). Continuity is what lets "value at a nearby point" become "value at (a,b)(a,b)." Without it, the limit can fail — see the famous counterexample below.

Figure — Clairaut's theorem — mixed partials are equal (under conditions)

Worked examples


The counterexample (when it FAILS)


Recall Feynman: explain to a 12-year-old

Imagine a stretchy trampoline. Standing on it, ask: "If I walk East, how fast does the ground tilt?" That's an xx-slope. Now ask "and as I shift North, how does that East-tilt change?" That's fxyf_{xy} — a twist. Clairaut says the twist you measure (East-then-North) is the same twist you'd measure North-then-East. It's like saying the corner of the trampoline is dented the same amount no matter which way you sneak up on it — as long as the trampoline is smooth with no sharp creases. If there's a pinch or crease (a point where the slopes jump), the two ways can disagree.


Active recall

What does Clairaut's theorem conclude?
fxy=fyxf_{xy}=f_{yx} — mixed second partials are equal.
What is the key HYPOTHESIS of Clairaut's theorem?
The mixed partials are continuous on an open region around the point.
In fxyf_{xy}, which variable is differentiated first?
xx (subscripts read left to right).
In Leibniz form 2f/yx\partial^2 f/\partial y\,\partial x, which is first?
xx (operator nearest ff acts first).
What single symmetric quantity is used to prove Clairaut's theorem?
The second difference Δ=f(a+h,b+k)f(a+h,b)f(a,b+k)+f(a,b)\Delta = f(a+h,b+k)-f(a+h,b)-f(a,b+k)+f(a,b).
Why does the proof need continuity of the mixed partials?
The MVT points are unknown; continuity lets their limit values become the value at (a,b)(a,b).
Give a function where mixed partials differ at the origin.
f=xy(x2y2)/(x2+y2)f=xy(x^2-y^2)/(x^2+y^2) (and 00 at origin): fxy(0,0)=1fyx(0,0)=1f_{xy}(0,0)=-1\neq f_{yx}(0,0)=1.
For higher derivatives like fxxyf_{xxy}, what determines the value?
Only the count of each variable (here two xx's, one yy), not the order — under smoothness.
Compute fxyf_{xy} for f=x2y3f=x^2y^3.
y(2xy3)=6xy2\partial_y(2xy^3)=6xy^2.
What twice-applied tool drives the proof?
The Mean Value Theorem (once in xx, once in yy).

Connections

Concept Map

differentiate

claims

key hypothesis

equal when continuous

equal when continuous

derived from

symmetric in x and y

group as x-diff of g

then apply

limits to

Function f x y

Mixed partials

f_xy: x then y

f_yx: y then x

Clairaut Schwarz Theorem

f_xy = f_yx

Continuity of mixed partials

Symmetric second difference

Hidden symmetry

MVT in x

MVT in y

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Clairaut's theorem ek bahut hi pyaari aur kaam ki cheez hai. Jab tumhare paas do variable wala function f(x,y)f(x,y) hota hai, toh tum usko pehle xx se differentiate kar sakte ho, phir yy se — ya phir ulta, pehle yy phir xx. Theorem kehta hai: dono ka answer same aayega, yaani fxy=fyxf_{xy} = f_{yx}. Bas ek condition hai — second mixed partials continuous honi chahiye us point ke aas-paas. Continuity hi entry ticket hai.

Intuition kya hai? Socho ek trampoline (surface) hai. fxf_x matlab "East walk karte hue zameen kitni tilt hoti hai." Ab fxyf_{xy} matlab "jab main North shift karta hoon toh wo East-tilt kitna badalta hai" — ye ek twist (marod) hai. Clairaut kehta hai ki agar surface smooth hai (koi sharp crease nahi), toh twist East-phir-North napo ya North-phir-East, same niklega. Practical fayda: exam mein jis order mein algebra aasan ho, usi order mein differentiate karo — answer wahi rahega (Example 2 dekho).

Proof ka asli trick ek symmetric quantity Δ\Delta banana hai — ek rectangle ke chaaron corner ka combination. Ye Δ\Delta xx aur yy mein bilkul symmetric hai. Phir Mean Value Theorem do baar lagao ek order mein toh fxyf_{xy} milta hai, dusre order mein toh fyxf_{yx}. Kyunki Δ\Delta ek hi hai, dono barabar. Limit lete waqt continuity use karke hum points ko exact (a,b)(a,b) pe le jaate hain.

Aur haan, ye theorem hamesha sach nahi hota! Ek famous counterexample hai f=xy(x2y2)/(x2+y2)f = xy(x^2-y^2)/(x^2+y^2) jahan origin pe fxy=1f_{xy}=-1 par fyx=+1f_{yx}=+1 — kyunki wahan mixed partials continuous nahi hain. Isliye yaad rakho: No continuity, no Clairaut. Yehi condition hi pura khel hai.

Go deeper — visual, from zero

Test yourself — Multivariable Calculus

Connections