All lessons
⋏⊻
Piecewise Functions
Different rules on different intervals — one graph, many pieces.
Interactive graph
Drag the sliders in the Desmos graph. Watch how each parameter reshapes the curve in real time.
Concepts
Building a Piecewise
VisualEach piece is its own function — but only on a specific x-interval. Open dots mean 'not included'; closed dots mean 'included'.
Algebra
Continuity at the Joints
VisualAt every boundary, check: do the pieces meet? A jump = discontinuity.
AlgebraFor continuity at : .
Evaluating
VisualFind which interval the input falls into, then use that piece's rule.
AlgebraTo find in the example: , so .
Key formulas
Piecewise notation
Rule per interval
Continuity check
At each boundary
Finished reading?
Mark this lesson complete to update your mastery.
Quick practice
Full practiceeasypiecewise
Evaluate for .
easypiecewise
Evaluate for .
mediumpiecewise
For , is continuous at ?
mediumpiecewise
For , find and the left-hand limit as .
hardpiecewise
Write a piecewise function for the absolute value .