AP Calculus AB and BC

Integral of x/(x^2-1): Substitution, Not Partials

The integral of x over x squared minus 1 is one half times the natural log of the absolute value of x squared minus 1, plus C. The numerator is half the derivative of the denominator, which makes this a substitution problem rather than a partial fractions problem.

xx21dx=12lnx21+C\int \frac{x}{x^{2}-1}\,dx = \frac{1}{2}\ln\left|x^{2}-1\right| + C

The numerator gives it away

The denominator is x21x^{2}-1 and its derivative is 2x2x. The numerator is xx, exactly half of that, which is the signal to substitute.

u=x21,du=2xdx,xdx=du2u = x^{2}-1,\quad du = 2x\,dx,\quad x\,dx = \frac{du}{2}
xx21dx=12duu=12lnu+C=12lnx21+C\int\frac{x}{x^{2}-1}\,dx = \frac{1}{2}\int\frac{du}{u} = \frac{1}{2}\ln\left|u\right| + C = \frac{1}{2}\ln\left|x^{2}-1\right| + C

The absolute value bars are load bearing. On 1<x<1-1 < x < 1 the quantity x21x^{2}-1 is negative while the integrand itself is continuous and finite, so without the bars the antiderivative would be undefined exactly where the function is best behaved.

Why partial fractions is the slower road

Since x21=(x1)(x+1)x^{2}-1 = \left(x-1\right)\left(x+1\right), partial fractions is legal: xx21=1/2x1+1/2x+1\frac{x}{x^{2}-1} = \frac{1/2}{x-1} + \frac{1/2}{x+1}, giving 12lnx1+12lnx+1+C\frac{1}{2}\ln\left|x-1\right| + \frac{1}{2}\ln\left|x+1\right| + C. Combine the logarithms and it is the same answer.

So the choice is about labour, not about right and wrong. Compare the numerator with the derivative of the denominator before anything else. If it matches up to a constant multiple, substitution ends in two lines. Only when it does not, as with dxx21\int\frac{dx}{x^{2}-1}, is the partial fractions setup earning its keep.

One constant per interval

The integrand is undefined at x = 1 and x = -1, so its domain is three separate intervals. An antiderivative may carry a different constant on each of them, because they are not connected. Within any one interval, +C behaves the usual way.

The mistakes students make

The technique is short enough that almost every lost mark here is a missing factor or a missing pair of bars.

  • Writing lnx21\ln\left|x^{2}-1\right| with no coefficient. Its derivative is 2xx21\frac{2x}{x^{2}-1}, twice the integrand.
  • Writing 12ln(x21)\frac{1}{2}\ln\left(x^{2}-1\right) without bars, which is undefined on 1<x<1-1 < x < 1 even though the integrand is continuous there.
  • Confusing the problem with dxx21\int\frac{dx}{x^{2}-1} and quoting 12lnx1x+1\frac{1}{2}\ln\left|\frac{x-1}{x+1}\right|. That is the answer with no xx in the numerator.

Every answer on this page is machine checked

An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.

Frequently asked questions

What is the integral of x/(x^2-1)?

It is 12lnx21+C\frac{1}{2}\ln\left|x^{2}-1\right| + C.

Do I need partial fractions for x/(x^2-1)?

No. The numerator is half the derivative of the denominator, so u=x21u = x^{2}-1 finishes it. Partial fractions gives the same answer after more work.

Why is there an absolute value inside the logarithm?

Because x21x^{2}-1 is negative on 1<x<1-1 < x < 1, and duu=lnu+C\int\frac{du}{u} = \ln\left|u\right| + C is the version that covers negative uu.