The derivation depends on the sum rules for sine and cosine:
It occurred to me that I haven't seen these derived before (or don't remember), so I went to look it up in Strang's Calculus. I also found a beautiful graphical proof on the web here. And I found yet another pretty method due to Euler. So I thought it would be a nice topic for a post.
First, Strang's approach. The figure shows two angles, s and t (s is implicit), plus the difference between them, s-t. We use Pythagoras (of course) to calculate the distance between the two points on the unit circle (x1,y1) and (x2,y2).
The square of the distance between them is:
Adding the sin2 + cos2 terms:
Now, look at the same figure but consider the triangle on the right-hand side formed by the angle s-t.
Imagine that we rotate this triangle so it rests on the x-axis. The two points are now:
The square of the distance between them is:
But the two calculations are for the same distance, so we can equate them, and after canceling the 2 and multiplying by -1/2, we have
To get the formula for the sum, just substitute -t for t everywhere:
To get the formula for the sin, remember that sin s = cos (90-s)
The geometric proof starts with the figure shown below.
We start with a right triangle with angle s, and inscribe the triangle formed by the angle s+t. The figure is scaled so that the hypotenuse of this second triangle is 1. Then, draw another line perpendicular to the hypotenuse of the first triangle, as shown. Label the complement to s+t as u.
Considering the triangle containing s+t, we note that u is the complement for s+t, and considering the large triangle, then u is the complement for the angle immediately adjacent plus s, so that the adjacent angle is equal to t as shown in the figure.
Simple trigonomtetry allows us to calculate the lengths of three sides as shown in the figure below.
Consider the segment labeled x:
So
Finally, using the large triangle:
Very pretty!
The last method uses Euler's formula:
Now, for the magic. We have two complex numbers which are equal, therefore both the real and imaginary parts must be equal! Thus:
It's two-for-one here.