Prove or disprove: $(\ln n)^2 \in O(\ln(n^2)).$

227 Views Asked by At

Prove or disprove: $(\ln n)^2 \in O(\ln(n^2)).$

I think I would start with expanding the left side. How would I go about this?

2

There are 2 best solutions below

0
On

Here are two hints:

  • $O(\ln(n^2)) = O(2 \ln n) = O(\ln n)$

  • $x^2 \notin O(x)$

Can you finish from here?

0
On

Notice that: $$\forall n\in\mathbb{N}_{\geqslant 1},\ln\left(n^2\right)=2\ln(n).$$ Hence, one gets: $$O\left(\ln\left(n^2\right)\right)=O(\ln(n)).$$ Now, do you think $\ln(n)^2=O(\ln(n))$ i.e. is $(\ln(n))$ bounded?