Integrating: $ \;\int \frac{1}{x^2+3x+2} dx $ How can I solve the following integral:
$$ \int  \frac{1}{x^2+3x+2} dx $$
Should I proceed by changing the variable (substitution)? or should I use integration by parts? Or another method altogether?
Thank you!

This integral is "screaming": Use partial fraction decomposition!, especially after we note that the denominator factors nicely $$x^2 + 3x + 2 = (x + 2)(x+1)$$
So our integral will take the form:
$$\int \frac 1{x^2 + 3x + 2} \,dx = \int \left(\frac A{x+2} + \frac B{x+1}\right)\,dx$$
Now, we solve for $A, B$ knowing that $$A(x+1) + B(x+2) = 0\cdot x + 1$$
If $x= -2$, then we have $A(-1) + 0\cdot B = 1\implies A = -1$.
If $x = -1,$ then we have $0\cdot A+ B = 1 \implies B = 1$.
So, the integral becomes $$\int \frac 1{x^2 + 3x + 2} \,dx = \int \left(\frac {-1}{x+2} + \frac 1{x+1}\right)\,dx =\int \left(\frac 1{x+1} - \frac 1{x+2}\right)\,dx$$
I trust you can take it from here.
