TeX source:
f(x)=\left\{\begin{matrix} x+2 & \text{si } x\lt2 \\ 3 & \text{si } x=2 \\ 4-x & \text{si } x\gt2 \end{matrix} \right.