Verify the identity: $\tan^{-1} x + \tan^{-1} (1/x) = \frac\pi 2, x > 0$
$$\alpha= \tan^{-1} x$$
$$\beta = \tan^{-1} (1/x)$$
$$\tan \alpha = x$$
$$\tan \beta = 1/x$$
$$\tan^{-1}[\tan(\alpha + \beta)]$$
$$\tan^{-1}\left [{\tan\alpha + \tan\beta\over 1 - \tan\alpha \tan\beta} \right]$$
$$\tan^{-1}\left[ {x + 1/x\over 1- x/x }\right]$$
$$\tan^{-1}\left[{x + (1/x)\over 0} \right]$$
I can't find out what I'm doing wrong..

Hint: When you want to prove that something smooth is constant, use derivatives.
details: if $f(x) = \arctan x + \arctan\frac 1x$ then $$ f'(x) = \frac 1{1+x^2} + \frac 1{1+\left(\frac 1x\right)^2}\times \left(-\frac{1}{x^2}\right) =0 $$ then $f(x) = f(1) = 2\arctan 1 = \frac\pi 2$ on the interval $\{x>0\}$.
The problem of your method is that the formula you are using is true only when $$ \alpha , \beta, \alpha + \beta \neq \frac\pi 2 \mod \pi $$