I was solving the integral $$\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{1}{\tan^6(x)+1}dx$$ and here's my solution:
Let $I = \int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{1}{\tan^6(x)+1}dx$, then $$I=2\int_{0}^{\frac{\pi}{2}}\frac{1}{\tan^6(x)+1}dx.$$ Subs. $u=\tan x,dx=\frac{1}{1+u^2}du$.
$$I = 2\int_{0}^{\infty}\frac{1}{(1+u^6)(1+u^2)}du$$ $$I=2\left(\int_{0}^{1}\frac{1}{(1+u^6)(1+u^2)}du + \int_{1}^{\infty}\frac{1}{(1+u^6)(1+u^2)}du\right).$$
On the first integral, $u \mapsto u^{-1}$, ending with $$I=2\int_{1}^{\infty}\frac{du}{1+u^2}=\frac{\pi}{2}.$$
Using the same approach, I was able to prove that the equality holds for all $n\in \mathbb{Z}$. Going beyond, and using Wolfram Alpha, the equality seems to hold for all reals $n$, but only for the real part. So, here's my question:
Claim. Let $$\mathcal{I}=\Re{\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{1}{\tan^{2n}(x)+1}dx}.$$ Then, $\mathcal{I}=\frac{\pi}{2}, \forall n \in \mathbb{R}.$
First of all: Is the Claim true?
If positive, can I prove it using the same methods?