When you look at the graph of a piecewise function, you are seeing multiple rules stitched together across different intervals. Each piece may have its own equation, its own domain restrictions, and its own behavior at the boundaries. Learning how to identify the domain and range from the graph of a piecewise function is one of the most practical skills in algebra and precalculus, because it teaches you exactly which input values are allowed and which output values the function can produce. Unlike a single continuous curve, a piecewise graph can jump, pause, or change direction suddenly, which makes reading its domain and range a careful, piece-by-piece process And it works..
And yeah — that's actually more nuanced than it sounds.
What Is a Piecewise Function?
A piecewise function is a function defined by multiple sub-functions, where each sub-function applies to a specific interval of the input values. Instead of one rule governing every x-value, the function changes its behavior depending on where x falls. Take this: one piece might apply when x is less than zero, another when x is between zero and ten, and a third when x is greater than ten.
You encounter piecewise functions in real life more often than you might realize. Day to day, tax brackets, shipping rates, utility billing tiers, and mobile data plans all behave like piecewise functions: the cost or rate changes once you cross a certain threshold. Because each piece has its own starting and stopping point, the overall domain and range of the function are built from the combined behavior of all its parts Simple, but easy to overlook..
Domain and Range: Quick Definitions
Before reading a graph, it helps to remember what these two terms mean:
- Domain: The set of all possible input values, or x-values, for which the function is defined. On a graph, the domain is the horizontal span of the curve.
- Range: The set of all possible output values, or y-values, that the function can produce. On a graph, the range is the vertical span of the curve.
When you are asked to find the domain and range from the graph of a piecewise function, your job is to look at the entire picture and determine exactly which x-values and y-values are covered by at least one piece of the graph.
How to Find the Domain from the Graph of a Piecewise Function
To find the domain, scan the graph from left to right along the x-axis. Ask yourself: for which x-values does the graph actually exist?
Here are the key steps:
- Identify the leftmost and rightmost points. Note the smallest and largest x-values where any part of the graph appears.
- Check for gaps. If there is a horizontal break between two pieces, those x-values in the middle are not part of the domain.
- Watch for open and closed circles. A closed circle (●) means the endpoint is included in the domain. An open circle (○) means the endpoint is excluded.
- Combine the intervals. If the graph exists in separate sections, write the domain as a union of intervals using the ∪ symbol.
Take this: imagine a piecewise graph that exists from x = -3 to x = 1, with a closed circle at -3 and an open circle at 1. Then there is a gap, and the graph resumes from x
= 2 to x = 5, with a closed circle at 2 and a closed circle at 5. Day to day, the domain for this graph is therefore all x-values from -3 up to (but not including) 1, together with all x-values from 2 through 5 inclusive. In interval notation, that is written as ([-3, 1) \cup [2, 5]).
How to Find the Range from the Graph of a Piecewise Function
Finding the range follows a similar logic, but you scan the graph vertically along the y-axis. Ask: which y-values are actually reached by at least one point on the graph?
- Identify the lowest and highest points. Look for the minimum and maximum y-values that appear anywhere on the graph.
- Check for vertical gaps. If the graph jumps from one y-value to another without covering the values in between, those missing y-values are not in the range.
- Watch for open and closed circles. As with the domain, a closed circle means that y-value is included; an open circle means it is excluded.
- Combine the intervals. If the range consists of separate vertical sections, express it as a union of intervals.
To give you an idea, consider a piecewise function whose graph has a piece that covers y from 0 to 4 (with a closed circle at 0 and an open circle at 4), and another piece that covers y from 6 to 10 (with closed circles at both ends). The range would be ([0, 4) \cup [6, 10]) Small thing, real impact. That's the whole idea..
A Complete Example
Let’s put it all together. Suppose you are given the graph of a piecewise function with three pieces:
- From (x = -4) to (x = -1), the graph is a line segment starting at ((-4, 2)) with a closed circle and ending at ((-1, 5)) with an open circle.
- From (x = -1) to (x = 3), the graph is a parabola that opens downward, with its vertex at ((1, 6)) and ending at ((3, 0)) with closed circles at both ends.
- From (x = 3) to (x = 6), the graph is a horizontal line at (y = 0), with an open circle at (x = 3) (already not included from the previous piece) and a closed circle at (x = 6).
Domain: The graph exists from (x = -4) to (x = 6). There are no gaps in the x-direction. The only nuance is at (x = -1), where the first piece ends with an open circle and the second piece begins with a closed circle (assuming the parabola starts exactly at (x = -1)). The domain is ([-4, 6]) Surprisingly effective..
Range: The lowest y-value is 0, achieved by the parabola’s right endpoint and the horizontal line. The highest y-value is 6, at the vertex of the parabola. The first piece covers y-values from 2 to 5 (excluding 5). The second piece covers y-values from 0 to 6. The third piece covers only (y = 0). The overall range is all y-values from 0 to 6, inclusive. In interval notation: ([0, 6]).
Conclusion
Piecewise functions may seem complex because of their split nature, but their domain and range are simply the collective sets of inputs and outputs from all pieces. By methodically scanning the graph horizontally for the domain and vertically for the range—paying careful attention to endpoints and gaps—you can describe exactly where the function is defined and what values it can produce. This skill is not just academic; it underpins how we model real-world situations where rules change at certain thresholds, from tax calculations to shipping costs.