I am trying to follow this example but I am stumped by where numbers are coming from:
Show that $f (x) = x^2 + 2x + 1 $ is $O(x^2). $
The solution is as follows:
We observe that we can readily estimate the size of $f (x$) when $x > 1$ because $x < x^2$ and $1 < x^2$ when $x > 1$. It follows that $$0 ≤ x^2 + 2x + 1 ≤ x^2 + 2x^2 + x^2 =4x^2$$ whenever $x > 1$. Consequently, we can take $C = 4$ and $k = 1$ as witnesses to show that $f (x)$ is $O(x^2)$. That is, $f (x) = x^2 + 2x + 1 < 4x^2$ whenever $x > 1$.
Can someone explain where the numbers are coming from in the equality? I tried to ask someone but I still did't understand. I would very much appreicate a "dumbed down" explanation.