I have a problem where $f(n)=\log n$ and $g(n)=\sqrt[k]{n}$ and I have to prove that $f(n)=O(g(n))$. I'm using the big oh formula:
$$ \begin{align} f(n)&\leq cg(n)\\ \log n&\leq c ?? \end{align} $$
So I need to know what the big oh of $g(n)$ is in order to go on. But how do I figure that out?
One way is calculating limit:
$$\lim_{x \to \infty} \frac{\log x}{x^{\frac{1}{k}}}$$
You can use for example L'Hospital rule:
$$\lim_{x \to \infty} \frac{\log x}{x^{\frac{1}{k}}}=\lim_{x \to \infty} \frac{\frac{1}{x}}{\frac{1}{k}x^{\frac{1}{k}-1}}=\lim_{x \to \infty} \frac{k}{x^{\frac{1}{k}}}=0$$
So for $n \in \mathbb{N}$:
$$\lim_{x \to \infty} \frac{\log n}{n^{\frac{1}{k}}}$$
Now by definition of limit:
$$\exists n_0 \in \mathbb{N} \; \forall n>n_0 \frac{\log n}{n^{\frac{1}{k}}} <1 $$
So:
$$\exists n_0 \in \mathbb{N} \; \forall n>n_0 \log n <n^{\frac{1}{k}}$$
That means (by definition of big O) that $f(n)=O(g(n))$.