How to integrate this rational function?

128 Views Asked by At

Evaluate: $$\int\frac{x}{x^3-x^2+1}dx$$

None of the regular methods to integrate rational functions (substitution, partial fractions, etc.) seems to work.

1

There are 1 best solutions below

0
On BEST ANSWER

The denominator has only one real root, $x_0$. Hence,

$$x^3-x^2+1 = (x-x_0)(x^2+x(x_0-1)+x_0^2-x_0).$$

Then,

$$\frac{x}{x^3-x^2+1} = \frac{A}{x-x_0}+\frac{Bx+C}{x^2+(x_0-1)x+x_0^2-x_0} ,$$

which can be solved for $A,B,C$:

$$A=\frac{1}{3x_0-2},$$ $$B=-A,$$ $$C=A(x_0-1),$$

making the integral approachable.