The oscillation of a bounded function ff on a nonempty set ARA\subseteq\mathbb R is

osc(f;A)=sup{f(x)f(y):x,yA}.\operatorname{osc}(f;A)=\sup\{|f(x)-f(y)|:x,y\in A\}.

Equivalently,

osc(f;A)=supxAf(x)infxAf(x).\operatorname{osc}(f;A)=\sup_{x\in A}f(x)-\inf_{x\in A}f(x).
Remarks

Oscillation is used in the for . A point is a exactly when the oscillation on its shrinking neighborhoods does not tend to 00.

Examples
  • For f(x)=xf(x)=x on [0,1][0,1], one has osc(f;[0,1])=1\operatorname{osc}(f;[0,1])=1.
  • If ff is the of Q[a,b]\mathbb Q\cap[a,b], then osc(f;I)=1\operatorname{osc}(f;I)=1 on every nontrivial subinterval I[a,b]I\subseteq[a,b].