Let \(x=\cos 2\theta\), where \(\theta\in\left[0,\dfrac{\pi}{2}\right]\). This is possible because \(x\in[-1,1]\), and the given domain \(-\dfrac{1}{\sqrt{2}}\le x\le 1\) corresponds to \(0\le\theta\le\dfrac{3\pi}{8}\).
Then
\[\sqrt{1+x}=\sqrt{1+\cos 2\theta}=\sqrt{2\cos^2\theta}=\sqrt{2}\,\cos\theta\]
and
\[\sqrt{1-x}=\sqrt{1-\cos 2\theta}=\sqrt{2\sin^2\theta}=\sqrt{2}\,\sin\theta,\]
since \(\cos\theta\ge 0\) and \(\sin\theta\ge 0\) on \(\left[0,\dfrac{\pi}{2}\right]\).
Therefore
\[\frac{\sqrt{1+x}-\sqrt{1-x}}{\sqrt{1+x}+\sqrt{1-x}}=\frac{\sqrt{2}\cos\theta-\sqrt{2}\sin\theta}{\sqrt{2}\cos\theta+\sqrt{2}\sin\theta}=\frac{\cos\theta-\sin\theta}{\cos\theta+\sin\theta}.\]
Dividing numerator and denominator by \(\cos\theta\),
\[\frac{\cos\theta-\sin\theta}{\cos\theta+\sin\theta}=\frac{1-\tan\theta}{1+\tan\theta}=\tan\left(\frac{\pi}{4}-\theta\right).\]
Now \(0\le\theta\le\dfrac{3\pi}{8}\), so
\[-\frac{\pi}{8}\le\frac{\pi}{4}-\theta\le\frac{\pi}{4}.\]
Thus \(\dfrac{\pi}{4}-\theta\in\left(-\dfrac{\pi}{2},\dfrac{\pi}{2}\right)\), and hence
\[\tan^{-1}\left(\tan\left(\frac{\pi}{4}-\theta\right)\right)=\frac{\pi}{4}-\theta.\]
Since \(x=\cos 2\theta\), we have \(2\theta=\cos^{-1}x\), so \(\theta=\dfrac{1}{2}\cos^{-1}x\). Therefore
\[\tan^{-1}\left(\frac{\sqrt{1+x}-\sqrt{1-x}}{\sqrt{1+x}+\sqrt{1-x}}\right)=\frac{\pi}{4}-\frac{1}{2}\cos^{-1}x,\]
for \(-\dfrac{1}{\sqrt{2}}\le x\le 1\). Hence proved.