Normally we are given points, but this time it's different:
$$\int_{dA} (x^2 dx + y^2 dy)$$
$A$ $=$ ${(x, y)}$ in $R^2;$ $-\frac{\pi}{2} \leq x \leq \frac{\pi}{2}$ , $ -1 \leq y \leq \cos(x)$
Calculating it with Green's theorem was doable but we should do it as a line integral too.
Split the integral into 4 parts.
Summing the parts, we see that the integral is zero.
Now, using Green's theorem: $d(x^2dx+y^2dy) = 2x \cdot dx\land dx + 2y \cdot dy\land dy = 0$, so the integral is zero, as in our previous calculation.