5D

Integrating the reciprocal function

The integral of 1/x as ln|x|, the standard forms for 1/(ax+b) and f'(x)/f(x), integrals over negative intervals, and finding the integral of ln x from a given derivative.

The power rule $\displaystyle\int x^n\,dx = \dfrac{x^{n+1}}{n + 1} + C$ breaks down for exactly one power, $n = -1$, because it would divide by zero. Since $\dfrac{d}{dx}\ln x = \dfrac1x$, the logarithm fills that gap.

Standard forms

For $x \gt 0$, $\displaystyle\int \dfrac1x\,dx = \ln x + C$. But $\dfrac1x$ also exists for $x \lt 0$, where $\ln x$ doesn't. There, $\dfrac{d}{dx}\ln(-x) = \dfrac{-1}{-x} = \dfrac1x$, so $\ln(-x)$ is the primitive. Both cases combine into $\ln|x|$.

Integrals giving logarithms
$$\int \frac1x\,dx = \ln|x| + C \qquad \int \frac{1}{ax + b}\,dx = \frac1a\ln|ax + b| + C \qquad \int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C$$
Example 1●

Evaluate (a) $\displaystyle\int_1^e \dfrac1x\,dx$ (b) $\displaystyle\int_0^2 \dfrac{1}{2x + 1}\,dx$ (c) $\displaystyle\int_{-3}^{-1} \dfrac1x\,dx$.

(a) $\Big[\ln x\Big]_1^e = 1 - 0 = 1$
ln e = 1 and ln 1 = 0.
(b) $\Big[\tfrac12\ln(2x + 1)\Big]_0^2 = \tfrac12(\ln 5 - \ln 1) = \tfrac12\ln 5$
a = 2, so divide by 2.
(c) $\Big[\ln|x|\Big]_{-3}^{-1} = \ln 1 - \ln 3 = -\ln 3$
The interval is negative, so the absolute value matters: ln|−1| = 0 and ln|−3| = ln 3.

Answer (c) is negative because $\dfrac1x$ is below the $x$-axis on that interval, just as in 3C. The interval must not contain $x = 0$, where $\dfrac1x$ has an asymptote.

The numerator is the derivative of the denominator

When the top is the derivative of the bottom, or a constant multiple of it, the integral is a log of the bottom.

Example 2●●

Find (a) $\displaystyle\int \dfrac{2x}{x^2 + 1}\,dx$ (b) $\displaystyle\int_0^1 \dfrac{x}{x^2 + 1}\,dx$ (c) $\displaystyle\int \dfrac{x^2 + 1}{x}\,dx$.

(a) $\ln(x^2 + 1) + C$
2x is exactly the derivative of x² + 1, which is always positive, so no absolute value is needed.
(b) $\tfrac12\displaystyle\int_0^1 \dfrac{2x}{x^2 + 1}\,dx = \tfrac12\Big[\ln(x^2 + 1)\Big]_0^1 = \tfrac12\ln 2$
Balance with ½ to make the top 2x.
(c) $\displaystyle\int \left(x + \dfrac1x\right)dx = \tfrac12 x^2 + \ln|x| + C$
Here the top is not the derivative of the bottom. Split the fraction instead.

Using an initial condition

Example 3●●

$f'(x) = \dfrac{1}{2x - 1}$ for $x \gt \tfrac12$, and $f(1) = 3$. Find $f(x)$.

$f(x) = \tfrac12\ln(2x - 1) + C$
Standard form with a = 2. No absolute value is needed, since 2x − 1 > 0 on the given domain.
$f(1) = \tfrac12\ln 1 + C = C = 3$
Substitute x = 1, where 2x − 1 = 1 and ln 1 = 0.
$f(x) = \tfrac12\ln(2x - 1) + 3$

A primitive of $\ln x$

No standard form gives $\displaystyle\int \ln x\,dx$. Exam questions provide a derivative to use.

Example 4●●●

Differentiate $x\ln x$. Hence find $\displaystyle\int_1^e \ln x\,dx$.

$\dfrac{d}{dx}(x\ln x) = \ln x + 1$
Product rule, from 5B.
$\displaystyle\int (\ln x + 1)\,dx = x\ln x$, so $\displaystyle\int \ln x\,dx = x\ln x - x + C$.
Integrate both sides, then move the integral of 1 across.
$\displaystyle\int_1^e \ln x\,dx = \Big[x\ln x - x\Big]_1^e = (e - e) - (0 - 1) = 1$

Your turn

Evaluate $\displaystyle\int_1^2 \dfrac{x^2 + 1}{x}\,dx$, giving the exact answer.

Show the working

Split: $\displaystyle\int_1^2 \left(x + \dfrac1x\right)dx = \Big[\tfrac12 x^2 + \ln x\Big]_1^2 = (2 + \ln 2) - \tfrac12 = \tfrac32 + \ln 2$.

Flashcards
$displaystyleint dfrac1x,dx$
$\ln|x| + C$
$displaystyleint dfrac{1}{ax + b},dx$
$\dfrac1a\ln|ax + b| + C$
$displaystyleint dfrac{f'(x)}{f(x)},dx$
$\ln|f(x)| + C$
Practice
  1. Evaluate $\displaystyle\int_1^e \dfrac1x\,dx$.

  2. Evaluate $\displaystyle\int_1^3 \dfrac1x\,dx$, to two decimal places.

  3. $\displaystyle\int \dfrac{1}{2x + 1}\,dx =$

  4. Evaluate $\displaystyle\int_0^2 \dfrac{1}{2x + 1}\,dx$, to two decimal places.

  5. $\displaystyle\int \dfrac{2x}{x^2 + 1}\,dx =$

  6. Evaluate $\displaystyle\int_0^1 \dfrac{x}{x^2 + 1}\,dx$, to two decimal places.

  7. Evaluate $\displaystyle\int_{-3}^{-1} \dfrac1x\,dx$, to two decimal places.

  8. Given $\dfrac{d}{dx}(x\ln x) = \ln x + 1$, evaluate $\displaystyle\int_1^e \ln x\,dx$.

  9. Exam style: $f'(x) = \dfrac{1}{2x - 1}$ for $x \gt \tfrac12$, and $f(1) = 3$. Find $f(5)$, to two decimal places.

  10. Exam style: evaluate $\displaystyle\int_2^4 \dfrac{x + 1}{x^2 + 2x}\,dx$, to two decimal places.

Formula sheet