TeX source:
f(x)=\left\{\begin{align} x^2-3x+2 & \quad x \leq3 \\ 3x-2m & \quad x \gt 3 \end{align} \right.