A brief question about big-O notation

  • Context: Graduate 
  • Thread starter Thread starter Santa1
  • Start date Start date
  • Tags Tags
    Notation
Click For Summary

Discussion Overview

The discussion revolves around the application and implications of big-O notation in relation to the sum of a function over integers and its integral over a continuous domain. Participants explore conditions under which the relationship holds, particularly focusing on the behavior of the function involved.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions whether the statement regarding big-O notation is true for non-negative functions, expressing uncertainty and seeking counterexamples.
  • Another participant suggests that a "niceness" condition on the function f(x) may be necessary for the relationship to hold.
  • A participant proposes a specific function that is not continuous and discusses its implications for the sum and integral comparison.
  • There is a suggestion that local mirroring around integers could lead to a continuous function that satisfies the conditions discussed.
  • One participant emphasizes the need to specify a limiting process for big-O notation to be meaningful, indicating that the relationship may not hold for fixed limits of a and b.
  • Another participant proposes that monotonicity and boundedness of the function f(x) might be necessary conditions for the desired big-O relationship.

Areas of Agreement / Disagreement

Participants express differing views on the conditions required for the big-O relationship to hold, with no consensus reached on the necessity of specific properties of the function f(x). The discussion remains unresolved regarding the general applicability of the statement.

Contextual Notes

Participants note limitations related to the definitions of the functions and the need for additional variables to make the big-O notation meaningful in the context of fixed limits.

Santa1
Messages
111
Reaction score
0
I'm sorry if this question is retarded-like but is it true that;

[tex]f:\mathbb{R} \to \mathbb{R}, \forall x \in \mathbb{R}, f(x)\geq 0 \Rightarrow \sum_{n=a}^b f(n) = O\left(\int_a^b f(x) \mathrm{d} x\right)[/tex]

?

My intuition says yes, however my mind is a tad clouded now and perhaps a short counterexample (excluding f(x)=0 please :P, edit: however if you insist i can remove the equality part of the "less than or equal") can be exhibited?

(also sorry for bad notation and/or english)
 
Physics news on Phys.org
I believe you would need to impose some "niceness" condition on f(x).

Bad example: f(x)=1 for x integer, f(x)=0 otherwise.
 
ok for all x in R f(x)>0 and f is continuous.
 
Let [itex]n=\lfloor x\rfloor,e=x-n[/itex] and [itex]f(x)=\max(1/n-e,0).[/itex] The integral from 1 to infinity should converge to something like [itex]\zeta(2)/2[/itex] while the sum is the harmonic series.
 
CRGreathouse said:
Let [itex]n=\lfloor x\rfloor,e=x-n[/itex] and [itex]f(x)=\max(1/n-e,0).[/itex] The integral from 1 to infinity should converge to something like [itex]\zeta(2)/2[/itex] while the sum is the harmonic series.

This function is not continuous. f(n)=1/n for integers. f(n-u)=0 for small u.

However the idea can be fixed by local mirroring around each integer.
 
Last edited:
mathman said:
However the idea can be fixed by local mirroring around each integer.

That's what I was imagining, but I lost it when formalizing it for the post. Thanks for pointing that out.
 
so the function you are speaking of is

[tex]f(x)=\max(\frac{1}{x}-\{x\},0)[/tex]

(where {x} denotes the fractional part of x)

?

mirroring around the integers would create a continuous function, i agree. but again at a loss of some generality what if f(x) > 0 ?

edit: perhaps [tex]f(x)=\max(\frac{1}{x}-\{x\},c)[/tex] for some small c mirrored around the integers.

thank you for all your help!
 
Last edited:
*-<|:-D=<-< said:
I'm sorry if this question is retarded-like but is it true that;

[tex]f:\mathbb{R} \to \mathbb{R}, \forall x \in \mathbb{R}, f(x)\geq 0 \Rightarrow \sum_{n=a}^b f(n) = O\left(\int_a^b f(x) \mathrm{d} x\right)[/tex]

?

My intuition says yes, however my mind is a tad clouded now and perhaps a short counterexample (excluding f(x)=0 please :P, edit: however if you insist i can remove the equality part of the "less than or equal") can be exhibited?

(also sorry for bad notation and/or english)

Mere nonsense. you need to specify what quantity is taken to some limit, since only related to such a limiting process is the "big O" a meaningful behavioural characteristic.
 
I suspect that the only way that uou can get the big O notation condition you want is to have f(x) be monotone (for all x>y f(x)>=f(y) or for all x>y f(x)<=f(y)), and some reasonable boundedness condition.
 
  • #10
arildno said:
Mere nonsense. you need to specify what quantity is taken to some limit, since only related to such a limiting process is the "big O" a meaningful behavioural characteristic.

You are absolutely right, for a,b fixed the relation is between two constants. For a,b fixed I suppose you have to get another variable in there f(x,y) so that you get [tex]\sum_{n=a}^b f(n,y) \text{ and } \int_a^b f(x,y) \mathrm{d}x[/tex] for the expression to "make sense". However the idea was having the big O relation between perhaps a fixed a and variable b or vice-versa e.g. letting F(b) be the sum and G(b) the integral in the big O. (I do however apologise for the really bad setup in my original post.)

@mathman

Yes you seem to be right, it follows trivially if f is increasing but I'm not sure for when it decreases.

Again, thanks for all your help.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 23 ·
Replies
23
Views
7K