Resources For Teachers For Tutors For Students & Parents Pricing
Algebra 2 Other functions (advanced)

Step functions

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

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).
Each step is a horizontal segment, closed on one end and open on the other.
A step function The greatest integer (floor) function jumps down to the next integer, forming steps. x y y = ⌊xβŒ‹
The floor function \(\lfloor x\rfloor\) steps down at each integer.
Step functions Step functions Step functions floor ⌊xβŒ‹: round down to an integer ceiling ⌈xβŒ‰: round up constant on each interval, then jumps
Floor and ceiling functions.

Floor and ceiling:

\[\lfloor x\rfloor=\text{round down},\qquad \lceil x\rceil=\text{round up}\]
the floor rounds down to an integer; the ceiling rounds up
Floor of a negative rounds toward \(-\infty\): \(\lfloor-1.3\rfloor=-2\).

How to use step functions

  1. Decide floor (down) or ceiling (up).
  2. Round the input to the correct integer.
  3. For models, match the rounding to the situation.
  4. Note the jump points at integers.
Example 1 β€” Floor values
Evaluate \(\lfloor 2.7\rfloor\) and \(\lfloor -1.3\rfloor\).
Solution

Round down to the nearest integer.

\(\lfloor 2.7\rfloor\)\(=\)\(2\)
\(\lfloor -1.3\rfloor\)\(=\)\(-2\)
floor of 2.7 is 2, floor of negative 1.3 is negative 2
Example 2 β€” Ceiling value
Evaluate \(\lceil 2.1\rceil\).
Solution

Round up to the nearest integer.

\(\lceil 2.1\rceil\)\(=\)\(3\)
ceiling of 2.1 is 3
Example 3 β€” Pricing model
Parking costs \(\$2\) per hour or part of an hour. Find the cost for \(2.3\) hours.
Solution

Round up the hours with the ceiling.

\(\lceil 2.3\rceil\)\(=\)\(3\)
\(\text{cost}\)\(=\)\(3\times\$2=\$6\)
the cost is 6 dollars
Example 4 β€” Where it jumps
At what \(x\) does \(\lfloor x\rfloor\) jump between \(2\) and \(3\)?
Solution

The floor jumps at each integer.

\(x\)\(=\)\(3\)
it jumps at x equals 3

Common pitfalls

Floor of a negative goes more negative: \(\lfloor-1.3\rfloor=-2\).
Floor rounds down, ceiling rounds up β€” not toward zero.
Watch which endpoint each step includes.

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.