long curly bracket for expression in latex code example
Example 1: how to write conditional function in latex
\[
f(x)=
\begin{cases}
\frac{x^2-x}{x},& \text{if } x\geq 1\\
0, & \text{otherwise}
\end{cases}
\]
Example 2: brackets equation latex
\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}