Based on the factors, the form of the partial fraction decomposition in the setup is
\begin{equation*}
\frac{3x^2 + 7x - 2}{x(x - 2)(x + 1)} = \frac{A}{x} + \frac{B}{x - 2} + \frac{C}{x + 1}
\end{equation*}
where \(A\text{,}\) \(B\text{,}\) and \(C\) are constants.
We can solve this rational equation by multiplying the giant denominator on both sides of the equation. We obtain
\begin{align*}
x(x - 2)(x + 1)\cdot\frac{3x^2 + 7x - 2}{x(x - 2)(x + 1)} \amp= \left(\frac{A}{x} + \frac{B}{x - 2} + \frac{C}{x + 1}\right)\cdot x(x - 2)(x + 1) \\
\amp \\
3x^2 + 7x - 2 \amp= A(x - 2)(x + 1) + Bx(x + 1) + Cx(x - 2)
\end{align*}
We can determine the values of \(A\text{,}\) \(B\text{,}\) and \(C\) using either method I or method II.
Richard will present
method II in this solution. You can for sure approach this using method I if you wish.
To determine the value of \(A\text{,}\) we need to cover up both \(B\) and \(C\text{.}\) To do so, we let \(x = 0\text{.}\)
\begin{align*}
3(0)^2 + 7(0) - 2 \amp= A(0 - 2)(0 + 1) + B(0)(0 + 1) + C(0)(0 - 2) \\
-2 \amp= -2A \\
A \amp= 1
\end{align*}
To determine the value of \(B\text{,}\) we need to cover up both \(A\) and \(C\text{.}\) To do so, we let \(x = 2\text{.}\)
\begin{align*}
3(2)^2 + 7(2) - 2 \amp= A(2 - 2)(2 + 1) + B(2)(2 + 1) + C(2)(2 - 2) \\
24 \amp= 6B \\
B \amp= 4
\end{align*}
To determine the value of \(C\text{,}\) we need to cover up both \(A\) and \(B\text{.}\) To do so, we let \(x = -1\text{.}\)
\begin{align*}
3(-1)^2 + 7(-1) - 2 \amp= A(-1 - 2)(-1 + 1) + B(-1)(-1 + 1) + C(-1)(-1 - 2) \\
-6 \amp= 3C \\
C \amp= -2
\end{align*}
Now we know the values of \(A\text{,}\) \(B\text{,}\) and \(C\text{,}\) we obtain
\begin{equation*}
\frac{3x^2 + 7x - 2}{x(x - 2)(x + 1)} = \frac{1}{x} + \frac{4}{x - 2} + \frac{-2}{x + 1}
\end{equation*}
This implies that
\begin{align*}
\int \frac{3x^2 + 7x - 2}{x(x - 2)(x + 1)}\, dx \amp= \int\left( \frac{1}{x} + \frac{4}{x - 2} + \frac{-2}{x + 1} \right)\, dx \\
\amp= \int \frac{1}{x}\, dx + 4\int \frac{1}{x - 2}\, dx -2\int \frac{1}{x + 1}\, dx \\
\amp= \ln|x| + 4\ln|x - 2| - 2\ln|x + 1| + C
\end{align*}