Math & ScienceDefinition with curly brace

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
marcdein
Posts: 40
Joined: Sat Dec 19, 2009 2:11 pm

Definition with curly brace

Post by marcdein »

I would like to write a definition like

\begin{equation}
f(x) = ....
\end{equation}

where on the right-hand-side there is a system of equations with a
curly brace on the left, giving the values of f(x) for various
intervals. How is it possible to do this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Definition with curly brace

Post by gmedina »

Hi,

try the cases environment provided by the amsmath package. A little example:

Code: Select all

\documentclass{article} 
\usepackage{amsmath}

\begin{document} 

\begin{equation}
  f(x)=\begin{cases}
    1, & \text{if $x<0$}.\\
    0, & \text{otherwise}.
  \end{cases}
\end{equation}

\end{document}
Read the package documentation and some other relevant information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply