I understand that sin(x) is an odd function and therefore its integral over a symmetrical domain is equal to zero. In class today, I was told that this is true even for boundaries from negative infinity to positive infinity. This is because for every positive area there is a corresponding negative area traced out by the function, so the integral cancels.
As an even function, cos(x) is not symmetrical about the origin, so this does not apply. However, when I look at the graph of cos(x) piecewise from negative infinity to negative pi/2, and pi/2 to infinity, it appears to be repeatedly symmetrical about various points on the x-axis. Another way of looking at it is expressing cos(x) = sin(x + pi/2). It appears that I can *convert* an even function into an odd function?
Why can't I use this reasoning to find a value for the integral of cos(x) from negative to positive infinity? Namely, I'd like to assume that areas in negative x cancel with each other, and areas in positive x cancel with each other, so that I can rearrange the integral:
Thank you for reading my question and any advice you might be able to give!