[math]\displaystyle{
\newenvironment{rcases}
{\left.\begin{aligned}}
{\end{aligned}\right\rbrace}
\newenvironment{lcases}
{\left\lbrace\begin{aligned}}
{\end{aligned}\right.}
}[/math]
This template allows LaTeX representations of cases by defining operators in advance to avoid the need to manually enter brackets.