This is a homework problem. There are two questions where the answers seem intuitive, but even if I were correct in assuming they were true, I'd still need to provide a proof:
When $f(n) = \mathcal{O}(g(n))$, do these two statements hold true:
$$2^{f(n)} = \mathcal{O}(2^{g(n)})$$
and
$$f(n)^2 = \mathcal{O}(g(n)^2)$$
Both answers seem intuitive: if $f$ grows faster than $g$, then increasing the rate at which the functions increase wouldn't seem to change the relationship. Am I correct, and if so, how does one go about proving something like this?