The graph of a function consists of two pieces:
• A straight line segment joining the points (−4,2) and (0,−2), including both endpoints.
• A line segment joining the points (1,1) and (3,5) where the point at (1,1) is open and the point at (3,5) is closed.
Determine the domain of the function.