Partial Derivatives

Stage 21 of 23 Strand 2 of 2 11 lessons

11 illustrated lessons, each teaching the why before the how.

Start with The Partial Derivative in the app →
Revise Partial Derivatives with flashcards →

Jump to a lesson

The Partial Derivative

Hold every variable but one still.

Hold every variable but one constant, and differentiate as usual

Read the full lesson →

A surface has no single slope: it depends on which direction you set off walking.

y held constant

Fix y and walk only in the x direction. That slice is an ordinary curve again.

ywaits
, differentiated in x — y is treated as a constant

That slope is the partial derivative ∂f/∂x: differentiate in x, holding y constant.

Now you

4x + y
take of it

f = 4x + y. What is ∂f/∂x?

2x + y
take of it

f = 2x + y. What is ∂f/∂x?

Computing Partial Derivatives

Every ordinary rule still applies.

Every ordinary rule still applies, with the other variables treated as constants

Read the full lesson →

x2ywaits
2xypower rule on x, with y held constant

Differentiate with respect to x: y is held constant and stays as a factor.

waits
y
now y is the variable and is held constant

Differentiate with respect to y: x² is the constant factor, and y differentiates to 1.

a term with no xto that derivative it is a constant
vanishes under

A term that does not contain the variable you differentiate with respect to is a constant, so it vanishes.

Now you

one variable varies, the other is held constant

f = x² + 6y. What is ∂f/∂x?

one variable varies, the other is held constant

f = 3x²y. What is ∂f/∂y?

Higher Partial Derivatives

Differentiate again, in either variable.

Partial derivatives can be differentiated again, in either variable

Read the full lesson →

2xy
gave — both variables are still there

A partial derivative is itself a function of both variables, so it can be differentiated again.

2xywaits
differentiate in x again

Differentiating twice in x measures how the slope in x changes as you move in x.

2xwaitsy
then once in y — a different variable is held constant each time

Differentiate once in each and you measure how the slope in x changes as you move in y.

Now you

take of it

f = 4x³. What is ∂²f/∂x²?

take of it

f = 3x³. What is ∂²f/∂x²?

The Mixed Derivative Theorem

x then y or y then x: the same answer.

For a well-behaved function the order of mixed partial differentiation makes no difference

Read the full lesson →

fx first, then y
y first, then x
two routes, one destination
the same function

Differentiate in x then y, or in y then x, and the answer comes out the same.

x first
then
y first — the same result
then

Try it: 2xy³ differentiated in y, and 3x²y² differentiated in x, both give 6xy².

if the mixed partials are continuousand they are, for nearly every surface you meetthe order does not matter

It holds whenever the mixed partials are continuous, which is nearly always.

Now you

differentiate in y, then in x

f = x³y³. What is ∂²f/∂x∂y?

f

f = x²y³. Is ∂²f/∂x∂y equal to ∂²f/∂y∂x?

The Chain Rule for Partial Derivatives

Both variables depend on time, so both count.

When both variables depend on time, each one contributes its own term to the change

Read the full lesson →

x and y both moveone contribution from each variablez changes for two reasons

If x and y both change with time, z changes because of both of them at once.

via x
via y

Add one term per variable: the partial derivative of z, times how fast that variable changes.

one variablethere is no second termthe ordinary chain rule

With only one variable this reduces to the ordinary chain rule.

Now you

what does this come to?

Each term multiplies ∂z/∂x by

what does this come to?

dz/dt =

The Gradient Vector

Collecting the partial derivatives into a vector.

The two partial derivatives form a vector that points straight uphill

Read the full lesson →

xy

Put the two partial derivatives side by side and you have a vector at every point.

4812∇f

That gradient vector points in the steepest uphill direction from where you stand.

4812

Its length is how steep that climb is, so the gradient carries direction and steepness.

Now you

6x + 2y
what is of this?

f = 6x + 2y. What is ∇f?

3x + 5y
what is of this?

f = 3x + 5y. What is ∇f?

Directional Derivatives

Project the gradient onto your direction.

The slope in any direction is the gradient projected onto that direction

Read the full lesson →

4812∇fu

Walking sideways across a hill is gentler than walking straight up it.

a step u = (a, b), one unit longone part in each directiona of it in x, b of it in yeach part is multiplied by its own partial derivative
slope
that sum is exactly the dot product
slope

Step a in x and b in y: each part is multiplied by its own partial derivative, and the two add.

4812∇fu∇f · u

The dot product of the gradient with a unit vector gives the slope in that direction.

4812∇fu0

At right angles to the gradient the slope is zero — that is why contours are level.

Now you

4812∇fu∇f · u

∇f = (10, 5) and the unit step u = (0.6, 0.8). What is the slope along u?

4812∇fu∇f · u

∇f = (5, 20) and the unit step u = (0.8, 0.6). What is the slope along u?

Tangent Planes

The flat plane fitted at one point.

A surface has a tangent plane where a curve has a tangent line

Read the full lesson →

xy

A curve is approximated near a point by its tangent line.

A surface is approximated near a point by a flat plane resting on it.

the two partialsone tilt in each direction fixes the planefix how the plane tilts

The two partial derivatives give the tilt in each direction, and that fixes the plane.

Now you

A tangent plane is fixed by

A tangent plane is built at

Stationary Points of a Surface

Flat only when both partials vanish.

A stationary point is a place where both partial derivatives are zero

Read the full lesson →

Level means level in both directions at once, so both partial derivatives must be zero.

bowl or domeflat at the bottom, or flat at the topa minimum or a maximum

That can be the bottom of a bowl, the top of a dome — or neither of them.

a saddleflat as well, and neither of the twoup one way, down the other

A saddle is level too, yet it rises one way and falls the other: neither a maximum nor a minimum.

Now you

xy

A surface is stationary where

xy

Rising in x and falling in y at a level point is a

Lagrange Multipliers

At the constrained best, gradients line up.

At a constrained maximum or minimum the two gradient vectors must line up

Read the full lesson →

g = k

Find the smallest value of f, but only along a fixed path — a constraint.

g = k∇f∇g

If the two gradients pointed different ways, you could still improve f by sliding along the path.

g = k∇f∇g

So at the best point the two gradients must be parallel, differing only by a multiplier λ.

Now you

g = k

At a constrained optimum, ∇f and ∇g are

g = k

The λ in ∇f = λ∇g is called the

The Volume Under a Surface

Stack the slices twice.

Integrating the slice areas a second time stacks them into the volume under a surface

Read the full lesson →

one slice

Under a curve the slices made an area. Under a surface the slices make a volume.

cut at a fixed ythe slice face is an area under a curve

Cut the solid at a fixed y: the face is an area under a curve, A(y) = ∫ f(x, y) dx.

stack the slice areas along y
an integral of integrals

Stack the slice areas along y: V = ∫ A(y) dy — an integral of integrals, two ∫ signs.

the inner : ordinary integration in x
one more integration, this time in y
the outer : integrate again, in y

The inner integral is ordinary integration in x, and the outer one repeats it in y.

Now you

V = ?write the volume as an integral

The double integral is written as

y fixed

Each fixed-y slice of the solid is

Continue your journey in the app — save your progress