Piecewise Functions - Complete Interactive Lesson
Part 1: Anatomy & Notation
๐งฉ Piecewise Functions
Part 1 of 7 โ Anatomy & Notation
Topics in This Part
| Section |
|---|
| What Is a Piecewise Function? |
| Reading the Brace Notation |
| Which Rule Applies Where |
๐ Key Concept: A piecewise function is one function defined by different rules on different parts of its domain. Think of it as a recipe with conditions: "if the input is over here, use this rule; if it's over there, use that rule."
What Is a Piecewise Function?
Most functions you've met use one rule for every input โ like . A piecewise function switches rules depending on where lands.
A classic real-world example is a parking garage:
| Input ( = hours parked) | Rule (cost) |
|---|---|
| First 2 hours | flat $5 |
| After 2 hours | $5 plus $3 per extra hour |
The cost is still a function of hours โ every input has exactly one output โ but the formula you use depends on the input. That's the whole idea.
We collect the rules under a single brace:
๐ก The function is still one function. The brace is just shorthand for "here are all my rules and the conditions that select them."
Reading the Brace Notation
Every row of a piecewise definition has two parts:
Concept Check ๐ฏ
Mind the Boundary ๐ฏ
Match Input to Rule ๐ฝ
For , pick the rule each input triggers.
Recap
You now know how to read a piecewise function:
- Each row is a rule paired with a condition.
- To evaluate, find the one condition your input satisfies, then apply that row's rule.
- The conditions tile the domain โ no gaps, no overlaps โ and the boundary value belongs to whichever piece uses or (the one with the "equals" line).
In Part 2 we put this into action: plugging numbers in carefully, especially right at the boundaries where mistakes love to hide.
Part 2: Evaluating Piecewise Functions
๐งฉ Piecewise Functions
Part 2 of 7 โ Evaluating Piecewise Functions
๐ The One-Step Method: To find , ignore the rules at first. Ask only: which condition does satisfy? Then plug into that โ and only that โ rule.
Evaluating, Step by Step
Use this function throughout:
Part 3: Graphing & Open/Closed Dots
๐งฉ Piecewise Functions
Part 3 of 7 โ Graphing & Open/Closed Dots
๐ The Plan: Graph each piece as if it were a normal function, but only draw it over its own interval. The open and closed dots at the boundaries tell the whole story of what happens at the edges.
How to Graph a Piecewise Function
For each piece:
- Graph the rule as usual (line, parabola, constant, etc.).
- Keep only the part over that piece's interval โ erase everything outside it.
- Mark the endpoints:
- or (endpoint included) โ a closed (filled) dot โ
- or (endpoint ) โ an โ
Part 4: Continuity at the Boundaries
๐งฉ Piecewise Functions
Part 4 of 7 โ Continuity at the Boundaries
๐ The Big Question: Does the graph connect at the seam between two pieces? A piecewise function is continuous at a boundary when the two pieces meet at the same point โ no hole, no jump.
The Continuity Test at a Boundary
At a boundary , compute three things:
- The value the left piece approaches as (plug into the left rule).
Part 5: Domain & Range
๐งฉ Piecewise Functions
Part 5 of 7 โ Domain & Range
๐ Domain = all valid inputs; Range = all possible outputs. For piecewise functions, you find each by examining the pieces together, paying special attention to the boundaries and which dots are open vs. closed.
Finding the Domain
The domain is every for which some piece is defined. Just take the union of all the condition-intervals.
Part 6: Absolute Value & Step Functions
๐งฉ Piecewise Functions
Part 6 of 7 โ Absolute Value & Step Functions
๐ Hidden Pieces: Two famous functions are secretly piecewise โ the absolute value function and the greatest-integer (step) function. Recognizing them as piecewise unlocks how to evaluate and graph them.
Absolute Value Is Piecewise
The absolute value keeps positives the same and flips negatives positive. As a piecewise rule:
Part 7: Modeling, Mixed Practice & Exit Quiz
๐งฉ Piecewise Functions
Part 7 of 7 โ Modeling, Mixed Practice & Exit Quiz
You can read brace notation, evaluate carefully at boundaries, graph with open/closed dots, test continuity, find domain and range, and decode absolute-value and step functions. Now let's use it on a real model โ then prove your mastery.
Real-World Modeling: A Tax Bracket
Piecewise functions are how the world handles "the rate changes after a threshold." Suppose a simplified tax on income (in dollars) is: