Mathematics · Glossary

What is step function?

Definition 15.1 University Mathematics — Year 1 · Chapter 15 — Integration on a Segment

φ ⁣:[a,b]R\varphi \colon \intcc{a}{b} \to \R is a step function when there is a subdivision a=x0<x1<<xn=ba = x_0 < x_1 < \dots < x_n = b such that φ\varphi is constant, equal to cic_i, on each open interval (xi1,xi)\intoo{x_{i-1}}{x_i} (values at the nodes are unconstrained). Its integral is

abφ=i=1nci(xixi1),\int_a^b \varphi = \sum_{i=1}^{n} c_i\,(x_i - x_{i-1}),

independent of the chosen subdivision (refine two subdivisions by their common one: each side is unchanged under refinement).

Examples

Example 15.5 (Piecewise continuous, no drama)

The floor function on [0,3]\intcc{0}{3} is a step function in disguise: splitting at its jumps,

03t ⁣dt=010+121+232=0+1+2=3,\int_0^3 \lfloor t \rfloor\,\dd t = \int_0^1 0 + \int_1^2 1 + \int_2^3 2 = 0 + 1 + 2 = 3 ,

and the values at the jump points 1,21, 2 are irrelevant: changing a function at finitely many points changes no integral (the framing step functions are unaffected). This is the whole content of the “piecewise continuous” extension: cut at the finitely many discontinuities, integrate each continuous piece, add — Chasles as a definition.

Example 15.6 (The definition computes, once)

Let f(x)=xf(x) = x on [0,1]\intcc{0}{1} and cut into nn equal pieces. The best step functions constant on the pieces are φ=k1n\varphi = \frac{k-1}{n} and ψ=kn\psi = \frac kn on the kk-th piece, with

01φ=k=1nk1n1n=n12n,01ψ=k=1nkn1n=n+12n.\int_0^1 \varphi = \sum_{k=1}^{n} \frac{k-1}{n}\cdot\frac1n = \frac{n-1}{2n}, \qquad \int_0^1 \psi = \sum_{k=1}^{n} \frac{k}{n}\cdot\frac1n = \frac{n+1}{2n} .

Every lower integral is I(f)I+(f)\leq I_-(f) \leq I_+(f) \leq every upper one, so n12nI(f)I+(f)n+12n\frac{n-1}{2n} \leq I_-(f) \leq I_+(f) \leq \frac{n+1}{2n} for all nn: both squeeze onto 12\frac12, and 01x ⁣dx=12\int_0^1 x\,\dd x = \frac12 straight from the definition. The closing insight: this is the first and last time we integrate from the definition — the fundamental theorem below replaces all such computations by one antiderivative lookup, which is the entire economic point of this chapter.

Read in context →