To determine the domain and range of a piecewise function, consider the domain and range of each sub-function and their points of intersection.