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 FunctionsComposition 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Making 10 as an Addition StrategyAddition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts Through 10Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsStep Functions

Longest path: 69 steps · 301 total prerequisite topics

Prerequisites (1)

Leads To (2)