How do I find Big O notation for this function? $$ n^4+100\cdot(n^2)+50 $$ In the book I am following, I got the following solution:
$n^4+100(n^2)+50 \leq 2(n^4) \ \forall \ n \geq 11$
$n^4+100(n^2)+50=O(n^4)$ with $c=2$ and $n_0=11$
How can I come to know that I have to choose $2(n^4)$ and proceed further?
The biggest term in this polynomial is $n^4$, so you have to choose a term bigger than $n^4$. Since $2n^4 > n^4$, you can choose $2n^4$ to find some constant $n_0$ where $n > n_0 \implies f(n) \leq 2n^4$. In this case, $n_0=11$.
However, you didn't have to pick $2n^4$. For example, you could've picked $3n^4$ since $3n^4 > n^4$. In this case, we find $n_0=8$. Thus, $c=3$ and $n_0=8$ and this solution works just as well as theirs.
Thus, you don't have to pick $2n^4$. You just need to pick $cn^4$ for some constant $c$ where $cn^4 > n^4$ and thus any $c > 1$ would've worked.