Absolute-Value and Piecewise Functions
A distance is positive on either side of a reference point, even when the signed difference changes. How can one function express both sides? We will read absolute value as distance and draw a function with separate rules on different intervals.
- Absolute value and piecewise rule: Absolute value is distance from zero. A piecewise rule selects a formula by the input interval.
Core ideas
Absolute value
The absolute value of is the distance from to . Its graph has vertex and equal outputs at equal distances on either side.
Piecewise rules
First check which interval contains the input, then apply its rule. The absolute value of uses for and for .
Endpoints
If one rule gives for and another gives for , draw an open point at and a filled point at .
Essential example
On a number line, measures distance from . For , the distance is . For , it is . Both sides reach zero at the boundary. In unitless graph coordinates, the horizontal axis is the input and the vertical axis is the distance.
The graph has a corner at because the slope changes from to . The inputs and each give distance . Solving means finding the inputs three units from , namely and . The inequality describes every input between those two endpoints.
Graph a jump
Suppose a parking model charges 4 dollars for a stay of at most one hour and 7 dollars for a stay longer than one hour and at most two hours. Let be the duration in hours. For positive the rule is on and on . A stay of exactly one hour belongs to the first interval.
Check coverage
A piecewise definition needs one output for every input in its domain. If two rules both include an endpoint, their outputs must agree there. The parking prices do not agree at , so only one interval may include that input. Inputs longer than two hours are outside the stated model.
Join two rules without a jump
Suppose a garage instead charges 4 dollars up to one hour and adds 3 dollars per hour of time beyond that first hour. The second rule is for . As approaches from above, this expression approaches , which matches the actual price at . At , the model gives dollars. The boundary still changes which rule to use, but the two pieces meet at the same height.
Keep and continue
Keep the habit of checking the input before using a rule. Next, check an input twice when the output of one function becomes the input of another.
Previous: Graph Transformations