A piecewise function uses different formulas on different intervals. The input decides which formula applies; the graph is each formula drawn only on its own interval, with open or solid dots at the boundaries.
| Step | On for , for | |
|---|---|---|
| 1 | List each piece with its interval. Write the intervals in interval notation and check that they do not overlap. | on ; on |
| 2 | Evaluate: let the input pick the piece. Find the condition the input satisfies, then use only that formula.Substitution ↗ | , , |
| 3 | Find both values at each boundary. Put the boundary into each neighboring formula. The piece whose condition includes it gets a solid dot; the other gets an open dot. | left: (open); right: (solid) |
| 4 | Draw each piece only on its interval. Graph each formula as usual and erase everything outside its interval. | slope up to ; slope from |
| 5 | Read off continuity, domain and range. Equal boundary values mean the pieces join (continuity); the range is the union of the pieces' ranges. | jump at ; domain ; range |