Search code examples
latexoverleaf

How to write formula in Latex(Using Big Brackets)


I am new to the Latex code. I want to write the below formula in Latex

GenaralFormula

Thank you!!


Solution

  • You can use the cases environment:

    \documentclass{article}
    
    \usepackage{amsmath}
    
    \begin{document}
    
    \[
    x = \begin{cases}
                0 & \text{true}\\
          1 & \text{false}
             \end{cases}
    \]
    
    
    \end{document}
    

    enter image description here