I needed to integrate increasing odd and even integer powers of the sine function repeatedly in a power series, with limits from to
. Looking at the graph of the sine function, it is obvious that since sine is itself an odd function its odd powers must integrate to zero over the interval from
to
(intuitively, negatively signed areas will cancel positively signed ones).

For the even integer powers, I found the following definite integral formula with limits to
in the standard reference book by I. S. Gradshteyn and I. M. Ryzhik, 1994, Table of Integrals, Series and Products, page 412:
The double exclamation marks mean that we deduct 2 to get each subsequent term in the factorial, so
and
.
The symmetry of the graph and the fact that even powers of sine are even functions suggest that the right-hand side of (1) only needs to be multiplied by 4 to get the correct definite integral formula for the interval to
. Thus, we obtain the following useful formula for integrating integer powers of sine over a full period:
For peace of mind, I also wanted to prove the formula in (2) by direct integration and I found a way of doing this using integration by parts as follows. We have
Therefore,
so
Continuing this pattern recursively with the integral on the right-hand side we get
From the pattern of the numerators we see that this evaluates to zero if is odd and to
if is even.
