Derivative rules
You rarely need the limit definition to find a derivative. Four rules, the power, product, quotient and chain rules, plus a short list of standard results, handle almost every function you will meet.
The rules at a glance
| Rule | In symbols | Example |
|---|---|---|
| Constant | (c)′ = 0 | (7)′ = 0 |
| Power | (xⁿ)′ = n xⁿ⁻¹ | (x⁵)′ = 5x⁴ |
| Constant multiple | (c f)′ = c f′ | (3x²)′ = 6x |
| Sum | (f + g)′ = f′ + g′ | (x² + x)′ = 2x + 1 |
| Product | (fg)′ = f′g + fg′ | (x sin x)′ = sin x + x cos x |
| Quotient | (f/g)′ = (f′g − fg′)/g² | (sin x / x)′ = (x cos x − sin x)/x² |
| Chain | (f(g))′ = f′(g) · g′ | (sin x²)′ = 2x cos x² |
The power rule
The product rule
For two functions multiplied together: the derivative of the first times the second, plus the first times the derivative of the second. The derivative of a product is not the product of the derivatives.
For x² eˣ: (2x)(eˣ) + (x²)(eˣ) = eˣ(x² + 2x).
A memory aid: “left dee right, plus right dee left”.
The quotient rule
For one function divided by another: bottom times the derivative of the top, minus top times the derivative of the bottom, all over the bottom squared. The order on top matters, because of the minus sign.
For x²/(x + 1): ((2x)(x + 1) − (x²)(1)) / (x + 1)² = (x² + 2x)/(x + 1)².
A memory aid: “low dee high, minus high dee low, over the square of what’s below”. If the bottom is a constant or a plain power, rewriting and using the power rule is usually quicker.
The chain rule
For a function inside another function: differentiate the outside, leaving the inside alone, then multiply by the derivative of the inside.
- (x² + 1)³ → 3(x² + 1)² · 2x = 6x(x² + 1)²
- sin 2x → cos(2x) · 2 = 2 cos 2x
- e^(x²) → e^(x²) · 2x
- ln(cos x) → (1/cos x)(−sin x) = −tan x
Forgetting the chain rule is the single most common calculus mistake. If there is something more complicated than plain x inside a function, you need it.
Standard derivatives
The definition behind the rules
Every rule comes from one definition: the derivative is the slope of the tangent line, found as a limit:
f′(x) = limh→0 (f(x + h) − f(x)) / h
For f(x) = x²: ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h, which approaches 2x as h approaches 0.
Combining rules: a worked example
Differentiate y = x² sin(3x):
- It is a product, so use the product rule with f = x² and g = sin(3x).
- f′ = 2x, by the power rule.
- g′ = 3 cos(3x), by the chain rule.
- So y′ = 2x sin(3x) + 3x² cos(3x).
Ask “what is the last thing I would do to work this out?”. Here it is multiplying, so the product rule comes first. The derivative calculator shows these steps for any function.
Frequently asked questions
What are the basic derivative rules?
When do I use the chain rule?
What is the difference between the product and chain rules?
Can I avoid the quotient rule?
What is the derivative of a constant?
Keep going
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.