NETMaths
The bookUnit 1 · Functions of Several Variables12 / 83

Partial derivatives, differentiability, chain rule

Why this is asked: Partials existing ⇏ continuous ⇏ differentiable. The safe implication is: continuous partials ⇒ differentiable. Know xy/(x²+y²) and the equality-of-mixed-partials failure.

In one sentence

In one variable there is one notion of derivative; in two there are four, they are not equivalent, and the exam is built almost entirely on the gaps between them.

Why the exam asks it

Because "differentiable" is the word candidates carry over from one variable unexamined. In one variable, the derivative existing is the whole story — it forces continuity and everything else follows. In two, partial derivatives can exist at a point where the function is not even continuous, and that single sentence generates more wrong options in this topic than any other fact. The paper knows it, and sets it every year.

The idea

Write ff for a real-valued function of (x,y)(x,y) near a point aa.

Partial derivatives are one-variable derivatives along the two axes. fx(a)f_x(a) freezes yy and differentiates in xx. That is two directions out of infinitely many, which is the source of all the trouble.

Directional derivative in the direction uu: the ordinary derivative at 00 of tf(a+tu)t \mapsto f(a + tu). The partials are the special cases u=(1,0)u = (1,0) and u=(0,1)u = (0,1).

Differentiable at aa means something stronger than any collection of directional statements. It asks for a linear map LL with

f(a+h)=f(a)+L(h)+o(h)as h0.f(a + h) = f(a) + L(h) + o(|h|) \quad \text{as } h \to 0.

The error must be small compared with h|h| however hh approaches zero — not along each line separately, but uniformly in direction. When such an LL exists it is unique, it is given by the partials, L(h)=fx(a)h1+fy(a)h2L(h) = f_x(a)h_1 + f_y(a)h_2, and ff is continuous at aa.

partials exist near a and are continuous at a (C¹) differentiable at a every directional derivative exists the partials f_x, f_y exist at a converse fails — a differentiable f may have discontinuous partials converse fails — x²y/(x⁴+y²) has every directional derivative at 0 and is not even continuous converse fails — two directions are not all of them ⇒ continuous at a the two rungs below do not
Four genuinely different conditions. Every arrow runs one way only, and the bottom two rungs do not imply continuity at all.

The ladder is the topic. Read down and every arrow is a theorem; read up and every arrow is a counterexample, and each has a standard witness.

Partials exist, function not continuous

f(x,y)=xyx2+y2,f(0,0)=0.f(x,y) = \frac{xy}{x^2 + y^2}, \qquad f(0,0) = 0.

Along the axes ff is identically 00, so fx(0,0)=fy(0,0)=0f_x(0,0) = f_y(0,0) = 0: both partials exist and are as well-behaved as they could be. But along the diagonal y=xy = x,

f(x,x)=x22x2=12f(x,x) = \frac{x^2}{2x^2} = \frac12

for every x0x \ne 0. So ff takes the value 12\frac12 arbitrarily close to the origin where it is 00: not continuous, let alone differentiable.

The partials looked at two directions. The function misbehaves in a third.

Every directional derivative exists, function still not continuous

The natural repair is to demand all directions, not just two. It is not enough.

f(x,y)=x2yx4+y2,f(0,0)=0.f(x,y) = \frac{x^2 y}{x^4 + y^2}, \qquad f(0,0) = 0.

Along the line y=mxy = mx,

f(x,mx)=mx3x4+m2x2=mxx2+m20,f(x, mx) = \frac{m x^3}{x^4 + m^2x^2} = \frac{mx}{x^2 + m^2} \longrightarrow 0,

and along the yy-axis ff is 00 outright. So every directional derivative at the origin exists and equals 00 — the function looks, from every straight line, exactly like the zero function.

along y = x², f ≡ ½ along every straight line, f → 0 the limit at the origin does not exist — the lines simply never look where it fails
Checking straight lines is not checking the limit. Along every line through the origin this function tends to 0; along the parabola it is constantly ½.

Now approach along the parabola y=x2y = x^2:

f(x,x2)=x2x2x4+x4=12.f(x, x^2) = \frac{x^2 \cdot x^2}{x^4 + x^4} = \frac12 .

Constantly one half, all the way in. The limit does not exist, so ff is not continuous at the origin, and certainly not differentiable there.

This is the example to remember, because it closes the obvious escape route. Straight lines are a one-parameter family of paths; the plane has more paths than that.

What actually guarantees differentiability

The usable sufficient condition:

If fxf_x and fyf_y exist in a neighbourhood of aa and are continuous at aa, then ff is differentiable at aa.

This is the workhorse. In practice every function the paper hands you built from polynomials, exponentials, sines and logarithms is C1C^1 away from its obvious bad points, so it is differentiable there and the only question is what happens at the bad point.

Note that continuity of the partials is sufficient and not necessary. A function can be differentiable at a point where its partials are discontinuous — the one-variable x2sin(1/x)x^2\sin(1/x) dressed up in two variables does it. So C1C^1 is a strictly smaller class than differentiable, and an option asserting the reverse is wrong.

Equality of mixed partials

Schwarz/Clairaut: if fxyf_{xy} and fyxf_{yx} exist near aa and are continuous at aa, they are equal there. The continuity hypothesis is real, and dropping it is a standard question.

f(x,y)=xy(x2y2)x2+y2,f(0,0)=0.f(x,y) = \frac{xy(x^2 - y^2)}{x^2 + y^2}, \qquad f(0,0) = 0.

Working from first principles along the axes gives fx(0,y)=yf_x(0,y) = -y and fy(x,0)=xf_y(x,0) = x. Differentiating those,

fxy(0,0)=1,fyx(0,0)=+1.f_{xy}(0,0) = -1, \qquad f_{yx}(0,0) = +1 .

Both mixed partials exist at the origin and they are different. Nothing is wrong with Schwarz — its hypothesis simply is not met, because fxyf_{xy} is not continuous at the origin.

The chain rule

For ff differentiable at aa and a curve γ\gamma differentiable at t0t_0 with γ(t0)=a\gamma(t_0) = a,

ddtf(γ(t))t0=fx(a)γ1(t0)+fy(a)γ2(t0).\frac{d}{dt}f(\gamma(t)) \Big|_{t_0} = f_x(a)\,\gamma_1'(t_0) + f_y(a)\,\gamma_2'(t_0).

The hypothesis that matters is differentiability of ff, not existence of its partials. With partials alone the formula is false, and xy/(x2+y2)xy/(x^2+y^2) is again the witness: its partials at the origin are 00, the formula would predict derivative 00 along γ(t)=(t,t)\gamma(t) = (t,t), and in fact f(γ(t))=12f(\gamma(t)) = \frac12 is a constant that does not even agree with f(0,0)=0f(0,0) = 0.

Where intuition breaks

"Both partials exist at aa, so ff is continuous at aa." xy/(x2+y2)xy/(x^2+y^2). Tempting because in one variable differentiability does force continuity, and the partials look like the same statement. They are not: each partial sees a single line, and two lines do not control a neighbourhood. This is the topic's central hypothesis dropped.

"All directional derivatives exist, so ff is differentiable." x2y/(x4+y2)x^2y/(x^4+y^2). This is the more sophisticated version of the same error, and it is the one that catches candidates who have already learned the first. Differentiability is not a statement about each direction separately; it is a statement about all directions at once, with a single linear approximation and a uniform error bound.

"ff is differentiable, so fxf_x and fyf_y are continuous." A converse assumed: continuity of the partials is sufficient for differentiability, not necessary. C1C^1 \subsetneq differentiable, in that direction.

"fxy=fyxf_{xy} = f_{yx} always." xy(x2y2)/(x2+y2)xy(x^2-y^2)/(x^2+y^2) gives 1-1 and +1+1 at the origin. Symmetry of second derivatives is a theorem with a continuity hypothesis, not an identity.

"ff is continuous and the partials exist, so ff is differentiable." Still false, and worth separating because it feels like it has patched the hole. Take f(x,y)=x3x2+y2f(x,y) = \dfrac{x^3}{x^2+y^2} with f(0,0)=0f(0,0) = 0. It is continuous at the origin (the quotient is bounded by x|x|), both partials exist there, and it is not differentiable: the candidate linear map would be hh1h \mapsto h_1, and f(h)h1f(h) - h_1 is not o(h)o(|h|) along h1=h2h_1 = h_2.

"ff restricted to every line through aa is continuous, so ff is continuous at aa." The same x2y/(x4+y2)x^2y/(x^4+y^2) again. Restriction to lines is a strictly weaker condition than continuity, in every one of these examples.

The exam's angle

  1. Identify which rung the option is on. Partials, all directions, differentiable, C1C^1 — these are four different claims, and the wrong option almost always swaps two of them.
  2. When asked about a limit at the origin, try lines first, then a parabola. Lines are quick and often settle it. If every line gives the same value, do not conclude the limit exists — try y=x2y = x^2, then y=x3y = x^3 or x=y2x = y^2 as the powers suggest.
  3. Match the degrees. In xayb/(xc+yd)x^ay^b/(x^c + y^d), the path to try is the one making numerator and denominator the same order: for x2y/(x4+y2)x^2y/(x^4+y^2) that is yx2y \sim x^2. This is a reliable way to find the bad path rather than guessing.
  4. For "is it differentiable at the origin", compute the candidate map, then test the error. The candidate is forced: L(h)=fx(0)h1+fy(0)h2L(h) = f_x(0)h_1 + f_y(0)h_2. Then check whether (f(h)f(0)L(h))/h0(f(h) - f(0) - L(h))/|h| \to 0. If it fails along any path, you are done.
  5. Away from the bad point, say C1C^1 and move on. Elementary formulas are C1C^1 wherever the denominator does not vanish, so the whole question lives at the one exceptional point.

The night before

  • Partials exist \Leftarrow all directional derivatives exist \Leftarrow differentiable \Leftarrow C1C^1. Every arrow one way.
  • Differentiable \Rightarrow continuous. Partials existing does not \Rightarrow continuous.
  • xy/(x2+y2)xy/(x^2+y^2): partials exist at 00, not continuous there. Value 12\frac12 on y=xy = x.
  • x2y/(x4+y2)x^2y/(x^4+y^2): every directional derivative exists at 00, not continuous. Value 12\frac12 on y=x2y = x^2.
  • x3/(x2+y2)x^3/(x^2+y^2): continuous at 00, partials exist, still not differentiable.
  • xy(x2y2)/(x2+y2)xy(x^2-y^2)/(x^2+y^2): fxy(0,0)=1f_{xy}(0,0) = -1, fyx(0,0)=+1f_{yx}(0,0) = +1. Schwarz needs continuity of the mixed partial.
  • Sufficient condition to reach for: partials continuous near aa \Rightarrow differentiable at aa. Not necessary.
  • To find a bad path in xayb/(xc+yd)x^ay^b/(x^c+y^d), balance the degrees.

See it move

Partial derivatives can exist while the function is not differentiableinteractivefree

Step 1 / 4The candidate

Let

Is differentiable at the origin?

The trap here

“If all partial derivatives exist at a point then f is continuous there” — false

f(x,y) = xy/(x2+y2),f(0,0)=0/(x^{2}+y^{2}), f(0,0) = 0

Both partials are 0 at the origin, but f = ½ along y = x, so f is not continuous.

More on this →

Check yourself — select all that apply

For real numbers a, b, c, d, e, f, consider the function F:R2R2F : \mathbb{R}^{2} \to \mathbb{R}^{2} given by F(x, y) = (ax + by + c, dx + ey + f). Which of the following statements are true?

Next: Inverse and implicit function theorems, extrema

Create a free account to keep your place and have this feed your study plan.

Open this in the full syllabus view · Unit 1