# Half Angles from Euler's Formula

I've been reading the lovely Visual Complex Analysis by Tristan Needham, and the visual-style proofs he's been throwing down have been wonderful and refreshing. I'll write more about this book and its goals later, but I was inspired this AM to write up a proof of the half angle identities from trigonometry using some of the tools from the book.

Here's the half angle identity for cosine:

\label{eq:half-angle}
\cos {\theta \over 2} = \sqrt{{\cos \theta + 1} \over 2}

This is an equation that lets you express the cosine for half of some angle $$\theta$$ in terms of the cosine of the angle itself. As you can imagine, there are double-angle, triple angle, all sorts of identities that you can sweat out next time you find yourself in a 9th grade classroom.

It turns out that these derivations all become much more fun with Euler's Formula:

\label{eq:euler}
e^{i\theta} = \cos\theta + i \sin\theta

Let's say you want to figure out the half-angle identity. You have some function of cosine of half of an angle, and you want to pull the $$1 \over 2$$ out of the cosine.

(This came up for me a couple of days ago in a problem Dave and I ran into working on Hephaestus, our quantum mechanics simulator in Clojure. More on that later.)

If you fiddle with the $$e^{i \theta}$$ representation of complex numbers, a very clear relationship appears:

\label{eq:expansion}
e^{i\theta} = e^{2 i{\theta \over 2}} = (e^{i{\theta \over 2}})^2

Next, use Euler's equation \eqref{eq:euler} and observe that we can rewrite the right side of equation \eqref{eq:expansion} as $$(e^{i {\theta \over 2}})^2 = (\cos{\theta \over 2} + i \sin{\theta \over 2})^2$$. Expand this out:

\label{eq:newnum}
\cos^2 {\theta \over 2} - \sin^2 {\theta \over 2} + i (2 \sin {\theta \over 2} \cos{\theta \over 2})

Remember, from equation \eqref{eq:expansion}, that this is a new complex number that equals $$e^{i\theta} = \cos\theta + i \sin\theta$$. The real parts of both sides are equal:

\cos \theta = \cos^2 {\theta \over 2} - \sin^2 {\theta \over 2}
\label{eq:real}

and the imaginary parts are equal:

\label{eq:imag}
\sin \theta = 2 \sin {\theta \over 2} \cos{\theta \over 2}

Interesting.

Next, use the $$1 - \sin^2 \theta = \cos^2 \theta$$ identity on the right side of \eqref{eq:real} and simplify:

\label{eq:real-simple}
\cos \theta = 2 \cos^2{\theta \over 2} - 1

Rearrange and take the square root to get (gasp!) the half-angle identity:

\label{eq:cos-half}
\cos {\theta \over 2} = \sqrt{{\cos \theta + 1} \over 2}

The familiar half angle identity is a nice consequence of equation \eqref{eq:real}.

We still have equation \eqref{eq:imag}. Could that lead us to the half-angle identity for sine?

Here's the imaginary component again:

\label{eq:imag2}
\sin \theta = 2 \sin {\theta \over 2} \cos{\theta \over 2}

Substitute what we just derived for the cosine half-angle:

\label{eq:5}
\sin {\theta} = 2 \sin {\theta \over 2} \sqrt{{\cos \theta + 1} \over 2}

Square each side and cancel:

\label{eq:6}
\sin^2 {\theta} = 2 \sin^2 {\theta \over 2} (\cos \theta + 1)

Use our identity from before on the left side:

\label{eq:10}
\sin^2 \theta = 1 - \cos^2 \theta = (1 + \cos \theta)(1 - \cos \theta)

Divide through, and take the square root:

\label{eq:sin-half}
\sin {\theta \over 2} = \sqrt{{1 - \cos \theta} \over 2}

And, boom, there it is! the half-angle identity for sine.

## Sums and Differences

If you look back at equation \eqref{eq:expansion} you'll see that this trick would work for any factor inside the exponent, just just the $$1 \over 2$$. A similar trick can help you figure out any of sum and difference identities, using observations like this:

\label{eq:sumdiff}
e^{i(\theta + \phi)} = e^{i\theta}e^{i\phi} = (\cos \theta + i \sin \theta)(\cos \phi + i \sin \phi)

## Conclusion

The derivation above was much easier for me to understand and push through than the usual geometric derivations I've seen. And, eerily, in going after one of the half angle identities, the other one came along for the ride.

As Tristan Needham says, "every complex equation says two things at once." (p15, Visual Complex Analysis).

Check out the book, leave it by the bedside, and bend your mind a little by digging into the mysteries of complex numbers.