---
title: Related rates
heading: When one quantity changes, how fast does the other?
eyebrow: A5 · Lesson 20 · Related rates
xp: 40
---

::: hook
A balloon-shaped capacitor? Not quite, but close: the plates of a variable capacitor are being pulled apart at a steady speed, and you want to know how fast the capacitance is falling. Or a cooling fan speeds up and you want the rate at which the airflow, and so the temperature, changes. Whenever two quantities are tied by an equation and one of them is changing in time, differentiating the equation with respect to time links their rates. That's the whole method.
:::

::: play
- A parallel-plate capacitor's plates separate at speed $v$. The curve is $C = \varepsilon_0 A/d$ against the gap $d$.
- Move the gap. At which gaps does the capacitance fall fastest for the same separation speed?
- Compare the readout of $dC/dt$ with $-\varepsilon_0 A v/d^2$.
:::
:::

```sim plot
view: graph
x: d = 0.1..2 mm
y: C = 0..100 pF
slider: A = 1..10 = 4 cm²
slider: d0 = 0.1..2 step 0.01 = 0.5 mm
slider: v = 0.1..2 step 0.1 = 1 mm/s
plot: 8.854e-12*A*1e-4/(d*1e-3)*1e12 | label: C(d)
point: d0, 8.854e-12*A*1e-4/(d0*1e-3)*1e12 | label: gap now
readout: C = 8.854e-12*A*1e-4/(d0*1e-3)*1e12 pF | digits: 4
readout: dC/dt (pF/s) = -8.854e-12*A*1e-4*v*1e-3/(d0*1e-3)^2*1e12 | digits: 4
```

::: predict
## The plates separate at a constant speed. Compared with when the gap is 1 mm, how fast does the capacitance fall when the gap is 0.5 mm?

- [ ] Half as fast
- [ ] Twice as fast
- [x] Four times as fast
- [ ] At the same rate

::: reveal
Four times as fast. $C = \varepsilon_0 A/d$, so $\frac{dC}{dt} = -\frac{\varepsilon_0 A}{d^2}\frac{dd}{dt}$. Halving the gap quadruples $1/d^2$. Capacitance changes most quickly when the plates are close, which is why capacitive sensors are most sensitive at small gaps.
:::
:::

::: nameit
## The method

1. **Draw and name** the quantities, marking which are changing in time.
2. **Write the equation** that ties them together (a physical law or geometry).
3. **Differentiate both sides with respect to time**, using the chain rule on every quantity that changes: $\frac{d}{dt}d^2 = 2d\,\frac{dd}{dt}$.
4. **Substitute** the values at the instant you care about, only after differentiating, and solve for the unknown rate.

Step 4's order matters. Substitute a changing quantity's value before differentiating and you've treated it as a constant, which throws away exactly the rate you want.

## Examples of linked quantities

| Relation | Rates |
|---|---|
| $P = V^2/R$, $R$ fixed | $\dot P = \frac{2V}{R}\dot V$ |
| $P = VI$ | $\dot P = \dot V I + V\dot I$ |
| $C = \varepsilon A/d$ | $\dot C = -\frac{\varepsilon A}{d^2}\dot d$ |
| $Q = CV$, both changing | $\dot Q = \dot C V + C\dot V$ |
| $x^2 + y^2 = r^2$ (a ladder, a radar range) | $x\dot x + y\dot y = r\dot r$ |

The dot means a rate in time: $\dot V = dV/dt$.

The last row of $Q = CV$ is the physics behind a capacitor microphone: with the charge held fixed, a changing capacitance must change the voltage, $\dot V = -\frac{V}{C}\dot C$.
:::

::: example
## A 4 cm² capacitor's plates are 0.5 mm apart and separating at 1 mm/s. How fast is its capacitance changing?

::: solution
1. **Differentiate $C = \varepsilon_0 A/d$.**
   $$\frac{dC}{dt} = -\frac{\varepsilon_0 A}{d^2}\frac{dd}{dt}$$
2. **Put in the numbers.**
   $$\begin{aligned} \frac{dC}{dt} &= -\frac{8.854 \times 10^{-12}}{(5 \times 10^{-4})^2} \\ &\quad \times (4 \times 10^{-4})(10^{-3}) \\ &= -1.42 \times 10^{-11}\ \text{F/s} \end{aligned}$$
   or −14.2 pF/s.
3. **As a fraction of $C$.** At that instant $C = 7.08$ pF, so it's falling at 200% per second.
4. **Check.** The gap is growing at 200% per second too, since $C \propto 1/d$.

**Answer:** the capacitance is falling at 14.2 pF/s, or 200% per second.
:::
:::

::: example
## A capacitor holds a fixed charge at 100 V. Its capacitance falls at 2% per second. How fast does its voltage change?

::: solution
1. **Differentiate $Q = CV$ with $Q$ fixed.**
   $$0 = \dot C V + C\dot V$$
2. **Solve for $\dot V$.**
   $$\begin{aligned} \dot V &= -\frac{\dot C}{C}V \\ &= -(-0.02)(100) \\ &= +2\ \text{V/s} \end{aligned}$$
3. **What it means.** The voltage rises 2% per second as the capacitance falls 2%. With the charge trapped, pulling the plates apart does work that shows up as voltage: the principle of the condenser microphone and of electrostatic generators.

**Answer:** the voltage rises at 2 V/s.
:::
:::

::: example
## A 10 Ω resistor carries a steady 2 A. Its resistance rises as $R = R_0(1 + 0.0039\,\Delta T)$ while it warms at 0.5 °C/s. How fast is its power rising?

::: solution
1. **Differentiate $P = I^2R$ with $I$ fixed.**
   $$\begin{aligned} \frac{dP}{dt} &= I^2\frac{dR}{dt} \\ &= I^2R_0 \times 0.0039 \times \frac{dT}{dt} \end{aligned}$$
2. **Put in the numbers.**
   $$\begin{aligned} \frac{dP}{dt} &= 4 \times 10 \times 0.0039 \times 0.5 \\ &= 0.078\ \text{W/s} \end{aligned}$$
3. **What it means.** With the current fixed, a rising resistance means rising power, which heats it further.

**Answer:** the power is rising at 0.078 W/s.
:::
:::

::: check
given: A = 1 | 4 | 10; d = 0.2 | 0.5 | 1; s = 0.5 | 2
answer: -8.854e-12*A*1e-4*s*1e-3/(d*1e-3)^2
unit: F/s

## A parallel-plate capacitor of area {A} cm² has a gap of {d} mm, growing at {s} mm/s. How fast is its capacitance changing, in F/s?

::: right
Right. $-\frac{\varepsilon_0 A}{d^2}\frac{dd}{dt}$ = {answer}.
:::

::: misses
- [8.854e-12*A*1e-4*s*1e-3/(d*1e-3)^2] The capacitance falls as the gap grows: the rate is negative.
- [-8.854e-12*A*1e-4*s*1e-3/(d*1e-3)] Differentiate $1/d$: it gives $-1/d^2$.
- [any] Not yet. Differentiate $C = \varepsilon_0 A/d$ with respect to time, with the chain rule on $d$.
:::
:::

::: check
given: V = 5 | 12 | 24; R = 10 | 47; dV = 0.1 | 0.5
answer: 2*V*dV/R
unit: W/s

## A resistor of {R} Ω has {V} V across it, rising at {dV} V/s. How fast is its power rising?

::: right
Right. $\dot P = \frac{2V}{R}\dot V$ = {answer}.
:::

::: misses
- [V*dV/R] $V^2$ differentiates to $2V\dot V$.
- [dV^2/R] Differentiate first, then substitute: $\frac{d}{dt}V^2 = 2V\dot V$.
- [any] Not yet. Differentiate $P = V^2/R$ with respect to time.
:::
:::

::: check
given: V = 50 | 200 | 500; r = 1 | 2 | 5
answer: V*r/100
unit: V/s

## A capacitor holds fixed charge at {V} V. Its capacitance falls at {r}% per second. How fast does its voltage change?

::: right
Right. $\dot V = -\frac{\dot C}{C}V$, and $\dot C/C$ = −{r}% per second, so $\dot V$ = +{answer}.
:::

::: misses
- [-V*r/100] The capacitance is falling, so $-\dot C/C$ is positive: the voltage rises.
- [r] That's the percentage rate. Multiply the fraction by the voltage.
- [any] Not yet. Differentiate $Q = CV$ with $Q$ constant.
:::
:::

::: check
given: x = 3 | 6; y = 4 | 8; vx = 1 | 2; vy = -1 | 3
answer: (x*vx + y*vy)/sqrt(x^2 + y^2)
tolerance: 0.5%

## A target is at $x$ = {x} km, $y$ = {y} km from a radar and moving with $\dot x$ = {vx} km/s and $\dot y$ = {vy} km/s. How fast is its range $r$ changing?

::: right
Right. $r\dot r = x\dot x + y\dot y$, so $\dot r$ = {answer} km/s.
:::

::: misses
- [vx + vy] The range combines the motions weighted by direction: $\dot r = (x\dot x + y\dot y)/r$.
- [x*vx + y*vy] Divide by $r = \sqrt{x^2 + y^2}$.
- [any] Not yet. Differentiate $x^2 + y^2 = r^2$ with respect to time.
:::
:::

::: check
kind: parts
given: V = 5 | 12; R = 10 | 100; r = 1 | 5

## A resistor's value $R$ = {R} Ω is rising at {r}% per second.

::: part
answer: -V^2/R*r/100
unit: W/s
tolerance: 0.5%

### Across a fixed {V} V, how fast does its power change, in watts per second?

::: misses
- [V^2/R*r/100] With the voltage fixed, more resistance means less power.
- [any] $P = V^2/R$, so $\frac{dP}{dt} = -\frac{V^2}{R^2}\frac{dR}{dt}$.
:::
:::

::: part
answer: V^2/R*r/100
unit: W
tolerance: 0.5%

### If instead a fixed current of $\given{V}/\given{R}$ A flows, how fast does its power change?

::: misses
- [-V^2/R*r/100] With the current fixed, more resistance means more power.
- [any] $P = I^2R$, so $\frac{dP}{dt} = I^2\frac{dR}{dt}$.
:::
:::

::: part
answer: -V/R*r/100
unit: A/s
tolerance: 0.5%

### Back on the fixed voltage, how fast does its current change, in amps per second?

::: misses
- [any] $I = V/R$, so $\frac{dI}{dt} = -\frac{V}{R^2}\frac{dR}{dt}$.
:::
:::
:::

::: check
kind: derivation
vars: V = 1..20, R = 1..100, dR = -1..1

## A resistor across a fixed voltage $V$ changes at $dR/dt$. Relate the power's rate of change to it.

::: step
answer: -V^2/R^2*dR

### Differentiate $P = V^2/R$ with respect to time, writing $dR/dt$ as dR.
:::

::: step
answer: -dR/R

### Divide by $P$ to get the relative rate, $\frac{dP/dt}{P}$.
:::

::: right
Right. On a fixed voltage, the power falls by the same percentage per second as the resistance rises.
:::
:::

::: explain
## Why must you differentiate the equation before substituting the numbers at the instant you care about?

::: model
Substituting a value for a quantity that's changing turns it into a constant in the equation. Differentiating after that would give zero for its rate, losing exactly the information you're after. Differentiating first keeps every quantity's rate in the equation; only then is it safe to plug in the values they have at that particular instant.
:::
:::

::: practice

::: check
given: V = 3 | 9; I = 0.5 | 2; dV = 0.2 | 1; dI = -0.1 | 0.3
answer: dV*I + V*dI
unit: W/s

## A device has {V} V and {I} A, with $\dot V$ = {dV} V/s and $\dot I$ = {dI} A/s. How fast is $P = VI$ changing?

::: misses
- [dV*dI] Product rule: $\dot V I + V\dot I$.
- [any] $\dot P = \dot V I + V\dot I$.
:::
:::

::: check
given: C = 10 | 100; V = 5 | 20; dC = 1 | -2; dV = 0.5 | -1
answer: dC*V + C*dV
unit: nC/s

## $C$ = {C} nF with $\dot C$ = {dC} nF/s, and $V$ = {V} V with $\dot V$ = {dV} V/s. How fast is $Q = CV$ changing, in nC/s?

::: misses
- [C*dV] Both are changing: add $\dot C V$.
- [any] $\dot Q = \dot C V + C\dot V$.
:::
:::
:::
