I'm trying to figure out if:
1) $\log^2n = O(n)$ and
2) $ n = O(\log^2n)$
are true or if one or both are false.
So far I've concluded that both are false because if $n = 8$ for the first one, then $\log^2 8 = O(8)$ which is false since it simplifies to $9 = O(8)$ which does not belong to $O(n)$.
For the second one, I believe it to be false as well because if $n = 1024$ or (some other big number), you get $1024 = O(\log^2 1024)$ which simplifies to $1024 = O(100)$. And $1024$ does not belong to $O(100)$.
Am I right or is one of these true? Thanks.
Since there exists a constant $C$ such that, as $n \to \infty$, we have $\left|\dfrac{\log^2n}n\right|\leq C$ then $\log^2n = O(n)$.
But since, as $n \to \infty$, $\left|\dfrac{n}{\log^2n}\right|\to \infty$ thus $n \neq O(\log^2n)$.