Prove the following:
- If f is a polynomial of degree $d$, then $f(n)=O(n^{d})$.
- For every $d \in N, n^{d} = O(e^{n})$
Intuitively, it makes sense to me that for the first one, growth order depends on the term with the highest power and for the second one, exponential growth grows faster than anything else. I'm not quite sure how to prove this, though. I tried to use induction on the first one but I ended up just making a circular argument.
From the definition it follows that for $n \geq 0$
$$a_0n^d + a_1n^{d-1} + a_2n^{d-2} + ... + a_d \leq |a_0|n^d + |a_1|n^{d-1} + |a_2|n^{d-2} + ... + |a_d|$$
$$\leq |a_0|n^d + |a_1|n^{d} + |a_2|n^{d} + ... + |a_d|n^{d}$$ $$\leq n^d(|a_0| + |a_1| + |a_2| + ... + |a_d|)$$ Let $c=|a_0| + |a_1| + |a_2| + ... + |a_d|$ and $n_0=1$ $$\Rightarrow g(n)\equiv n^d$$ $$\Rightarrow f(n)\equiv O(n^d)$$