The cases environment is useful to display a function that has a different value in several cases:
This is made with the following source:
\[ U[n]= \begin{cases} 0& \text{if } n<0\\ 1& \text{if } n\geq 0\\ \end{cases} \]