A9 · Lesson 4 · Partial derivatives
Slopes on a surface, one direction at a time
The voltage in a circuit lives on a few nodes, but the voltage in space around a charged wire is different at every point: it depends on where you stand, in two or three directions at once. A function of several variables is a landscape, and asking "how steep is it?" gets a different answer depending on which way you face. Partial derivatives answer it one direction at a time.
Play
- The map shows a hill, (in meters), with contour lines at equal heights. The dot is where you stand.
- The two short arrows point in the and directions from where you stand. The readouts give the slope you'd feel walking each way.
- Move and . Where are the contour lines close together? What does that mean about the slope there?
- The graph below is a slice through the hill along the line , with the tangent at your spot. Its slope is the readout .
Predict
You stand at on this hill. Is it steeper to walk in the direction or in the direction?
The direction. there, but , twice as steep. The hill falls off faster in , which you can see on the map: the contour lines are closer together in the direction.
Name it
Partial derivatives
A function of two variables gives a number at every point of a plane: a height, a temperature, a voltage. You can draw it as a surface, or as a map with contour lines joining points of equal value (the lines on a hiking map). Where contours crowd together, the function changes quickly.
The partial derivative with respect to is the ordinary derivative you get by holding fixed:
Geometrically it's the slope of the slice through the surface along the direction. is the same with held fixed. The curly is a reminder that the other variables are frozen.
Working them out uses the rules from A5, treating every other variable as a constant:
In engineering. The voltage around charges is , and is the electric field's part (lesson 9). A transistor's current depends on two voltages, and its small-signal parameters are partial derivatives: the transconductance with held fixed.
Second partials work the same way. is the bend along , and the mixed partials and come out equal for any smooth function, which saves work and checks it.
Small changes. Moving a little in both directions changes by about
the two-variable version of A6's linearization. It's how tolerances in two components combine into the tolerance of a result.
Worked example
Find the partial derivatives of at .
Show the solution
- Hold fixed.
- Hold fixed.
- Read them. Near , rises 4 units per unit step in and 7 per unit step in .
Answer and at .
Worked example
A hill's height is meters (, in km). How steep is it at in each direction?
Show the solution
- Slope in .
- Slope in .
- Read them as directions. Walking east you descend 6 m per km; walking north, 8 m per km.
Answer the hill drops 6 m per km going east and 8 m per km going north.
Worked example
Find , and for at .
Show the solution
- First partials. At :
- Mixed partial one way. Differentiate with respect to :
- Mixed partial the other way. Differentiating with respect to gives the same: The mixed partials agree, as they do for every function whose second partials are continuous (Clairaut's theorem).
- Check that it's harmonic.
Answer , and at .
Check
Find .
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Check
For , what is at ?
Check
A circuit's output is . If rises by 0.1 V and by 0.3 V, how much does change?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
On a contour map, the lines are packed tightly together in one area. What does that tell you?
Check
Find .
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Check
Take at .
(a)
What is ?
(b)
What is ?
Check
Take .
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Explain why
What does measure, and why do we have to hold the other variables fixed to define it?
It measures how fast changes as you move in the direction only: the slope of the slice through the surface along . A function of several variables has a different slope in every direction you could move, so "the slope" isn't one number. Fixing all the other variables picks out a single direction, along , and turns into an ordinary function of one variable whose derivative we already know how to take.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.