I was exploring integrals, and I found something interesting that I couldn't prove.
$$\int_0^\pi \sin(x)dx = 2$$
If you have ever seen the $\sin(x)$ or $\cos(x)$ function, you would notice it is wavy and makes "bumps" alternating positive and negative. Well, it turns out that the area of each of those "bumps" is equal to 2. Here is a visualization:
The reason this stood out to me was because I didn't expect it to be 2. I expected some crazy random number, but I got 2!
I'm assuming there some sort of rule in trigonometry that can explain this. Can anyone help?
