Finding the range of a piecewise function requires a systematic approach that differs slightly from analyzing standard single-formula functions. And because a piecewise function is defined by multiple sub-functions, each applying to a specific interval of the domain, the overall range is the union of the ranges of each individual piece, restricted to their respective subdomains. Mastering this process involves a blend of algebraic manipulation, graphical intuition, and careful attention to boundary conditions.
Understanding the Foundation: Domain vs. Range
Before diving into the mechanics, it is crucial to distinguish between the domain and the range. The domain represents all permissible input values (x-values), while the range represents all resulting output values (y-values or f(x)-values). For a piecewise function, the domain is explicitly broken into intervals. The range, however, is not always explicitly given; it must be derived by evaluating the behavior of each formula only within its assigned interval.
This changes depending on context. Keep that in mind And that's really what it comes down to..
Consider a generic piecewise function: $ f(x) = \begin{cases} f_1(x) & \text{if } x \in I_1 \ f_2(x) & \text{if } x \in I_2 \ \vdots & \vdots \ f_n(x) & \text{if } x \in I_n \end{cases} $ The total range $R$ is calculated as: $ R = R_1 \cup R_2 \cup \dots \cup R_n $ Where $R_i$ is the range of $f_i(x)$ restricted to the interval $I_i$ Most people skip this — try not to..
Step-by-Step Methodology
To accurately determine the range, follow this structured workflow. Skipping steps often leads to errors, particularly regarding open and closed intervals.
1. Analyze Each Piece Independently
Treat every sub-function $f_i(x)$ as a standalone function temporarily. Identify its parent function type (linear, quadratic, rational, radical, exponential, etc.) and its natural range without restrictions That's the part that actually makes a difference..
- Linear: $f(x) = mx + b$. Range is typically $(-\infty, \infty)$ unless the domain is restricted.
- Quadratic: $f(x) = ax^2 + bx + c$. Find the vertex. Range depends on concavity (upwards: $[k, \infty)$; downwards: $(-\infty, k]$).
- Rational: $f(x) = \frac{p(x)}{q(x)}$. Look for horizontal asymptotes and values that make the denominator zero (vertical asymptotes).
- Radical: $f(x) = \sqrt{g(x)}$. Range is typically $[0, \infty)$ or a subset thereof, depending on the inner function.
2. Restrict to the Subdomain
This is the most critical step. Apply the specific interval $I_i$ (the "if" condition) to the sub-function That's the part that actually makes a difference..
- Endpoints: Evaluate the function at the endpoints of the interval.
- Behavior inside: Determine if the function is increasing, decreasing, or has turning points (vertices, critical points) inside the interval.
- Asymptotes: Check if vertical asymptotes fall within the open interval.
3. Determine Inclusion vs. Exclusion (Brackets vs. Parentheses)
Pay meticulous attention to inequality signs in the definition ($\le, <, \ge, >$).
- Solid dot / Closed bracket [ ]: The endpoint is included in the domain $\rightarrow$ The y-value at that endpoint is included in the range.
- Open dot / Open bracket ( ): The endpoint is excluded from the domain $\rightarrow$ The y-value is not included in the range (use parenthesis).
- Infinity: Always uses parenthesis $(-\infty, \dots)$ or $(\dots, \infty)$.
4. Combine Using Union
Once you have the range interval for every piece ($R_1, R_2, \dots$), combine them using the union symbol ($\cup$). Simplify the final expression if intervals overlap or are adjacent Not complicated — just consistent..
Worked Examples by Function Type
Example 1: Linear Pieces (The "V-Shape" Absolute Value)
Find the range of: $ f(x) = \begin{cases} -x + 2 & \text{if } x < 1 \ 2x - 1 & \text{if } x \ge 1 \end{cases} $
Piece 1: $f_1(x) = -x + 2$ on $(-\infty, 1)$.
- This is a decreasing line.
- As $x \to -\infty$, $f(x) \to \infty$.
- As $x \to 1^{-}$ (approaches 1 from left), $f(x) \to -1 + 2 = 1$.
- Since $x < 1$ (open interval), the output approaches 1 but never reaches it.
- Range 1: $(1, \infty)$.
Piece 2: $f_2(x) = 2x - 1$ on $[1, \infty)$.
- This is an increasing line.
- At $x = 1$ (closed interval), $f(1) = 2(1) - 1 = 1$. Value is included.
- As $x \to \infty$, $f(x) \to \infty$.
- Range 2: $[1, \infty)$.
Total Range: $(1, \infty) \cup [1, \infty) = [1, \infty)$. Note how the open endpoint from the first piece is "covered" by the closed endpoint of the second piece.
Example 2: Quadratic Piece (Vertex Inside Interval)
Find the range of: $ f(x) = \begin{cases} x^2 - 4x + 5 & \text{if } 0 \le x \le 3 \ 2 & \text{if } x > 3 \end{cases} $
Piece 1: $f_1(x) = x^2 - 4x + 5 = (x-2)^2 + 1$ on $[0, 3]$ Easy to understand, harder to ignore..
- Vertex at $(2, 1)$. Parabola opens upward.
- Vertex $x=2$ lies inside the domain $[0, 3]$. Minimum value is $1$ (included).
- Check endpoints:
- $x=0 \rightarrow f(0) = 5$ (included).
- $x=3 \rightarrow f(3) = 9 - 12 + 5 = 2$ (included).
- The function decreases from 5 to 1, then increases to 2.
- Range 1: $[1, 5]$.
Piece 2: $f_2(x) = 2$ on $(3, \infty)$ Easy to understand, harder to ignore..
- Constant function. Output is always 2.
- Domain is open at 3, but the value is 2.
- Range 2: ${2}$ (or just the value 2).
Total Range: $[1, 5] \cup {2} = [1, 5]$. The single value 2 is already inside the first interval.
Example 3: Rational Function with Asymptote
Find the range of: $ f(x) = \begin{cases} \frac{1}{x} & \text{if } x < 0 \ x + 1 & \text{if } x \ge 0 \end{cases} $
Piece 1: $f_1(x) = 1/x$ on $(-\infty, 0)$ And it works..
- Vertical asymptote at $x=0$.
- As $x \to -\infty$, $f(x) \to 0^{-}$ (approaches 0 from negative side).