A94 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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, h(x,y)=6−12x2−y2 (in meters), with contour lines at equal heights. The dot is where you stand.
  • The two short arrows point in the +x and +y directions from where you stand. The readouts give the slope you'd feel walking each way.
  • Move x0 and y0. 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 y=y0, with the tangent at your spot. Its slope is the readout ∂h/∂x.

Predict

You stand at (1,1) on this hill. Is it steeper to walk in the x direction or in the y direction?

Name it

Partial derivatives

A function of two variables f(x,y) 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 x is the ordinary derivative you get by holding y fixed:

∂f∂x=limh→0⁡f(x+h,y)−f(x,y)h

Geometrically it's the slope of the slice through the surface along the x direction. ∂f/∂y is the same with x 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:

f=x2y3+5x∂f∂x=2xy3+5∂f∂y=3x2y2

In engineering. The voltage around charges is V(x,y,z), and −∂V/∂x is the electric field's x part (lesson 9). A transistor's current depends on two voltages, and its small-signal parameters are partial derivatives: the transconductance gm=∂IC/∂VBE with VCE held fixed.

Second partials work the same way. ∂2f/∂x2 is the bend along x, and the mixed partials ∂2f/∂x∂y and ∂2f/∂y∂x come out equal for any smooth function, which saves work and checks it.

Small changes. Moving a little in both directions changes f by about

Δf≈∂f∂xΔx+∂f∂yΔy

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 f=x2y+3y at (2,1).

Show the solution
  1. Hold y fixed. fx=2xy=4
  2. Hold x fixed. fy=x2+3=7
  3. Read them. Near (2,1), f rises 4 units per unit step in x and 7 per unit step in y.

Answer fx=4 and fy=7 at (2,1).

Worked example

A hill's height is h=100−x2−2y2 meters (x, y in km). How steep is it at (3,2) in each direction?

Show the solution
  1. Slope in x. hx=−2x=−6m per km
  2. Slope in y. hy=−4y=−8m per km
  3. 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 fx, fy and fxy for f=e−xsin⁡y at (0,π/4).

Show the solution
  1. First partials. At (0,π/4): fx=−e−xsin⁡y=−0.707fy=e−xcos⁡y=0.707
  2. Mixed partial one way. Differentiate fx with respect to y: fxy=−e−xcos⁡y=−0.707
  3. Mixed partial the other way. Differentiating fy with respect to x gives the same: fyx=−e−xcos⁡y The mixed partials agree, as they do for every function whose second partials are continuous (Clairaut's theorem).
  4. Check that it's harmonic. fxx+fyy=e−xsin⁡y−e−xsin⁡y=0

Answer fx=−0.707, fy=0.707 and fxy=−0.707 at (0,π/4).

Check

Find ∂∂x(4x2y2).

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 f(x,y)=x2+4y2, what is ∂f/∂y at (−1,−2)?

Check

A circuit's output is Vo=3V1−2V2. If V1 rises by 0.1 V and V2 by 0.3 V, how much does Vo 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 ∂∂xsin⁡(3xy).

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 f=2x2y+xy3 at (1,3).

(a)

What is fx?

(b)

What is fxy?

Check

Take f=e−xsin⁡y.

Step 1

What is fxx?

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°.

Explain why

What does ∂f/∂x measure, and why do we have to hold the other variables fixed to define it?

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.