What is the order of these functions

  • Thread starter Thread starter Gear2d
  • Start date Start date
  • Tags Tags
    Functions
AI Thread Summary
The discussion centers on determining the Big O notation for the functions 2^x, 3^x, and 3^(x-10). Participants emphasize the need for clarity in defining "order" and the limits involved, particularly as x approaches infinity. They clarify that a function's order is relative and must be compared to another function, with specific attention to the relationships between f(x) = 2^x and g(x) = 3^x. The limit of the ratio of these functions as x approaches infinity indicates that 2^x is o(3^x), meaning it grows slower than 3^x. Overall, the conversation highlights the importance of precise definitions in analyzing function growth rates.
Gear2d
Messages
49
Reaction score
0
I need now what is the order (The Big Oh notation) of these three functions:

2^x
3^x
3^(x-10)
 
Last edited:
Physics news on Phys.org
Gear2d said:
I need now what is the order (The Big Oh notation) of these three functions:

2^x
3^x
3^(x-10)

Your question is incomplete. You need to specify x ->?.
 
Also you should specify what your definition of "order" is. The "big Oh" I am familiar with says that one function is "O" of another function. Saying that g(x) is O(f(x)) (as x -> a) means that \lim_{x\rightarrow a} g(x)/f(x) is a finite number.

Often "order" is given in terms of x going to infinity but even so, your question makes no sense. A function does not just have an "order". It is or is not "O" of another function. Are you asking if 2x= O(3x) or vice-versa?
 
Last edited by a moderator:
Good point guys. I wanted to compare two of them to each other, let's say:

f(x) = 2^x vs. g(x) = 3^x

now from this I have to determine if f=Theta(g), f<Theta(g) or f>Theta(g). Instead of using L'Hospital rule:

c=lim 2^x/3^x = lim (2/3)^x = 0 as x goes to infinite this would mean that f<Theta(g).

I wanted to do this using order where x>1. Would 2^x have O(2^x) and 3^x have O(3^x), where f(n)<g(n)?
 
Gear2d said:
Good point guys. I wanted to compare two of them to each other, let's say:

f(x) = 2^x vs. g(x) = 3^x

now from this I have to determine if f=Theta(g), f<Theta(g) or f>Theta(g). Instead of using L'Hospital rule:

c=lim 2^x/3^x = lim (2/3)^x = 0 as x goes to infinite this would mean that f<Theta(g).

I wanted to do this using order where x>1. Would 2^x have O(2^x) and 3^x have O(3^x), where f(n)<g(n)?
Please don't shift from O(g) to "Theta(g)"!

And since that limit is 0, f(x)= o(g). "Small o" or f= o(g) means that the fraction f/g goest to 0. As I said before, most textbooks give: "f= O(g), as x goes to a" means that f(x)/g(x) goes to a finite limit" which includes 0 so if f(x)= o(g), it follows that f= O(g). Some textbooks however, require that f(x)/g(x) go to a [g]nonzero[/b] finite limit in order that f= O(g) so that does NOT include f= o(g). I recommend that you check the definition in your textbook to be certain which convention it uses.

Oh, and to answer your last question, f= O(f) for any function f so saying "2x= O(2x" (which is what I guess you mean by "2^x have O(2^x)) so "2x= O(2x)" is trivially true. A function doesn't have "an order" except as compared to some other function.
 
Back
Top