I'm having trouble with this question:
Suppose that $f(x), g(x)$ and $h(x)$ are functions such that $f(x)$ is $O(g(x))$ and $g(x)$ is $O(h(x))$. Prove that $f(x)$ is $O(h(x))$.
I have tried many ways to approach this question but none work. If anyone can help, I'd appreciate it.
Since $f(x) = O(g(x))$, we have $|f(x)| \leq c \cdot |g(x)|$ for all $x \geq n_{0}$. Similarly, $|g(x)| \leq k \cdot |h(x)|$ for all $x \geq m_{0}$. So take $|f(x)| \leq ck \cdot |h(x)|$ for all $x \geq max\{n_{0}, m_{0}\}$.