Example: the integral from 0 to 0.5pi of 2cosx with respect to x. (Sorry for writing it like this but I don't know any other ways) What I got was sin(0.5pi)^2 - (sin(0)^2)=1 However, the back of the book says that the answer is 2. Can someone explain what I am doing wrong? Thanks.