Let $f: R \rightarrow R$ and $g: R \rightarrow R$ be defined as $fx = \begin{cases} \log_e x, & x > 0 \\ e^{-x}, & x \leq 0 \end{cases}$ and $gx = \begin{cases} x, & x \geq 0 \\ e^x, & x < 0 \end{cases}$. Then, $g o f: R \rightarrow R$ is:
- (1)
one-one but not onto
- (2)
neither one-one nor onto
- (3)
onto but not one-one
- (4)
both one-one and onto
Show answer
Option (2) is correct.
Key from source paper