The integral of any sinusoid over an integer multiple of a full period will be zero.
Think about it, you have two identical portions of opposite signs.
Integration results in adding these portions which cancel each other out.
I can't make heads or tails of the second picture but you can do whatever you like to the argument
and as long as you integrate over a integer number of periods the result will be zero.