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 of the function is
.
The center portion of the graph is the line
.
There are closed dots at
and
,so the domain for this part is
.
The right portion of the graph is the constant function
.
There is an open circle at
, so the constant function is defined for
.
Therefore the function is
.
The function is
.