(A) Given f(x)=x+1x; x∈(0,∞).
Now for x=2 and x=12, we have the same f−image 52.
So for two distinct element we have the same image under f,
So f(x) is not injective.
(B) To check the injectivity of f(x)=x2+4x−5 for x∈(0,∞), let
f(x1)=f(x2)
or, x21+4x1−5=x22+4x2−5
or, (x1−x2)(x1+x2+4)=0
As x1,x2∈(0,∞)⇒x1+x2≠−4, so x1=x2.
So, for f(x1)=f(x2)⇒x1=x2.
So f(x) is injective.