TeX source:
r(x) = \left\{ \begin{array}{ll} 2 & \mbox { if x is a rational number }\\ x & \mbox { if x is an irrational number } \end{array} \right.