Tutorials › AP Calculus › The Chain Rule with Exponential and Logarithmic Functions
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

The Chain Rule with Exponential and Logarithmic Functions

Learn how to differentiate expressions such as , , and by combining the exponential and logarithmic derivative rules with the chain rule.

Why the Chain Rule Matters for Exponential and Logarithmic Functions

The basic derivative rules for exponential and logarithmic functions are simple: and . The difficulty begins when the exponent or logarithm contains something more complicated than just .

For example, is not simply an exponential function whose exponent is . The exponent itself is another function of . Likewise, contains a logarithm applied to the inner function .

Whenever one function is applied to another function, you should immediately think: chain rule.

The Core Chain Rule Formulas

If the outside function is and the inside function is , then:

For the natural exponential function, the chain rule gives:

For the natural logarithm, the chain rule gives:

These two formulas are worth knowing cold. The structure is very similar: differentiate the outside function, keep the inside intact, then multiply by the derivative of the inside.

Exponentials: The Most Important Pattern

Start with the basic derivative:

Now replace with a function . The chain rule gives:

Notice something important: when differentiating , the exponential expression stays exactly the same. The only new factor is , which comes from differentiating the exponent.

Worked Examples: Exponential Functions

Example 1: Basic Exponential Chain Rule

Differentiate .

Step 1: Identify the outside and inside functions: and .
Step 2: Differentiate the outside function while leaving the exponent alone: .
Step 3: Multiply by the derivative of the exponent: .
Result:
Example 2: Exponential Function with a Quadratic Exponent

Differentiate .

Step 1: The outside function is and the inside function is .
Step 2: Differentiate the outside: .
Step 3: Differentiate the exponent: .
Result:

Exponential Functions with Bases Other Than

The derivative of is:

When the exponent is itself a function, apply the chain rule:

There are now two factors in the derivative: the original exponential expression, the constant , and the derivative of the exponent.

Example 3: General Exponential Base

Differentiate .

Step 1: Outside function: . Inside function: .
Step 2: The derivative of the outside is: .
Step 3: Differentiate the exponent: .
Result:

Logarithms: The Other Major Pattern

The basic derivative of the natural logarithm is:

If the input to the logarithm is itself a function, the chain rule adds the derivative of that inside function:

The most important pattern to recognize is therefore: one over the inside, multiplied by the derivative of the inside.

Example 4: Natural Logarithm with a Polynomial Inside

Differentiate .

Step 1: Outside function: . Inside function: .
Step 2: Differentiate the outside: .
Step 3: Differentiate the inside: .
Result:
Example 5: Logarithm with a Trigonometric Function Inside

Differentiate .

Step 1: The inside function is .
Step 2: The derivative of is: .
Step 3: Multiply by the derivative of the inside: .
Result:

Logarithms with Bases Other Than

For logarithms with an arbitrary base , the derivative is:

If the argument is a function , apply the chain rule:

Example 6: Common Logarithm with the Chain Rule

Differentiate .

Step 1: Since this is a base-10 logarithm, use .
Step 2: The inside function is , whose derivative is .
Step 3: Apply the chain rule: .
Result:

A Useful AP Calculus Shortcut

On AP Calculus questions, you will often encounter an expression that looks intimidating but follows a familiar pattern. Train yourself to recognize these forms immediately:

The visual structure matters more than the specific numbers. Once you see an exponential or logarithm wrapped around another function, identify the inside function and multiply by its derivative.

Combining the Chain Rule with Other Derivative Rules

The chain rule rarely appears by itself on harder AP Calculus problems. You may need to combine it with the product rule, quotient rule, or another chain rule.

Example 7: Product Rule + Chain Rule + Exponential Function

Differentiate .

Step 1: This is a product, so begin with the product rule: .
Step 2: The derivative of is .
Step 3: For , use the chain rule: .
Result:
Example 8: Quotient Rule + Chain Rule + Logarithm

Differentiate .

Step 1: Use the quotient rule: .
Step 2: Differentiate the numerator: .
Step 3: Differentiate the denominator using the chain rule: .
Result:

Nested Chain Rules

Sometimes the inside function contains another exponential or logarithmic function. In that situation, the chain rule can be applied more than once.

Example 9: Chain Rule Applied Twice

Differentiate .

Step 1: The outside function is the exponential function. Its derivative is: .
Step 2: Now differentiate the exponent . Because it contains , the chain rule must be used again.
Step 3: .
Result:

Common Mistakes

Forgetting the derivative of the exponent

A common error is writing for the derivative of . The exponential stays the same, but the chain rule requires multiplication by the derivative of the exponent.

Forgetting the derivative of the logarithm's inside function

The derivative of is not merely when is a function. The correct result is .

Confusing e raised to a function with a power function

Expressions such as and may look similar, but they are different types of functions. For , the exponent is a variable expression and the derivative keeps the exponential function intact.

Forgetting the ln(a) factor

For a general exponential function , the derivative is not simply . You must include the factor .

Using the logarithm rule incorrectly

Remember the pattern: . The derivative of the inside function belongs in the numerator.

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4

Differentiate .

Show answer
Question 5

Differentiate .

Show answer
Question 6 (Combined Rules)

Differentiate .

Show answer

The Pattern to Remember

If you remember only one thing from this tutorial, remember the structure rather than memorizing dozens of separate examples:

For an exponential:

For a natural logarithm:

The chain rule is simply the mechanism that carries the derivative of the inside function through to the final 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