(i) Is f one-one?
Suppose f(x)=f(y) for some x,y in the domain. Then
x2−1x=y2−1y
Cross-multiplying,
x(y2−1)=y(x2−1)
xy2−x=yx2−y
Bringing everything to one side and grouping,
xy2−yx2+y−x=0
xy(y−x)+(y−x)=0
(y−x)(xy+1)=0
So either x=y, or xy=−1. The second possibility is the warning sign: if two different numbers multiply to −1, they have the same image.
A concrete counterexample. Take x=21 and y=−2. Both lie in R−{−1,1}, they are different, and xy=−1. Their images are
f(21)=41−121=−4321=−32
f(−2)=4−1−2=−32
Two distinct inputs share an image, so f is not one-one.
(ii) Is f onto?
Take an arbitrary y∈R and ask whether some x in the domain satisfies f(x)=y:
x2−1x=y⇒x=yx2−y⇒yx2−x−y=0
This is a quadratic in x only when y=0, so the two cases must be treated separately.
Case 1: y=0. The equation becomes −x=0, so x=0. Since 0 lies in the domain and
f(0)=0−10=0
the value 0 is attained.
Case 2: y=0. Now yx2−x−y=0 is a genuine quadratic with discriminant
D=(−1)2−4(y)(−y)=1+4y2
Since 1+4y2>0 for every real y, real roots exist:
x=2y1±1+4y2
These roots lie in the domain. We must confirm no root equals 1 or −1, since those are excluded. Substitute directly into yx2−x−y:
x=1:y(1)−1−y=−1=0
x=−1:y(1)+1−y=1=0
Neither 1 nor −1 satisfies the equation, so neither can be a root, whatever y is. Hence each root lies in R−{−1,1}.
Conclusion. In both cases a preimage exists in the domain, so every y∈R is attained and f is onto.
