The piecewise function described in the details for the graph corresponds with the first option

The steps used to find the piecewise function in the graph described can be presented as follows;
The coordinate points on the first line of the piecewise function indicates that we get;
The slope of the line, m, is; (3 - 1)/(-4 - 0) = -0.5
The y-intercept of the line is; (0, 1)
The equation of the line is therefore; f(x) = -0.5·x + 1 for x < 0
The coordinate points on the second line of the piecewise function indicates that we get;
The slope of the line, m, is; (2 - (-2))/(2 - 0) = 2
The y-intercept of the line is; (0, -2)
The equation of the line is therefore; f(x) = 2·x - 2 for x ≥ 0
The correct option is therefore;

The above piecewise function corresponds with the first option