MTH 320 · Real Analysis II
Our notes
2 min readPartial derivatives
∂f/∂xᵢ (a) = lim (h → 0) [f(a + h eᵢ) − f(a)]/h, the rate of change along the i-th axis with the other variables fixed.
Directional derivative
For a unit vector u: D_u f(a) = lim (h → 0) [f(a + hu) − f(a)]/h.
If f is differentiable, D_u f(a) = ∇f(a) · u, where ∇f = (∂f/∂x₁, ..., ∂f/∂xₙ) is the gradient. ∇f points in the direction of fastest increase, with rate ‖∇f‖.
Differentiability (the total derivative)
f: ℝⁿ → ℝᵐ is differentiable at a if there is a linear map Df(a) (an m × n matrix) with
f(a + h) = f(a) + Df(a)h + r(h), where ‖r(h)‖/‖h‖ → 0 as h → 0.
Df(a) is the Jacobian matrix of partial derivatives ∂fᵢ/∂xⱼ. Differentiability means that f is well approximated by a linear map near a.
Relations between the ideas
- Differentiable ⇒ continuous, and all partial and directional derivatives exist.
- Partial derivatives existing does not imply differentiability or even continuity. Example: f(x, y) = xy/(x² + y²), f(0, 0) = 0, has ∂f/∂x(0, 0) = ∂f/∂y(0, 0) = 0 (f is 0 on both axes), but is not continuous at 0.
- Sufficient condition: if all partial derivatives exist near a and are continuous at a, f is differentiable at a (f is of class C¹).
Worked example
f(x, y) = x²y + e^(xy) at (1, 0).
- ∂f/∂x = 2xy + y e^(xy) = 0 at (1, 0).
- ∂f/∂y = x² + x e^(xy) = 1 + 1 = 2 at (1, 0).
So ∇f(1, 0) = (0, 2). In the direction u = (3/5, 4/5): D_u f = 0 · 3/5 + 2 · 4/5 = 8/5. The fastest rate of increase is ‖∇f‖ = 2, in the direction (0, 1).
The chain rule
If g is differentiable at a and f at g(a), then f ∘ g is differentiable at a and
D(f ∘ g)(a) = Df(g(a)) · Dg(a) (matrix product).
For z = f(x, y) with x = x(t), y = y(t): dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt).
Worked example (chain rule)
z = x² + y², x = r cos θ, y = r sin θ.
∂z/∂r = 2x cos θ + 2y sin θ = 2r(cos²θ + sin²θ) = 2r, and ∂z/∂θ = 2x(−r sin θ) + 2y(r cos θ) = 0. Check: z = r², so ∂z/∂r = 2r and ∂z/∂θ = 0.
Exams usually ask
- Define differentiability of a function of several variables and show that it implies continuity.
- Show that a function has partial derivatives at a point but is not differentiable there.
Common mistake
Treating "the partial derivatives exist" as "the function is differentiable". In several variables this is false; continuity of the partials is the usual sufficient condition.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.