Before decomposing the integrand into partial fractions, we need to perform polynomial long division because the degree of the numerator, \(3\text{,}\) is greater than the degree of the denominator, \(2\text{.}\) We need to do this because partial fraction decompsition leads to a sum of rational functions where the degree of the numerator is less than the degree of the denominator.
After completing polynomial long division, we find that
\begin{equation*}
\frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} = 3x + \frac{7-3x}{-x^2+3x-2} \, ,
\end{equation*}
hence, we can change the original integral
\begin{equation}
\int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx = \int 3x \, dx + \int \frac{7-3x}{-x^2+3x-2} \, dx\tag{5.14}
\end{equation}
We’ll proceed by using the method of partial fraction decomposition on the integrand \(\frac{7-3x}{-x^2+3x-2} \text{.}\)
Notice that the denominator factors as \(-x^2+3x-2= (x-1)(2-x) \text{,}\) so we’ll suppose the integrand decomposes as
\begin{equation*}
\frac{7-3x}{(x-1)(2-x)}= \frac{A}{x-1}+ \frac{B}{2-x}
\end{equation*}
and we’ll look for constants \(A \) and \(B \text{.}\)
Multiplying both sides of the equation by the denominator of the left hand side, \((x-1)(2-x)\text{,}\) we find that
\begin{equation*}
7-3x = A(2-x) + B(x-1)
\end{equation*}
To find \(A\) and \(B\text{,}\) we will rearrange the right hand side of the equation so that similar terms are grouped.
\begin{align*}
7-3x&=2A-Ax+Bx-B \\
7-3x&=(B-A)x+(2A-B)
\end{align*}
To make sure the coefficients of \(x\) match on each side of the equation and that the constant terms are the same on each side of the equation, we obtain the following system of equations:
\begin{equation*}
-3=B-A \text{ and } 7=2A-B
\end{equation*}
We find that
\(A=4 \) and
\(B=1 \text{.}\) Thus, using
Equation (5.14), we can rewrite the original integral as
\begin{align*}
\int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx &= \int 3x \, dx + \int \frac{7-3x}{-x^2+3x-2} \, dx \\
&= \int 3x \, dx + \int \frac{4}{x-1} + \frac{1}{2-x} \, dx
\end{align*}
These integrals can be evaluated by using the antidifferentiation rules from
Table 5.16 and using appropriate substitutions, and hence we find that
\begin{align*}
\int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx &= \int 3x \, dx + \int \frac{4}{x-1}\, dx + \int \frac{1}{2-x} \, dx\\
&=\frac{3}{2}x^2 + 4\ln|x-1| - \ln|2-x|+C
\end{align*}