Step Function Intuition Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Step Function Intuition.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A step function is piecewise constant β€” it takes a fixed value on each of several intervals, jumping abruptly at the interval boundaries.

Imagine a staircase: the height is constant on each step, then jumps up (or down) at each transition. Postal rates, grade cutoffs, and floor() all create steps.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Step functions are piecewise constantβ€”flat segments with jumps.

Common stuck point: At the exact boundary points, a step function takes one specific value (not both adjacent values) β€” which endpoint is included depends on whether the interval is open or closed.

Sense of Study hint: Draw open and closed circles at each jump to show which endpoint is included. Check: does the point belong to the step below or above?

Worked Examples

Example 1

easy
Evaluate the floor function f(x) = \lfloor x \rfloor at x = 3.7, x = -2.1, and x = 5. Then describe the graph on [0, 4].

Solution

  1. 1
    \lfloor 3.7 \rfloor = 3 (greatest integer \leq 3.7).
  2. 2
    \lfloor -2.1 \rfloor = -3 (greatest integer \leq -2.1 is -3, not -2).
  3. 3
    \lfloor 5 \rfloor = 5. Graph on [0,4]: horizontal steps at heights 0,1,2,3. Each step spans a half-open interval [n, n+1) with a closed left endpoint and open right endpoint.

Answer

\lfloor 3.7\rfloor=3; \lfloor -2.1\rfloor=-3; \lfloor 5\rfloor=5
The floor function always rounds down toward -\infty. For negative numbers, this means \lfloor -2.1\rfloor=-3, not -2, because -3 \leq -2.1 < -2.

Example 2

medium
A parking garage charges \3 for the first hour (or part thereof) and \2 for each additional hour (or part). Write and evaluate the cost function for t = 0.5, 1, 1.2, and 3.9 hours.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Evaluate: (a) \lfloor 7.9 \rfloor, (b) \lceil 4.1 \rceil, (c) \lfloor -0.5 \rfloor, (d) \lceil -3.2 \rceil.

Example 2

hard
Define f(x) = \lfloor 2x \rfloor. Find all x in [0, 2] where f(x) = 3, and sketch f on [0,2].

Related Concepts

Background Knowledge

These ideas may be useful before you work through the harder examples.

piecewise function