Tutorials › AP Calculus › The Chain Rule with Trigonometric Functions
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

The Chain Rule with Trigonometric Functions

How to combine the chain rule with sine, cosine, tangent, and other trigonometric functions. Once you recognize the inside function, these derivatives become almost mechanical.

Why Trigonometric Functions Need the Chain Rule

You already know the basic derivatives of the trigonometric functions. For example, the derivative of is , and the derivative of is .

But AP Calculus problems rarely stop at or . Instead, you will see compositions such as , , or . In each case, the trigonometric function is being applied to something more complicated than simply .

That is exactly when the chain rule is needed. You differentiate the trigonometric outside function and then multiply by the derivative of whatever is inside it.

The Basic Pattern

If , then:

The pattern is simple:

  1. Differentiate the trigonometric function.
  2. Keep the entire inside expression unchanged at first.
  3. Multiply by the derivative of the inside expression.

The Most Important Trigonometric Chain Rule Formulas

Sine

Cosine

Tangent

The same idea works for the other trigonometric functions. For example, if , then:

A Reliable Step-by-Step Method

  1. Find the trigonometric function. Is the outside function sine, cosine, tangent, secant, cosecant, or cotangent?
  2. Identify the inside function. Everything inside the trigonometric function is treated as one unit.
  3. Differentiate the outside function. Use the ordinary trigonometric derivative rule.
  4. Multiply by the derivative of the inside function. This is the chain-rule factor.
  5. Simplify only after the chain rule has been applied.

Worked Examples

Example 1: Sine of a Polynomial

Differentiate .

Step 1: Outside function: . Inside function: .
Step 2: Differentiate the outside function while leaving the inside alone:
Step 3: Differentiate the inside:
Step 4: Multiply:
Result:
Example 2: Cosine with a Nonlinear Inside Function

Differentiate .

Step 1: Outside function: . Inside function: .
Step 2: Derivative of the outside:
Step 3: Derivative of the inside:
Step 4: Multiply:
Result:
Example 3: Tangent Function

Differentiate .

Step 1: Outside function: . Inside function: .
Step 2: Derivative of tangent:
Step 3: Derivative of the inside:
Result:
Example 4: A Trigonometric Function Raised to a Power

Differentiate .

There are actually two layers here. The outside function is a power, and the next layer is the sine function.

Step 1: Apply the power rule to the outside:
Step 2: Now differentiate using the chain rule:
Step 3: Multiply the pieces together:
Result:
Example 5: Multiple Layers of Composition

Differentiate .

This expression has several nested layers: a power, a cosine function, and a linear function inside the cosine.

Step 1: Start with the outer power:
Step 2: Differentiate the cosine layer:
Step 3: Differentiate the innermost function:
Result:

Recognizing the Chain Rule Quickly

On an AP Calculus exam, you often do not need to formally write . Instead, train yourself to spot the structure immediately.

If the argument of the trigonometric function is anything other than simply , pause and ask: what is the derivative of the inside?

Common Mistakes

Forgetting the derivative of the inside

For , the answer is not just . You must multiply by the derivative of , giving .

Forgetting the negative sign for cosine

Remember: . Therefore, becomes , not a positive expression.

Confusing tangent with sine or cosine

The derivative of tangent is , which can also be written as . It is not .

Stopping after one layer

Expressions such as require more than one chain-rule step. Work from the outside inward and make sure every layer has been differentiated.

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4

Differentiate .

Show answer
Question 5 — Multiple Layers

Differentiate .

Show answer

A Final AP Calculus Checklist

Before moving on from a trigonometric chain-rule problem, ask yourself:

The key idea is simple: trigonometric chain-rule derivatives are just ordinary trigonometric derivatives plus one extra multiplication by the derivative of the inside. Once you see the layers, the process becomes systematic.

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