If integral 1/((x+2)(x^2+1)) dx = a log|1+x^2| + b tan^-1 x + 1/5 log|x+2| + c, then
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
$\frac{1}{(x+2)(x^2+1)} = \frac{1/5}{x+2} + \frac{-1/5x + 2/5}{x^2+1} \\ \int (\frac{1/5}{x+2} - \frac{1}{10}\frac{2x}{x^2+1} + \frac{2/5}{x^2+1}) dx = \frac{1}{5}\ln|x+2| - \frac{1}{10}\ln(x^2+1) + \frac{2}{5}\tan^{-1}x + c$
For problem 1, use partial fractions: $\frac{1}{(x+2)(x^2+1)} = \frac{A}{x+2} + \frac{Bx+C}{x^2+1}$. Solving gives $A=1/5, B=-1/5, C=2/5$. Integrating yields $\frac{1}{5}\ln|x+2| - \frac{1}{10}\ln(x^2+1) + \frac{2}{5}\tan^{-1}x + c$. Comparing coefficients, $a = -1/10$ and $b = 2/5$.