TeX source:
\mathrm{f}(x)=\left\{\begin{array}{l} 1 \text { if } \mathrm{x} \text { is a rational number } \\ 2 \text { if } \mathrm{x} \text { is an irrational number } \end{array}\right.