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