I'm having issues with the Partial Fractions method:
$$\int \left ( \frac{5x^2+3x-2}{x^3+2x^2} \right )dx$$
I am doing this in a way I was taught, which somehow I feel is a bit different from other methods online.
So, first of all, we must factorize the denominator:
$$x^3+2x^2 = (x+2)\cdot x^2$$
Great. So now we write three fractions:
$$\frac{A}{x^2} + \frac{B}{x} + \frac{C}{x+2}$$
Eventually we conclude that
$$A(x+2)+B(x+2)(x)+C(x^2) = 5x^2+3x-2$$
So now we look at what happens when $x = -2$:
$$C = 12$$
When $x = 0$:
$$A = -1$$
And now we are missing $B$, but we can just pick an arbitrary number for $x$ like... $1$:
$$B = -1$$
We replace the values here:
$$\int \frac{-1}{x^2}dx + \int \frac{-1}{x}dx + \int \frac{12}{x+2}dx$$
Which results in
$$\frac{1}{x}-\ln(x)+12\ln(x+2)+K$$
But I fear the answer actually is
$$\frac{1}{x}+2\ln(x)+3\ln(x+2)+K$$
Can you tell me what did I do wrong, and what should I have done?
You have an algebra error. When you put $x = -2$, the constraint equation collapses to $4C = 12$, so $C = 3$.
Your method for determining $B$ is correct – the constraining identity must hold for any $x$. Putting $x = 1$ is a fine choice as the arithmetic is easier. However the incorrect value for $C$ will affect the value you determine for $B$.