TeX source:
\int_{1}^{3}\{3-x\} \mathrm{dx}=3 x-\left.\frac{x^{2}}{2}\right|_{1} ^{3}=\left(\frac{9}{2}\right)-\left(\frac{5}{2}\right)=2