Using and collecting real and imaginary terms gives the complex cosine identity . Thus
The sign follows from the factors and in the two complex exponentials.