A function can change “formula” depending on the interval in which xx falls: these are piecewise functions, which we had already met when studying the absolute value. Here we treat them as an object in their own right: the definition using the system of cases, how to build and draw them, checking continuity at the junction points and their use as real-world models (tiered tariffs, costs with a free allowance).