Check out example codes for "brackets equation latex". It will help you in understanding the concepts better.

Code Example 1

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  D_{it} =
    \begin{cases}
      1 & \text{if bank $i$ issues ABs at time $t$}\\
      2 & \text{if bank $i$ issues CBs at time $t$}\\
      0 & \text{otherwise}
    \end{cases}       
\end{equation}
\end{document}

Learn ReactJs, React Native from akashmittal.com