Prove that $\mathbb{R}$ and the interval $(0, \infty)$ have the same cardinality. Prove that Real Numbers and the interval $(0,\infty)$ have the same cardinality. 
Attempt:
Consider the function $f(x) = e^x$. 
The domain of this function is all real numbers.
The range of this function is from $0$ to infinity. 
Let $e^a = e^b$. 
Then $\ln(e^a) = \ln(e^b)$
Then $a\ln(e) = b\ln(e)$
This means that $a = b$
Hence, $f$ is injective. 
Let $c > 0$ 
Then $e^{ln(c)} = c$
Since $c > 0, \ln(c)$ is defined, so $f(\ln(c)) = c$
Therefore, f is surjective. 
Then f is bijective. 
Hence, $\mathbb{R}$ and $(0, \infty)$ have the same cardinality. 
 A: This is a valid proof. Essentially you have used the fact that the exponential function has a two-sided inverse (at least when the codomain is the positive reals), $\log$ (or $\ln$ if you prefer). Any function with a two-sided inverse is automatically a bijection. In fact, injectivity is precisely the same as having a left inverse and surjectivity is precisely the same as having a right inverse. Exercise: if a function $g$ has a left inverse $f$ and a right inverse $h$, then in fact $f = h$, so $g$ has a two-sided inverse.
Here are some other approaches you could use:


*

*observe that the exponential function has positive derivative everywhere, so it is increasing, so it must be injective (roughly speaking, use the contrapositive of Rolle's theorem).

*show (somehow, not sure what you're allowed to assume) that the exponential function takes arbitrarily small (positive) values, and arbitrarily big values, so by the Intermediate Value Theorem takes all the values in between, so must be surjective.

