Step Function satisfies Dirichlet Conditions

Theorem
Let $\alpha, \beta \in \R$ be a real numbers such that $\alpha < \beta$.

Let $f \left({x}\right)$ be a step function defined on the interval $\left[{\alpha \,.\,.\, \beta}\right]$.

Then $f$ satisfies the Dirichlet conditions.

Proof
Recall the definition of step function:

Recall the Dirichlet conditions:

We inspect the Dirichlet conditions in turn.

$(\mathrm D 1)$: Absolute Integrability
From Definite Integral of Step Function:
 * $\displaystyle \int_\alpha^\beta f \left({x}\right) \, \mathrm d x = \sum_{k \mathop = 1}^n \lambda_k \left({\beta_k - \alpha_k}\right)$

where $\alpha_k, \beta_k$ are the endpoints of $\mathbb I_k$ for $1 \le k \le n$.

Absolute integrability follows.

$(\mathrm D 2)$: Finite Number of Local Maxima and Minima
By nature of $f$ being a step function, the image set of $f$ is finite:


 * $f \left[{\alpha \,.\,.\, \beta}\right] = \left\{ {\lambda_1, \lambda_2, \ldots, \lambda n}\right\}$

The set of local maxima and the set of local minima must be subsets of $f \left[{\alpha \,.\,.\, \beta}\right]$.

Therefore there must be a finite number of each.

$(\mathrm D 3)$: Discontinuities are Finite in Number and Nature
From Constant Real Function is Continuous, there are no discontinuities except perhaps at the endpoints of $\mathbb I_k$ for $1 \le k \le n$.

Let us inspect those endpoints.

Let $\alpha_k, \beta_k$ be the endpoints of $\mathbb I_k$ for $1 \le k \le n$, where $\alpha_k < \beta_k$.

Let $\mathbb I_1, \mathbb I_2, \ldots, \mathbb I_n$ be ordered such that:
 * $\forall k: \alpha_k < \alpha_{k + 1}$

By definition, $\beta_{k - 1} = \alpha_k$.

Thus we have that:

and if $\lambda_k \ne \lambda_{k - 1}$ then this is indeed a finite discontinuity.

By the nature of the step function, there are a finite number of them.

Thus all Dirichlet conditions are satisfied by $f$.