How do I prove the following?
$$O(n+\log(n)) \subset O(n \cdot \log(n))$$
I've plotted both functions and I see that $n+\log(n)$ is below $n \cdot \log(n)$. Can limit help me here?
$$\lim_{n \to \infty}\frac{n+\log(n)}{n \cdot \log(n)} = 0$$
If so, how does the limit imply that one set of functions is a subset of the other one? Can it be derived from the definition of $O$?
I've seen peoply try to prove the original statement by proving:
$$n+\log(n) \in O(n \cdot \log(n))$$
But that seems like saying $\{1, 2\} \subset \{2, 3\}$ because $2 \in \{1, 2\} \land 2 \in \{2, 3\}$ which is obviously wrong.
From the definition of $O$, it seems like I need to prove:
$$\forall n \in \mathbb{N}, \exists n_0 \in \mathbb{N}, \forall c_1 \in \mathbb{R}^+, \exists c_2 \in \mathbb{R}^+:\\n \geq n_0 \Rightarrow 0 \leq c_1 \cdot (n + \log(n)) \leq c_2 \cdot (n \cdot \log(n))$$
Does it make sense or is there simpler solution to this? Thanks.