- Thread starter
- #1

#### Alexmahone

##### Active member

- Jan 26, 2012

- 268

How can I write "g(x) = x if x >= 0 and g(x) = -x for x < 0" on 2 lines using large curly brackets?

- Thread starter Alexmahone
- Start date

- Thread starter
- #1

- Jan 26, 2012

- 268

How can I write "g(x) = x if x >= 0 and g(x) = -x for x < 0" on 2 lines using large curly brackets?

- Jan 30, 2012

- 74

If I understand your question correctly you mean (maybe) this(?):How can I write "g(x) = x if x >= 0 and g(x) = -x for x < 0" on 2 lines using large curly brackets?

$ g(x) = \left\{ \begin{array}{rcl} x\ &if& \ x\geq 0 \\ -x\ &if& \ x<0\end{array} \right. $

- Thread starter
- #3

- Jan 26, 2012

- 268

That's exactly what I meant. Thanks!

- Jan 30, 2012

- 2,589

$\begin{cases}

x&\text{if }x\ge0\\

-x&\text{if }x<0

\end{cases}$