The graph is a piecewise defined function.
\Observe the graph.
\A straight line exists in the interval
.
The end points of the straight line are
and
.
Standard form of line equation using the points
and
is
.
Substitute
and
in the line equation.

The equation of the line is
in the interval
.
Observe the graph.
\A straight line exists in the interval
.
The end points of the straight line are
and
.
Standard form of line equation using the points
and
is
.
Substitute
and
in the line equation.

The equation of the line is
in the interval
.
Then the piecewise function is
.
The function is
.