Rules of Differentiation
☰ Contents
Differentiating from first principles is slow. Each rule is that limit worked out once for one shape of expression. The skill is recognizing the shape: a power, a product, a quotient, or a function inside another function.
What does actually mean?
is the rate at which y changes as x changes, at one instant: the gradient of the tangent at a point. Draw a chord through two points on the curve; its gradient is rise over run. Slide one point toward the other and the chord's gradient settles on one value. That value is the derivative, and it is exact, because it is a limit.
Leibniz wrote it and Lagrange wrote f'(x), read "f prime". On its own, is an instruction: differentiate whatever follows it.
From first principles, write the rise over a step h, divide by h, simplify, and only then let h go to 0. For : , which goes to 2x.
See The derivative as a limit, Derivative notation and Differentiating from first principles.
Where does a derivative fail to exist?
Wherever the curve has no single tangent. At a corner, the gradients on the two sides differ, so no single value fits. At a vertical tangent, the run is 0, so the gradient has no value. At a jump, there is no chord to shrink.
y = |x| has no derivative at 0. The gradient is −1 on the left and +1 on the right.
What is the power rule?
differentiates to . There are two moves, in this order: the power comes down to the front and multiplies, then the power drops by one.
. . .
Rewrite a reciprocal or a root as a power first, then run the same two moves.
A straight line y = mx + c has gradient m everywhere, so its derivative is m. A constant is a flat line, so its derivative is 0.
The sum rule: differentiate each term separately. The constant multiple rule: a numerical factor stays where it is. So differentiates to . See The power rule, Differentiating linear functions and The constant multiple and sum rules.
Now you
Differentiate
Differentiate
Lesson complete. Continue in the app — your progress saves there.
When do you use the product rule?
When two functions of x are multiplied together. If y = uv, then vu′: differentiate each factor in turn, keep the other as it is, and add.
.
For a fraction , the quotient rule: vu′ . The numerator is a subtraction, so the order matters.
If the denominator is a single power, use the power rule instead: . See The product rule and The quotient rule.
Now you
of
of , using the product rule
Lesson complete. Continue in the app — your progress saves there.
When do you use the chain rule?
Whenever one function sits inside another. Differentiate the outer function, leaving the inside as it is, then multiply by the derivative of the inside.
- Read the expression as "do this, then do that". means add 1 to 3x, then raise the result to the fifth power.
- Differentiate the outer layer, keeping the inside as it stands: .
- Multiply by the derivative of the inside, which is 3: .
.
The final multiplication is the step most often left out. In Leibniz notation, : the two rates of change multiply.
See The chain rule.
Now you
Differentiate sin(3x)
Differentiate
Lesson complete. Continue in the app — your progress saves there.
How do you differentiate trigonometric functions?
sin x differentiates to cos x, and cos x differentiates to −sin x. Four differentiations return to sin x.
This holds only in radians; in degrees, every derivative picks up a factor of . The proof uses the limit of sin x / x from limits and continuity.
tan x = sin x / cos x, so the quotient rule applies. The numerator is , which is 1, and is .
The same route gives , and . See Differentiating trigonometric functions and Differentiating tan x and the reciprocal ratios.
Now you
Differentiate −sin x
Differentiate sin x
Lesson complete. Continue in the app — your progress saves there.
What is e, and why does it matter?
e is the base whose exponential curve has a gradient equal to its height at every point. The gradient of is less than its height and the gradient of is greater; near 2.718 they match exactly.
So differentiates to itself. For ln x, write and differentiate both sides: , so .
Any other base is e in disguise: , and the chain rule gives . Likewise / ln a differentiates to .
See The number e, Differentiating exponentials and logarithms and Differentiating and .
What if the equation is not solved for y?
Differentiate every term as it stands, then solve for . is a circle, and no rearranging writes y as a single function of x.
A y-term differentiates as usual and then gains a factor of , by the chain rule. Collect the terms and solve.
.
The radius to (x, y) has gradient , so the tangent is perpendicular to the radius. See Implicit differentiation.
Now you
. What is ?
. What is ?
Lesson complete. Continue in the app — your progress saves there.
How do you differentiate an inverse function?
Take the reciprocal. An inverse function is the reflection of the original in the line y = x, and reflecting swaps the rise with the run. Read f' at the matching point: if f(a) = b, then .
For , undo the inverse first: sin y = x. Differentiate both sides: , so , and Pythagoras replaces cos y with .
The same moves on tan y = x give . Both derivatives are algebraic, so an integral of that shape has an inverse-trigonometric answer.
Differentiate again and you get the second derivative, f'′(x) or : the rate at which the gradient changes. For , the gradient 2x differentiates to 2.
A positive second derivative means the curve bends upward, like a bowl, which is the test for maxima and minima in the applications of differentiation. See The derivative of an inverse function, Differentiating and and Higher derivatives.
What are the hyperbolic functions?
They are built from exponentials: , , and tanh x = sinh x / cosh x.
A chain hanging under its own weight follows a cosh curve, called a catenary.
Square the two definitions and subtract: . Compare , which puts on a circle; with one sign changed, (cosh t, sinh t) lies on a hyperbola.
sinh x differentiates to cosh x, and cosh x differentiates to sinh x, with no minus sign. tanh x differentiates to .
The inverses are logarithms. Write x = sinh y, multiply every term by to get a quadratic in , solve it, reject the negative root, and take logarithms: arsinh . arcosh keeps only , because cosh takes each value above 1 twice. See sinh, cosh and tanh, The identity , Differentiating sinh x and cosh x, Inverse hyperbolic functions and Inverse hyperbolics as logarithms.
The mistakes worth naming
- Forgetting the inner derivative. The chain rule ends with a multiplication.
- Differentiating a product factor by factor. The derivative of uv is not u'v'.
- Reversing the quotient rule's numerator. vu′ comes first.
- Using degrees. The derivative of sin x is cos x only in radians.
- Rearranging before differentiating implicitly. No curve needs it, and some cannot be rearranged.
Learn this properly in the app
Every lesson linked above is a screen in Math Challenge with a diagram, a worked example and practice questions. The limit behind these rules is in limits and continuity, using a derivative is the applications of differentiation, and running each rule backward is techniques of integration.
Your turn
Three to try — tap what you get.
d/dx of x³
d/dx of sin x
The derivative of a constant is
0 of 0 right on this page
Practice this lesson in the appThat is every question on this page.
0 of 0 right. Best run: 0 in a row.
The app carries on from here: practice that adapts to you, the full lesson ladder, and your progress saved.
Keep going in the app