Hi

This is not a stupid question

It depends if you are talking about the geometric area (always positive) or the algebraic area (negative when f(x) is negative)

The integration of sin x is 0 as you have calculated it

If you want to calculate the geometric area (which is 2), you should integrate the absolute value of sin x