How to find definite integral $$\int_{-1}^1 \frac{1}{\sqrt{1-x^2}(1+x^2)}\,dx$$
using complex intergral?
And if $$ f(z) = \frac{1}{\sqrt{1-z^2}(1+z^2)}\,$$
There are simple poles at $$ z = i , z = -i $$ so I calculated residue at those poles, $$ \lim_{z \to i} (z-i)f(z) = \frac{-1}{2\sqrt2} $$ $$ \lim_{z \to -i} (z+i)f(z) = \frac{1}{2\sqrt2} $$
but it seems like I'm wrong, can you guys help me?
btw the answer is $$ \frac{\pi}{\sqrt2} $$