f is not one-one.
For x=0, divide the numerator and the denominator by x:
f(x)=x2+1x=x+x11.
The expression x+x1 is unchanged when x is replaced by x1, so f(x)=f(x1) for every x=0. That gives a supply of counterexamples. Take x1=2 and x2=21, both in R:
f(2)=22+12=52,f(21)=(21)2+121=4521=52.
So f(2)=f(21)=52 although 2=21. Hence f is not one-one.
f is not onto.
Take y=1, which belongs to the codomain R, and try to find a pre-image:
x2+1x=1⇒x=x2+1⇒x2−x+1=0.
Its discriminant is (−1)2−4(1)(1)=1−4=−3<0, so this quadratic has no real root. Therefore 1∈R has no pre-image in R, and the range of f is not the whole codomain.
In fact the range is only [−21,21]: since (∣x∣−1)2≥0 we get x2+1≥2∣x∣, so
∣f(x)∣=x2+1∣x∣≤2∣x∣∣x∣=21(x=0),
and f(0)=0. Since range = codomain, f is not onto.

Hence f is neither one-one nor onto.