On our last quiz in Calculus 1, my professor asked us to solve $\int^2_{-1} (1-x)dx$ by thinking in terms of area. I don't know what he means by, "thinking in terms of area". I can solve it myself, but I didn't get full points, because I wasn't able to ask him what he meant.
How can I solve this "by thinking in terms of area"?
$$\int^2_{-1} (1-x)dx$$
$$=\int^2_{-1} 1 - \int^2_{-1}x$$
$$=x - \frac{x^2}{2}+C$$
$$\underset{x\to -1}\lim (x - \frac{x^2}{2}) = -1 - \frac{1}{2}=-\frac{3}{2}$$
$$\underset{x\to 2}\lim (x - \frac{x^2}{2}) = 2 - \frac{4}{2}=0$$
$$\int^2_{-1} (1-x)dx=0-(-\frac{3}{2})=\frac{3}{2}$$
Integration computes the area between the graph and the axis. The red and blue region will cancel out.
What is left is the purple region which has area $1^2+\frac12 = \frac32$
Remark: Btw, $\lim_{x \to -1}(x-\frac{x^2}2)= - \frac32$.