UNIHIVE

Study Hub UNIPORT MTH 224

MTH 224 · Mathematical Methods 1

Partial derivatives

Differentiating with others held constant, higher partials, and Clairaut's theorem.

Our notes

2 min read

Meaning

A partial derivative measures how a function changes with one variable, while the others are held fixed.

∂f/∂x = lim(h→0) [f(x + h, y) − f(x, y)] ÷ h

Notation: ∂f/∂x, fₓ, or ∂z/∂x.

Geometrically, fₓ is the slope of the surface in the x direction.

How to compute

Treat the other variables as constants.

Example: f(x, y) = x³y² + 5y.

  • fₓ = 3x²y² (5y is a constant here)
  • f_y = 2x³y + 5

Example: f(x, y) = e^(xy) sin y.

  • fₓ = y e^(xy) sin y
  • f_y = x e^(xy) sin y + e^(xy) cos y (product rule)

Numerical check

For f = x³y² + 5y at (1, 2): fₓ = 3(1)(4) = 12.

With a small step: f(1.01, 2) = 1.030301 × 4 + 10 = 14.1212; f(1, 2) = 14. The slope ≈ 0.1212/0.01 = 12.12, which is close to 12. Correct.

Second-order partials

SymbolMeaning
fₓₓ∂²f/∂x²
f_yy∂²f/∂y²
fₓᵧdifferentiate by x, then by y
f_yxdifferentiate by y, then by x

Clairaut's theorem: if these are continuous, fₓᵧ = f_yx.

Example: f = x³y² + 5y.

  • fₓ = 3x²y², so fₓᵧ = 6x²y.
  • f_y = 2x³y + 5, so f_yx = 6x²y.

They match.

Laplace's equation

A function with fₓₓ + f_yy = 0 is called harmonic. It describes steady heat flow and electric potential.

Check: f = x² − y². fₓₓ = 2; f_yy = −2. Sum = 0. So f is harmonic.

Gradient

The gradient collects the partials: ∇f = (fₓ, f_y). It points in the direction of steepest increase.

For f = x² + y² at (1, 2), ∇f = (2, 4).

The rate of change in a unit direction u is ∇f · u. With u = (3/5, 4/5): (2)(3/5) + (4)(4/5) = 6/5 + 16/5 = 22/5.

Check: the maximum rate of change is |∇f| = √20 ≈ 4.47, and 22/5 = 4.4 is below it. That fits.

Applications

  • Economics: ∂Q/∂L is the marginal product of labour. With Q = 10L^(1/2)K^(1/2), ∂Q/∂L = 5K^(1/2)L^(−1/2). At L = 4, K = 9, this is 5 × 3 ÷ 2 = 7.5.
  • Physics: for an ideal gas with P = nRT/V, ∂P/∂T = nR/V, and ∂P/∂V = −nRT/V².
  • Machine learning: training a model follows the gradient of an error function.

Exams usually ask: find first and second partials; verify fₓᵧ = f_yx; show a function satisfies Laplace's equation; find a gradient and directional derivative.

Common mistake: applying the product rule when one factor is a constant for that derivative. In ∂/∂x (x²y³), y³ is a constant, so the answer is simply 2xy³.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 224 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.