impera Open Impera

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}$.
Worked example

A polynomial and a root

  1. $y = 3x^4 - 5x^2 + 7x - 2$, so $\frac{dy}{dx} = 12x^3 - 10x + 7$.
  2. $y = 4\sqrt{x} + \frac{2}{x}$. Rewrite: $4x^{\frac{1}{2}} + 2x^{-1}$.
  3. $\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³?

  • 15x³

  • 15x²

  • 3x²

  • 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.

Example

$\frac{d}{dx}(2e^x - 3\cos x) = 2e^x + 3\sin x$.

Check yourself

What is the derivative of cos x?

  • −sin x

  • −cos x

  • tan x

  • sin 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.

Worked example

Three chain rule results

  1. $y = (2x + 1)^5$: $\frac{dy}{dx} = 5(2x + 1)^4 \times 2 = 10(2x + 1)^4$.
  2. $y = \sin(3x)$: $\frac{dy}{dx} = 3\cos(3x)$.
  3. $y = e^{x^2}$: $\frac{dy}{dx} = 2x\,e^{x^2}$.
  4. $y = \ln(x^2 + 1)$: $\frac{dy}{dx} = \frac{2x}{x^2 + 1}$.
Check yourself

What is the derivative of (3x − 2)⁴?

  • 12(3x − 2)³

  • 12(3x − 2)⁴

  • 4(3x − 2)³

  • (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}$$

Worked example

Product rule

  1. $y = x^2\sin x$. Let $u = x^2$ and $v = \sin x$.
  2. $\frac{dy}{dx} = x^2\cos x + 2x\sin x$.
Worked example

Quotient rule

  1. $y = \frac{\ln x}{x}$. Let $u = \ln x$ and $v = x$.
  2. $\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ˣ?

  • The power rule only

  • The chain rule only

  • The product rule

  • The quotient rule

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}$.

Worked example

A circle

  1. $x^2 + y^2 = 25$.
  2. $2x + 2y\frac{dy}{dx} = 0$, so $\frac{dy}{dx} = -\frac{x}{y}$.
  3. At $(3, 4)$ the gradient is $-\frac{3}{4}$.

Related rates: link two rates with the chain rule.

Worked example

A growing balloon

  1. The radius grows at $0.5$ cm/s. How fast is the volume growing when $r = 10$?
  2. $V = \frac{4}{3}\pi r^3$, so $\frac{dV}{dr} = 4\pi r^2$.
  3. $\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?

  • y² dy/dx

  • 2y dy/dx

  • 2x dy/dx

  • 2y + dy/dx

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}$.

Worked example

$y = x^2 e^{3x}$

  1. Let $u = x^2$, $v = e^{3x}$, so $u' = 2x$ and $v' = 3e^{3x}$ (chain rule).
  2. Product rule: $\frac{dy}{dx} = u'v + uv' = 2xe^{3x} + 3x^2e^{3x}$.
  3. Factorise: $\frac{dy}{dx} = xe^{3x}(2 + 3x)$.
Check yourself

Which rule is needed first to differentiate $x^3 \cos x$?

  • The product rule

  • The quotient rule

  • Only the power rule

  • No rule is needed

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}$.
Worked example

$y = \frac{2}{\sqrt{x}} + \frac{x^3 - 1}{x}$

  1. Rewrite: $y = 2x^{-\frac{1}{2}} + x^2 - x^{-1}$.
  2. Differentiate: $\frac{dy}{dx} = -x^{-\frac{3}{2}} + 2x + x^{-2}$.
  3. 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}$?

  • $3\sqrt{x}$

  • $6x^{\frac{1}{2}}$

  • $\frac{6}{\sqrt{x}}$

  • $\frac{3}{\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