TeX source:
\mathrm{f}(\mathrm{x})=\left\{\begin{array}{ll}\mathrm{x} & \text { if } \mathrm{x} < 2 \\ 6-\mathrm{x} & \text { if } \mathrm{x} > 2\end{array}\right.