Different rules for different parts of the domain
A piecewise function uses different formulas on different intervals. The graph on the right shows one rule for x < 0 (a parabola) and another for x ≥ 0 (a straight line). Real life is full of piecewise functions: tax brackets, shipping rates, phone plans.
The key questions are: Where do the pieces connect? Is the function continuous (no gap) at the boundary? What's the domain of each piece?
Try asking the AI "Is this function continuous at x = 0?" or "Build a tax bracket function."