Note that the degree of the numerator is larger than the degree of the denominator so we must first do polynomial long division before we can do the partial fractions decomposition.
We expand the denominator to get \((x^{2}+x+2)(x-1)=x^{3}+x-2\).
Dividing \(5x^{4}-5x^{3}+14x^{2}-9x+23\) by \(x^{3}+x-2\) we obtain
That means we can write our original integral as
The first integral is easy to compute so we now focus on the second integral
The degree of the top is less than the degree of the denominator so we can use partial fractions to decompose the fraction.
In this case we look at the denominator. It was originally given as \((x^{2}+x+2)(x-1)\).
Can we factor the quadratic term \(x^{2}+x+2\) further?
The denominator can be factored into the product of one irreducible quadratic factor and one simple linear factor.
That means, for some constants \(A\), \(B\) and \(C\) we have:
We need to determine the constants \(A\),\(B\), \(C\).
We clear denominators by multiplying both sides of the above equation by \(\answer {(x^{2}+x+2)(x-1)}\).
This gives us
Let us determine the unknown coefficients by expanding the right hand side and then identify coefficients of like terms on the left and right.
Comparing the coefficients of powers of \(x\) on both the left and right we obtain the following system of linear equations
Comparing the \(x^{2}\) terms we get \(\answer {A+B}=9\)
Comparing the \(x\) terms we get \(\answer {A-B+C}=6\)
Comparing the constant terms we get \(\answer {2A-C}=13\)
That means our original integral can now be written as
We compute the first integral
Then we compute the second integral
Finally the third integral becomes