Special Functions: Piecewise, Floor and Absolute Value
Three functions that break the single-rule pattern: the piecewise function, the floor function that always rounds down, and absolute value with its V-shaped graph.
Three functions that break the single-rule pattern: the piecewise function, the floor function that always rounds down, and absolute value with its V-shaped graph.
Most functions follow a single rule everywhere. These three do not. Each one either changes its rule partway along, chops a number downward, or strips away a minus sign — and each leaves a distinctive shape on the graph.
A piecewise function uses a different rule depending on which interval x falls into.
Read the conditions carefully. Here belongs to the second rule, because that condition uses "greater than or equal to". Every input must match exactly one case.
Using the function above, find and
.
Think of a teacher who simply discards the fractional part of a mark. Each step begins with a filled circle and ends with a hollow one, because the next whole number belongs to the following step.
Notice that absolute value is itself a piecewise function — the first idea in this lesson, applied to a particular pair of rules.