The oscillation of a bounded function ff on a nonempty set A⊆RA\subseteq\mathbb R is

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

Equivalently,

osc⁡(f;A)=sup⁡x∈Af(x)−inf⁡x∈Af(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].