The entire graph of the function g is shown in the figure below. Write the domain and range of g as intervals or unions of intervals.

Answer: D = {-5 ≤ x ≤ -2 or 1 ≤ x < 5}
Step-by-step explanation:
When we have a function f(x) = y, the domain is defined as all the possible values of x that the function maps into other values.
In our graph, we can see two curves.
The first one (the one at the left)
Has two black dots, one at x = -5, and other at x = -2
(black dots means that the value is included, white dots means that the value is not included)
So this first part of the domain is:
-5 ≤ x ≤ -2.
Now, the second part has a black dot in x = 1, and a white dot in x = 5, so we can write this part of the domain like:
1 ≤ x < 5
Then the domain of our function is:
D = {-5 ≤ x ≤ -2 or 1 ≤ x < 5}