Understanding Little Oh Notation with Example Problem

  • Thread starter Robert1986
  • Start date
  • Tags
    Example
In summary, Little Oh Notation is a mathematical notation used to describe the growth rate of a function. It uses the symbol "o" and compares the growth of two functions to determine their relative speeds. It tells us the limiting behavior of a function and is useful in analyzing efficiency, complexity, and making predictions in problem-solving.
  • #1
Robert1986
828
2

Homework Statement


So, this isn't a Homework problem, but I think I am having a little trouble understanding little oh notation, so here is a problem:

Show that Sum(k^3) (k=1 to n) = (1+o(1))(n^4)/4


Homework Equations



No relevant equations.

The Attempt at a Solution


Let S = Sum(k^3) (k=1 to n) = (1+o(1))(n^4)/4
Using integration, I have
n^4/4 < S < (n+1)^4/4

(n+1)^4/4 - n^4/4 = o(1)n^4/4 so then
S = n^4/4 + o(1)n^4/4 = (1+o(1))n^4/4

Does this look correct? Thanks.
 
Physics news on Phys.org
  • #2


Thank you for your question. Your approach is on the right track, but there are a few areas where you can make some improvements.

Firstly, when using little oh notation, it is important to define what the variable is approaching. In this case, the variable is n, so it should be stated as n → ∞.

Secondly, the bounds you have chosen for S, n^4/4 and (n+1)^4/4, are not the tightest bounds that can be used. A tighter upper bound would be n^4/4 + n^3/2, as this is the sum of the first n terms of the series, and a tighter lower bound would be n^4/4 - n^3/2, as this is the sum of the first (n-1) terms of the series. Therefore, we can say that n^4/4 - n^3/2 < S < n^4/4 + n^3/2.

Next, when subtracting the two bounds, you have used o(1)n^4/4, which is not correct. The correct way to subtract these bounds would be to use the difference of cubes formula, which would give you (n+1)^3 - n^3 = 3n^2 + 3n + 1. This is an important step, as it will allow us to cancel out the n^4/4 term in the original equation.

Finally, when simplifying the equation, you have correctly used the fact that (n+1)^4 - n^4 = 4n^3 + 6n^2 + 4n + 1. However, you have not taken into account the terms of order n^2 and lower, which are also included in the o(1) term. Therefore, the correct way to write the final equation would be S = n^4/4 + o(1)n^4/4 + o(1)n^3 + o(1)n^2 + o(1)n + o(1).

In summary, your approach is correct, but there are a few areas where you can make some improvements. I hope this helps clarify any confusion you may have had about little oh notation. Keep up the good work!
 

FAQ: Understanding Little Oh Notation with Example Problem

What is Little Oh Notation?

Little Oh Notation is a mathematical notation used to describe the growth rate of a function. It is used to compare the growth of two functions and determine which one grows faster or slower.

How is Little Oh Notation written?

In Little Oh Notation, we use the symbol "o" to represent the growth rate of a function. It is written as f(x) = o(g(x)) where f(x) is the function being compared and g(x) is the function being compared to.

What does Little Oh Notation tell us?

Little Oh Notation tells us the limiting behavior of a function as the input variable approaches a certain value. It helps us understand how quickly or slowly a function grows in comparison to another function.

What is an example problem using Little Oh Notation?

For example, if we have the functions f(x) = x^2 and g(x) = x^3, we can say that f(x) = o(g(x)) because as x approaches infinity, f(x) grows at a slower rate than g(x).

How is Little Oh Notation useful?

Little Oh Notation is useful in analyzing and comparing the efficiency of algorithms, the growth rate of functions, and the complexity of problems. It allows us to make predictions about how a function will behave as the input variable increases, helping us make informed decisions in problem-solving.

Similar threads

Back
Top