Addition formula for cosine

Change the angles to see the cases in all four quadrants.