MathCalculus

Knowledge guide

Why the Antiderivative of 1/x Is ln|x|

Understand why ∫dx/x is ln|x| + C, why zero is excluded, and how the f′/f pattern extends the rule.

The usual power-rule antiderivative ∫xn dx=xn+1/(n+1)+C\int x^n\,dx=x^{n+1}/(n+1)+C requires n≠−1n\ne-1. For n=−1n=-1, the denominator in that formula would be zero. Instead,

ddxln⁡∣x∣=1xfor x≠0,∫dxx=ln⁡∣x∣+C.\frac{d}{dx}\ln|x|=\frac1x \quad\text{for }x\ne0, \qquad \int\frac{dx}{x}=\ln|x|+C.

The absolute value matters: ln⁡x\ln x is real only for x>0x>0, while ln⁡∣x∣\ln|x| differentiates to 1/x1/x on both x>0x>0 and x<0x<0. At x=0x=0 the integrand is undefined, so no single antiderivative spans across zero. If a domain contains both half-lines, its constants may be chosen independently.

The related chain-rule pattern is ∫f′(x)/f(x) dx=ln⁡∣f(x)∣+C\int f'(x)/f(x)\,dx=\ln|f(x)|+C wherever f(x)≠0f(x)\ne0. For a new example, let f(t)=3t+7f(t)=3t+7. Then

∫33t+7 dt=ln⁡∣3t+7∣+C,t≠−73.\int\frac{3}{3t+7}\,dt =\ln|3t+7|+C, \qquad t\ne-\frac73.

Check by differentiating the result. Do not drop the numerator derivative: ∫dt/(3t+7)=13ln⁡∣3t+7∣+C\int dt/(3t+7)=\frac13\ln|3t+7|+C.

Related question

Apply this knowledge

Use the concept guide to understand the reasoning, then return to the complete question and worked answer.

Antiderivative of 1/x: Evaluate ∫2/x dx

Sources

These references support the core concepts and interpretation boundaries explained above.

Why the Antiderivative of 1/x Is ln|x| | Verla