Find the area enclosed by $y=x$, $y=3x$ and $y=4-x$.
Looking at the graph, $$A = \int_0^2 (3x)-(4-x)\, dx - \int_{0}^2 x\, dx=-2$$
Clearly the area is above the $x$-axis, but why $A<0$?
Find the area enclosed by $y=x$, $y=3x$ and $y=4-x$.
Looking at the graph, $$A = \int_0^2 (3x)-(4-x)\, dx - \int_{0}^2 x\, dx=-2$$
Clearly the area is above the $x$-axis, but why $A<0$?
The limits of integration are incorrect. The integral should be $$\begin{align} A&=\int_0^1 3x dx + \int_1^2 (4-x) dx - \int_0^2 x dx \\ &=\frac{3}{2} + 8 - 2 - 4 + \frac{1}{2} -2 \\ &=2 \end{align}$$