1

This question already has an answer here:

How do I get this sort of notation in LaTeX?

enter image description here

I'm using TeXmaker.

marked as duplicate by Werner, Mico, Steven B. Segletes, Heiko Oberdiek, Masroor Apr 15 '14 at 2:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – cfr Apr 15 '14 at 1:13
3

Use the cases environment from \usepackage{amsmath}.

\[f(x)=
 \begin{cases}%
  7      & \text{if $x=0$}\\
  3x^2-2 & \text{otherwise}
 \end{cases}
\]

enter image description here

  • I'd suggest you \[ f(x)= \begin{cases} 7, &\qquad\text{if $x=0.$} \\ 3x-2, &\qquad\text{otherwise.} \end{cases} \] to have better spacing and the appropriate punctuation. – Gonzalo Medina Apr 15 '14 at 1:19
  • @GonzaloMedina, I agree. Now the OP can follow it and improve. Thanks. – Sigur Apr 15 '14 at 1:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.