I have a formula $t = \frac{1}{\sqrt{1+x^2}}$
How is it possible to convert it into $x = +-\frac{\sqrt{1-t^2}}{t}$
I am assuming that it is an inverse function that is calculated by replacing x with t in the original equation, and then solving for x?
But I can't figure out how did it become like this. Am I just failing with the basic algebra, or is there something else to it?

Square both sides to get $$ t^2=\frac {1}{1+x^2}$$ Reciprocate to get $$ \frac {1}{t^2}=1+x^2$$ $$x^2=\frac {1}{t^2}-1=\frac{1-t^2}{t^2}$$
Take square root and switch $x$ and $t$