1

How do I get this sort of notation in LaTeX?

enter image description here

I'm using TeXmaker.

Sigur
  • 37,330
Olu
  • 11
  • 1
  • 2

1 Answers1

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

Sigur
  • 37,330
  • 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 01:19
  • @GonzaloMedina, I agree. Now the OP can follow it and improve. Thanks. – Sigur Apr 15 '14 at 01:20