a function is one-one, when f(x1)=f(x2) implies x1=x2...so suppose
f(x1)=f(x2)
=> 2x1 =2x2
=> x1=x2.
thus f(x) is one-one.
again a function y=f(x )is onto, when for all possible values of 'y'...thr exists a 'x'
here y = 2x ....
i.e. x=y/2
thus here for all values of y, thr will be a 'x' defined...
therefore f(x) is onto.
nd here's a shortcut...any function is one-one and onto (both)...if it is entirely increasing (or decreasing ) in its domain....
here y=2x is a line thru the origin...always increasing, with no point of inflection...so its one-one onto fnc!!