Staircase Function — Definition, Formula & Examples
A staircase function is a piecewise constant function whose graph looks like a series of flat steps, jumping from one constant value to another at specific points. The most common examples are the floor function and ceiling function.
A function is a staircase function (or step function) if there exists a partition of its domain into intervals on each of which takes a single constant value. At the boundaries between intervals, has jump discontinuities.
Key Formula
Where:
- = The constant value on the $i$-th interval
- = The left endpoint of the $i$-th interval
- = The right endpoint (excluded) of the $i$-th interval
How It Works
Each "step" of the staircase corresponds to an interval where the function outputs a constant value. At the endpoint of each interval, the function jumps instantaneously to a new constant value, creating a jump discontinuity. The floor function is the most familiar staircase function: it rounds every real number down to the nearest integer, so on it equals , on it equals , and so on. To evaluate a staircase function at a point, you determine which interval contains that point and return the corresponding constant.
Worked Example
Problem: Evaluate the floor function (a staircase function) at and .
Step 1: Recall that the floor function returns the greatest integer less than or equal to .
Step 2: For , the greatest integer is .
Step 3: For , the greatest integer is (not , since ).
Answer: and .
Why It Matters
Staircase functions appear in Riemann integration, where upper and lower sums approximate areas using step functions. They also model real-world situations like postal rates, tax brackets, and digital signals, where values change in discrete jumps rather than continuously.
Common Mistakes
Mistake: Assuming the floor function rounds toward zero for negative inputs (e.g., thinking ).
Correction: The floor function always rounds down (toward ). For negative numbers, this means moving further from zero: .
