Show that a function f : R R defined by f(x) = 2x/1 + x² is neither one-one nor onto.
Question 345 marksAsked 2022Medium
Show that a function f:R→R defined by f(x)=1+x22x is neither one-one nor onto. Further, find set A so that the given function f:R→A becomes an onto function.
Part 1: f is not one-one.
Start from the assumption that two inputs give the same output and see what it forces. Suppose f(x1)=f(x2), i.e.
1+x122x1=1+x222x2.
Both denominators are positive (they are 1 plus a square), so cross-multiplying is safe:
A product is zero when a factor is zero, so f(x1)=f(x2) happens in two ways: either x1=x2, or
x1x2=1.
The second case is the important one — it lets two different numbers share an image, namely any number and its reciprocal. Concretely take x1=2 and x2=21, whose product is 1:
f(2)=1+222×2=54,f(21)=1+412×21=451=54.
So f(2)=f(21)=54 while 2=21. Hence f is not one-one.
Part 2: f is not onto.
We find exactly which real numbers f can produce. Put y=f(x) and clear the denominator:
y=1+x22x⇒y(1+x2)=2x⇒yx2−2x+y=0.
Read this as a quadratic in x with the number y as a parameter.
Case y=0. The equation becomes −2x=0, so x=0 works: f(0)=0. So y=0 is attained.
Case y=0. This is a genuine quadratic, and it has a real root x exactly when its discriminant is non-negative:
(−2)2−4⋅y⋅y≥0⇒4−4y2≥0⇒y2≤1⇒−1≤y≤1.
So a non-zero y has a pre-image if and only if −1≤y≤1; and when it does, the pre-image is
x=2y2±4−4y2=y1±1−y2.
Putting the two cases together, the range of f is [−1,1], and the endpoints really are reached: f(1)=22=1 and f(−1)=2−2=−1.
Now take y=2. It is a real number, so it belongs to the codomain R, but 2>1, so it is outside [−1,1] and has no pre-image. (Directly: 2x2−2x+2=0, i.e. x2−x+1=0, whose discriminant is 1−4=−3<0.) Since some element of the codomain has no pre-image,
range(f)=[−1,1]=R,
and f:R→R is not onto.
The graph shows both failures at once. A horizontal line at any height strictly between −1 and 1 (other than 0) meets the curve twice — that is the failure of one-one. No horizontal line above y=1 or below y=−1 meets it at all — that is the failure of onto.
Part 3: the set A.
A function is onto precisely when its codomain is no bigger than its range. So shrink the codomain to the range:
A=[−1,1]
With this A, every y∈A has a pre-image — y=0 from x=0, and any other y∈[−1,1] from x=y1+1−y2 — so f:R→[−1,1] is onto. It is still not one-one, so it is a many-one onto function.