Stuck on this? Solve it with AI
calculus · worked example

Solve ∫ 1/x dx = ln|x| + C

Method: logarithm antiderivative. Verified step-by-step solution with our free AI math solver.
Problem

∫1x dx\int \frac{1}{x} \, dx

Step-by-step solution

  1. The power rule for integration ∫xn dx=xn+1n+1\int x^n \, dx = \frac{x^{n+1}}{n+1} fails when n=−1n = -1 (would divide by zero).

  2. Use the special antiderivative: ddxln⁡∣x∣=1x\frac{d}{dx}\ln|x| = \frac{1}{x}.

  3. Therefore ∫1x dx=ln⁡∣x∣+C\int \frac{1}{x} \, dx = \ln|x| + C.

  4. The absolute value ensures the result is valid for negative xx too (where ln⁡(x)\ln(x) would be undefined in reals).

Answer

ln⁡∣x∣+C\ln|x| + C

Want to solve a different problem? Open the integral solver →