I do not understand why for the two integrals below, the result is always 0 unless , in which case the result is
I have tried using trigonometric identities to get a general solution but I had no luck understanding the nature of the integrals. If anyone can point out any hints or patterns, it would be much appreciated.