Solution (source code)

= Solution

The numerator is the <derivative> of the denominator. Using the <chain rule> in reverse gives the <antiderivative>
$$
\boxed{\ln|x^2+3x-2|+C}.
$$
The <absolute value> makes this real on every interval where the denominator is nonzero. The integration constant may be chosen independently on the intervals separated by $x=(-3\pm\sqrt{17})/2$.