Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Which function goes faster?

  1. Mar 28, 2007 #1
    If you are given two functions and asked which function goes faster. You divide on function by the other and you use lopitals rule. If your ratio gives you a constant it is said the two fuction grow at the same rate. I can't understand why 5x and 2x would be growing at the same rate. 5=2? Isn't rate 5 for 5x and 2 for 2x. how is it 5x and 2x growing at the same rate?
  2. jcsd
  3. Mar 28, 2007 #2
    remember that we are talking for infinitely large or small terms, so the fact that 5>2 does not make any change, since lim(5x/2x)=5/2, when x->infinity, so actually here f(x)=5x and f(x)=2x grow at the same rate. Because 5* infinity is also infinity,and 2* infinity is also infinity, so 5, and 2 and any other constand do not really make any change. They would not grow at the same rate if we would have let's say f(x)=5x^3 and f(x)=2x, in this case f(x)=5x^3 , would grow at a faster rate, since the limit of their ratio when x-> infinity,would give you either 0 or infinity, depends whic function you take as a denominator,and which as a numerator.

    anyone correct me if i am wrong!!
  4. Mar 28, 2007 #3


    User Avatar
    Staff Emeritus
    Science Advisor

    "Which function goes faster" makes no sense. I think you are asking "which function goes to infinity faster" which can be determined by
    If that limit is a finite, non-zero, number, then f= O(g) (and g= O(f)). If it is 0, then f= o(g). If it is infinite, then g= o(g).
  5. Mar 28, 2007 #4
    I agreee that's kinda stupid terminology .Get used to it.
    It makes more sense to me to say f1(x)=5x grows "faster" than f2(x)=2x for [itex]x\in\mathbb{R^+}[/itex].
  6. Mar 28, 2007 #5
    at the last one i think halls meant
    g= o(f), since at this case g(x) is said to be of a higher order than f, considering that both of them are infinitely small.
  7. Mar 28, 2007 #6
    yeah and if f, and g are infinitely large when x->infinity, than it is vice verse
  8. Mar 28, 2007 #7


    User Avatar
    Staff Emeritus
    Science Advisor

    Actually, I was assuming that f and g are unbounded so I'm not sure what you mean by "vice versa".
  9. Mar 28, 2007 #8


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You should consider "the same rate" a technical term with a technical definition that may or may not relate to a common English interpretation of those same words.

    We use this definition because it's useful. Constant factors are often irrelevant. In analysis, there is no difference between "x goes to zero" and "4x goes to zero". In computer science, we choose up front to ignore the constant factors, so that we can prove things in generality without having to worry about the architectural differences between different computers, or the optimization skill of the programmer / compiler, et cetera.
    Last edited: Mar 28, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?