Writing an Absolute Value Piecewise — Cheat sheet

Choose “Save as PDF” in the print dialog.
On this page

Key method

∣u∣={u,u≥0,−u,u<0.|u|=\begin{cases}u,&u\ge0,\\-u,&u<0.\end{cases}

For an expression u(x)u(x), solve u(x)=0u(x)=0 to locate the breakpoints before splitting into intervals.

Example

For ∣2x−6∣|2x-6|, the breakpoint is x=3x=3. If x<3x<3, then 2x−6<02x-6<0 and the value is 6−2x6-2x. If x≥3x\ge3, the value is 2x−62x-6. Both branches meet at zero when x=3x=3, producing a corner rather than a discontinuity.

Avoid this mistake

∣a+b∣|a+b| is not generally ∣a∣+∣b∣|a|+|b|. For a=1,b=−1a=1,b=-1, the two sides are 00 and 22.