Step functions
Step Functions
Step Functions is a topic in Other Functions in the California Common Core State Standards. It is aligned to Standard F-IF.7b, which requires students to graph piecewise-defined functions, including step functions.
A step function is constant on each interval and jumps at the boundaries; the floor rounds down and the ceiling rounds up.
Theory
A step function is constant on each interval and jumps at the boundaries:
- Floor \(\lfloor x\rfloor\): the greatest integer \(\le x\) (round down).
- Ceiling \(\lceil x\rceil\): the least integer \(\ge x\) (round up).
Floor and ceiling:
How to use step functions
- Decide floor (down) or ceiling (up).
- Round the input to the correct integer.
- For models, match the rounding to the situation.
- Note the jump points at integers.
Round down to the nearest integer.
| \(\lfloor 2.7\rfloor\) | \(=\) | \(2\) |
| \(\lfloor -1.3\rfloor\) | \(=\) | \(-2\) |
Round up to the nearest integer.
| \(\lceil 2.1\rceil\) | \(=\) | \(3\) |
Round up the hours with the ceiling.
| \(\lceil 2.3\rceil\) | \(=\) | \(3\) |
| \(\text{cost}\) | \(=\) | \(3\times\$2=\$6\) |
The floor jumps at each integer.
| \(x\) | \(=\) | \(3\) |
Common pitfalls
Frequently asked questions
What is the floor function?
The greatest integer less than or equal to \(x\).
What is \(\lfloor -1.3\rfloor\)?
\(-2\), since floor rounds toward \(-\infty\).
What is a step function?
A function that is constant on intervals and jumps at boundaries.
What is the difference between floor and ceiling?
Floor rounds down; ceiling rounds up.