Step function

A function that is constant on each subinterval of some partition.
Step function

A step function on [a,b][a,b] is a s:[a,b]Rs:[a,b]\to\mathbb R for which there exists a P={x0,,xn}P=\{x_0,\dots,x_n\} and constants c1,,cnc_1,\dots,c_n such that

s(x)=cifor all x(xi1,xi), i=1,,n. s(x)=c_i \quad \text{for all } x\in(x_{i-1},x_i),\ i=1,\dots,n.

The values of ss at the partition points xix_i can be chosen arbitrarily without changing this property.

Step functions are basic building blocks in the theory of the ; in particular, they are and play a role analogous to a in measure theory.

Examples:

  • Any constant function s(x)=cs(x)=c on [a,b][a,b] is a step function (take P={a,b}P=\{a,b\}).
  • On [1,1][-1,1], the function s(x)=0s(x)=0 for x<0x<0 and s(x)=1s(x)=1 for x>0x>0 is a step function (take P={1,0,1}P=\{-1,0,1\}).