Given the function:(adsbygoogle = window.adsbygoogle || []).push({});

[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.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Absolute Value functions => Piecewise Function

**Physics Forums | Science Articles, Homework Help, Discussion**