Question
Question: The function $f: R \rightarrow \left[-\frac{1}{2}, \frac{1}{2}\right]$ defined as $f(x) = \frac{x}{1...
The function f:R→[−21,21] defined as f(x)=1+x2x, is :

neither injective nor surjective
invertible
injective but not surjective
surjective but not injective
surjective but not injective
Solution
To check if f is injective (one-one), we assume f(x1)=f(x2) for x1,x2∈R and check if this implies x1=x2.
f(x1)=f(x2)⟹1+x12x1=1+x22x2
x1(1+x22)=x2(1+x12)
x1+x1x22=x2+x2x12
x1−x2=x2x12−x1x22
x1−x2=x1x2(x1−x2)
(x1−x2)−x1x2(x1−x2)=0
(x1−x2)(1−x1x2)=0
This equation holds if x1−x2=0 (i.e., x1=x2) or if 1−x1x2=0 (i.e., x1x2=1).
Since f(x1)=f(x2) can be true even when x1=x2 (for example, if x1x2=1 and x1=x2, like x1=2 and x2=1/2, where f(2)=1+42=52 and f(1/2)=1+1/41/2=5/41/2=52), the function is not injective.
To check if f is surjective (onto), we need to determine if the range of the function is equal to the codomain [−21,21].
Let y be in the range of f. Then there exists x∈R such that f(x)=y.
y=1+x2x
y(1+x2)=x
y+yx2=x
yx2−x+y=0
This is a quadratic equation in x. For x to be a real number, the discriminant must be non-negative.
The discriminant is Δ=(−1)2−4(y)(y)=1−4y2.
For real solutions for x, we must have Δ≥0.
1−4y2≥0
1≥4y2
y2≤41
Taking the square root of both sides, we get ∣y∣≤21, which means −21≤y≤21.
This shows that the range of the function is [−21,21].
The codomain of the function is given as [−21,21].
Since the range of the function is equal to its codomain, the function is surjective.
Thus, the function f(x)=1+x2x is not injective but is surjective.