I need to determine the inverse function for the following function:
$$ f:\mathbb{R}\to\mathbb{R}\ \ \ \text{with}\ \ f(x)=x^2\\ \text{so I need to determine}\\ f^{-1}(\{25\}) $$
So I know that the function $f(x)=x^2$ is bijective, so it has a inverse.
I was thinking to do the assignment, in the following manner: $$ \text{find the inverse of $f(x)=x^2$}\\ y=x^2\\ \pm\sqrt{y}=x\\ f^{-1}(x)=\pm\sqrt{x}\\ \text{now that I have the inverse function, I can put $25$ inside, so I get:}\\ f^{-1}(\{25\})=\pm5\\ $$
Did I do this right? Any advice appreciated.
Thank you!