Going through theory, missing the idea, need a bit of help. So, the initial state is:
$$f(n) = O(g(n))$$
Assume that $f$ and $g$ are both nondecreasing and always bigger than 1. And, from my understanding, $f$ must be less or equal to $g$, because it must represent the maximum complexity. But, if we add non-equal elements like:
$$f(n)*log_2(f(n)^c) = O(g(n)*log_2(f(n)))$$
it becomes a bit messy for me. Assume that $c$ is some positive constant.
As I see, if, for example, previously $f(n) = n$ and $g(n) = n$, by adding $c$ power (even inside the $log$), it could make $f(n)$ bigger.
But, because $O(n)$ focuses on the highest order terms, I need to exclude $log_2$ from it anyway, so the whole statement stays equal. Is it equal and do I understand the logic correctly?