Algebra 1FunctionsF-IF.C.7b

Step Functions

Graph functions like the floor function that jump between flat steps.

Not started Jump to practice

A step function is a piecewise function whose pieces are all flat. Its graph looks like a staircase. Prices often work this way: parking charged by the started hour, shipping charged by weight bands, postage by the ounce.

The basic example is the floor function $\lfloor x \rfloor$, the greatest integer less than or equal to $x$. So $\lfloor 2.7 \rfloor = 2$, $\lfloor 5 \rfloor = 5$, and $\lfloor -1.3 \rfloor = -2$ (on the number line, move left to the first integer).

Why it works

On each interval from one integer up to (but not including) the next, the floor function has one constant value. For $2 \le x < 3$, $\lfloor x \rfloor = 2$. At $x = 3$ it jumps to $3$. Each step includes its left end (a filled dot) and leaves out its right end (an open dot), so every input still has exactly one output. Drawing vertical lines between the steps would put many outputs above a single input, which a function cannot have.
$f(x) = \lfloor x \rfloor$. Drag the input: inside a step the output stays the same, and at each whole number it jumps up by $1$.

Key idea

A step function is constant on each interval and jumps between intervals. Use the endpoint symbols (filled or open dots, $\le$ or $<$) to decide which step a boundary input belongs to.

Worked examples

Worked example: Floor of a negative number

Find $\lfloor -3.4 \rfloor$ and $\lfloor 3.4 \rfloor$.
  1. $-4 \le -3.4 < -3$, so $\lfloor -3.4 \rfloor = -4$.
  2. $3 \le 3.4 < 4$, so $\lfloor 3.4 \rfloor = 3$.

Answer: $-4$ and $3$.

Worked example: Parking by the started hour

A garage charges $\$3$ for each hour or part of an hour. What does $2$ hours $15$ minutes cost? Graph the cost for up to $5$ hours.
  1. Any started hour counts in full, so $2$ h $15$ min is charged as $3$ hours.
  2. Cost: $3 \cdot 3 = \$9$.
  3. On the graph, each hour is a step: the open dot at the left end and the filled dot at the right end, because exactly $2$ hours still costs $\$6$.

Answer: $\$9$

Parking cost $C(t)$ for $t$ hours: here each step includes its right end, the opposite of the floor function.

Common mistake

Joining the steps with vertical lines. A vertical segment would give one input many outputs, so it is not part of a function's graph. Check a boundary input, like $t = 2$ hours: it should land on exactly one step.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • Common Core State Standards for Mathematics, F-IF.C.7b: graph step functions
  • OpenStax, Intermediate Algebra 2e, section 3.6 Graphs of Functions
@teddyrookbook GitHub