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 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 volts per second while its resistance rises at 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 into the two contributions. Find settings where they cancel.
Predict
= 12 V is rising at 0.5 V/s and = 10 Ω is rising at 0.2 Ω/s. Is the power rising or falling?
Rising, at 0.912 W/s. The voltage's contribution is W/s; the resistance's is W/s. Add them.
Name it
One path in, several variables
If and both and depend on , then
Each term is "how sensitive is to this input" times "how fast this input is changing". With more inputs, add more terms. A tree diagram, with at the top, the inputs below and at the bottom, shows which products to add: one per path.
Several variables in, several out
If and , then
and likewise for . In matrix form it's the product of the two Jacobian matrices (lesson 19).
Implicit differentiation
If defines as a function of , differentiating gives , so
For a circle , , the same answer as A5's implicit differentiation, in one line.
Worked example
with , . Find at .
Show the solution
- Apply the chain rule.
- Evaluate at . There :
Answer at .
Worked example
A current has = 5 V rising at 0.1 V/s and = 100 Ω rising at 2 Ω/s. How fast is changing?
Show the solution
- Differentiate through both variables.
- Put in the numbers.
- Read the result. The two effects cancel exactly: the current holds steady while both change.
Answer isn't changing at all: .
Worked example
A resistor's power is . With = 2 A falling at 0.1 A/s and = 10 Ω rising at 0.5 Ω/s, how fast is changing?
Show the solution
- Chain rule through both variables.
- Put in the numbers.
- Read the result. The falling current wins: power drops at 2 W each second even though the resistance is rising.
Answer is falling at 2 W/s.
Check
. At a moment when = 2, = 5, = −2 and = 4, what is ?
Check
A heater has = 12 V rising at 1 V/s and = 10 Ω rising at 2 Ω/s. How fast is 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 , what is at ?
Check
with , . What is at = 2?
Check
with , . What is ?
Check
with = 5 V rising at 0.5 V/s and = 100 Ω rising at 10 Ω/s. How fast is 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
with = 1 A changing at 0.2 A/s and = 10 Ω changing at 2 Ω/s.
(a)
How fast is 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
with and .
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
Why does the multivariable chain rule add the contributions from each input?
Over a short time , each input changes by a small amount, and to first order the output responds to each change as if the other input were held fixed: . That's the linear approximation of near the current point, a tangent plane. Dividing by gives . The small changes simply add because, close enough, a smooth function is linear.
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.