Problem 267
Medium Partial Fractions

Evaluate the integral: I = integral

Evaluate the integral: $$ I = \int \frac{x^5+x^4-2}{x^4-4x^2+4}\,dx. $$

Explanation of Method

The integrand is an improper rational function, so polynomial long division is performed first. The denominator factors as $(x^2-2)^2$, and the remainder is decomposed into partial fractions over the repeated irrational quadratic factor.

  1. Divide the numerator by the denominator.
  2. Factor the denominator as $(x^2-2)^2$.
  3. Decompose the remainder into partial fractions.
  4. Integrate each piece.

Step 1 · Polynomial long division

Dividing $x^5+x^4-2$ by $x^4-4x^2+4$:

$$ \frac{x^5+x^4-2}{x^4-4x^2+4} = x+1 + \frac{4x^3+4x^2-4x-6}{x^4-4x^2+4}. $$

Step 2 · Factor the denominator and decompose

$$ x^4-4x^2+4 = (x^2-2)^2, \qquad \frac{4x^3+4x^2-4x-6}{(x^2-2)^2} = \frac{Ax+B}{x^2-2} + \frac{Cx+D}{(x^2-2)^2}. $$

Multiplying through: $4x^3+4x^2-4x-6=(Ax+B)(x^2-2)+Cx+D$. Matching coefficients: $A=4$, $B=4$, and then $-2A+C=-4\Rightarrow C=4$, $-2B+D=-6\Rightarrow D=2$.

Step 3 · Integrate the pieces

$$ \int(x+1)\,dx = \frac{x^2}2+x. $$

$$ \int \frac{4x+4}{x^2-2}\,dx = 2\ln\left|x^2-2\right| + 4\int\frac{dx}{x^2-2} = 2\ln\left|x^2-2\right| + \sqrt2\ln\left|\frac{x-\sqrt2}{x+\sqrt2}\right|. $$

For $\displaystyle\int\frac{4x+2}{(x^2-2)^2}\,dx$, split into $4\int\frac{x}{(x^2-2)^2}dx+2\int\frac{dx}{(x^2-2)^2}$. The first piece is $-\dfrac{2}{x^2-2}$. The second uses the reduction formula $\displaystyle\int\frac{dx}{(x^2-a^2)^2}=-\frac{x}{2a^2(x^2-a^2)}-\frac{1}{4a^3}\ln\left|\frac{x-a}{x+a}\right|$ with $a^2=2$:

$$ 2\int\frac{dx}{(x^2-2)^2} = -\frac{x}{2(x^2-2)} - \frac{\sqrt2}{8}\ln\left|\frac{x-\sqrt2}{x+\sqrt2}\right|. $$

Step 4 · Combine everything

$$ I = \frac{x^2}2+x + 2\ln\left|x^2-2\right| + \sqrt2\ln\left|\frac{x-\sqrt2}{x+\sqrt2}\right| - \frac2{x^2-2} - \frac{x}{2(x^2-2)} - \frac{\sqrt2}8\ln\left|\frac{x-\sqrt2}{x+\sqrt2}\right| + C. $$

Combining the two logarithms of $\left|\tfrac{x-\sqrt2}{x+\sqrt2}\right|$: $\sqrt2-\tfrac{\sqrt2}8=\tfrac{7\sqrt2}8$. Combining the two fractional terms over $x^2-2$: $-\tfrac{2}{x^2-2}-\tfrac{x}{2(x^2-2)}=-\tfrac{x+4}{2(x^2-2)}$.


Summary Table

Piece Antiderivative
$x+1$$x^2/2+x$
$(4x+4)/(x^2-2)$$2\ln|x^2-2|+\sqrt2\ln\left|\tfrac{x-\sqrt2}{x+\sqrt2}\right|$
$(4x+2)/(x^2-2)^2$$-\tfrac{x+4}{2(x^2-2)}-\tfrac{\sqrt2}8\ln\left|\tfrac{x-\sqrt2}{x+\sqrt2}\right|$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{x^2}2+x + 2\ln\left|x^2-2\right| + \frac{7\sqrt2}8\ln\left|\frac{x-\sqrt2}{x+\sqrt2}\right| - \frac{x+4}{2(x^2-2)} + C. $$