Given
p=sinA+sinB and
q=cosA+cosB.
Squaring both equations:
p2=sin2A+sin2B+2sinAsinBq2=cos2A+cos2B+2cosAcosBAdding the two equations:
p2+q2=(sin2A+cos2A)+(sin2B+cos2B)+2(cosAcosB+sinAsinB)p2+q2=1+1+2cos(A−B)=2(1+cos(A−B))Subtracting
q2 from
p2:
p2−q2=(sin2A−cos2A)+(sin2B−cos2B)−2(cosAcosB−sinAsinB)p2−q2=−cos2A−cos2B−2cos(A+B)Using the sum-to-product formula
cos2A+cos2B=2cos(A+B)cos(A−B):
p2−q2=−2cos(A+B)cos(A−B)−2cos(A+B)p2−q2=−2cos(A+B)(1+cos(A−B))Dividing
p2−q2 by
p2+q2:
p2+q2p2−q2=2(1+cos(A−B))−2cos(A+B)(1+cos(A−B))p2+q2p2−q2=−cos(A+B)Using the property
cos(π−θ)=−cosθ:
−cos(A+B)=cos(π−(A+B))=cos(π−A−B)Answer:
cos(π−A−B)