Tutorials › AP Calculus › Applying the Chain Rule to Composite Functions
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Applying the Chain Rule to Composite Functions

Learn how to recognize composite functions, identify their inner and outer functions, and apply the chain rule systematically to polynomial, trigonometric, exponential, logarithmic, and multi-layered functions.

Recognizing a Composite Function

A composite function is a function built by plugging one function into another. In function notation, it looks like : the function is applied to the output of .

For example, consider . You can think of this as two separate operations:

That is exactly the kind of nested structure the chain rule is designed to handle.

The Chain Rule

If , then the chain rule says:

The key idea is simple: differentiate the outside, keep the inside intact, and then multiply by the derivative of the inside.

How to Apply the Chain Rule

  1. Find the inside function. Look for the expression being operated on by another function.
  2. Identify the outside function. Ask what operation is being performed on that entire inside expression.
  3. Differentiate the outside function while treating the inside expression as a single variable.
  4. Multiply by the derivative of the inside function.
  5. Simplify your answer only after both derivatives have been taken.

Worked Examples

Example 1: Polynomial Composition

Differentiate .

Step 1: Inside function: . Outside function: .
Step 2: Differentiate the outside function while keeping the inside intact:
Step 3: Differentiate the inside function:
Step 4: Multiply:
Result:
Example 2: Trigonometric Composite Function

Differentiate .

Step 1: Inside function: . Outside function: .
Step 2: Differentiate the outside:
Step 3: Differentiate the inside:
Step 4: Multiply:
Result:
Example 3: Exponential Composite Function

Differentiate .

Step 1: Inside function: . Outside function: .
Step 2: The derivative of the outside function is .
Step 3: Differentiate the inside:
Step 4: Multiply:
Result:
Example 4: Logarithmic Composite Function

Differentiate .

Step 1: Inside function: . Outside function: .
Step 2: Differentiate the outside function:
Step 3: Differentiate the inside function:
Step 4: Multiply:
Result:
Example 5: A Three-Layer Composite Function

Differentiate . This function requires the chain rule more than once.

Step 1: The outermost function is , applied to the inside expression .
Step 2: Differentiating the outside gives .
Step 3: Now differentiate the middle function using the chain rule:
Step 4: The innermost derivative is .
Result:

Why the Chain Rule Works

The chain rule reflects the idea that a small change in the input travels through several functions. If changes with respect to , and changes with respect to , then the total rate of change is found by multiplying those rates together.

This is why the chain rule is especially important in applications. It lets you connect rates of change through multiple stages of a process.

Common Mistakes

Forgetting the derivative of the inside

A common incorrect answer to is . The missing factor is the derivative of the inside function, .

Changing the inside too soon

When differentiating , first treat as a single unit. The outside derivative is . Only after that do you multiply by the derivative of the inside.

Stopping after one chain-rule layer

Some functions contain multiple nested functions. For , the chain rule must be applied through the outer, middle, and inner layers. Look for every nested function before declaring the derivative finished.

Confusing the chain rule with the power rule

The power rule alone works for . But when the base is itself a function, such as , the chain rule supplies the additional factor.

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4

Differentiate .

Show answer

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon