I can see that in the function $\sin{2x}$, x can be any real number.
But I can also see that in the function $\frac{2 \tan {x}}{1 + \tan^2{x}}$, x cannot be $n \pi + \frac{\pi}{2}$ where n = any integer.
But both functions are equal. How can two functions which are equal have different domains ?