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

A9 · Lesson 5 · The chain rule

When everything changes at once

A heater's supply voltage is creeping up as a regulator warms, and at the same time its element's resistance is climbing as it heats. Is its power rising or falling, and how fast? The power P=V2/R depends on two quantities that both depend on time. The chain rule for several variables answers it directly: add up how much each input's change contributes, each weighted by how sensitive the output is to that input.

  • A heater's voltage rises at V′ volts per second while its resistance rises at R′ ohms per second, starting from 12 V and 10 Ω.
  • The curve is the power over time. Rising voltage pushes the power up; rising resistance pulls it down.
  • The readouts split the rate of change at t=0 into the two contributions. Find settings where they cancel.

Predict

V = 12 V is rising at 0.5 V/s and R = 10 Ω is rising at 0.2 Ω/s. Is the power rising or falling?

Name it

One path in, several variables

If z=f(x,y) and both x and y depend on t, then

dzdt=∂f∂xdxdt+∂f∂ydydt

Each term is "how sensitive z is to this input" times "how fast this input is changing". With more inputs, add more terms. A tree diagram, with z at the top, the inputs below and t at the bottom, shows which products to add: one per path.

Several variables in, several out

If x=x(s,t) and y=y(s,t), then

∂z∂s=∂f∂x∂x∂s+∂f∂y∂y∂s

and likewise for t. In matrix form it's the product of the two Jacobian matrices (lesson 19).

Implicit differentiation

If F(x,y)=0 defines y as a function of x, differentiating gives Fx+Fydydx=0, so

dydx=−FxFy

For a circle x2+y2=r2, dydx=−xy, the same answer as A5's implicit differentiation, in one line.

Worked example

z=x2y with x=cos⁡t, y=sin⁡t. Find dzdt at t=π/4.

Show the solution
  1. Apply the chain rule. dzdt=2xy(−sin⁡t)+x2cos⁡t
  2. Evaluate at t=π/4. There x=y=0.7071: dzdt=2(0.5)(−0.7071)+0.5(0.7071)=−0.7071+0.3536=−0.354

Answer dzdt=−0.354 at t=π/4.

Worked example

A current I=V/R has V = 5 V rising at 0.1 V/s and R = 100 Ω rising at 2 Ω/s. How fast is I changing?

Show the solution
  1. Differentiate through both variables. dIdt=1RV′−VR2R′
  2. Put in the numbers. dIdt=0.1100−510000(2)=0.001−0.001=0
  3. Read the result. The two effects cancel exactly: the current holds steady while both change.

Answer I isn't changing at all: dI/dt=0.

Worked example

A resistor's power is P=I2R. With I = 2 A falling at 0.1 A/s and R = 10 Ω rising at 0.5 Ω/s, how fast is P changing?

Show the solution
  1. Chain rule through both variables. dPdt=∂P∂IdIdt+∂P∂RdRdt=2IRdIdt+I2dRdt
  2. Put in the numbers. dPdt=2×2×10×(−0.1)+4×0.5=−4+2=−2W/s
  3. Read the result. The falling current wins: power drops at 2 W each second even though the resistance is rising.

Answer P is falling at 2 W/s.

Check

z=xy. At a moment when x = 2, y = 5, x˙ = −2 and y˙ = 4, what is z˙?

Check

A heater has V = 12 V rising at 1 V/s and R = 10 Ω rising at 2 Ω/s. How fast is P=V2/R changing?

Write units the way you normally would: 1.5 W/s, 1500 mW/s and 0.0015 kW/s are the same answer.

Check

On the circle x2+y2=r2, what is dydx at (3,4)?

Check

f(x,y)=x2+3xy with x=2t, y=t2. What is dfdt at t = 2?

Check

z=xy with x=s+t, y=s−t. What is ∂z∂s?

Check

I=V/R with V = 5 V rising at 0.5 V/s and R = 100 Ω rising at 10 Ω/s. How fast is I changing?

Write units the way you normally would: 1.5 mA/s, 1500 µA/s and 0.0015 A/s are the same answer.

Check

P=I2R with I = 1 A changing at 0.2 A/s and R = 10 Ω changing at 2 Ω/s.

(a)

How fast is P changing?

Write units the way you normally would: 1.5 W/s, 1500 mW/s and 0.0015 kW/s are the same answer.

Check

z=x2y with x=cos⁡t and y=sin⁡t.

Step 1

What is ∂z∂xdxdt?

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

Why does the multivariable chain rule add the contributions from each input?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.