This portion of the Wikipedia entry on Fourier Analysis details a formula, and later says that the terms for $j \ne k$ vanish. Could someone please provide a proof of this?
I actually would like to see more than one proof, but the main thing I'm concerned with is getting a deeper intuition of the inner workings of the integration/cancellation stated in the article. I'd like to be able to intuitively know why the cosines cancel, and would like even more to be able to apply the concept to similar but different situations.