Show that $$ 2\tan^{-1}\frac{\sqrt{x^2+a^2} - x + b}{\sqrt{a^2-b^2}} + \tan^{-1}\frac{x\sqrt{a^2-b^2}}{b\sqrt{x^2+a^2} + a^2} + \tan^{-1}\frac{\sqrt{a^2-b^2}}{b} = n\pi . $$
I tried using $$ x= a \tan \theta ,\; b= a \sin\phi,$$ but then calculations are not working out; that is, I am not able to further simplify.
Hints: