The chain rule
We know that the derivative of sine of x is cosine of x. But what about sine of 3 x? Here sine doesn't get x itself, but 3 x: a function inside a function.
Three times as steep
Let us draw sine of x and sine of 3 x together:
sine of 3 x is the same wave, squeezed together. It makes three waves where sine of x makes one, and it still reaches the same height. To get there in a third of the distance, it has to rise and fall three times as steeply.
sine of 3 x covers in one step of x what sine of x covers in three, so its slopes are three times as steep.
So the derivative is the derivative of sine, with 3 x still inside, times 3:
The car on fast forward
The car in What a derivative is can show the same thing. Say we filmed the whole journey and play the film three times as fast. Everything on the screen happens three times as fast, so the speed on the screen is three times the speed the car had at that moment of the journey. The distance on the screen is f(3t), and its derivative is 3 times f′(3t).
The rule
In sine of 3 x, the inside 3 x changes at a steady 3 for every step of x, so the factor was 3. In sine of x squared, the inside x squared changes faster and faster: at a rate of 2 x, its derivative. So the factor is 2 x:
In general, call the inside u. Then:
The chain rule: differentiate the outside, keeping the inside as it is, and multiply by the derivative of the inside, u prime.
In the app, you can tap the inside of such a term. It is then named u, and the options are written with u and u prime.
Examples
e to the power the quantity 3 x plus 1: the outside e to the power u stays as it is, and the inside 3 x plus 1 has the derivative 3:
the quantity 2 x plus 1, to the power 5: the outside is a fifth power, and the inside 2 x plus 1 has the derivative 2:
which is 10 the quantity 2 x plus 1, to the power 4.
ln of the quantity x squared plus 1: the outside ln of u becomes 1 over u, and the inside has the derivative 2 x:
Squares that hide a chain
cosine of x squared is cosine of x times cosine of x, the square of all of cosine of x. That is why the 2 sits on the cos, and not on the x: the outside is a square, and the inside is cosine of x. So the outside gives 2 cosine of x, and the inside gives minus sine of x:
which is usually written minus 2 sine of x times cosine of x.
The way it is written hides that there is a function inside a function, which makes it easy to miss.
Leave it factored
We could multiply out 10 the quantity 2 x plus 1, to the power 4 into a long polynomial, but we don't need to. The factored form is shorter, and it shows more, such as where the derivative is 0. Teachers and exams expect the answer this way.