Suppose that $f (x)$ is $O(g(x))$. Does it follow that $2^{f(x)}$ is $O(2^{g(x)})$?

2.9k Views Asked by At

Suppose that $f(x)$ is $O(g(x))$. Does it follow that enter image description here ?

First, I start from enter image description here for some $c$ is a real number. Then, I find enter image description here. But, if i start from enter image description here, I just find enter image description here. I confused with that different form.

1

There are 1 best solutions below

0
On

Consider $f(x) = x$ and $g(x) = x/2$ for $x\geq 0$. Then, $f(x) = 2g(x) = O(g(x))$, but you don't have $2^x = O(2^{x/2})$ (if $2^x \leq c 2^{x/2}$, then $x \leq \log(c) +x/2$, which is absurd). The answer to your question is no.