Integrals Yielding Natural Logarithm
Filling the Gap in the Power Rule
Remember the power rule for integration?
$$\int x^n \, dx = \frac{x^{n+1}}{n+1} + C \quad \text{(when } n \neq -1\text{)}$$
What happens when $n = -1$? The formula would give $\frac{x^0}{0}$, which is undefined.
This is where the natural logarithm saves us:
$$\boxed{\int \frac{1}{x}\,dx = \ln\vert x\vert + C}$$
The integral of $\frac{1}{x}$ is not a power function; it is a logarithm. This formula fills the one gap in the power rule and connects differentiation of logs back to integration.
Prerequisite Map
Before You Start
Quick check: Do you know the derivative of ln?
Test: What is $\frac{d}{dx}[\ln(x^2 + 1)]$?
Answer: $\frac{2x}{x^2 + 1}$
If this is unfamiliar, review Derivative of Natural Log first.
Quick Reference
| Integral | Result | Valid Domain |
|---|---|---|
| $\displaystyle\int \frac{1}{x}\,dx$ | $\ln\|x\| + C$ | $x \neq 0$ |
| $\displaystyle\int \frac{f'(x)}{f(x)}\,dx$ | $\ln\|f(x)\| + C$ | $f(x) \neq 0$ |
| $\displaystyle\int \frac{1}{ax + b}\,dx$ | $\frac{1}{a}\ln\|ax + b\| + C$ | $ax + b \neq 0$ |
Verification: You can always check by differentiating your answer.
Key Concepts
The Fundamental Formula
$$\boxed{\int \frac{1}{x}\,dx = \ln\vert x\vert + C}$$
Why the absolute value? The function $\frac{1}{x}$ is defined for all $x \neq 0$, including negative $x$. But $\ln x$ only accepts positive inputs. The absolute value extends our antiderivative to negative values:
- For $x > 0$: $\ln\vert x\vert = \ln x$, and $\frac{d}{dx}(\ln x) = \frac{1}{x}$ ✓
- For $x < 0$: $\ln\vert x\vert = \ln(-x)$, and $\frac{d}{dx}(\ln(-x)) = \frac{1}{-x} \cdot (-1) = \frac{1}{x}$ ✓
The Pattern Recognition Formula
This is the most important formula for recognizing ln integrals:
$$\boxed{\int \frac{f'(x)}{f(x)}\,dx = \ln\vert f(x)\vert + C}$$
In words: If the numerator is the derivative of the denominator, the integral is ln of the denominator.
How to spot it:
- Look at the denominator. Call it $f(x)$.
- Ask: Is the numerator $f'(x)$ (or a constant multiple of it)?
- If yes, the integral involves $\ln\vert f(x)\vert $.
Linear Denominators
For $\int \frac{1}{ax + b}\,dx$:
Let $u = ax + b$, so $du = a\,dx$, meaning $dx = \frac{1}{a}du$.
$$\int \frac{1}{ax + b}\,dx = \frac{1}{a}\int \frac{1}{u}\,du = \frac{1}{a}\ln\vert u\vert + C = \frac{1}{a}\ln\vert ax + b\vert + C$$
Shortcut formula: $$\boxed{\int \frac{1}{ax + b}\,dx = \frac{1}{a}\ln\vert ax + b\vert + C}$$
Practice Problems
Evaluate $\displaystyle\int_1^e \frac{1}{x}\,dx$.
Evaluate $\displaystyle\int \frac{1}{3x + 5}\,dx$.
Evaluate $\displaystyle\int \frac{2x}{x^2 + 4}\,dx$.
Evaluate $\displaystyle\int \frac{x}{x^2 + 1}\,dx$.
Evaluate $\displaystyle\int \tan x\,dx$.
Evaluate $\displaystyle\int_1^e \frac{\ln x}{x}\,dx$.
Find the area of the region under $y = \frac{1}{x}$ from $x = 1$ to $x = 2$.
Why do we write $\int \frac{1}{x}dx = \ln\vert x\vert + C$ instead of $\ln x + C$?
Verify that $\frac{d}{dx}(\ln\vert x\vert ) = \frac{1}{x}$ for both positive and negative $x$.
Pattern Recognition Guide
When you see an integral, ask these questions:
Is the denominator linear? ($ax + b$)
- Answer: $\frac{1}{a}\ln\vert ax + b\vert + C$
Is the numerator the derivative of the denominator?
- If yes: $\ln\vert (\text{denominator})\vert + C$
- If almost (off by a constant): factor out the constant, then apply the rule
Is it a trig function in disguise?
- $\tan x = \frac{\sin x}{\cos x}$ → leads to $-\ln\vert \cos x\vert $ or $\ln\vert \sec x\vert $
- $\cot x = \frac{\cos x}{\sin x}$ → leads to $\ln\vert \sin x\vert $
Common Mistakes
| Mistake | Why It’s Wrong | Correct Approach |
|---|---|---|
| $\int \frac{1}{x}dx = \ln x + C$ | Missing absolute value | $\ln\|x\| + C$ |
| $\int \frac{1}{2x}dx = \ln\|2x\| + C$ | Forgot the coefficient adjustment | $\frac{1}{2}\ln\|2x\| + C$ or equivalently $\frac{1}{2}\ln\|x\| + C$ |
| $\int \frac{x}{x^2}dx = \ln\|x^2\| + C$ | The numerator is not the derivative of denominator | $\int \frac{1}{x}dx = \ln\|x\| + C$ |
| Writing $\ln(x^2 + 4)$ without checking sign | Could need absolute value | Here $x^2 + 4 > 0$ always, so no absolute value needed |
Common Misconceptions
$\int \frac{1}{x}\,dx = \ln x + C$, omitting the absolute value.
This is the concept-image-conflicts-definition error. The function $\frac{1}{x}$ is defined for all $x \neq 0$, including negative values. On the interval $(-\infty, 0)$, the correct antiderivative is $\ln(-x) + C$, since $\frac{d}{dx}[\ln(-x)] = \frac{-1}{-x} = \frac{1}{x}$. Writing $\ln\vert x\vert + C$ unifies both cases. Omitting the absolute value produces an antiderivative that is only valid for $x > 0$, yet $\frac{1}{x}$ is perfectly integrable on intervals that do not include zero.
Mastery Checklist
Mental Model
“Derivative on top, function on bottom = ln of the bottom”
When you see a fraction where:
- Bottom = some function $f(x)$
- Top = the derivative $f'(x)$ (or close to it)
Then the integral is $\ln\vert f(x)\vert + C$.
Visual check: Cover the numerator. Take its derivative mentally. Does it match (or nearly match) the numerator you see? If yes, use ln.
Connections
Looking back:
- This reverses the Derivative of Natural Log
- Uses u-substitution for complex cases
Looking ahead:
- Partial fractions reduces complex fractions to simple ones that yield ln
- Many differential equations have solutions involving ln
Real-world applications:
- Radioactive decay: $\int \frac{dN}{N} = \ln\vert N\vert $ appears in half-life calculations
- Population growth models
- Sound intensity (decibels): involves $\ln$ or $\log_{10}$
| Previous | Up | Next |
|---|---|---|
| Derivative of General Logs | Section 6.4 | e as a Limit |
Last updated: 2026-01-23