Piecewise Functions
Choose the correct branch when evaluating a piecewise function.
The bigger question: What does a function tell us—and what can it hide?
On this page
Idea
A piecewise definition uses different formulas on different parts of the domain. It is still one function, provided its cases assign exactly one consistent output to every allowed input.
Visual guide
- x + 1, x < 0
- x², x ≥ 0
Method
To evaluate, first decide which condition the input satisfies, then use only that formula. At a boundary, inspect strict and non-strict inequality signs to determine endpoint inclusion.
Worked example
Let for and for . Then , , and . The left branch approaches near zero, while the value at zero is determined by the second branch. This is a jump, despite both formulas being individually continuous.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
Use the condition that includes the input exactly.
Hint 2 · Take the next step
The second branch includes equality at zero.
Show the reasoning
Answer: 1
At x=0 the rule is x+1, so f(0)=1.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Common mistake
Using both formulas at a boundary without checking the case conditions can assign two incompatible outputs.
Check your understanding
For the worked function, calculate .
Show answer
.
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.