Skip to content
Helper

Integration of 1/x and Every Power of x

Why 1/x integrates to ln|x| and how the power rule handles every other power

Class 11 and 12Worked examples Checked 23 Nov

The integration of 1/x is ln|x| + C, the natural log of the modulus of x. It is the single power of x that the usual power rule cannot handle, because putting the power -1 into that rule leaves a zero on the bottom of the fraction.

Every other power follows one rule: add 1 to the power and divide by the new power. This page shows that rule on x, x2, 2x, √x, 1/x2 and constants, then covers ax, e2x and the family of standard forms such as 1/(1 + x2) that appear in the same chapter.

Wooden blocks in a falling curve, a reminder of the integration of 1/x
One power breaks the power rule: x to the power -1.

At a glance

  • ∫ (1/x) dx

    ln|x| + C
  • Power rule

    xn+1/(n + 1), n ≠ -1
  • ∫ x dx

    x2/2 + C
  • ∫ 1 dx

    x + C
  • ∫ (1/x<sup>2</sup>) dx

    -1/x + C
  • ∫ √x dx

    (2/3)x3/2 + C
  • ∫ a<sup>x</sup> dx

    ax/ln a + C

Why the integration of 1/x is a log

∫ (1/x) dx = ln|x| + C

Start from differentiation. The derivative of ln x is 1/x for x greater than 0. Reverse that and ln x is an antiderivative of 1/x. For negative x, ln(-x) also has derivative (1/(-x)) × (-1) = 1/x. Joining both cases gives ln|x|, which is why the modulus is part of the answer and not decoration.

Now see why the power rule breaks. In words, raise the power by one and divide by the raised power. Put n = -1 and the bottom becomes 0. So 1/x needs its own rule, and the log fills that gap exactly.

The power rule for x to the power n

∫ xn dx = xn+1/(n + 1) + C, for n ≠ -1
  1. Rewrite roots and fractions as powers: √x = x1/2, 1/x3 = x-3.
  2. Add 1 to the power.
  3. Divide by that new power.
  4. Change back to root or fraction form if the question used it, and add C.
Integration of x, x^2, 2x, root x and other powers
FunctionAs a powerIntegral (plus C)
1x0x
xx1x2/2
2x2x1x2
x2x2x3/3
√xx1/2(2/3)x3/2
1/√xx-1/22√x
1/x2x-2-1/x
1/xx-1ln|x|, the exception

Integration of a constant and of 1

A constant k is k × x0, so the power rule gives kx. In short, ∫ k dx = kx + C. The integration of 1 is therefore x + C, and ∫ 7 dx = 7x + C.

Two related facts are often asked as one mark questions. The integral of 0 is just a constant C, because the derivative of any constant is 0. And a constant multiple comes outside the sign: ∫ 5x2 dx = 5 × x3/3 = (5/3)x3 + C. The same holds for 1/x, so ∫ (3/x) dx = 3 ln|x| + C.

Exponentials: a^x, e^2x and e^x^2

∫ ax dx = ax/ln a + C, for a > 0, a ≠ 1

This is the integration of a^x for any positive base other than 1. So ∫ 2x dx = 2x/ln 2 + C. For the integration of e^2x, divide by the 2 in the power: ∫ e2x dx = e2x/2 + C. Full details on exponential sums are on our page for the integration of e^x.

Be careful with ex2, e raised to x squared. It has no answer in terms of school functions at all. If a question seems to need it, look again: usually there is an x beside it, as in ∫ 2x ex2 dx, and then t = x2 turns it into ∫ et dt = ex2 + C.

Standard forms that grow out of 1/x

These results sit in the same list in class 12 and are proved by substitution or partial fractions. Learn the shape of each denominator.

Integration of 1/1+x^2 and its relatives
IntegrandResult (plus C)
1/(1 + x2)tan-1x
1/(a2 + x2)tan-1(x/a) divided by a
1/(a2 - x2)(1/2a) ln|(a + x)/(a - x)|
1/(x2 - a2)(1/2a) ln|(x - a)/(x + a)|
√(a2 - x2)(x/2)√(a2 - x2) + (a2/2) sin-1(x/a)
√(x2 + a2)(x/2)√(x2 + a2) + (a2/2) ln|x + √(x2 + a2)|

The inverse tangent and inverse sine forms are explained further on our page on the integration of inverse trig functions.

Solved examples with 1/x and powers

Example 1. Evaluate the definite integral of 1/x from 1 to 2.

  1. Antiderivative: ln|x|.
  2. ln 2 - ln 1 = ln 2 - 0.
  3. Answer: ln 2, close to 0.6931 (4 decimal places).

Example 2. Find ∫ 1/(2x + 3) dx.

  1. Put t = 2x + 3, so dt = 2 dx and dx = dt/2.
  2. ∫ (1/t)(dt/2) = (1/2) ln|t|.
  3. Answer: (1/2) ln|2x + 3| + C.

Rule of thumb: for 1/(ax + b), the answer is (1/a) ln|ax + b| + C.

Example 3. Find ∫ (x2 + 1)/x dx.

  1. Divide each term by x: x + 1/x.
  2. ∫ x dx = x2/2 and ∫ (1/x) dx = ln|x|.
  3. Answer: x2/2 + ln|x| + C.

Example 4. Evaluate the integral of √x from 1 to 4.

  1. Antiderivative: (2/3)x3/2.
  2. At 4: (2/3) × 8 = 16/3. At 1: 2/3.
  3. Answer: 16/3 - 2/3 = 14/3, about 4.6667.

Example 5. Find ∫ (5x4 - 4x + 7) dx.

  1. Term by term: 5 × x5/5 = x5.
  2. -4 × x2/2 = -2x2.
  3. 7 gives 7x.
  4. Answer: x5 - 2x2 + 7x + C.

Slips that cost marks

  • Applying the add one, divide rule to 1/x and ending with a zero denominator. Spot the -1 power and switch to ln|x|.
  • Writing ln x2 for ∫ 1/x2 dx. That one is a normal power: the answer is -1/x + C.
  • Forgetting to divide by the new power for roots. ∫ √x dx is not x3/2; it needs the factor 2/3.
  • Missing the 1/a factor in ∫ 1/(ax + b) dx.

For the next layer of rules, such as sums, products and substitution, visit the integration hub or try the mixed set in our integration questions.

Practice with answers

1. ∫ (4/x) dx

Show answer

4 ln|x| + C.

2. ∫ x-3 dx

Show answer

x-2/(-2) = -1/(2x2) + C.

3. ∫ 1/(1 + x2) dx from 0 to 1

Show answer

tan-11 - tan-10 = π/4, about 0.7854.

4. ∫ (1/x2) dx from 1 to 2

Show answer

[-1/x] = -1/2 + 1 = 1/2.

5. ∫ (x + 1/x)2 dx

Show answer

Expand: x2 + 2 + 1/x2. Answer: x3/3 + 2x - 1/x + C.

Frequently asked questions

What is the integration of 1/x?

It is ln|x| + C. The modulus keeps the answer correct when x is negative.

Why does the power rule fail for 1/x?

1/x is x-1, and the rule would divide by n + 1 = 0. Division by zero is not allowed, so a separate log rule is used.

What is the integration of 1/x^2?

Write it as x-2. Adding 1 gives x-1, and dividing by -1 gives -1/x + C.

What is the integration of root x?

√x is x1/2, so the integral is x3/2/(3/2) = (2/3)x3/2 + C. This can also be written (2/3)x√x + C.

What is the integration of x dx?

∫ x dx = x2/2 + C. Likewise the integration of 2x is x2 + C and of x2 is x3/3 + C.

What is the integration of 1 / x when x is negative?

It is still ln|x| + C. For negative x, ln(-x) differentiates to 1/x, and ln|x| covers this case.

What is the integration of e^x^2?

Not in terms of ordinary functions. Only versions with a matching x factor, such as 2x ex2, can be integrated at school level, giving ex2 + C.