## Precalculus: Concepts Through Functions, A Unit Circle Approach to Trigonometry (3rd Edition)

Piecewise functions are defined by more than one equation and for some of its intervals separately. Let us consider an example: $f(x)=|a|$ can be expressed as a piecewise function: $$-a,~~a\lt 0 \\ a,~~ a\gt 0$$