Tutorials › AP Calculus › Derivatives of General Exponential and Logarithmic Functions (Base a)
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Derivatives of General Exponential and Logarithmic Functions (Base a)

How to differentiate exponential and logarithmic functions with any valid base a. The key ideas are the factors and , which extend the familiar and rules to bases other than .

The General Exponential Function

You already know the special exponential function . Its derivative is unusually simple because . But exponential functions can have any positive base other than 1, such as .

For a general exponential function , the derivative is:

The important new factor is . This is the natural logarithm of the base. When the base is , we have , so the familiar rule for is recovered automatically.

Why Does Appear?

The number is not arbitrary. Any exponential function with base can be rewritten using the natural exponential function:

Now differentiate using the chain rule. Since the derivative of is itself, the extra factor that appears is exactly :

This is the underlying reason the general exponential derivative rule works.

The Chain Rule Version

On the AP exam, you will often see a function such as , where the exponent is itself a function of . In that situation, apply the chain rule:

Think of it in three pieces: keep the original exponential expression, multiply by , and then multiply by the derivative of the exponent.

Worked Examples: Exponential Functions

Example 1: A Basic Exponential Function

Differentiate .

Step 1: Identify the base: .
Step 2: Use the general exponential rule: .
Result:
Example 2: Exponential Function with a Linear Exponent

Differentiate .

Step 1: The base is and the exponent is .
Step 2: Differentiate the outside exponential function: .
Step 3: Multiply by the derivative of the exponent, .
Result:
Example 3: Exponential Function with a Polynomial Exponent

Differentiate .

Step 1: Let the exponent be .
Step 2: The derivative of is .
Step 3: Apply the general exponential rule and the chain rule: .
Result:

The General Logarithmic Function

The logarithmic rule has a similar base-dependent factor. For the natural logarithm, you know:

For a logarithm with a general base , the derivative becomes:

Again, the natural logarithm appears. The denominator contains because changing the logarithm's base changes the scale of the function.

Why Does Appear?

Use the change-of-base formula:

Since is a constant with respect to , differentiate:

So the general logarithmic derivative rule is simply the familiar natural-log rule divided by .

The Chain Rule for General Logarithms

If the argument of the logarithm is itself a function , then the chain rule gives:

The pattern is worth memorizing: derivative of the inside divided by the inside, then divided by .

Worked Examples: Logarithmic Functions

Example 4: A Basic Logarithm with Base 2

Differentiate .

Step 1: Use the general logarithmic derivative rule: .
Step 2: Since the derivative of is , the result is:
Result:
Example 5: Logarithm with a Polynomial Argument

Differentiate .

Step 1: Let the inside function be .
Step 2: Its derivative is .
Step 3: Apply the chain-rule version of the logarithmic derivative: .
Result:
Example 6: Comparing Bases

Differentiate and compare it with .

For the first function:
For the second function:
Key observation: The derivative of has an extra factor of , while the derivative of does not.

Exponential vs. Logarithmic Derivatives

The two general rules are closely related:

For exponentials, appears as a multiplicative factor. For logarithms, appears in the denominator.

A useful way to remember the distinction is:

Important Domain Restrictions

For , the base must satisfy . A base of 1 does not produce a meaningful logarithm or a nonconstant exponential function.

For logarithms, the argument must be positive. Therefore, if , then:

For example, is only defined where . The derivative formula is not a substitute for checking the domain of the original function.

Common Mistakes

Forgetting the factor ln(a)

A common error is to write for the derivative of . The correct derivative is . The factor disappears only when the base is .

Putting ln(a) in the wrong place

For exponentials, is multiplied. For logarithms, is in the denominator. Mixing these up changes the derivative completely.

Forgetting the chain rule

For , the derivative is not simply . You must multiply by . Similarly, requires the derivative of its inside function.

Using the logarithm rule outside its domain

The real-valued function requires . Even though the algebraic derivative expression may look valid elsewhere, the original logarithmic function is not defined there.

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4

Differentiate .

Show answer
Question 5 (Combined Rules)

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