Theorem. For all real x,y,
cos(x−y)=cosxcosy+sinxsiny.
Proof. Let P(cosx,sinx), Q(cosy,siny), P′(cos(x−y),sin(x−y)) and A(1,0)
all be points on the unit circle, corresponding to the angles x, y, x−y and 0
respectively. The angle from OQ to OP is x−y, and the angle from OA to OP′ is also
x−y; since equal angles at the centre of a circle of a given radius cut off chords of equal
length, chord PQ = chord P′A, i.e. PQ2=P′A2.
Compute each side using the distance formula. First,
PQ2=(cosx−cosy)2+(sinx−siny)2=cos2x−2cosxcosy+cos2y+sin2x−2sinxsiny+sin2y.
Grouping and using the fundamental identity (sin2x+cos2x=1, and the same for y):
PQ2=(sin2x+cos2x)+(sin2y+cos2y)−2(cosxcosy+sinxsiny)=2−2(cosxcosy+sinxsiny).
Next,
P′A2=(cos(x−y)−1)2+sin2(x−y)=cos2(x−y)−2cos(x−y)+1+sin2(x−y)=2−2cos(x−y),
again using sin2(x−y)+cos2(x−y)=1. Setting PQ2=P′A2:
2−2(cosxcosy+sinxsiny)=2−2cos(x−y)⟹cos(x−y)=cosxcosy+sinxsiny.■
Deducing cos(x+y). Write x+y=x−(−y) and apply the theorem just proved with y
replaced by −y:
cos(x+y)=cosxcos(−y)+sinxsin(−y).
Since cosine is an even function (cos(−y)=cosy) and sine is odd (sin(−y)=−siny),
cos(x+y)=cosxcosy−sinxsiny.
Together, cos(x±y)=cosxcosy∓sinxsiny.
Deducing sin(x+y). Using the co-function identity sinθ=cos(2π−θ)
(itself an immediate case of cos(x−y) with x=π/2, y=θ: cos(π/2−θ)=cos2πcosθ+sin2πsinθ=0+sinθ),
sin(x+y)=cos(2π−(x+y))=cos((2π−x)−y).
Applying the cos(x−y) theorem with 2π−x in place of x:
sin(x+y)=cos(2π−x)cosy+sin(2π−x)siny=sinxcosy+cosxsiny,
using cos(π/2−x)=sinx and sin(π/2−x)=cosx. …