I am doing a fourier series example, and the solution contains of a somewhat surprising claim.
Let $f(t)$ be a real-valued, even function, that is, $f(t) = f(-t)$.
Then
$$\int\limits_{-\infty}^\infty f(t) (\cos(\omega t) + i\sin(\omega t)) \mathrm{dt} = \int\limits_{-\infty}^\infty f(t) \cos(\omega t) \mathrm{dt} $$
Because "even $\times$ odd = 0, even $\times$ even is not necessarily zero"
Is there a way to justify the above explanation?