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