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

Piecewise Functions

College Depth 67 in the knowledge graph ☐ I know this ☆ Set as goal
8,513topics build on this
300prerequisites beneath it
See this on the map →
Function Notation ReviewGraphing Linear Equations+3 more→→One-Sided LimitsStep Functions+1 more
functions piecewise graphing domain

Core Idea

A piecewise function uses different formulas on different intervals of its domain. Each piece is defined by a rule and a domain restriction. Common examples: absolute value function (|x| = x if x >= 0, -x if x < 0), step functions, and tax brackets. Graphing requires plotting each piece on its specified interval and paying attention to open vs. closed circles at boundary points.

How It's Best Learned

Start with the absolute value function as a familiar piecewise function. Practice evaluating piecewise functions at specific values (determine which piece applies). Graph by plotting each piece on its interval. Discuss continuity: is the function connected at the boundary points? Create piecewise functions from real-world scenarios (postage rates, tax brackets).

Common Misconceptions

Explainer

A piecewise function is a single function that uses different rules depending on where the input falls. You've seen this structure before without naming it: the absolute value function |x| is just a piecewise function with the rule "use x if x ≥ 0, use −x if x < 0." This makes intuitive sense — |x| has to do something different for positive and negative inputs. Piecewise functions generalize this idea: you can stitch together any number of formulas, each responsible for a different piece of the domain.

Evaluating a piecewise function requires two steps. First, determine which interval your input x belongs to. Second, apply the formula for that interval. For example, if f(x) = {x² for x < 0; 2x + 1 for x ≥ 0}, then f(−3) uses the first piece: (−3)² = 9. But f(2) uses the second piece: 2(2) + 1 = 5. The domain restrictions are the guardrails — you must check which "case" applies before computing. This is directly connected to solving inequalities: the condition "x < 0" is an inequality, and you're using your inequality-solving skills to decide which branch applies.

Graphing a piecewise function means drawing each piece only on its specified interval, like coloring within strict boundary lines. At the boundary point between two pieces, you must decide which piece "owns" that point. An open circle at an endpoint means the piece stops just before that value (the point is excluded); a closed circle means the piece includes that endpoint. If two pieces meet at the same y-value at their shared boundary, the function is continuous there — the graph has no jump. If they meet at different y-values, there is a jump discontinuity. The absolute value function is piecewise but continuous because both pieces give y = 0 at x = 0.

Real-world contexts are full of piecewise functions. Tax brackets are a classic example: you pay one rate on income up to a threshold, a higher rate on income above it. Postage pricing works similarly — a letter under 1 oz costs one amount, 1–2 oz costs more. These scenarios naturally produce piecewise rules because the underlying relationship genuinely changes at boundary values. Recognizing this pattern — "different rules for different ranges" — is the core skill that piecewise functions develop, and it's foundational for understanding continuity more rigorously in calculus.

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

Longest path: 68 steps · 300 total prerequisite topics

Prerequisites (5)

Leads To (3)