IB Diploma Mathematics AA · Calculus
Rules of differentiation
1Powers and sums
The power rule:
$$\frac{d}{dx}\left(x^n\right) = nx^{n-1}$$
This works for any real $n$, including negatives and fractions. You may differentiate a sum term by term, and constants multiply through.
- The derivative of a constant is 0.
- Rewrite roots and fractions as powers first: $\sqrt{x} = x^{\frac{1}{2}}$ and $\frac{1}{x^2} = x^{-2}$.
A polynomial and a root
- $y = 3x^4 - 5x^2 + 7x - 2$, so $\frac{dy}{dx} = 12x^3 - 10x + 7$.
- $y = 4\sqrt{x} + \frac{2}{x}$. Rewrite: $4x^{\frac{1}{2}} + 2x^{-1}$.
- $\frac{dy}{dx} = 2x^{-\frac{1}{2}} - 2x^{-2} = \frac{2}{\sqrt{x}} - \frac{2}{x^2}$.
Check yourself
What is the derivative of 5x³?
Show the answer
15x²
Bring down the power and reduce it by 1.
2Standard derivatives
These are in the formula booklet:
- $\frac{d}{dx}(\sin x) = \cos x$
- $\frac{d}{dx}(\cos x) = -\sin x$
- $\frac{d}{dx}(e^x) = e^x$
- $\frac{d}{dx}(\ln x) = \frac{1}{x}$
The trigonometric results only work with $x$ in radians.
$\frac{d}{dx}(2e^x - 3\cos x) = 2e^x + 3\sin x$.
Check yourself
What is the derivative of cos x?
Show the answer
−sin x
Watch the sign.
3The chain rule
For a function of a function $y = f(g(x))$, use the chain rule:
$$\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} \quad \text{where } u = g(x)$$
In words: differentiate the outside, keep the inside, then multiply by the derivative of the inside.
Three chain rule results
- $y = (2x + 1)^5$: $\frac{dy}{dx} = 5(2x + 1)^4 \times 2 = 10(2x + 1)^4$.
- $y = \sin(3x)$: $\frac{dy}{dx} = 3\cos(3x)$.
- $y = e^{x^2}$: $\frac{dy}{dx} = 2x\,e^{x^2}$.
- $y = \ln(x^2 + 1)$: $\frac{dy}{dx} = \frac{2x}{x^2 + 1}$.
Check yourself
What is the derivative of (3x − 2)⁴?
Show the answer
12(3x − 2)³
4(3x − 2)³ × 3.
4The product and quotient rules
For a product $y = uv$:
$$\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}$$
For a quotient $y = \frac{u}{v}$:
$$\frac{dy}{dx} = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}$$
Product rule
- $y = x^2\sin x$. Let $u = x^2$ and $v = \sin x$.
- $\frac{dy}{dx} = x^2\cos x + 2x\sin x$.
Quotient rule
- $y = \frac{\ln x}{x}$. Let $u = \ln x$ and $v = x$.
- $\frac{dy}{dx} = \frac{x \cdot \frac{1}{x} - \ln x \cdot 1}{x^2} = \frac{1 - \ln x}{x^2}$.
The order matters in the quotient rule: the top starts with $v\frac{du}{dx}$.
Check yourself
Which rule should you use for y = x³eˣ?
Show the answer
The product rule
It is one function multiplied by another.
5More derivatives (HL)
At HL you also need:
- $\frac{d}{dx}(\tan x) = \sec^2 x$, $\frac{d}{dx}(\sec x) = \sec x\tan x$, $\frac{d}{dx}(\csc x) = -\csc x\cot x$, $\frac{d}{dx}(\cot x) = -\csc^2 x$.
- $\frac{d}{dx}(a^x) = a^x\ln a$ and $\frac{d}{dx}(\log_a x) = \frac{1}{x\ln a}$.
- $\frac{d}{dx}(\arcsin x) = \frac{1}{\sqrt{1 - x^2}}$, $\frac{d}{dx}(\arccos x) = -\frac{1}{\sqrt{1 - x^2}}$, $\frac{d}{dx}(\arctan x) = \frac{1}{1 + x^2}$.
Implicit differentiation: when $y$ is mixed in with $x$, differentiate every term with respect to $x$. Each time you differentiate a $y$ term, multiply by $\frac{dy}{dx}$.
A circle
- $x^2 + y^2 = 25$.
- $2x + 2y\frac{dy}{dx} = 0$, so $\frac{dy}{dx} = -\frac{x}{y}$.
- At $(3, 4)$ the gradient is $-\frac{3}{4}$.
Related rates: link two rates with the chain rule.
A growing balloon
- The radius grows at $0.5$ cm/s. How fast is the volume growing when $r = 10$?
- $V = \frac{4}{3}\pi r^3$, so $\frac{dV}{dr} = 4\pi r^2$.
- $\frac{dV}{dt} = \frac{dV}{dr} \times \frac{dr}{dt} = 4\pi(100)(0.5) = 200\pi \approx 628$ cm³/s.
Check yourself
(HL) In implicit differentiation, what is the derivative of y² with respect to x?
Show the answer
2y dy/dx
Use the chain rule: differentiate y², then multiply by dy/dx.
6Choosing the right rule
Before differentiating, look at the structure of the function.
- A sum of terms: differentiate each term separately.
- A function inside a function such as $(3x+1)^5$ or $e^{2x}$: use the chain rule.
- Two functions multiplied such as $x^2 \sin x$: use the product rule.
- One function divided by another such as $\frac{x}{x^2+1}$: use the quotient rule (or rewrite as a product).
Often you need more than one rule. For $x^2 e^{3x}$, use the product rule, and the chain rule for $e^{3x}$.
$y = x^2 e^{3x}$
- Let $u = x^2$, $v = e^{3x}$, so $u' = 2x$ and $v' = 3e^{3x}$ (chain rule).
- Product rule: $\frac{dy}{dx} = u'v + uv' = 2xe^{3x} + 3x^2e^{3x}$.
- Factorise: $\frac{dy}{dx} = xe^{3x}(2 + 3x)$.
Check yourself
Which rule is needed first to differentiate $x^3 \cos x$?
Show the answer
The product rule
Two functions multiplied.
7Rewriting before differentiating
Rewriting a function can make differentiation much easier.
- Write roots as powers: $\sqrt{x} = x^{\frac{1}{2}}$.
- Write reciprocals as negative powers: $\frac{4}{x^3} = 4x^{-3}$.
- Split fractions with a single term on the bottom: $\frac{x^2 + 3}{x} = x + 3x^{-1}$.
$y = \frac{2}{\sqrt{x}} + \frac{x^3 - 1}{x}$
- Rewrite: $y = 2x^{-\frac{1}{2}} + x^2 - x^{-1}$.
- Differentiate: $\frac{dy}{dx} = -x^{-\frac{3}{2}} + 2x + x^{-2}$.
- In fraction form: $\frac{dy}{dx} = -\frac{1}{x\sqrt{x}} + 2x + \frac{1}{x^2}$.
Check yourself
What is the derivative of $6\sqrt{x}$?
Show the answer
$\frac{3}{\sqrt{x}}$
$6 \times \frac{1}{2}x^{-\frac{1}{2}}$.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera