Skip to content

Instantly share code, notes, and snippets.

@pervognsen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pervognsen/9800778 to your computer and use it in GitHub Desktop.
Save pervognsen/9800778 to your computer and use it in GitHub Desktop.
For given values of x and y, define the following function of a real parameter t:
f(t) = cos(tx) cos(x + y - tx) - sin(tx) sin(x + y - tx)
Note that f(0) = cos(x + y) and f(1) = cos(x) cos(y) - sin(x) sin(y), so this is a
smooth deformation between the two sides of the cosine addition formula. The addition
formula will follow if we can prove df/dt = 0. Let us compute:
d/dt cos(tx) cos(x + y - tx) = -sin(tx) cos(x + y - tx) + cos(tx) sin(x + y - tx))
d/dt sin(tx) sin(x + y - tx) = cos(tx) sin(x + y - tx) - sin(tx) cos(x + y - tx)
These two expressions are equal and hence df/dt = 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment