Welcome to our community

Be a part of something great, join today!

How to draw large curly brackets?

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?
 

earboth

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

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

Alexmahone

Active member
Jan 26, 2012
268
That's exactly what I meant. Thanks!
 

Evgeny.Makarov

Well-known member
MHB Math Scholar
Jan 30, 2012
2,488
There is also a more specialized cases environment:
$\begin{cases}
x&\text{if }x\ge0\\
-x&\text{if }x<0
\end{cases}$