Solution:
Concept: sinC+sinD=2sin2C+Dcos2C−D and cosC+cosD=2cos2C+Dcos2C−D; the common factor 2cos2C−D then cancels.
Step 1 — Change the numerator and the denominator into products.
LHS=2cos2A+Bcos2A−B2sin2A+Bcos2A−B
Step 2 — Cancel the common factor 2cos2A−B.
=cos2A+Bsin2A+B
=tan(2A+B)
This is the right side.
Hence proved.