From wikipedia, definition of big O notation:
if and only if there is a positive constant M such that for all
sufficiently large values of x, f(x) is at most M multiplied by g(x)
in absolute value. That is, f(x)∈O(g(x)) if and only if there exists
a positive real number M and a real number x0 such that
|f(x)|<=M|g(x)|for allx>x0
What happens for functions that do not converge (to a constant nor infinity)?
Look at the functions f(x)=|xsin(x)|, and g(x)=10
for each x0, there is some x>x0, such that x=kπ, thus f(x)=0 - so for each M - Mf(x)>g(x) will yield false, and g(x)∉O(f(x))
However, it is easy to see that |xsin(x)| is not bounded by any constant as well, thus for each M,x0, there is some x>x0 such that f(x)<Mg(x) will also yield false, and f(x)∉O(g(x))
Note: for definition if big O that allows a maximum constant difference between Mf(x) and g(x), the same idea will apply with g(x)=log(x)