I needed help proving this
This is what I tried, I broke it into two cases $x>0$ and $x<0$
Case 1 $x>0$
Injectivity
$|x|=x$
$f(x) = x^2$
$f(x)$ is a injection if $f(x)$ = $f(m)$ then $x=m$
$x^2 = m^2$
$x=m$ since $x>0$
Surjectivity
for every $x∈R$
$f(√x) = x $ therefore it is surjective
I needed help proving the case $x<0$
HINT: for $x\le 0$ you have that $f(x)=-x^2$.