SyntaxFix
Write A Post
Hire A Developer
Questions
You can try the cases env in amsmath.
cases
\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}