Tutorials › AP Calculus › Derivatives of Natural Logarithmic Functions
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Derivatives of Natural Logarithmic Functions

Learn the derivative of ln(x), understand why the formula works, and apply it to logarithmic functions with polynomial, trigonometric, exponential, and other composite inputs.

The Derivative of

The natural logarithm, written , is one of the most important functions in calculus. Its derivative has an unusually simple form:

The key idea is that the derivative of is the reciprocal of its input. This rule is valid wherever is defined, so the input must be positive.

For example, if , then:

Notice that the derivative is not another logarithm. Differentiating removes the logarithm and produces a rational function.

Why the Formula Makes Sense

The natural logarithm is the inverse of the exponential function. In other words, if , then .

Differentiate both sides with respect to :

Since , we have:

Solving for gives:

Because , this becomes:

That is why the derivative of the natural logarithm is .

The General Rule:

The basic formula becomes much more useful when the input to the logarithm is itself a function of . This is a direct application of the chain rule.

In words: take 1 over the inside function, then multiply by the derivative of the inside function.

This is exactly the same pattern as the chain rule for other composite functions. The outer function is , and its derivative is .

A Step-by-Step Method

  1. Identify the inside function. Find what is contained inside the natural logarithm.
  2. Write 1 over the inside function. This comes from the derivative of .
  3. Multiply by the derivative of the inside function.
  4. Simplify. Look for factors that cancel or expressions that can be rewritten more clearly.

Worked Examples

Example 1: Basic Natural Logarithm

Differentiate .

Step 1: The inside function is .
Step 2: Apply the basic rule .
Result:
Example 2: Natural Logarithm of a Polynomial

Differentiate .

Step 1: Inside function: .
Step 2: The derivative of the outside is .
Step 3: Differentiate the inside: .
Step 4: Multiply: .
Result:
Example 3: Natural Logarithm of a Trigonometric Function

Differentiate .

Step 1: Inside function: .
Step 2: Apply the logarithm rule: .
Step 3: The derivative of the inside is .
Result: .
Example 4: Natural Logarithm of an Exponential Function

Differentiate .

Step 1: Inside function: .
Step 2: Its derivative is .
Step 3: Apply the logarithm derivative rule: .
Result: .

This example can also be simplified using the logarithm identity , which provides a useful check on the answer.

Example 5: A Rational Function Inside the Logarithm

Differentiate .

Step 1: Let .
Step 2: Its derivative is .
Step 3: Apply the chain rule: .
Step 4: Simplify: .
Result: .

An Important Shortcut:

When the argument of the natural logarithm is a positive differentiable function, the rule can be remembered compactly as:

This form is especially useful when the inside function is complicated. Instead of explicitly thinking about "outside" and "inside" functions every time, you can recognize the pattern immediately.

For instance, if , then:

The structure is always the same: derivative of the inside divided by the inside.

When the Input Is Not Simply

A common mistake is to assume that the derivative of every natural logarithm is simply . That is only true when the input itself is .

Compare these two examples:

In the second example, the extra factor appears because the derivative of the inside function is .

Common Mistakes

Forgetting the derivative of the inside

For , an answer of is incomplete. You must multiply by the derivative of , giving .

Writing the derivative as another logarithm

The derivative of is not . The correct derivative is .

Forgetting the domain restriction

For a real-valued natural logarithm, the input must be positive. If , then the function is defined only where .

Confusing with

The derivative of is , while the derivative of is . The constant multiplier matters.

AP Calculus Connection: Logarithmic Differentiation

The derivative rule for becomes particularly powerful when used for logarithmic differentiation. This technique is useful when a function contains products, quotients, or variable exponents that would be difficult to differentiate directly.

For example, consider:

Take the natural logarithm of both sides:

Using the logarithm power rule:

Differentiate both sides implicitly:

Finally, multiply by :

The important AP Calculus idea is that the derivative of provides a simple way to turn complicated multiplication, division, and exponent structures into sums and differences before differentiating.

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4 (Combined Rules)

Differentiate .

Show answer
Question 5 (Logarithmic Differentiation)

Use logarithmic differentiation to find .

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