Physics multiplies things together all the time: mass times velocity, pressure times volume, a wave times something that makes it fade. When both of them are changing, you need the rate at which the product changes. The obvious guess is to multiply the two rates, and it's wrong. \(x \times x\) is \(x^2\), whose derivative is \(2x\), not \(1 \times 1\). The right answer comes from a rectangle.
- Drag the amber corner out. The area gains three pieces: an amber strip down the side, a blue strip along the top, and a white corner where the two meet.
- Press "Shrink the nudge" and watch the bar under the picture. The white corner's share falls away to nothing. Meanwhile "Change ÷ nudge" in the readout closes in on the last number.
- You started with \(x^2 \times x\), which is \(x^3\). Its derivative should be \(3x^2\). Work that out for the \(x\) on the slider and compare it with the readout.
- Choose \(x \times e^{-x}\). One side grows while the other shrinks, so a slice is lost off the top, drawn with slanted lines. Press "Shrink the nudge", then drag the white corner to find where the gain and the loss cancel.
The idea
Let \(x\) grow by a tiny amount. Then \(u\) grows by a little, call it \(du\), and \(v\) grows by \(dv\). Follow what happens to the area.
The rectangle was \(u\) by \(v\). Now it's a little bigger each way.
Multiply out the brackets. The first term is the area it had before.
So the change in area is the two strips and the corner.
Divide by the nudge \(dx\) to get a rate.
Now let the nudge shrink to nothing. The first two terms settle on real slopes. The last one still has a bare \(dv\) in it, which shrinks to zero and takes the whole term with it.
That's why the corner doesn't matter: it's a small thing times a small thing, and it shrinks faster than either strip.
In words: the rate of the first times the second, plus the first times the rate of the second. Each one takes its turn at changing while the other is held still.
Worked example
Differentiate this. It's two things multiplied, so name them.
Differentiate each one on its own.
Put them into \(u'v + uv'\).
This is the second pair in the picture. At \(x = 1.1\) the formula gives about 2.51, and the last number in the readout agrees.
Dividing
There's a quotient rule too, and you don't need to memorise it. Dividing by \(v\) is multiplying by \(v^{-1}\), whose derivative the chain rule gives as \(-v^{-2}\,v'\). The product rule does the rest:
Put both terms over \(v^2\):
The minus sign makes sense. If the bottom grows, the fraction shrinks.
Try it on \(\tan x = \dfrac{\sin x}{\cos x}\). Here \(u' = \cos x\) and \(v' = -\sin x\), so the top is \(\cos^2 x + \sin^2 x\), which is 1 by the first identity of the trig lesson:
A swing that dies away is a wave times a decay: \(x = e^{-kt}\cos(\omega t)\). Its velocity needs the product rule, and so does nearly everything else about it. In thermal physics, pressure times volume keeps turning up, and when both change at once the change is \(P\,dV + V\,dP\): the two strips of the rectangle. Later you'll run this rule backwards, and it becomes integration by parts.
Problems
Differentiate \(x^2 \cdot x^3\) with the product rule. Then check it by multiplying first.
Answer
\(2x \cdot x^3 + x^2 \cdot 3x^2 = 2x^4 + 3x^4 = 5x^4\). Multiplying first gives \(x^5\), whose derivative is \(5x^4\). They agree.
Differentiate \(x\sin x\).
Answer
\(1 \cdot \sin x + x\cos x = \sin x + x\cos x\)
Differentiate \(x^2 e^x\).
Answer
\(2x\,e^x + x^2 e^x = x(x + 2)\,e^x\)
Differentiate \(x\,e^{-x}\). Where is its slope zero? Check with the third pair in the picture.
Answer
The chain rule gives the derivative of \(e^{-x}\) as \(-e^{-x}\). So the product rule gives \(e^{-x} - x\,e^{-x} = (1 - x)\,e^{-x}\).
\(e^{-x}\) is never zero, so the slope is zero only at \(x = 1\). In the picture, with the nudge shrunk as far as it goes, that's where the amber strip gained and the blue slice lost are the same size. With a bigger nudge they match a little further along, at about 1.16 for a nudge of 0.3.
Differentiate \(\dfrac{x}{x^2 + 1}\).
Answer
\(u = x\) and \(v = x^2 + 1\), so \(u' = 1\) and \(v' = 2x\).
\(\dfrac{1 \cdot (x^2 + 1) - x \cdot 2x}{(x^2 + 1)^2} = \dfrac{1 - x^2}{(x^2 + 1)^2}\)
A swing that's dying away has position \(x = e^{-t}\cos 2t\). Find its velocity, and its velocity at \(t = 0\).
Answer
\(u = e^{-t}\) and \(v = \cos 2t\). The chain rule gives \(u' = -e^{-t}\) and \(v' = -2\sin 2t\).
\(\dfrac{dx}{dt} = -e^{-t}\cos 2t - 2e^{-t}\sin 2t = -e^{-t}\left(\cos 2t + 2\sin 2t\right)\)
At \(t = 0\) that's \(-1 \times (1 + 0) = -1\). At \(t = 0\) the cosine is at its peak, but the swing isn't at rest: the shrinking \(e^{-t}\) is already pulling it in, so it's moving back at 1 unit a second.