I need to prove this. I am not sure how to go about it. I know you need to prove something like $n_0$ such that $\log_2 n \leq n$, for all $n \geq n_0$
Need to prove $n^2 + 10n \log_2 n = O(n^2 )$ for big $O$ notation
0
$\begingroup$
proof-writing
asymptotics
-
0Could you format this in latex? - it's hard to decipher what you mean – 2017-02-27
2 Answers
1
Yes, you need to find $n_0$ such that $10\log_2 n \leq n$ (note the $10$ that you forgot) for all $n \geq n_0$.
Finding an $n_0$ for which the inequality holds is easy: try a large enough value, say $n_0 = 100$ and you'll see it works.
Next you need to prove that the inequality holds for all $n \geq n_0$. For that, you can compute the derivative of $n - 10 \log_2 n$ (pretending $n$ is a real-valued variable) and show that it is always positive for $n \geq n_0$.
1
You need to prove that $\exists c>0$ such that for all $n>n_0$, it holds that $n^2+10n\log_2 n
$$
n^2+10n\log_2 n which hold true for $c>11$ and for $n>2$. Hence, you may choose $n_0=2$.