Integral of $\frac {9x+9}{(x-1)(x^2+4x+13)}$
I am dumb founded by this question.
I know that the integral of $\frac {1}{x^2+4x+13}$ is equal to $\frac 13 \arctan(x+\frac {2}{3})+C$ If you set $dv= \frac {1}{x^2+4x+13}, v=\frac 13 \arctan(x+2/3)+C$ and $u=\frac {x+1}{x-1}, du= -\frac 2{(x-1)^2}$ integration by parts won't work.
I tried multiplying $(x-1)(x^2+4x+13)$ To get the bottom part which is $(x^3+3x^2+9x-13)$. Incidentally the derivative of $\ln(x^3+3x^2+9x-13)$ is $\frac {(x+2)(3x+3)}{x^3+3x^2+9x-13}.$ You can arrange $\int \frac {9x+9}{(x-1)(x^2+4x+13)}\ dx$ to $3\int \frac {(x+2)(3x+3)}{(x+2)(x^3+3x^2+9x-13)}\ dx$. But integration by parts won't work if you do that either.
As $x^2+4x+13$ is irreducible, the partial fraction decomposition theorem says you can write $$ \frac{9x+9}{(x-1)(x^2+4x+13)}=\frac{A}{x-1}+\frac{Bx+C}{x^2+4x+13}.$$ To determine the coefficients, multiply both sides by $(x-1)(x^2+4x+13)$: $$9(x+1)=A(x^2+4x+13)+(Bx+C)(x-1),$$ and set successively in this equality: