# Calculating higher-order derivatives

> AP Calculus AB · Differentiation: Composite, Implicit, and Inverse Functions
> Source: https://www.owlsprep.com/study/ap-calculus-ab-u3-calculating-higher-order-derivatives/

This module covers notation conventions for higher-order derivatives, calculation techniques for explicit and implicitly defined functions, and interpretation of second derivatives in context, aligned to AP Calculus AB exam expectations.

**Prerequisites:** [Basic derivative rules (power, product, quotient, chain rule)](https://www.owlsprep.com/study/ap-calculus-ab-u2-basic-derivative-rules/); [Implicit differentiation of first derivatives](https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/); Interpretation of first derivatives as rates of change

## Learning objectives

- Recognize standard notation conventions for higher-order derivatives
- Calculate higher-order derivatives for explicit functions of x
- Compute second derivatives for implicitly defined relations
- Interpret second derivatives in context including motion and concavity
- Avoid common AP exam pitfalls when working with higher derivatives

## Definition and Notation of Higher-Order Derivatives

Higher-order derivatives are simply derivatives of derivatives: after computing the first derivative of a function, you can differentiate the result again to get the second derivative, differentiate a third time for the third derivative, and so on for any order. For AP Calculus AB, you will almost always be asked to compute up to the second derivative, though higher-order derivatives of polynomials occasionally appear on multiple-choice questions. Per the AP CED, this topic accounts for ~2-4% of total exam score, appearing in both MCQ and FRQ sections.

**Higher-order derivative** — The result of iteratively differentiating a function $n$ times. The second derivative is the rate of change of the first derivative of a function.

*Notation:* Prime: $f'(x), f''(x), f^{(n)}(x)$; Leibniz: $\frac{dy}{dx}, \frac{d^2y}{dx^2}$

*Example:* The second derivative of position with respect to time equals acceleration.

Higher-order derivatives have core practical interpretations: the second derivative measures the rate of change of the slope of the original function, which corresponds to concavity for general functions and acceleration for linear motion problems. This topic builds directly on implicit differentiation from earlier in Unit 3.

## Higher-Order Derivatives of Explicit Functions

For explicit functions of the form $y = f(x)$, calculating higher-order derivatives is an iterative process: you simply differentiate the result of your previous differentiation step. An $n$-th degree polynomial will have a non-zero constant $n$th derivative, and all higher derivatives will equal zero.

> **warning**
>
> Always reapply all relevant derivative rules (chain, product, quotient) every time you differentiate. It is extremely common for students to remember the chain rule for the first derivative of a composite function, but forget to use it again when calculating the second derivative.

**Worked example:** Find the second derivative of $f(x) = x^2 \sin(3x)$.

1. First, compute the first derivative $f'(x)$ using the product rule: let $u = x^2$ and $v = \sin(3x)$, so $u' = 2x$ and $v' = 3\cos(3x)$ (chain rule applied to the inner function $3x$). This gives:
2. $$f'(x) = u'v + uv' = 2x\sin(3x) + 3x^2\cos(3x)$$
3. Differentiate $f'(x)$ term-by-term to get $f''(x)$. The derivative of the first term $2x\sin(3x)$ (via product rule and chain rule) is:
4. $$\frac{d}{dx}\left[2x\sin(3x)\right] = 2\sin(3x) + 2x(3\cos(3x)) = 2\sin(3x) + 6x\cos(3x)$$
5. Differentiate the second term $3x^2\cos(3x)$, again applying product rule and chain rule:
6. $$\frac{d}{dx}\left[3x^2\cos(3x)\right] = 3\left[2x\cos(3x) + x^2(-3\sin(3x))\right] = 6x\cos(3x) - 9x^2\sin(3x)$$
7. Add the two derivatives and combine like terms:
8. $$f''(x) = 2\sin(3x) + 12x\cos(3x) - 9x^2\sin(3x)$$

> **Exam tip:** If asked for a higher-order derivative at a specific point, plug in the $x$-value after each differentiation step to simplify your arithmetic — don't waste time simplifying the entire general derivative first if you only need a numerical result.

*Calculator:* allowed

## Higher-Order Derivatives of Implicit Functions

When working with an implicitly defined relation, you already know how to find $\frac{dy}{dx}$ by differentiating both sides with respect to $x$, grouping terms with $\frac{dy}{dx}$, and solving for $\frac{dy}{dx}$. To find the second derivative $\frac{d^2y}{dx^2}$, you differentiate your expression for $\frac{dy}{dx}$ with respect to $x$, then substitute your original expression for $\frac{dy}{dx}$ back into the result to get $\frac{d^2y}{dx^2}$ purely in terms of $x$ and $y$.

> **note**
>
> The key rule: $y$ is always a function of $x$, so any time you differentiate a term containing $y$, you need to multiply by $\frac{dy}{dx}$ per the chain rule. This still holds when you are differentiating $\frac{dy}{dx}$ to get the second derivative.

**Worked example:** Find $\frac{d^2y}{dx^2}$ for the implicitly defined relation $x^2 + 4y^2 = 9$.

1. Differentiate both sides with respect to $x$ to find the first derivative:
2. $$2x + 8y \frac{dy}{dx} = 0$$
3. Solve for $\frac{dy}{dx}$ by isolating the derivative term:
4. $$8y \frac{dy}{dx} = -2x \implies \frac{dy}{dx} = -\frac{x}{4y}$$
5. Differentiate both sides with respect to $x$ to get the second derivative, applying the quotient rule:
6. $$\frac{d^2y}{dx^2} = -\frac{(1)(4y) - (x)(4 \frac{dy}{dx})}{(4y)^2} = -\frac{4y - 4x \frac{dy}{dx}}{16y^2}$$
7. Substitute $\frac{dy}{dx} = -\frac{x}{4y}$ into the expression and simplify:
8. $$\frac{d^2y}{dx^2} = -\frac{4y - 4x\left(-\frac{x}{4y}\right)}{16y^2} = -\frac{4y^2 + x^2}{16y^3}$$
9. Use the original relation $x^2 + 4y^2 = 9$ to simplify further:
10. $$\frac{d^2y}{dx^2} = -\frac{9}{16y^3}$$

> **Exam tip:** The AP exam always requires $\frac{d^2y}{dx^2}$ to be written in terms of $x$ and $y$ only. Always substitute your first derivative back into the second derivative expression before you finish the problem.

*Calculator:* allowed

## Interpreting Higher-Order Derivatives in Context

AP Calculus AB regularly tests not just your ability to compute higher-order derivatives, but also your ability to interpret their meaning in real-world and abstract contexts. The second derivative, as the rate of change of the first derivative, is the most commonly tested interpretation question.

- In kinematics (motion problems): if $s(t)$ is position of an object moving along a line, $s'(t)=v(t)$ (velocity, rate of change of position), and $s''(t)=a(t)$ (acceleration, rate of change of velocity). Positive acceleration means velocity is increasing, negative means velocity is decreasing.
- For non-motion contexts: if $P(x)$ is profit from producing $x$ units, $P'(x)$ is marginal profit, and $P''(x)$ is the rate of change of marginal profit, telling you whether adding more units increases or decreases marginal profit.
- For abstract functions: the sign of the second derivative tells us concavity: $f''(x) > 0$ means $f(x)$ is concave up, $f''(x) < 0$ means concave down.

**Worked example:** The height of a projectile launched straight up from the ground is given by $h(t) = -16t^2 + 80t + 4$, where $h(t)$ is measured in feet and $t$ is measured in seconds. What is the acceleration of the projectile at $t=2$, and what does it mean in context?

1. First, find the velocity function (first derivative of height):
2. $$v(t) = h'(t) = -32t + 80 \text{ ft/s}$$
3. Next, find the acceleration function (second derivative of height):
4. $$a(t) = h''(t) = -32 \text{ ft/s}^2$$
5. Evaluate at $t=2$: $a(2) = -32$ ft/s².
6. Interpret the result: The constant negative acceleration means the velocity of the projectile is decreasing at a constant rate of 32 feet per second every second, which matches the acceleration due to gravity near Earth's surface.

> **Exam tip:** When interpreting a second derivative, always include units of "output per input squared" (e.g., feet per second squared, dollars per unit squared) and explicitly state that it measures the rate of change of the first derivative quantity.

## Concept Check

**Check your understanding**

Test your understanding with this AP-style multiple choice question:

1. What is the second derivative of $f(x) = (2x + 5)^4$?

   - A) $8(2x+5)^3$
   - B) $12(2x+5)^2$
   - C) $48(2x+5)^2$
   - D) $24(2x+5)^2$

   *Why:* First derivative: $f'(x) = 4(2x+5)^3 \cdot 2 = 8(2x+5)^3$. Differentiate again, reapplying the chain rule: $f''(x) = 8 \cdot 3(2x+5)^2 \cdot 2 = 48(2x+5)^2$. Other options miss the second chain rule application or are the first derivative.

## Common pitfalls

- **Wrong:** When computing the second derivative of an implicit function, leaving $\frac{dy}{dx}$ in the final expression for $\frac{d^2y}{dx^2}$.
  - Why it fails: Students stop after differentiating the first derivative and forget that the final result needs to be in terms of $x$ and $y$ only.
  - Correct: After differentiating to get an expression for $\frac{d^2y}{dx^2}$ that includes $\frac{dy}{dx}$, always substitute the solution for $\frac{dy}{dx}$ you found earlier, then simplify the result.
- **Wrong:** Forgetting to reapply the chain rule when finding the second derivative of a composite function (e.g., writing $f''(x) = 24(2x+5)^2$ instead of $48(2x+5)^2$ for $f(x)=(2x+5)^4$).
  - Why it fails: Students remember applying the chain rule for the first derivative, but forget to use it again for the second derivative.
  - Correct: Every time you differentiate any composite function, even when calculating a higher derivative, check for inner functions and apply the chain rule before moving on.
- **Wrong:** Writing Leibniz notation for the second derivative as $\frac{dy^2}{dx^2}$ instead of $\frac{d^2y}{dx^2}$.
  - Why it fails: Students confuse where the exponent goes when extending first derivative notation.
  - Correct: Memorize that the exponent 2 goes on the $d$ in the numerator, so the correct notation is $\frac{d^2y}{dx^2}$.
- **Wrong:** When differentiating $\frac{dy}{dx} = -\frac{x}{4y}$ for an implicit function, treating $y$ as a constant and writing $\frac{d^2y}{dx^2} = -\frac{1}{4}$ instead of applying the quotient rule.
  - Why it fails: Students forget that $y$ is always a function of $x$ in implicit differentiation.
  - Correct: Any term containing $y$ requires the chain rule when differentiating with respect to $x$, so always use product/quotient rule for expressions with both $x$ and $y$.
- **Wrong:** Interpreting acceleration as the rate of change of position instead of velocity.
  - Why it fails: Students mix up the order of derivatives for motion problems.
  - Correct: Memorize the order: position $\xrightarrow{\text{1st derivative}}$ velocity $\xrightarrow{\text{2nd derivative}}$ acceleration, so acceleration is always the derivative of velocity, the second derivative of position.

## Cheatsheet

| Category | Formula / Rule | Notes |
| --- | --- | --- |
| Prime notation for nth derivative | $f'(x), f''(x), ..., f^{(n)}(x)$ | Use $f^{(n)}$ for $n \geq 3$ to avoid multiple primes |
| Leibniz notation for second derivative | $\frac{d^2y}{dx^2}$ | Exponent 2 goes on $d$ in the numerator, $x$ in the denominator |
| Second derivative of explicit function | $f''(x) = \frac{d}{dx}\left[f'(x)\right]$ | Iterate the process for higher derivatives |
| Implicit first derivative step | Differentiate all terms w.r.t $x$, factor $\frac{dy}{dx}$, solve | Any term with $y$ gets a $\frac{dy}{dx}$ factor from the chain rule |
| Implicit second derivative step | $\frac{d^2y}{dx^2} = \frac{d}{dx}\left[\frac{dy}{dx}\right]$, substitute $\frac{dy}{dx}$ | Final result cannot include leftover $\frac{dy}{dx}$ terms |
| Motion derivative chain | $v(t) = s'(t), \quad a(t) = v'(t) = s''(t)$ | $a(t)$ is acceleration, rate of change of velocity |
| Concavity interpretation | $f''(x) > 0 \implies$ concave up; $f''(x) < 0 \implies$ concave down | Core rule for curve sketching |
| Chain rule for higher derivatives | Reapply chain rule every time you differentiate | Never apply the chain rule only once for the first derivative |

## What's next

Mastering higher-order derivatives, especially implicit second derivatives, is a critical prerequisite for all upcoming topics involving applications of differentiation. Immediately next, you will use second derivatives to solve problems involving concavity and inflection points, where the sign of the second derivative tells you whether a function's slope is increasing or decreasing. Higher-order derivatives are also core to kinematics problems that make up a large portion of AP FRQs, where you need to connect position, velocity, and acceleration to determine when an object is speeding up or slowing down. Without correctly calculating the second derivative, you cannot accurately solve these problems or correctly sketch the graph of a function.

- [Implicit differentiation](https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/)
- [Contextual Applications of Differentiation Overview](https://www.owlsprep.com/study/ap-calculus-ab-u4-overview/)
- [Interpreting the meaning of the derivative in context](https://www.owlsprep.com/study/ap-calculus-ab-u4-interpreting-the-meaning-of-the/)

---

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/ap-calculus-ab-u3-calculating-higher-order-derivatives/
