
Here we go ~
Value of g (x) is -2, when :

And since -2 lies in this range of x,

Value of x is -1, when :

And -0.5 falls in this range, hence

Next, The value of x is 0 when :

But, it isnt equal to 0.5, since there is open interval at both extremes.
Next, Value of x is 1, when :

And since it also has the value 0.5 included in it,
