Term by term, and the power rule
In What a derivative is, we found from a limit that x squared has the derivative 2 x. Working out a limit every time would be slow, but the limits follow a pattern. Let us do one more, for x cubed.
The limit for x³
As before, we take the change in the function from x to x plus Δx, and divide it by Δx:
Multiplied out, the quantity x plus Δx, cubed is x cubed plus 3 x squared Δx plus 3 x Δx squared plus Δx cubed, so the fraction is
The x cubed at the start, from multiplying out, and the minus x cubed at the end cancel each other. That leaves
Dividing every term on top by Δx, we get
As Δx goes towards 0, every term with Δx in it goes towards 0 too, and only 3 x squared is left:
The pattern
Put the two results side by side:
Each time, the exponent comes down in front, and the new exponent is one less. That is the power rule:
It holds for every n. When the quantity x plus Δx, to the power n is multiplied out, it always starts with x to the power n plus n x to the power the quantity n minus 1, Δx, and every other term has Δx squared or more in it. After dividing by Δx, those terms still have a Δx left, so they vanish in the limit, and only n x to the power the quantity n minus 1 remains.
The rule even works for negative exponents, and for fractions as exponents. 1 over x is x to the power minus 1, so
which is minus 1 over x squared. And the square root of x is x to the power 1 over 2, so
which is 1 over 2 the square root of x. How such powers work is explained in Negative exponents and Fractions as exponents, and roots.
The power rule: bring the exponent down in front, and make the exponent one less.
A common slip is to do only the first half: x cubed becomes 3 x cubed instead of 3 x squared.
x and constants
x on its own is x to the power 1. The power rule gives x to the power 0 with a 1 in front, and x to the power 0 is 1, so
The graph of x is a straight line that rises 1 for every 1 across, so its slope is 1 everywhere.
A constant, such as 5, stays the same when x changes. Its graph is a level line, so its derivative is 0:
In the car's terms: a car that stays 5 metres from the start is standing still.
A number in front
A number in front stays where it is:
A graph that is four times as tall everywhere is also four times as steep everywhere. The same goes for fractions in front, which often make the answer neat:
Term by term
To differentiate a sum, we differentiate each term on its own and add up the results:
The minus 5 disappears, since a constant has the derivative 0. In the app, you can take the terms out of the d/dx one at a time, or several at once.
Differentiate a sum term by term. A number in front stays, and a constant term disappears.