Is there a difference between the method to find a big-O function and the method to find the best big-O function. Take for example the following function:
$f(n) = 1 + 2 + 3 + ... + n$
It is easy to show that $f(n)$ is $\mathcal{O}(n^2)$ like this:
$1 + 2 + 3 + ... + n \leq n + n + n + ... + n = n \cdot n = n^2$ for $n \geq 1$
Such that the witnesses are $C=1$ and $k=1$
But how do I know if this is the best big-O function? I need to know how to do this for more complex functions than the one shown.