Solve for one-one:
Given: f:R→R
f(x)=2x
f(x1)=f(x2)
2x1=2x2
x1=x2
Hence, if f(x1)=f(x2),
⇒x1=x2
∴ function f is one-one.
Solve for onto:
f:R→R
f(x)=2x
Let f(x)=y such that y∈R
2x=y
x=y2
Since y is a real number,
Hence, y2 will also be a real number.
So, x will also be a real number, i.e., x∈R
therefore, f is onto.
Hence, f is one-one and onto.