As you point out, to see if f (x) Ξ΅ O (g (x)) needs to be found ...
- ... some c> 0 and
- ... some x 0
such that f (x) c? g (x) for all x> x 0 .
In this case, you can choose c = 1 and x 0 = 2. What you need to prove is that
x 2 2 x for all x> 2
At this point, you can register both sides (since if log (x)> log (y), then x> y.) Assuming you are using back file 2, you get the following
log (x 2 ) <log in (2 x )
and the standard laws of logarithms you get
2? log (x) <x & middot; log in (2)
Since log (2) = 1, this can be written as
2? log (x) <x
If we put x = 2, we get
2? log (2) = 2
and since x grows faster than log (x), we know that 2 & middot; log (x) x holds for all x> 2.
source share