Canonical: https://knowlpedia.com/real-analysis/oscillation/

# Oscillation

The amount a function varies on a set or interval.

The **oscillation** of a bounded function \(f\) on a nonempty set \(A\subseteq\mathbb R\) is
\[
\operatorname{osc}(f;A)=\sup\{|f(x)-f(y)|:x,y\in A\}.
\]
Equivalently,
\[
\operatorname{osc}(f;A)=\sup_{x\in A}f(x)-\inf_{x\in A}f(x).
\]

## Remarks

Oscillation is used in the [oscillation criterion](https://knowlpedia.com/real-analysis/oscillation-criterion/) for [Riemann integrability](https://knowlpedia.com/real-analysis/riemann-integrable-function/). A point is a [discontinuity point](https://knowlpedia.com/real-analysis/discontinuity-point/) exactly when the oscillation on its shrinking neighborhoods does not tend to \(0\).

## Examples

- For \(f(x)=x\) on \([0,1]\), one has \(\operatorname{osc}(f;[0,1])=1\).
- If \(f\) is the [indicator function](https://knowlpedia.com/measure-theory/indicator-function/) of \(\mathbb Q\cap[a,b]\), then \(\operatorname{osc}(f;I)=1\) on every nontrivial subinterval \(I\subseteq[a,b]\).
