im stuck as this question involving Big O notation, is it true that?
$$n^2 - 200n - 300 = O(n)$$
What i've tried:
Generally, I dont know problems involving algorithms analysis. I would start assuming that this statement is true. So I would find an $h(n)$ function that is linear and , given a $n_0$.
$$n^2 - 200n - 300 \leq h(n)$$
But i don't know how to do that or if that is even right, any hints or advices?
By definition, taking non negative case, we have $$O(g)=\left\lbrace f: \exists C_f>0, \ \exists N,\ n>N, f \leqslant C_f g\right\rbrace$$
So you have tried to prove, that for some $C>0, \exists N, n>N$ $$n^2 - 200n - 300 \leqslant C n$$ but : $$n^2 - 200n - 300 \leqslant C n \Leftrightarrow n^2 \leqslant (200+C)n +300 \Leftrightarrow \\ \Leftrightarrow n \leqslant 200+C +\frac{300}{n}\quad(1)$$ Now let's look at right side: when $n>300$, then we have $\frac{300}{n}<1$.
From another hand, as $C>0$, then $0\leqslant \lfloor C \rfloor < \lfloor C \rfloor +1 \in \mathbb{N}$.
So, if we take $n>\max(200+\lfloor C \rfloor +2, 300)$, then we come in contradiction with $(1)$.