# Higher order derivatives

> IB Mathematics AA HL · IB AA HL Calculus
> Source: https://www.owlsprep.com/study/ib-math-aa-hl-u5-higher-order-derivatives/

This sub-topic extends basic differentiation to repeated differentiation, producing higher order derivatives. We cover notation, calculation of derivatives up to nth order, and key interpretations for motion and curve analysis.

**Prerequisites:** [Basic differentiation rules for common functions](https://www.owlsprep.com/study/ib-math-aa-hl-u5-basic-differentiation-rules/); [Introduction to first derivatives](https://www.owlsprep.com/study/ib-math-aa-hl-u5-introduction-to-differentiation/)

## Learning objectives

- Define higher order derivatives of a function and use correct notation
- Calculate first, second, third and nth derivatives of common functions
- Interpret second derivatives for kinematics and curve analysis
- Identify patterns to derive general formulas for nth derivatives

## Definition and Notation

**Higher order derivative** — A derivative obtained by repeatedly differentiating a function, after the first derivative. The nth derivative is the result of n sequential differentiations.

*Example:* The second derivative is the derivative of the first derivative, the third derivative is the derivative of the second, etc.

Two standard notations are used in IB exams, it is important to use them correctly to avoid confusion with exponents.

> **warning**
>
> The exponent in Leibniz notation for the second derivative is placed as $\frac{d^2y}{dx^2}$, not $\frac{dy^2}{d^2x}$ which is incorrect.

**Worked example:** Write the second derivative of $y = x^3 + 2x$ in both prime and Leibniz notation.

1. First calculate the first derivative with prime notation:
2. $$y' = 3x^2 + 2$$
3. Differentiate the first derivative to get the second derivative:
4. $$y'' = \frac{d}{dx}\left(3x^2 + 2\right) = 6x$$
5. In Leibniz notation, the result is written as:
6. $$\frac{d^2y}{dx^2} = 6x$$

## Calculating Lower Order Derivatives

Most IB questions for lower order derivatives (1st, 2nd, 3rd) require repeated application of standard differentiation rules. Always simplify after each step to avoid arithmetic errors.

**Worked example:** Find the third derivative of $f(x) = 2\cos(2x) + e^{3x}$.

1. Calculate the first derivative using chain rule:
2. $$f'(x) = 2(-2\sin(2x)) + 3e^{3x} = -4\sin(2x) + 3e^{3x}$$
3. Differentiate again for the second derivative:
4. $$f''(x) = -4(2\cos(2x)) + 9e^{3x} = -8\cos(2x) + 9e^{3x}$$
5. Differentiate a third time for the third derivative:
6. $$f'''(x) = -8(-2\sin(2x)) + 27e^{3x} = 16\sin(2x) + 27e^{3x}$$

**Check your understanding**

Test your understanding:

1. What is the second derivative of $f(x) = \ln(x)$ for $x>0$?

   - $\frac{1}{x}$
   - $-\frac{1}{x^2}$
   - $\frac{1}{x^2}$
   - $-\frac{1}{x}$

   *Answer:* $-\frac{1}{x^2}$

   *Why:* Correct: First derivative is $\frac{1}{x} = x^{-1}$, so derivative of that is $-1x^{-2} = -\frac{1}{x^2}$

## Finding the nth Derivative

For common functions, you can find a general formula for the nth derivative $f^{(n)}(x)$ by identifying the pattern from the first 3-4 derivatives. This is a common exam question for exponential, trigonometric and power functions.

**nth derivative** — The general result of differentiating a function n times sequentially. The parentheses around the exponent distinguish it from raising f(x) to the power n.

*Notation:* $f^{(n)}(x)$

**Worked example:** Find a general formula for the nth derivative of $y = e^{kx}$, where k is a non-zero constant.

1. Calculate the first three derivatives to identify the pattern:
2. $$\frac{dy}{dx} = k e^{kx}, \quad \frac{d^2y}{dx^2} = k \cdot k e^{kx} = k^2 e^{kx}, \quad \frac{d^3y}{dx^3} = k^3 e^{kx}$$
3. Each differentiation multiplies the result by an additional factor of k. Extending this pattern to n differentiations gives:
4. $$\frac{d^n y}{dx^n} = k^n e^{kx}$$

## Interpretations of Higher Order Derivatives

The second derivative is most commonly interpreted in two contexts that are frequently tested in IB exams: kinematics (motion) and curve analysis (concavity).

- Kinematics: If $s(t)$ is displacement at time $t$, velocity $v(t) = s'(t)$, acceleration $a(t) = s''(t)$
- Curve analysis: $f''(x) > 0$ = concave up, $f''(x) < 0$ = concave down

**Worked example:** Displacement of a particle is $s(t) = t^3 - 4t^2 + 6t$ for $t \geq 0$. Find acceleration at $t=2$.

1. First calculate velocity, the first derivative of displacement:
2. $$v(t) = s'(t) = 3t^2 - 8t + 6$$
3. Acceleration is the derivative of velocity (second derivative of displacement):
4. $$a(t) = v'(t) = s''(t) = 6t - 8$$
5. Substitute $t=2$ to get acceleration at that time:
6. $$a(2) = 6(2) - 8 = 4 \, \text{ms}^{-2}$$

## Common pitfalls

- **Wrong:** Writing f''(x) as $(f'(x))^2$, squaring the first derivative
  - Why it fails: Confusing derivative notation with power notation
  - Correct: Remember f''(x) means the derivative of f'(x), not the square of f'(x). Use parentheses for nth derivatives: $f^{(n)}(x)$ to avoid confusion.
- **Wrong:** Misplacing the exponent in Leibniz notation as $\frac{dy^2}{d^2x}$
  - Why it fails: Confusion about notation convention
  - Correct: Write the second derivative correctly as $\frac{d^2y}{dx^2}$.
- **Wrong:** Making repeated sign errors when differentiating sine/cosine multiple times
  - Why it fails: Guessing the pattern instead of writing out terms
  - Correct: Write out the first four derivatives explicitly to confirm the repeating sign pattern before writing a general nth derivative formula.
- **Wrong:** Claiming acceleration is the first derivative of displacement
  - Why it fails: Mixing up the order of derivatives for kinematics
  - Correct: Remember: Displacement → (1st derivative) Velocity → (2nd derivative) Acceleration.
- **Wrong:** Stopping at the 2nd derivative when asked for an nth derivative formula
  - Why it fails: Rushing the question and not identifying the full pattern
  - Correct: Always calculate at least 3-4 derivatives first to spot the repeating pattern, then generalize to n.

## Cheatsheet

| Function | General nth Derivative Formula |
| --- | --- |
| $e^{kx}$ | $k^n e^{kx}$ |
| $\sin(ax)$ | $a^n \sin\left(ax + \frac{n\pi}{2}\right)$ |
| $\cos(ax)$ | $a^n \cos\left(ax + \frac{n\pi}{2}\right)$ |
| $x^k$ (constant k) | $k(k-1)...(k-n+1)x^{k-n}$ |
| $\ln(x)$ | $(-1)^{n-1} (n-1)! x^{-n}$ |

## What's next

Higher order derivatives are a foundational concept for all advanced calculus topics in IB AA HL. Mastery of second derivatives is required for the second derivative test to classify stationary points, find inflection points, and solve optimization problems, all frequent high-mark exam questions. nth derivatives are also core to Taylor and Maclaurin series, a key HL topic, and are needed for higher order implicit differentiation and differential equations. Understanding the interpretation of the second derivative as acceleration is also required for all kinematics problems that appear in paper 1 and paper 2.

- [Applications of Differentiation](https://www.owlsprep.com/study/ib-math-aa-hl-u5-applications-of-differentiation/)
- [Indefinite and definite integration](https://www.owlsprep.com/study/ib-math-aa-hl-u5-indefinite-and-definite-integration/)
- [Integration techniques: substitution, parts, partial fractions](https://www.owlsprep.com/study/ib-math-aa-hl-u5-integration-techniques-substitution-parts-partial/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ib-math-aa-hl-u5-higher-order-derivatives/
