4.4
2,100+ reviews on G2
A piecewise function uses different formulas on different intervals of its domain, written as one function with a brace and a condition for each piece. To write one you need four things:

Where the rule changes.
One expression for each interval.
Inequalities that say where each applies.
Each x belongs to exactly one piece.
Do your homework in Evernote. The AI Assistant explains any problem you photograph, step by step.
Read the problem or the graph for breakpoints: a price that changes after 2 GB, a line that bends at x = 0.
Work out each rule separately, as if it were its own function.
Use inequalities for each interval. Decide which piece includes each breakpoint, using ≤ on one side and < on the other.
Write f(x) = { formula 1, if condition 1; formula 2, if condition 2 }, one row per piece.
Check one x from each interval, and the breakpoints, against the problem or the graph.
A plan costs $20 a month for up to 2 GB of data, plus $10 for each GB over 2. Write the cost as a function of x GB, and find the cost for 3.5 GB.
The cost for 3.5 GB is f(3.5) = $35
The two pieces meet at x = 2 (both give $20), so the graph has no jump there.
Each one is a single function made of simpler pieces.
| Function | Piecewise form | Note |
|---|---|---|
| Absolute value | |x| = x if x ≥ 0; −x if x < 0 | A V shape with its corner at 0 |
| Tiered price | 20 if 0 ≤ x ≤ 2; 20 + 10(x − 2) if x > 2 | Continuous at the breakpoint |
| Step function | 1 if 0 < x ≤ 1; 2 if 1 < x ≤ 2; 3 if 2 < x ≤ 3 | Jumps at each whole number |
| Jump at a point | x + 1 if x < 0; x² if x ≥ 0 | Left side approaches 1, right side starts at 0 |
OpenStax Calculus Volume 1, section 1.2 "Basic Classes of Functions" (piecewise-defined functions), and College Algebra 2e, section 3.2.
4.4
2,100+ reviews on G2
4.4
8,200+ reviews on Capterra
4.4
73,000+ reviews on App Store
248M
Registered users
A function defined by different formulas on different parts of its domain. It is still one function: each input gets exactly one output.
Find the condition that the x-value meets, then use only that piece's formula. For the plan above, f(3.5) uses the second piece.
Split the graph where it changes shape. Find the equation of each part (for example a line: use slope and a point), then use open and closed dots to choose < or ≤.
No. If one x were in two pieces with different outputs, it would not be a function. Breakpoints belong to one piece only.
A closed (filled) circle means the endpoint is included, ≤ or ≥. An open circle means it is not, < or >.
Only if the pieces meet at every breakpoint. Check that the formulas on each side give the same value there.
Keep a Math notebook with your algebra formula sheet and a note for each problem you photograph.
Ask the AI Assistant to add the piecewise function rule to your algebra formula sheet, with one worked example. It writes the formula in a formula block, so it reads like the textbook.
Add a photo of your algebra problem, such as the phone data plan, and ask the Assistant to explain it step by step. It reads the photo and adds the steps under it.
Ask the Assistant for a repeating practice task, such as 10 piecewise function problems every Tuesday and Thursday until the test. You get a reminder each time.
Build a formula sheet, photograph a problem for a step-by-step explanation, and practice on a schedule before the test.
Start for free