How to integrate $\int_{-1}^1 \tan^{-1}\left(\frac{1}{\sqrt{1-x^2}}\right )\,dx$? Evaluate

$$\int_{-1}^1 \tan^{-1}\bigg (\dfrac{1}{\sqrt{1-x^2}}\bigg ) dx $$

Could somebody please help integrate this without using Differentiation under the Integral Sign?

$$
\begin{aligned}
I &=\int_{-1}^{1} \tan ^{-1}\left(\frac{1}{\sqrt{1-x^{2}}}\right) d x \\
&=2 \int_{0}^{1} \tan ^{-1}\left(\frac{1}{\sqrt{1-x^{2}}}\right) d x \\
& \stackrel{IBP}{=}  2\left[\tan ^{-1}\left(\frac{1}{\sqrt{1-x^{2}}}\right)\right]_{0}^{1}-2 \int_{0}^{1} x \cdot\frac{1}{1+\left(\frac{1}{\sqrt{1-x^{2}}}\right)^{2}}\left(\frac{x}{\left(-x^{2}\right)^{\frac{3}{2}}}d x \right)\\
&=\pi-2 \underbrace{\int_{0}^{1} \frac{x^{2}}{\left(2-x^{2}\right) \sqrt{1-x^{2}}} d x}_{J} 
\end{aligned}
$$
Let $x=\sin \theta$, where $0 \leqslant \theta \leqslant \dfrac{\pi}{2},$ then
$$
\begin{aligned}
J &=\int_{0}^{\frac{\pi}{2}} \frac{\sin ^{2} \theta}{\left(2-\sin ^{2} \theta\right) \cos \theta} \cos \theta d \theta \\
&=\int_{0}^{\frac{\pi}{2}} \frac{\sin ^{2} \theta}{2-\sin ^{2} \theta} d \theta \\
&=\int_{0}^{\frac{\pi}{2}}\left(\frac{2}{2-\sin ^{2} \theta}-1\right) d \theta \\
&=2 \int_{0}^{\frac{\pi}{2}} \frac{\csc ^{2} \theta}{2 \csc ^{2} \theta-1} d \theta-\frac{\pi}{2} \\
&=-2 \int_{0}^{\frac{\pi}{2}} \frac{d(\cot \theta)}{1+2 \cot ^{2} \theta}-\frac{\pi}{2}\\ 
&=-2 \cdot \frac{1}{\sqrt{2}}\left[\tan ^{-1}(\sqrt{2} \cot \theta)\right]_{0}^{\frac{\pi}{2}}-\frac{\pi}{2} \\
&=\frac{\pi \sqrt{2}}{2}-\frac{\pi}{2}
\end{aligned}
$$
Now we can conclude that $I=\pi(2-\sqrt{2})$.
