TeX source:
1 \leq x \leq 3: \text { area }=\frac{1}{2}(\text { base)(height })=\frac{1}{2}(2)(2)=2