Understanding how absolute value functions operate as piecewise functions is a foundational skill in algebra and precalculus. That said, this perspective transforms the absolute value from a simple "make it positive" rule into a structured mathematical definition that reveals the function's true behavior across different domains. By breaking the function into distinct pieces based on the input value, students gain the tools necessary to graph complex equations, solve layered inequalities, and prepare for calculus concepts like limits and derivatives.
What Is an Absolute Value Function?
At its core, the absolute value of a number represents its distance from zero on the number line, regardless of direction. The parent function is defined as $f(x) = |x|$. While the geometric definition—distance from zero—is intuitive, the algebraic definition is where the power of piecewise notation shines.
The standard algebraic definition states: $|x| = \begin{cases} x & \text{if } x \geq 0 \ -x & \text{if } x < 0 \end{cases}$
This definition explicitly shows that the function follows two different rules depending on the input. Worth adding: for non-negative inputs, the output equals the input. On the flip side, for negative inputs, the output is the opposite of the input. This duality is the essence of a piecewise function: a function defined by multiple sub-functions, each applying to a specific interval of the main function's domain No workaround needed..
Why Rewrite Absolute Value as Piecewise?
Rewriting absolute value expressions in piecewise form is not merely an academic exercise; it is a critical problem-solving strategy. Here is why this conversion is indispensable:
- Removing Ambiguity: The bars $| \cdot |$ hide the sign of the expression inside. Piecewise form exposes the logic, making it clear exactly when the expression inside is positive, negative, or zero.
- Graphing Accuracy: The graph of $y = |x|$ is a V-shape with a sharp corner (vertex) at the origin. Piecewise definitions allow you to graph the left linear piece ($y = -x$) and the right linear piece ($y = x$) separately, ensuring the vertex and slopes are precise.
- Calculus Preparation: In calculus, you cannot differentiate $|x|$ directly using standard power rules at $x=0$. You must use the piecewise definition to find the derivative for $x>0$ and $x<0$ separately, discovering that the derivative does not exist at the vertex.
- Solving Equations and Inequalities: Solving $|2x - 5| = 3$ requires considering two cases. Piecewise formalization makes this "casework" systematic and less prone to error.
The General Procedure: Converting to Piecewise Form
Any absolute value function of the form $f(x) = |g(x)|$ can be rewritten as a piecewise function by analyzing the expression inside the bars, $g(x)$. Follow these steps:
- Find the Boundary Point: Set the inside expression equal to zero and solve for $x$. $g(x) = 0$ This value (or values) splits the number line into intervals.
- Determine the Sign on Each Interval: Pick a test point from each interval created in step 1. Plug it into $g(x)$ to see if the result is positive or negative.
- Write the Sub-Functions:
- On intervals where $g(x) \geq 0$, the absolute value drops away: $f(x) = g(x)$.
- On intervals where $g(x) < 0$, the absolute value negates the expression: $f(x) = -g(x)$.
- Assemble the Piecewise Definition: Combine the sub-functions with their corresponding domain restrictions using standard piecewise notation.
Worked Example: Linear Expression Inside
Let’s convert $f(x) = |2x - 6|$ into piecewise form Small thing, real impact..
Step 1: Find the boundary. $2x - 6 = 0 \implies 2x = 6 \implies x = 3$. This splits the domain into $(-\infty, 3)$ and $[3, \infty)$. Note: The boundary point $x=3$ is usually included in the "greater than or equal to" piece, though mathematically it yields 0 in both cases.
Step 2: Test intervals.
- Test $x = 0$ (in $(-\infty, 3)$): $2(0) - 6 = -6$ (Negative).
- Test $x = 4$ (in $[3, \infty)$): $2(4) - 6 = 2$ (Positive).
Step 3: Write sub-functions.
- For $x < 3$: Expression is negative $\rightarrow f(x) = -(2x - 6) = -2x + 6$.
- For $x \geq 3$: Expression is positive $\rightarrow f(x) = 2x - 6$.
Step 4: Final Piecewise Form: $f(x) = \begin{cases} -2x + 6 & \text{if } x < 3 \ 2x - 6 & \text{if } x \geq 3 \end{cases}$
Handling Quadratic and Non-Linear Expressions
The process remains identical even when the expression inside the absolute value is non-linear, though the intervals may be more numerous.
Consider $f(x) = |x^2 - 4|$.
Step 1: Find boundaries. $x^2 - 4 = 0 \implies (x-2)(x+2) = 0 \implies x = -2, x = 2$. This creates three intervals: $(-\infty, -2)$, $(-2, 2)$, and $(2, \infty)$ Simple, but easy to overlook..
Step 2: Test intervals.
- $x = -3$: $(-3)^2 - 4 = 5$ (Positive).
- $x = 0$: $0^2 - 4 = -4$ (Negative).
- $x = 3$: $3^2 - 4 = 5$ (Positive).
Step 3: Write sub-functions.
- $x \leq -2$: Positive $\rightarrow f(x) = x^2 - 4$.
- $-2 < x < 2$: Negative $\rightarrow f(x) = -(x^2 - 4) = -x^2 + 4$.
- $x \geq 2$: Positive $\rightarrow f(x) = x^2 - 4$.
Final Form: $f(x) = \begin{cases} x^2 - 4 & \text{if } x \leq -2 \ -x^2 + 4 & \text{if } -2 < x < 2 \ x^2 - 4 & \text{if } x \geq 2 \end{cases}$
Notice how the graph of $y = x^2 - 4$ (a parabola opening up) is reflected above the x-axis between -2 and 2, creating a "W" shape.
Graphing Using Piecewise Definitions
Once in piecewise form, graphing becomes an exercise in graphing the component functions on their restricted domains.
- Graph each piece separately: Treat each sub-function as its own function (line, parabola, etc.) but only draw it for the specified $x$-values.
- Use Endpoint Notation:
- Solid dots ($\bullet$) for endpoints included in the domain ( $\leq$ or $\geq$ ).
- Open circles ($\circ$) for endpoints excluded ( ${content}lt;$ or ${content}gt;$ ).
- Identify the Vertex (Corner): For linear absolute value functions $f(x) = a|x-h| + k$, the vertex is at $(h, k)$. In piecewise form, this is the boundary point where the rule changes. The slopes of the two linear pieces