How do you write g(x) = -2|x+1| as a piecewise function?

1 Answer
Mar 13, 2016

g(x) = { (-2(x+1), x >= -1), (2(x+1), x < -1) :}

Explanation:

abs(t) = { (t, t >= 0), (-t, t < 0) :}

Hence:

abs(x+1) = { ((x+1), x >= -1), (-(x+1), x < -1) :}

Multiply by -2 to get:

g(x) = { (-2(x+1), x >= -1), (2(x+1), x < -1) :}