Fiveable

♾️AP Calculus AB/BC Unit 3 Review

QR code for AP Calculus AB/BC practice questions

3.1 The Chain Rule

3.1 The Chain Rule

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
♾️AP Calculus AB/BC
Unit & Topic Study Guides

AP Cram Sessions 2021

Pep mascot

The chain rule lets you differentiate composite functions, meaning a function inside another function. The core idea is to take the derivative of the outer function while keeping the inside the same, then multiply by the derivative of the inner function: ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}f(g(x)) = f'(g(x)) \cdot g'(x).

Why This Matters for the AP Calculus Exam

The chain rule shows up constantly on the AP Calculus exam, both as the direct target of a question and as one step inside bigger problems. You will need it in multiple-choice and free-response questions whenever a function is built from other functions, like sin(3x)\sin(3x), ex2e^{x^2}, or (3x+1)5(3x+1)^5.

It is also the foundation for later topics in this unit and beyond, including implicit differentiation, derivatives of inverse functions, and related rates. Getting comfortable with the chain rule now makes the rest of your AP Calculus work much smoother.

Key Takeaways

  • A composite function is a function inside another function, written (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)), with g(x)g(x) as the inner function and f(x)f(x) as the outer function.
  • The chain rule says ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}f(g(x)) = f'(g(x)) \cdot g'(x): differentiate the outside, then multiply by the derivative of the inside.
  • In Leibniz notation, dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}, where uu is the inner function.
  • Always remember the "times the derivative of what's inside" step. Forgetting it is the most common error.
  • The chain rule combines with the power, product, and quotient rules, and it can repeat when a function is nested more than once.
  • Units can confirm the structure, as in psimin=psimmmin\frac{\text{psi}}{\text{min}} = \frac{\text{psi}}{\text{m}} \cdot \frac{\text{m}}{\text{min}}.

Composite Functions

Composite functions are functions inside other functions. Given two functions f(x)f(x) and g(x)g(x), the composite function (fg)(x)(f \circ g)(x) is formed by applying ff to the output of gg.

Written out, this is (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)). Think of g(x)g(x) as the inner function and f(x)f(x) as the outer function.

Composite Function Example

Take these two functions:

f(x)=x2\textcolor{red}{f(x)=x^2}

g(x)=3x+1\textcolor{blue}{g(x)=3x+1}

To work with the composite function f(g(x))f(g(x)), identify the inner and outer functions:

  • g(x)g(x) is the inner function. It takes xx, multiplies by 3, and adds 1.
  • f(x)f(x) is the outer function. It takes the output of g(x)g(x) and squares it.

So the composition looks like this:

f(g(x))=(3x+1)2f(g(x))=\textcolor{red}{(}\textcolor{blue}{3x+1}\textcolor{red}{)^2}

Recognizing the inner and outer pieces is the key skill for the chain rule.


Definition of the Chain Rule

The chain rule is a differentiation method, just like the Power Rule, Product Rule, and Quotient Rule from Unit 2. There are two common notations.

The first is Leibniz notation:

dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}

Here is what each piece means:

  • dydx\frac{dy}{dx} is the overall derivative you want to find.
  • uu is your inner function.
  • dydu\frac{dy}{du} is the derivative of the outer function with respect to the inner function.
  • dudx\frac{du}{dx} is the derivative of the inner function with respect to xx.

The second notation makes the structure clearer:

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

To differentiate a composite function, you work from the outside in. If there is another function nested inside g(x)g(x), the process repeats for that layer too.

Steps for the Chain Rule

  1. Define your inner and outer functions.
  2. Take the derivative of the outer function only, keeping the inside unchanged.
  3. Take the derivative of the inner function with respect to xx.
  4. Multiply the two derivatives to get your final answer.

A useful habit: every time you apply the chain rule, say "times the derivative of what's inside." That keeps you from skipping the last step.


The Chain Rule: Practice Problems

Example 1

Find the derivative of the following function with respect to xx.

y=(x2+3x1)2y=(x^2+3x-1)^2

1. Define your inner and outer functions.

The inner function is u=x2+3x1u=x^2+3x-1. The outer function is y=u2y=u^2.

2. Take the derivative of the outer function only.

dydu=2u=2(x2+3x1)\frac{dy}{du} = 2u = 2(x^2+3x-1)

Notice we have not touched the inner function uu yet.

3. Take the derivative of the inner function with respect to xx.

dudx=2x+3\frac{du}{dx} = 2x + 3

4. Multiply the two derivatives.

dydx=dydududx=2(x2+3x1)(2x+3)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = 2(x^2+3x-1) \cdot (2x+3)

Example 2

Let f(x)=exf(x)=e^x and g(x)=ln(x)g(x)= \ln(x). Find the derivative of y=f(g(x))y=f(g(x)) with respect to xx.

1. Define your inner and outer functions.

Here they are explicit: f(x)f(x) is the outer function and g(x)g(x) is the inner function.

2. Take the derivative of the outer function.

f(g(x))=eg(x)=eln(x)f'(g(x))=e^{g(x)}=e^{\ln(x)}

The derivative of exe^x is just exe^x.

3. Take the derivative of the inner function with respect to xx.

g(x)=1xg'(x)=\frac{1}{x}

4. Multiply the two derivatives.

f(g(x))g(x)=eln(x)1xf'(g(x))\cdot g'(x)=e^{\ln(x)}\cdot \frac{1}{x}

Example 3

This one has more terms inside.

y=4(5x3+2x2+6)2y=4(5x^3+2x^2+6)^2

1. Define your inner and outer functions.

The inner function is u=5x3+2x2+6u=5x^3+2x^2+6 and the outer function is y=4u2y=4u^2.

2. Take the derivative of the outer function.

dydu=8u=8(5x3+2x2+6)\frac{dy}{du}=8u=8(5x^3+2x^2+6)

3. Take the derivative of the inner function with respect to xx.

dudx=15x2+4x\frac{du}{dx} = 15x^2+4x

4. Multiply the two derivatives.

dydx=dydududx=8(5x3+2x2+6)(15x2+4x)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = 8(5x^3+2x^2+6) \cdot (15x^2+4x)

Example 4

Now try a square root.

y=7x2y=\sqrt{7x^2}

1. Define your inner and outer functions.

The inner function is u=7x2u=7x^2 and the outer function is y=uy=\sqrt{u}.

2. Take the derivative of the outer function.

dydu=12u12=12(7x2)12\frac{dy}{du} = \frac{1}{2}u^{-\frac{1}{2}}=\frac{1}{2}(7x^2)^{-\frac{1}{2}}

3. Take the derivative of the inner function with respect to xx.

dudx=14x\frac{du}{dx} = 14x

4. Multiply the two derivatives.

dydx=dydududx=12(7x2)12(14x)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \frac{1}{2}(7x^2)^{-\frac{1}{2}} \cdot (14x)

Example 5

Try this one yourself first.

f(x)=cos2(3x)f(x) = \cos^2(3x)

To help you start, the inner function is u=cos3xu=\cos 3x and the outer function is f(x)=u2f(x)=u^2. Notice this is nested twice: the cos\cos has 3x3x inside it, so you apply the chain rule more than once.

Here is the answer:

f(x)=2(cos3x)3sin(3x)=6sin(3x)cos(3x)f'(x)=2(\cos 3x)\cdot -3\sin(3x) = -6\sin(3x)\cos(3x)


How to Use This on the AP Calculus Exam

MCQ

  • Spot composite functions quickly. Watch for things like sin(3x)\sin(3x), tan(2x1)\tan(2x-1), ex2e^{x^2}, and (3x+1)5(3x+1)^5, where the chain rule is required.
  • When several rules apply at once, decide the order. For example, a product of two composite functions needs the product rule plus the chain rule on each piece.
  • You may get tables or graphs of functions with names other than ff and gg. Plug given values into f(g(x))g(x)f'(g(x)) \cdot g'(x) carefully.

Free Response

  • Show each layer of work: the outer derivative, the inner derivative, and the product. Clear steps make your reasoning easy to follow.
  • Keep your notation consistent. Mixing up dydx\frac{dy}{dx} and dydu\frac{dy}{du} leads to mistakes.

Common Trap

  • The most frequent error is forgetting to multiply by the derivative of the inside. Saying "times the derivative of what's inside" prevents it.
  • Misidentifying the inner function changes the whole answer. Double check which part is truly inside.

Common Misconceptions

  • Forgetting the inner derivative. Writing the derivative of (3x+1)5(3x+1)^5 as 5(3x+1)45(3x+1)^4 is incomplete. You still multiply by the derivative of 3x+13x+1, which is 3, giving 15(3x+1)415(3x+1)^4.
  • Thinking the chain rule replaces other rules. It works together with the power, product, and quotient rules, not instead of them.
  • Stopping after one layer. When a function is nested more than once, like cos2(3x)\cos^2(3x), you apply the chain rule for each layer until you reach xx.
  • Differentiating the inside too early. Take the outer derivative first while keeping the inside unchanged, then handle the inside separately.
  • Missing hidden compositions. Expressions like sin2x\sin^2 x or ex2e^{x^2} are composite even though they look compact. If there is a function inside another function, the chain rule applies.

Vocabulary

The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.

Term

Definition

chain rule

A differentiation rule that provides a method for finding the derivative of a composite function by multiplying the derivative of the outer function by the derivative of the inner function.

composite function

A function formed by combining two functions where the output of one function becomes the input of another.

derivative

The instantaneous rate of change of a function at a specific point, representing the slope of the tangent line to the function at that point.

differentiable function

Functions that have a derivative at every point in their domain, meaning they are smooth and continuous without sharp corners or breaks.

Frequently Asked Questions

What is the chain rule in AP Calculus?

The chain rule is the derivative rule for composite functions. If h(x) = f(g(x)), then h'(x) = f'(g(x)) times g'(x): take the derivative of the outside while keeping the inside, then multiply by the derivative of the inside.

How do you identify the inner and outer functions for the chain rule?

The inner function is the expression being plugged into another function, and the outer function is what acts on that expression. In (3x + 1)^5, the inner function is 3x + 1 and the outer function is u^5.

What is the chain rule in Leibniz notation?

In Leibniz notation, if y is a function of u and u is a function of x, then dy/dx = dy/du times du/dx. This notation is useful because it shows how each derivative layer connects.

When do you need the chain rule?

Use the chain rule whenever a function is nested inside another function, such as sin(3x), e^(x^2), ln(5x - 1), or (x^2 + 3x)^4. It can also combine with product, quotient, or implicit differentiation.

What is the most common chain rule mistake?

The most common mistake is forgetting to multiply by the derivative of the inner function. For example, the derivative of (3x + 1)^5 is 15(3x + 1)^4, not just 5(3x + 1)^4.

How does the chain rule show up on AP Calculus FRQs?

On FRQs, the chain rule often appears as one step inside a larger derivative problem, related rates setup, or implicit differentiation problem. Show the outer derivative and inner derivative clearly so your work is easy to follow.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot