Context: High School question.
Find the surface area between the curve of the function $y=6-3x^{2}$ and the function $y=3x$ in the interval $[0,2]$
My approach:
-We must find the points of intersection first:
$$6-3x^{2}=3x$$ $$x^{2}+x-2=0$$ $$x=-2,x=1$$
Then we must evaluate these integrals to find the area:
$$A=\left | \int_{0}^{1}(-3x^{2}-3x+6)dx \right |+\left | \int_{1}^{2}(-3x^{2}-3x+6)dx \right |$$
My question is why couldn't we just evaluate this integral as usual to find the area?
$$\left | \int_{0}^{2}(-3x^{2}-3x+6)dx \right|$$


Because the area is the integral of (function which is above) minus (function which is below). In other words, it is equal to$$\int_0^1\lvert6-3x^2-3x\rvert\,\mathrm dx.$$But$$\lvert6-3x^2-3x\rvert=\begin{cases}6-3x^2-3x&\text{ if }x\in[0,1]\\3x-(6-3x^2)&\text{ otherwise.}\end{cases}$$