Definition (big O)

$f(x)=O(g(x))$ as $x\to x_0$ if
there exists $M>0$ and
there exists $\delta > 0$ such that
for all $x$ where $0<|x-x_0|<\delta$, $$ |f(x)|\leq M|g(x)|. $$

Extending this, $f(x)=O(g(x))$ as $x\to\infty$ if
there exists $M>0$ and
there exists $X>0$ such that
for all $x > X$, $$ |f(x)|\leq M|g(x)|. $$