0

I'm trying to integrate the following definite integral:

$$\begin{align}\int_{0}^{\pi}{\sin x}\,dx\end{align}$$

My try:

$$\begin{align}\int_{0}^{\pi}{\sin x}\,dx=\\\left(-\cos \pi\right)-\left(-\cos 0\right)=\\-1-(-1)=\\0\end{align}$$

But the actual result (by wolframalpha) is: 2

I'm sure that there is something I miss.

Sorry the problem was with my calculator (I forget to convert my system from Deg to Rad)

1 Answers1

4

You incorrectly calculated $-\cos\pi$:

$$-\cos\pi = -(-1) = 1.$$