Factorization (also called transformation) formulae convert a SUM or DIFFERENCE of two sines or cosines into a PRODUCT, and, conversely, convert a PRODUCT of two sines/cosines into a sum or difference. Substituting A=2C+D, B=2C−D into the four compound-angle identities gives sinC+sinD=2sin2C+Dcos2C−D, sinC−sinD=2cos2C+Dsin2C−D, cosC+cosD=2cos2C+Dcos2C−D and cosC−cosD=−2sin2C+Dsin2C−D. Reading the same four identities the other way around gives the product-to-sum forms 2sinAcosB=sin(A+B)+sin(A−B), 2cosAsinB=sin(A+B)−sin(A−B), 2cosAcosB=cos(A+B)+cos(A−B) and $2\sin A\sin B=\cos(A-B)-\cos( …