We have to prove
cos(A+B)=cosAcosB−sinAsinB by vector method.
Let P(x1,y1) be the point in the first quadrant which is at a distance of 1 unit from origin O and let angle made by OP with X axis be A.
Similarly, let Q(x2,y2) be the point in the fourth quadrant which is at a distance of 1 unit from origin O and let angle made by OQ with X axis be B.
⇒|→OP|=|→OQ|=1 and ∠POQ=A+B.
⇒→OP=cosA^i+sinA^j and →OQ=cosB^i−sinB^j
We know that →a⋅→b=|→a||→b|cosθ where θ is the angle between the vectors.
⇒→OP⋅→OQ=|→OP||→OQ|cos(A+B)
⇒→OP⋅→OQ=cos(A+B)...(1)
Since we have →OP=cosA^i+sinA^j and →OQ=cosB^i−sinB^j
⇒→OP⋅→OQ=(cosA^i+sinA^j)⋅(cosB^i−sinB^j)
=cosAcosB+sinA(−sinB)
∴→OP⋅→OQ=cosAcosB−sinAsinB...(2)
From (1) and (2) we get cos(A+B)=cosAcosB−sinAsinB