TeX source:
A=\int_{0}^{1}(3-x)-(1+x) d x=\int_{0}^{1}(2-2 x) d x=2 x-\left.x^{2}\right|_{0} ^{1}=(2-1)-(0)=1