I am trying to find the image of the following function:
$$f:\mathbb{R}\rightarrow\mathbb{R}, \\f(x)=|1-x^2|.$$
I know trivially that the image is in ${[0,\infty[}$, but I'm looking for a way to algebraically solve it.
So I have tried taking a $y\in im(f)$
$\Rightarrow$ there must be a $x\in dom(f)$ such that $f(x)=y$
$\Rightarrow |1-x^2|=y$.
And at this point I do not know what to do. Do I separate into cases? What is the next logical algebraic reasoning?
Any help is much appreciated.
It is immediate that $|1-x^2|\ge0$. Then we can check that for any $y\ge0$, the equation
$$y=|1-x^2|$$ has a solution in $x$.
We write $$\pm y=1-x^2$$ and
$$x=\pm\sqrt{1\pm y}.$$
We pick the solution
$$x=\sqrt{1+y},$$ which is always defined.