Which best describes when to use a piecewise function?
A. A function that increases or decreases at a constant rate for all values of the domain.
B. A function that stays constant for all values of the domain.
C. A function that grows at exponential for all values of the domain.
D. A function used changes based on the domain value.