L.H.S.
=(cos(A)+cos(B))2+(sin(A)−sin(B))2
=cos2(A)+cos2(B)+2cos(A)cos(B)+sin2(A)+sin2(B)−2sin(A)sin(B)
=2+2(cos(A)cos(B)−sin(A)sin(B))
=2+2cos(A+B)
=2+2(2cos2(A+B2)−1)
=4cos2(A+B2)
=R.H.S.