Question
Mathematics Question on Functions
Let f:R→R and g:R→R be defined as: f(x)={logex, e−x,if x>0,if x≤0, and
g(x) = \begin{cases} x, & \text{if } x \geq 0, \\\ e^x, & \text{if } x < 0\. \end{cases} Then g∘f:R→R is:
one-one but not onto
neither one-one nor onto
onto but not one-one
both one-one and onto
neither one-one nor onto
Solution
Consider:
g(f(x))={g(logex), g(e−x),x>0x≤0
For x>0, we have:
f(x)=logex⟹g(f(x))=g(logex)=logex(since logex≥0)
For x≤0, we have:
f(x)=e−x⟹g(f(x))=g(e−x)=e−x(since e−x>0 for all x≤0)
Thus, the function g(f(x)) is given by:
g(f(x))={logex, e−x,x>0x≤0
Analyzing this function, we observe:
For x>0, g(f(x))=logex is an increasing function but not onto as it maps to (0,∞).
For x≤0, g(f(x))=e−x is a decreasing function and does not cover the entire range of real numbers.
Therefore, g∘f is neither one-one nor onto.