Here the formula refers to the sum-to-product formula :
Consider the R.H.S of the formula : .
Apply the sum and difference formulas :
= Left hand side.
The formula is derived.