Solve for one-one:
Given: f:R→R
f(x)=x2
For, one-one
f(x1)=(x1)2
f(x2)=(x2)2
Now, f(x1)=f(x2)
x21=x22
x1=x2 or x1=−x2
i.e. For same image, elements are different.
Hence, it is not one-one.
Solve for onto.
f:R→R
f(x)=x2
Let f(x)=y, such that y∈R
x2=y
x=±√y
Clearly, y is a real number, so it can be negative also.
Which is not possible as root of negative number is not real.
Hence,x is not real.
So, f is not onto.
Hence, f is neither one-one nor onto.