Let $I=\int \tan ^{-1} \sqrt{\frac{1-x}{1+x}} d x$
Put $x=\cos 2 \theta$
$\begin{aligned} \therefore \quad I & =\int \tan ^{-1} \sqrt{\frac{1-\cos 2 \theta}{1+\cos 2 \theta}} d x \\ & =\int \tan ^{-1} \sqrt{\tan ^2 \theta} d x \\ & =\int \theta d x \\ & =\frac{1}{2} \int 1 \cdot \cos ^{-1} x d x \\ & =\frac{1}{2}\left[\cos ^{-1} x \cdot x+\int \frac{x}{\sqrt{1-x^2}} d x\right] \\ & =\frac{1}{2}\left[x \cos ^{-1} x-\sqrt{1-x^2}\right]+c\end{aligned}$