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

A5 · Lesson 14 · The chain rule

Rates passed along a chain

A thermistor's resistance depends on temperature, the voltage across it depends on its resistance, and the temperature itself is rising with time. How fast is the voltage changing? Each link has its own rate, and the chain rule says the overall rate is their product. This one rule handles every nested formula in engineering, from e−t/τ to sin⁡(ωt+φ) to the power dissipated in a part whose resistance drifts with its own heat.

  • The curve is y=sin⁡(ωt) and the dashed line is its tangent at t0.
  • Double ω. How does the slope at the same point in the cycle change?
  • Compare the slope readout with the chain rule's prediction, ωcos⁡(ωt0).

Predict

A voltage is v=5sin⁡(2t). What is its largest rate of change, in volts per unit time?

Name it

The rule, two ways

If y=f(u) and u=g(x), then

dydx=dydu⋅dudxor(f(g(x)))′=f′(g(x))g′(x)

The first form (Leibniz's) reads like canceling du, which isn't literally true but always gives the right answer and keeps the units straight: (V/Ω) × (Ω/°C) × (°C/s) = V/s.

Longer chains multiply more rates: ddxf(g(h(x)))=f′(g(h(x)))g′(h(x))h′(x). Work from the outside in, differentiating each layer and leaving its inside alone.

Patterns worth recognizing

FunctionDerivative
(g(x))nngn−1g′
eg(x)egg′
sin⁡(g(x)), cos⁡(g(x))cos⁡g⋅g′, −sin⁡g⋅g′
Asin⁡(ωt+φ)Aωcos⁡(ωt+φ)
V0e−t/τ−V0τe−t/τ
g(x)g′2g

The last two lines are the reason every rate in this course carries a ω or a 1/τ: the inside of the function sets the time scale.

Chains of physical quantities

When a quantity depends on another that depends on time, its rate of change is a chain:

dPdt=dPdR⋅dRdT⋅dTdt

Each factor is a sensitivity you can look up or measure separately, which is how engineers budget drift: the temperature coefficient times the heating rate times the circuit's sensitivity.

Worked example

Differentiate y=e−3tsin⁡(5t).

Show the solution
  1. Product rule. Each factor needs the chain rule: y′=(e−3t)′sin⁡5t+e−3t(sin⁡5t)′
  2. Differentiate each factor. y′=−3e−3tsin⁡5t+5e−3tcos⁡5t
  3. Factor out the exponential. y′=e−3t(5cos⁡5t−3sin⁡5t)
  4. Where it shows up. This is the shape of every damped oscillation (A3's est), so its derivative is the current through a capacitor in a ringing circuit.

Answer y′=e−3t(5cos⁡5t−3sin⁡5t).

Worked example

A 1 kΩ thermistor-like part changes resistance at −40 Ω/°C, and it's warming at 0.5 °C/s. It carries a constant 2 mA. How fast is its voltage changing?

Show the solution
  1. Voltage per ohm. v=IR, so dvdR=I=0.002V/Ω
  2. Chain the rates. dvdt=dvdR⋅dRdT⋅dTdt=0.002×(−40)×0.5=−0.04V/s
  3. Check the units. They multiply through: V/Ω × Ω/°C × °C/s = V/s.

Answer the voltage falls at 0.04 V/s, 40 mV every second.

Worked example

A sensor's output is V=0.01T2 volts, and its temperature follows T(t)=20+5sin⁡(0.1t) °C, with t in seconds. How fast is V changing at t=0?

Show the solution
  1. Chain rule. dVdt=dVdT⋅dTdt
  2. Volts per degree. At t=0, T=20, so dVdT=0.02T=0.4V/°C
  3. Degrees per second. dTdt=0.5cos⁡0=0.5°C/s
  4. Multiply. Each link in the chain multiplies: volts per degree times degrees per second. dVdt=0.4×0.5=0.2V/s

Answer at t=0, V is rising at 0.2 V/s.

Check

What is the largest rate of change of 5sin⁡(100t), in units per second?

Check

Differentiate e3x2.

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

Differentiate sin3⁡(2x), meaning (sin⁡(2x))3.

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

A part carries a constant 2 mA. Its resistance changes at −40 Ω/°C and it warms at 0.5 °C/s. How fast is its voltage changing, in V/s?

Write units the way you normally would: 1.5 V/s, 1500 mV/s and 0.0015 kV/s are the same answer.

Check

v=5e−t/2 volts, with t in ms. What is dv/dt at t = 5 ms, in V/ms?

Write units the way you normally would: 1.5 V/ms, 1500 mV/ms and 0.0015 kV/ms are the same answer.

Check

Differentiate these at x = 1.

(a)

e−0.5x2

(b)

(2x+1)5

(c)

ln⁡(1+2x2)

Check

Differentiate a decaying oscillation, v=Ve−t/τsin⁡(ωt).

Step 1

What is the derivative of the envelope Ve−t/τ?

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 derivative of sin⁡(ωt) get bigger when ω gets bigger, even though the sine's height stays the same?

Practice

Keep practicing

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