Observe the graph,
\The left portion of the graph is the constant function
.
There is a closed dot at
, So the domain for this part is
.
The center portion of the graph is the line
.
There are open circles at
and
, So the domain for this part is
.
The right portion of the graph is the line
.
There is a closed dot at
, So the domain for this part is
. Therefore the function is
.
The function is
.