polynomial long division Integration $$
\int \frac{3x^2 +6x +2}{x^2 + 3x +2}dx
$$
I've been trying to solve this integral, my gut tells me to use polynomial long division so I factored and got
$$
\int \frac{3x^2 +6x +2}{(2+x)(1+x)}dx
$$
I have never done a division with two factors in the denominator, would anybody be able to help out?

You do polynomial long division just like you do long division on integers.
$
\require{enclose}
\begin{array}{r}
                3  \\
x^2 + 3x + 2 \enclose{longdiv}{3x^2+6x+2} \\
     \underline{3x^2 + 9x + 6} \\
                -3x - 4  
\end{array}
$
$\frac {3x+6x + 2}{x^2+3x + 2} = 3 - \frac {3x+ 4}{x^2+3x+2}$
But I think what you are really looking for is something like
$\frac {3x^2+6x + 2}{x^2+3x + 2} = A + \frac {B}{x+1} + \frac {C}{x+2}\\
3x^2+6x + 2 = A(x^2 + 3x + 2) + B(x+2) + C(x+1)\\
3x^2 + 6x +2 = Ax^2  +(3A + B + C)x + (2A + 2B + C)$
The two polynomial are equal if all of the coefficients are equal
$A = 3\\
3A + B + C = 6\\
2A + 2B + C = 2$
And solve for $A,B,C$
