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!