Tutorials › AP Calculus › Integrating Functions Resulting in Logarithms
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Integrating Functions Resulting in Logarithms

Recognize when an integral produces a logarithm, use the fundamental integral involving 1/x, and extend the idea to functions of the form f'(x)/f(x).

Why Logarithms Appear in Integration

Most basic integration problems are handled by reversing the power rule. But there is one important exception that appears frequently in AP Calculus: integrating a reciprocal function. The integral of does not follow the ordinary power rule pattern.

Instead, it produces a logarithm. This is because the derivative of is . Integration is the reverse process, so:

This idea becomes even more useful when the denominator is not simply , but is another function whose derivative also appears in the numerator.

The Basic Logarithmic Integral

The most important formula to remember is:

The absolute value is essential. The natural logarithm is defined only when its argument is positive, but the antiderivative of must work on intervals where is negative as well.

For example, both and have derivative on their respective domains. The compact antiderivative that covers both cases is .

The Pattern to Recognize

Many logarithmic integrals have the form:

The key is to notice that the numerator is the derivative of the denominator, possibly multiplied by a constant.

If is differentiable, then:

This is essentially the reverse of the chain rule. When differentiating a logarithm, the chain rule produces the derivative of the inside function. When integrating a function that looks like , you can reverse that process.

A Step-by-Step Method

  1. Look at the denominator. Ask whether its derivative appears in the numerator.
  2. Identify the inside function. Usually this is the entire denominator.
  3. Compare the numerator with the derivative of the denominator. If they differ by a constant, factor that constant out.
  4. Write the natural logarithm of the absolute value of the denominator.
  5. Add the constant of integration .

Worked Examples

Example 1: The Basic Reciprocal Integral

Evaluate .

Step 1: Recognize the reciprocal pattern: .
Step 2: Apply the logarithmic integral rule: .
Result:
Example 2: A Linear Denominator

Evaluate .

Step 1: Let . Then .
Step 2: Rewrite the integral: .
Step 3: Integrate: .
Result:
Example 3: The Numerator Is a Constant Multiple of the Denominator's Derivative

Evaluate .

Step 1: The denominator is , whose derivative is .
Step 2: The numerator is times the denominator's derivative.
Step 3: Therefore:
Result:
Example 4: Quadratic Inside Function

Evaluate .

Step 1: Let . Then .
Step 2: The integral becomes .
Step 3: Integrate: .
Result:
Example 5: When the Numerator Is Not Obviously the Derivative

Evaluate .

Step 1: The denominator is . Its derivative is .
Step 2: The numerator is , so factor it to create the denominator's derivative: .
Step 3: Pull out the constant: .
Result:

Definite Integrals and Logarithms

The same idea works for definite integrals. Once you find the antiderivative, evaluate it at the upper and lower bounds.

Example 6: A Definite Logarithmic Integral

Evaluate .

Step 1: An antiderivative is .
Step 2: Apply the Fundamental Theorem of Calculus: .
Step 3: Simplify: .
Result:

How This Connects to the Chain Rule

There is a useful way to understand these integrals rather than simply memorizing them. Start with the derivative of a logarithm:

Now apply the chain rule to :

Integration reverses this relationship. Therefore, whenever you see , you should think:

This is one of the most important pattern-recognition skills in integration. You are essentially asking, "Is this the derivative of a logarithm?"

Common Mistakes

Using the ordinary power rule for 1/x

The power rule would suggest treating as , but the power rule formula does not apply when the exponent is . The correct antiderivative is .

Forgetting the absolute value

Write , not simply . The absolute value makes the formula valid on intervals where the inside function is negative.

Forgetting the constant factor

If the numerator is a multiple of the denominator's derivative, that multiple must remain in the answer. For example, requires a factor of in front of the logarithm.

Missing the pattern when the denominator is complicated

A denominator such as may look intimidating, but its derivative is simple. Always differentiate the denominator mentally before deciding what integration method to use.

Practice Problems

Question 1

Evaluate .

Show answer
Question 2

Evaluate .

Show answer
Question 3

Evaluate .

Show answer
Question 4

Evaluate .

Show answer
Question 5 (Definite Integral)

Evaluate .

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