A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Step Functions

College Depth 68 in the knowledge graph ☐ I know this ☆ Set as goal
8,364topics build on this
301prerequisites beneath it
See this on the map →
Piecewise Functions→→Composition of FunctionsInverse Functions
functions step-function floor ceiling piecewise

Core Idea

A step function is a piecewise-constant function whose graph resembles a staircase — it holds a constant value over each interval and then jumps to a new value. The most important example is the greatest integer function (floor function), written f(x) = floor(x), which returns the largest integer less than or equal to x: floor(3.7) = 3, floor(-1.2) = -2. The ceiling function rounds up instead: ceil(3.2) = 4. Step functions model real-world situations where output changes in discrete jumps rather than continuously, such as postage rates (cost stays the same within a weight bracket), parking fees, and tax brackets.

How It's Best Learned

Start by evaluating the floor function at several values, including negatives, to build intuition. Graph by hand using open and closed circles at the jump points to show which endpoint is included. Connect to the piecewise function definition students already know — a step function is just a piecewise function where each piece is a horizontal segment. Use real-world examples like "shipping costs $5 for 0-1 lbs, $8 for 1-2 lbs" to motivate why step functions exist.

Common Misconceptions

Explainer

You already know piecewise functions — functions defined by different rules on different intervals. A step function is just a piecewise function where every piece is a constant, so the graph looks like a staircase rather than a curve. Instead of a smoothly changing rule, the output sits still for a while, then abruptly jumps to a new constant value. The jump points are where the action is, and the open and closed circles you draw there communicate which endpoint each horizontal piece claims.

The most important step function is the floor function, written ⌊x⌋ (also called the greatest-integer function). Its rule: ⌊x⌋ = the largest integer that does not exceed x. For positive inputs this is ordinary truncation: ⌊3.7⌋ = 3, ⌊5.0⌋ = 5. For negative inputs, students often misapply the rule by rounding toward zero. But ⌊−1.2⌋ is not −1 — the largest integer not exceeding −1.2 is −2, because −1 > −1.2. The floor function always rounds toward negative infinity. The companion ceiling function ⌈x⌉ rounds toward positive infinity: ⌈3.2⌉ = 4, ⌈−1.2⌉ = −1.

Graphing the floor function makes the open-and-closed-endpoint rule concrete. On the interval [2, 3), the output is 2 — so at x = 2 there is a closed circle (2 is included) and at x = 3 there is an open circle (3 is not included in this piece; it belongs to the next). The graph is a series of horizontal segments, each closed on the left and open on the right. This is a direct consequence of the piecewise definition you already know — each piece is [n, n+1) for integer n, so the closed endpoint is always on the left.

Real-world step functions are everywhere once you recognize them. Postage rates: it costs the same to mail a 0.5 oz letter as a 0.9 oz letter, but more to mail a 1.1 oz letter. Parking garages: the fee is the same for 1 hour and 1 hour 59 minutes, then jumps at 2 hours. Tax brackets: income tax rates apply to ranges of income, not to individual dollars. In each case the output is piecewise-constant — it holds steady over an interval and jumps at the boundary. Identifying where the jumps occur and whether each boundary is included or excluded is the key analytical skill for working with step functions.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → Step Functions

Longest path: 69 steps · 301 total prerequisite topics

Prerequisites (1)

Leads To (2)