2

I had 2 very small queries regarding Big-O notation:

  • If $f(x) = O(g(x))$, then for any constant a, is it the case that $a^{f(x)} = O(a^{g(x)})$?

  • If $f(x) = O(g(x))$ and $h(x) = O(i(x))$, then does $h(x)^{f(x)} = O(i(x)^{g(x)})$?

Any help would be much appreciated!

1 Answers1

0

For the first one, consider for example $f(x)=\ln x$, $g(x)=x$ and $a=\frac{1}{2}$. Then \begin{align} \ln x=O(x) \end{align} as $x\to\infty$. But it is not true that \begin{align} \frac{1}{2^{\ln x}}=O\bigg(\frac{1}{2^x}\bigg) \end{align} as $x\to\infty$.

For the second, take $f(x)=1,\forall x$ and $g(x)=x$. Also $h(x)=\frac{1}{x^2}$ and $i(x)=\frac{1}{x}$. Then we have \begin{align} h(x)^{f(x)}&=\frac{1}{x^2};\\ i(x)^{g(x)}&=\frac{1}{x^x} \end{align} But $\frac{1}{x^x}=O(\frac{1}{x^2})$, as $x\to\infty$.

Caio
  • 199