I have a function here that I need to heuristically find the Big-O of.
n + 4$n^2$$\log(n)$
Would the Big-O of this function be O($n^2$) seeing as how it's the highest order term there or do I have to also consider the logarithm it is being multiplied by?
$u_n=n+4n^2\log(n)$
Note that : $u_n=o(v_n)\implies u_n=\mathcal{O}(v_n) \tag1$
$u_n=o(v_n)\iff \displaystyle \lim_{n\to +\infty} \dfrac{|u_n|}{|v_n|}=0$
So $\displaystyle \lim_{n\to +\infty} \dfrac{n+4n^2\log(n)}{n^p}=0$ if $p>2$
Then $u_n=o(n^p)$ and (1) guarantees that $u_n=\mathcal{O}(n^p)$ with $p>2$