The hardest part is keeping track of signs. For sin and tan, the sign in the formula matches the sign of the original: sin(A + B) has a plus, sin(A − B) has a minus. But for cos, it's
flipped: cos(A + B) has a MINUS, cos(A − B) has a PLUS.
Memory trick: sin and tan match their sign. cos flips it.
Or: cos(A + B) = coscos − sinsin (both terms negative for sum)