Euler Hall — free maths guides

The antiderivatives of e^x and 1/x

Antidifferentiate e to a constant multiple of x. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

The exponential passes through; the reciprocal becomes a logarithm

Two antiderivatives every later technique depends on:

∫ekx dx=1kekx+C,∫1x dx=ln⁡∣x∣+C.\int e^{kx}\,dx = \frac{1}{k}e^{kx} + C, \qquad \int \frac{1}{x}\,dx = \ln|x| + C.

The exponential rule is the power rule's opposite in spirit:exe^x is its own derivative, so it is its own antiderivative, and the only adjustment is dividing by the coefficient ofxx in the exponent. That division is the chain rule running backwards.

The reciprocal rule is the special case of the power rule that fails. Formally∫x−1\int x^{-1} would bex00\frac{x^0}{0}, which is undefined. The gap is filled by the logarithm, and this is not a convention:ddxln⁡x=1x\frac{d}{dx}\ln x = \frac1x is a fact, soln⁡x\ln x IS an antiderivative.

The absolute value matters.ln⁡x\ln x is defined only forx>0x > 0, but1/x1/x is defined for negativexx too. On that sideddxln⁡(−x)=1−x⋅(−1)=1x\frac{d}{dx}\ln(-x) = \frac{1}{-x}\cdot(-1) = \frac1x, soln⁡∣x∣\ln|x| covers both. Dropping the bars leaves half the domain unaddressed.

Why the reciprocal needs its own rule

The power rule's formula isxp+1p+1\frac{x^{p+1}}{p+1}. Atp=−1p = -1 the denominator is zero, so the formula yields nothing — not a wrong answer, but no answer.

What is needed is a function whose derivative isx−1x^{-1}. Define

L(x)=∫1xdtt.L(x) = \int_1^x \frac{dt}{t}.

This is continuous forx>0x > 0 and, by part one of the fundamental theorem,L′(x)=1xL'(x) = \frac1x. So the logarithm is not discovered by accident; it is CONSTRUCTED as the antiderivative that the power rule cannot supply.

Its other properties then follow from the integral. For instanceL(xy)=L(x)+L(y)L(xy) = L(x) + L(y) comes from splitting the integral atxx and substituting in the second piece — which is why logarithms turn multiplication into addition. That is the next lesson's subject.

Worked example: four exponential and reciprocal integrals

*∫e3x dx=13e3x+C\int e^{3x}\,dx = \frac13 e^{3x} + C.** Divided by 3.

*∫5e−x dx=−5e−x+C\int 5e^{-x}\,dx = -5e^{-x} + C.** The coefficient ofxx is−1-1, so dividing by it flips the sign.

*∫dxx=ln⁡∣x∣+C\int \frac{dx}{x} = \ln|x| + C.** The bare case.

*∫dx2x=12ln⁡∣x∣+C\int \frac{dx}{2x} = \frac12\ln|x| + C.** The constant12\frac12 factors out.

The second case is the one that costs marks:−x-x in the exponent means dividing by−1-1, and the resulting minus sign is easy to lose. Checking by differentiation takes one line and catches it every time.

By the end you can
  • Antidifferentiate e to a constant multiple of x
  • Antidifferentiate 1/x, with the absolute value
  • Explain why the reciprocal is the power rule's exception
Check yourself
  1. 1.∫e5x dx\int e^{5x}\,dx
  2. 2.∫2x dx\int \frac{2}{x}\,dx
  3. 3.∫e−2x dx\int e^{-2x}\,dx
Answers
  1. 1.15e5x+C\frac15 e^{5x} + C.
  2. 2.2ln⁡∣x∣+C2\ln|x| + C.
  3. 3.−12e−2x+C-\frac12 e^{-2x} + C.
Work out where to start — free, no accountAnswer six real questions — free, no account