# Chain Rule for AP Calculus AB

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

This study guide covers the chain rule for differentiating composite functions, its application to common function types, combination with other rules, and solving tangent line problems for AP Calculus AB.

**Prerequisites:** Decomposition of composite functions; Derivative rules for basic functions; Point-slope form of a line

## Learning objectives

- Decompose composite functions into inner and outer components
- Apply the chain rule to differentiate composite functions
- Combine chain rule with product/quotient differentiation rules
- Solve tangent and normal line problems using the chain rule
- Identify and avoid common chain rule mistakes

## What Is the Chain Rule?

The chain rule is the core differentiation rule for composite functions, which take the form $y = f(g(x))$, where an inner function $u = g(x)$ is plugged into an outer function $f(u)$. This topic makes up roughly 4-6% of total AP Calculus AB exam points, appearing in both multiple-choice and free-response sections, almost always combined with other differentiation rules.

The core intuition is that the rate of change of a composite function equals the product of the rate of change of the outer function (evaluated at the inner function) and the rate of change of the inner function. Most functions on the AP exam are composite, so you cannot rely on basic differentiation rules alone.

**Chain Rule** — A differentiation rule for composite functions that multiplies the derivative of the outer function (evaluated at the inner function) by the derivative of the inner function.

*Notation:* $\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)$

*Example:* $y = (x^2 + 3x)^5$ requires the chain rule to differentiate correctly.

## Basic Chain Rule: Decomposition and Core Formula

To apply the chain rule correctly, you first need to correctly decompose a composite function into its outer and inner components. A simple guideline: the inner function is what you calculate first when plugging in a value of $x$, and the outer function is what you calculate last. For example, for $y = e^{x^2}$, inner function is $u = x^2$, outer function is $y = e^u$.

$$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$$

$$\frac{d}{dx}\left[f(g(x))\right] = f'(g(x)) \cdot g'(x)$$

The intuition for the product form is simple: if $y$ changes twice as fast as $u$, and $u$ changes three times as fast as $x$, then $y$ changes $2 \times 3 = 6$ times as fast as $x$, so the rates multiply. The only time you do not need chain rule is when the inner function is just $y=x$, so its derivative is 1, and the product simplifies to just the outer derivative.

**Worked example:** Find the derivative of $y = (2x^3 - 5x + 1)^4$.

1. Decompose into outer $y = u^4$ and inner $u = 2x^3 - 5x + 1$.
2. Differentiate outer with respect to $u$:

   $$\frac{dy}{du} = 4u^3$$
3. Differentiate inner with respect to $x$:

   $$\frac{du}{dx} = 6x^2 - 5$$
4. Multiply and substitute back $u = 2x^3 - 5x + 1$:

   $$\frac{dy}{dx} = 4(2x^3 - 5x + 1)^3(6x^2 - 5)$$
5. Simplify (optional for AP):

   $$(24x^2 - 20)(2x^3 - 5x + 1)^3$$

> **Exam tip:** Always explicitly label your inner and outer functions on scratch work—if you cannot name both clearly, you are almost guaranteed to misapply the rule.

## Combining Chain Rule with Other Differentiation Rules

The chain rule is almost never tested in isolation on the AP exam. You will almost always need to combine it with product rule, quotient rule, or derivatives of non-power basic functions. The most common generalized forms are:

- Generalized power rule: $\frac{d}{dx}[u^n] = n u^{n-1} u'$
- Generalized trigonometric: $\frac{d}{dx}[\sin u] = \cos u \cdot u'$, $\frac{d}{dx}[\cos u] = -\sin u \cdot u'$, etc.
- Generalized exponential (base $e$): $\frac{d}{dx}[e^u] = e^u \cdot u'$

The key rule when combining rules is: apply the rule for the outermost operation first, then work inward to apply chain rule to any composite inner parts. If the outermost operation is a product, apply product rule first, then use chain rule for any composite factors.

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

1. Outermost operation is multiplication, so apply product rule first:

   $$f'(x) = \frac{d}{dx}[e^{3x}] \cdot \cos(2x) + e^{3x} \cdot \frac{d}{dx}[\cos(2x)]$$
2. Differentiate $e^{3x}$ with chain rule (outer $e^u$, inner $u=3x$):

   $$\frac{d}{dx}[e^{3x}] = 3e^{3x}$$
3. Differentiate $\cos(2x)$ with chain rule (outer $\cos u$, inner $u=2x$):

   $$\frac{d}{dx}[\cos(2x)] = -2\sin(2x)$$
4. Substitute back and simplify:

   $$f'(x) = e^{3x}\left(3\cos(2x) - 2\sin(2x)\right)$$

> **Exam tip:** When combining multiple rules, write out each step one at a time instead of trying to write the final derivative in one step—partial credit is almost always available for correct intermediate steps on FRQ.

## Chain Rule for Tangent and Normal Line Problems

A very common AP exam question asks you to find the equation of the tangent line (or slope of the normal line) to a composite function at a given point. You need the chain rule to calculate the tangent slope, since the function is composite. Recall tangent line at $x=a$ follows point-slope form: $y - f(a) = f'(a)(x-a)$. For a normal line, slope is the negative reciprocal: $m_{\text{normal}} = -\frac{1}{f'(a)}$.

**Worked example:** Find the equation of the tangent line to $y = \sqrt{4x^2 + 9}$ at $x = 2$.

1. Find the $y$-coordinate at $x=2$: $y = \sqrt{4(2)^2 + 9} = 5$, so the point is $(2, 5)$.
2. Rewrite as $y = (4x^2 + 9)^{1/2}$, decompose into outer $y = u^{1/2}$, inner $u = 4x^2 + 9$.
3. Apply generalized power rule:

   $$y' = \frac{4x}{\sqrt{4x^2 + 9}}$$
4. Evaluate slope at $x=2$:

   $$y'(2) = \frac{8}{5}$$
5. Write tangent line in point-slope then slope-intercept form:

   $$y - 5 = \frac{8}{5}(x - 2) \implies y = \frac{8}{5}x + \frac{9}{5}$$

> **Exam tip:** Always calculate $f(a)$ (the point) before calculating $f'(a)$—this is an easy 1 point on FRQ that you can get even if you mess up the derivative calculation.

## AP-Style Concept Check

**Check your understanding**

Test your understanding with this multiple-choice question:

1. Which of the following is equal to $\frac{d}{dx}\left[ \tan(x^3 - 2x) \right]$?

   - $\sec^2(3x^2 - 2)$
   - $(3x^2 - 2)\sec^2(x^3 - 2x)$
   - $\sec^2(x^3 - 2x)$
   - $(3x^2 - 2)\tan(x^3 - 2x)$

   *Why:* Correct! You correctly identified outer $\tan u$ and inner $u = x^3 - 2x$, then applied the chain rule to get the result.

## Common pitfalls

- **Wrong:** Forgetting to multiply by $g'(x)$, leaving off the inner derivative. For example, differentiating $(x^2 + 1)^3$ to get $3(x^2 + 1)^2$ instead of $3(x^2 + 1)^2(2x)$
  - Why it fails: Students stop after differentiating the outer function, forgetting the inner function changes with $x$.
  - Correct: After differentiating the outer function, always ask: 'Is the inner function anything other than just $x$?' If not, multiply by its derivative before moving on.
- **Wrong:** Reversing outer/inner differentiation, getting $g'(x) f(x)$ instead of $f'(g(x)) g'(x)$. For example, differentiating $\sin(5x)$ to get $5\sin(x)$
  - Why it fails: Confusion about which function to differentiate first.
  - Correct: Always explicitly label outer and inner on scratch paper, differentiate the outer function first, then multiply by the inner derivative.
- **Wrong:** Using chain rule for a product of two functions instead of product rule. For example, differentiating $x^2 \sin x$ to get $2x \cos x$
  - Why it fails: Confusing composition $f(g(x))$ with multiplication $f(x)g(x)$.
  - Correct: Before differentiating, confirm if the function is one function plugged into another, or two separate functions multiplied—only use chain rule for composition.
- **Wrong:** Substituting $x=a$ into the inner function before differentiating for tangent line problems. For example, for $y=(x^2+1)^3$ at $x=2$, substituting $x=2$ first to get $y=125$, then differentiating to get slope 0.
  - Why it fails: Confusing when to substitute values.
  - Correct: Differentiate the entire function first with chain rule, then substitute $x=a$ into the derivative to get the slope.
- **Wrong:** Applying chain rule before product/quotient rule when the outermost operation is a product/quotient. For example, differentiating $(x+1)(x^2+2)^3$ by applying chain rule to the entire expression first.
  - Why it fails: Forgetting that outermost operation determines rule order.
  - Correct: Always apply the rule for the outermost operation first, then work inward to apply chain rule to composite inner parts.

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Basic Chain Rule (Leibniz) | $\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$, $y=f(u), u=g(x)$ | Easy 'cancel $du$' heuristic for composite functions |
| Basic Chain Rule (Prime) | $\frac{d}{dx}\left[f(g(x))\right] = f'(g(x))g'(x)$ | Always evaluate $f'$ at $g(x)$, not at $x$ |
| Generalized Power Rule | $\frac{d}{dx}\left[u^n\right] = n u^{n-1} u'$ | Works for all real $n$, including roots |
| Generalized Trig | $\frac{d}{dx}\left[\sin u\right] = (\cos u) u'$ | Same pattern for all 6 trig functions; use correct basic derivative |
| Generalized Exponential | $\frac{d}{dx}\left[e^u\right] = e^u u'$ | Exponential term does not change; only multiply by inner derivative |
| Generalized Logarithm | $\frac{d}{dx}\left[\ln u\right] = \frac{1}{u} u'$ | Only valid for $u>0$, common on AP MCQ |
| Tangent Line | $y - f(a) = f'(a)(x-a)$ | $f'(a)$ requires chain rule for composite $f(x)$ |
| Normal Line Slope | $m_{\text{normal}} = -\frac{1}{f'(a)}$ | Negative reciprocal of the tangent slope |

## What's next

The chain rule is the foundational prerequisite for all remaining topics in Unit 3, and it is required for nearly all integration and application topics later in the AP Calculus AB course. Next, you will apply the chain rule to implicit differentiation, where you differentiate implicit functions by applying the chain rule to terms with $y$ as a function of $x$. Without correctly identifying when to multiply by $\frac{dy}{dx}$ for implicit terms, implicit differentiation will be impossible. The chain rule is also critical for related rates problems, a heavily tested FRQ topic on the AP exam. Later, when you learn u-substitution for integration, you will reverse the chain rule, so mastering it now makes integration much more intuitive and builds a strong foundation for exam success.

- [Implicit Differentiation](https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/)
- [Differentiating Inverse Functions](https://www.owlsprep.com/study/ap-calculus-ab-u3-differentiating-inverse-functions/)
- [Differentiating inverse trigonometric functions](https://www.owlsprep.com/study/ap-calculus-ab-u3-differentiating-inverse-trigonometric-functions/)

---

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-chain-rule/
