- #1

danago

Gold Member

- 1,122

- 4

[tex]

f(x) = \left| {x + 1} \right| + \left| {x + 2} \right|

[/tex]

How can i write that as a piecewise function? If i was given something in the form of [tex]f(x) = \left| {g(x)} \right|[/tex], i know to write it as:

[tex]

f(x) = \left\{ {\begin{array}{*{20}c}

{g(x),} & {g(x) \ge 0} \\

{ - g(x),} & {g(x) < 0} \\

\end{array}} \right.

[/tex]

but im a little stuck with the other one.

Thanks in advance,

Dan.