A phone plan costs $20 a month for up to 5 GB of data, then $8 for each extra GB. For g gigabytes, C(g)=20 when 0≤g≤5, and C(g)=20+8(g−5) when g>5. Using 3 GB costs $20; using 7 GB costs 20+8(2)=36 dollars. The bill follows two different rules, and which rule applies depends only on where g falls.
Brace notation lists each formula with its condition. To evaluate, locate the input first, then use that piece alone. The conditions must not overlap, or one input would get two outputs. At each boundary exactly one piece includes the endpoint (≤ or ≥) and its neighbour excludes it (< or >); on a graph that is a closed dot on one side and an open dot on the other.
Pieces can join or jump. In the phone plan both rules give $20 at g=5, so the graph is unbroken, with a corner. Postage priced at $1.50 up to 20 g and $2.80 above leaps upward at 20 g. A graph that merely bends, such as x2, is not piecewise, since one formula draws the whole curve. Piecewise means the rule itself changes at a threshold.
Think of it like this. A piecewise function is like the speed-limit zones along a road: your position decides which limit applies, and only one sign governs any stretch. Where two zones meet, the limits may match or change abruptly, just as pieces can join or jump.
Core idea. A piecewise function uses different formulas on different input intervals; the input decides which one applies.