Consider the function f:R→R defined by f(x)=x2+1x.
To check if the function is one-one, find the derivative using the quotient rule:
f′(x)=(x2+1)2(x2+1)(1)−x(2x)
f′(x)=(x2+1)2x2+1−2x2
f′(x)=(x2+1)21−x2
Setting f′(x)=0:
1−x2=0
x=±1
Analyzing the sign of f′(x):
When x<−1: 1−x2<0, so f′(x)<0 (function is decreasing)
When −1<x<1: 1−x2>0, so f′(x)>0 (function is increasing)
When x>1: 1−x2<0, so f′(x)<0 (function is decreasing)
The function has a minimum at x=−1 and a maximum at x=1.
Since the function decreases, then increases, then decreases again, some y-values are attained twice.
Check f(0.5) and f(2):
f(0.5)=0.25+10.5=1.250.5=0.4
f(2)=4+12=52=0.4
Different inputs give the same output, so f is not one-one.
To check if the function is onto, find the range by calculating extreme values:
At x=1: f(1)=1+11=21 (maximum)
At x=−1: f(−1)=1+1−1=−21 (minimum)
Check the limits:
As x→+∞: f(x)=x2+1x≈x2x=x1→0
As x→−∞: f(x)→0
The function only takes values between −21 and 21.
Range =[−21,21]
This is not all of R, so f is not onto.
Therefore, f is neither one-one nor onto.