Calculus I › Integrals › full formula sheet

∫ (1/x) dx = ln|x| + C
Say it: the integral of 1 over x with respect to x equals the natural log of the absolute value of x, plus C

The reciprocal integral

The one power the power rule can’t touch — and why the absolute value bars are load-bearing, not decoration.

Notation on this page: ln is the natural logarithm (base e), and C is the constant of integration.

Before this lesson: Derivative of ln x · Integral power rule

Where it comes from

The problem: the power rule ∫ xn dx = xn+1/(n+1) + C works for every exponent — except one. Plug in n = −1 and you get x&sup0;/0: division by zero, meaningless. So the innocent-looking integrand 1/x = x−1 falls through a hole in the power rule, and something genuinely different has to fill it.

What function has derivative 1/x? For x > 0, the answer is ln x. But 1/x is also perfectly defined for negative x — and there ln x does not even exist. The tempting half-answer:

Before reading on: 1/x is perfectly defined at x = −3, but ln(−3) does not exist. The guess ln x + C therefore can’t be the whole story. What is the smallest fix that makes it work for negative x too?

∫ (1/x) dx = ln x + C  ??the tempting — and incomplete — guess

Test it where it hurts: ∫−2−1 dx/x. The guess says [ln x]−2−1 — but ln(−2) is undefined, so the guess cannot even be evaluated. Yet the integral is a perfectly good (negative) area. The fix: for x < 0, use ln(−x), whose derivative is:

d/dx [ln(−x)]
=
(1/(−x)) · (−1) = 1/x
Chain rule: the −1 from the inside cancels the −1 in the denominator. So ln(−x) is an antiderivative of 1/x on the negative side.
ln|x|
=
{ ln x for x > 0; ln(−x) for x < 0 }
The absolute value unifies both cases in one symbol: |x| = x when x > 0, |x| = −x when x < 0. One formula, both sides of zero.

Intuition: 1/x is an odd function with two separate branches, and its antiderivative must be built branch by branch — ln|x| is exactly that two-branch construction, stitched into a single expression.

Derivation

We verify F(x) = ln|x| branch by branch. The absolute value is defined piecewise, so the verification splits the same way — and both branches land on 1/x.

x > 0
⇒
ln|x| = ln x
Step 1 — positive branch. For x > 0, |x| = x, so F(x) = ln x and F′(x) = 1/x by the basic log derivative.
x < 0
⇒
ln|x| = ln(−x)
Step 2 — negative branch. For x < 0, |x| = −x. Chain rule: d/dx [ln(−x)] = (1/(−x))·(−1) = 1/x. The two minus signs annihilate each other.
F′(x)
=
1/x   on (−∞, 0) and (0, ∞)
Step 3 — unify. Both branches differentiate to 1/x, so ln|x| is an antiderivative of 1/x everywhere it is defined (x ≠ 0). Hence ∫ dx/x = ln|x| + C. ∎

A subtlety, honestly noted: because 1/x lives on two disconnected intervals, the “constant” C can technically be a different constant on each side. Calculus I courses write a single C, which is correct whenever you stay on one side of zero — and that covers every problem on the exam.

How to use it

Before reading on: if the answer really is ln|x| + C, differentiating must return 1/x on both sides of zero. Which differentiation rule will the x < 0 branch force you to use?

The procedure, every time:

  1. Spot exactly 1/x (or x−1). Not 1/x², not 1/(x+1) — exactly 1/x, possibly times a constant.
  2. Write ln|x| + C. The bars are mandatory, not optional.
  3. Constants factor out: ∫ (4/x) dx = 4 ln|x| + C. And ∫ dx/(3x) = (1/3) ln|x| + C — pull the 1/3 out first.
  4. Simplify quotients before integrating: (x+1)/x = 1 + 1/x. Never integrate a fraction as a lump — split it into a sum first.
  5. Check by differentiating: d/dx [ln|x|] should give back 1/x.

Reciprocal or power rule?

This is the #1 judgment call of the chapter. Only the exact exponent −1 gets the logarithm. 1/x² = x−2 → power rule: −1/x + C. 1/√x = x−1/2 → power rule: 2√x + C. Drill the pair: “negative one is log; everything else is power.”

Common mistake: writing ∫ dx/x² = ln|x²| + C. The ln belongs to 1/x alone. For 1/x², use the power rule: ∫ x−2 dx = −1/x + C. Differentiate to check: d/dx [ln(x²)] = 2/x ≠ 1/x².

Worked examples

Four problems, easiest first. In each one, read every step — the why of each move is the lesson.

Example 1 — the basic move: ∫ dx/x

  1. Recognize the forbidden exponent. 1/x = x−1 — the power rule explicitly excludes n = −1.
  2. Write the answer: ln|x| + C. (Why the bars? 1/x exists for negative x, and only |x| keeps the log defined there.)
  3. Check: d/dx [ln|x|] = 1/x on both branches. Matches ✓
Common mistake: writing x&sup0;/0 + C — plugging n = −1 into the power rule anyway. The formula forbids it for a reason: division by zero.
Your turn: Compute ∫ (−3/x) dx.

Answer: −3 ln|x| + C

Factor the constant: −3·∫ dx/x = −3 ln|x| + C. Check: d/dx [−3 ln|x|] = −3/x. ✓

Example 2 — definite: ∫1e dx/x

  1. Antiderivative: ln|x| = ln x here (the interval [1, e] is positive, so the bars are silent).
  2. Evaluate: ln e − ln 1 = 1 − 0 = 1.
  3. Sanity check: on [1, e], 1/x falls from 1 to ≈0.368, so the area should be between 0.368·(e−1) ≈ 0.63 and 1·(e−1) ≈ 1.72. The answer 1 sits inside. ✓
Common mistake: writing ln e − ln 1 = e − 1. But ln e = 1 (log of the base is 1), not e.
Your turn: Compute ∫1e2 dx/x.

Answer: 2

Antiderivative ln x (positive interval, bars silent): ln(e2) − ln 1 = 2 − 0 = 2. ✓

Example 3 — with a constant: ∫ (4/x) dx

  1. Factor the constant out. 4·∫ dx/x. (Why allowed? The constant-multiple rule for integrals.)
  2. Apply the reciprocal rule: 4·ln|x|.
  3. Add +C: 4 ln|x| + C.
  4. Check: d/dx [4 ln|x|] = 4/x. Matches ✓
Your turn: Compute ∫ (7/(2x)) dx.

Answer: (7/2) ln|x| + C

Factor 7/2 out: (7/2)·∫ dx/x = (7/2) ln|x| + C. Check: d/dx [(7/2) ln|x|] = (7/2)(1/x) = 7/(2x). ✓

Example 4 — split first: ∫ (2x + 3/x) dx

  1. Split into two integrals: ∫2x dx + ∫(3/x) dx. (Why? The sum rule — and the second piece is exactly the reciprocal pattern.)
  2. First piece (power rule): 2·(x²/2) = x².
  3. Second piece (reciprocal rule): 3 ln|x|.
  4. Combine with one +C: x² + 3 ln|x| + C.
  5. Check: d/dx gives 2x + 3/x. Matches ✓
Common mistake: trying the power rule on 3/x (the −1 trap) or “distributing” the integral into a product. Split sums; never split products.
Your turn: Compute ∫ (x3 + 2/x) dx.

Answer: x4/4 + 2 ln|x| + C

Split: power rule on x3 gives x4/4; reciprocal rule on 2/x gives 2 ln|x|. One +C. Check: d/dx gives x3 + 2/x. ✓

Memorization tips

  • Say it aloud: “one over x integrates to log-abs-x.” Three beats, in order: reciprocal, log, bars.
  • Drill the pair: “negative one is log; everything else is power.” The single most-tested distinction in the chapter.
  • The bars test: if your antiderivative would break on negative x while the integrand survives there, you dropped the | |.
  • Anchor on e: ∫1e dx/x = 1. One clean definite integral that ties the log to its base.
  • Rewrite reflex: 1/(3x) = (1/3)·(1/x). Pull constants out before reaching for the rule.
  • Quotient alarm: (x²+1)/x is not “one over something” — split it into x + 1/x first, then integrate each piece.

Final challenge

Five mixed questions — negative bounds, the power-rule trap, and splits. Score 5/5 and the reciprocal is yours.

← Back to the Calculus I formula sheet

How to learn a formula here

  1. Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
  2. Work the examples with the answers covered, then uncover one step at a time and compare.
  3. Finish with the final challenge — five mixed questions including the classic traps.
  4. Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.

Frequently asked questions

What is the integral of 1/x?

∫ dx/x = ln|x| + C. The power rule fails at n = −1 (it would divide by zero), and the logarithm is the genuinely different antiderivative that fills the gap.

Why does the answer need absolute value bars?

1/x is defined for negative x too, but ln x is not. Writing ln|x| covers both sides: for x < 0, d/dx [ln(−x)] = 1/x by the chain rule.

Is ∫ dx/x² also ln|x| + C?

No — 1/x² = x−2, and −2 is not the forbidden exponent, so the power rule applies: ∫ dx/x² = −1/x + C. Only exactly 1/x gets the logarithm.

What is ∫1e dx/x?

ln e − ln 1 = 1 − 0 = 1. The natural log is tailor-made for this integral.

How do I integrate (x+1)/x?

Split it first: (x+1)/x = 1 + 1/x, so ∫ (x+1)/x dx = x + ln|x| + C. Never integrate a quotient as a single lump — simplify first.

More from the codex