f:R→R, f(x)=x|x| is
one-one but not onto
onto but not one-one
Both one-one and onto
neither one-one nor onto
Give that f(x)⎧⎪⎨⎪⎩x2 if x>00 if x=0−x2 if x<0 draw the graph , and you'll see that f is one-one and onto.