I tried to find the partial fractions of $\frac{1}{(z^2+1)^2}$ then
$\frac{1}{(z^2+1)^2}=\frac{A}{(z+i)^2}+\frac{B}{(z+i)}+\frac{C}{(z-i)^2}+\frac{D}{(z-i)}$
$1=A(z-i)^2+B(z+i)(z-i)^{2}+C(z+i)^2+D(z+i)^2(z-i)$
I got $A=D=-\frac{1}{4}$ but I am not sure how to get $B$ and $C$?
I there a way to find the values of $B$ and $C$? Also, is there a way to solve this integral without finding the partial fractions?