Euler's Formula and Trigonometry: 1 The Sine and Cosine As Coordinates of The Unit Circle
Euler's Formula and Trigonometry: 1 The Sine and Cosine As Coordinates of The Unit Circle
Euler's Formula and Trigonometry: 1 The Sine and Cosine As Coordinates of The Unit Circle
Peter Woit
Department of Mathematics, Columbia University
September 4, 2018
These are some notes first prepared for my Fall 2015 Calculus II class, to
give a quick explanation of how to think about trigonometry using Euler’s for-
mula. This is then applied to calculate certain integrals involving trigonometric
functions.
1
Some trigonometric identities follow immediately from this definition, in
particular, since the unit circle is all the points in plane with x and y coordinates
satisfying x2 + y 2 = 1, we have
cos2 θ + sin2 θ = 1
Other trignometric identities reflect a much less obvious property of the
cosine and sine functions, their behavior under addition of angles. This is given
by the following two formulas, which are not at all obvious
cos(θ1 + θ2 ) = cos θ1 cos θ2 − sin θ1 sin θ2
(1)
sin(θ1 + θ2 ) = sin θ1 cos θ2 + cos θ1 sin θ2
One goal of these notes is to explain a method of calculation which makes
these identities obvious and easily understood, by relating them to properties
of exponentials.
2
which is a real number.
Some of the basic tricks for manipulating complex numbers are the following:
• To extract the real and imaginary parts of a given complex number one
can compute
1
Re(c) = (c + c)
2 (2)
1
Im(c) = (c − c)
2i
• To divide by a complex number c, one can instead multiply by
c
cc
in which form the only division is by a real number, the length-squared of
c.
z = x + iy
in which case one often refers to the plane parametrized in this way as the “com-
plex plane”. Points on the unit circle are now given by the complex numbers
cos θ + i sin θ
These go around the circle once starting at θ = 0 and ending up back at the
same point when θ = 2π. Now the picture is
3
A remarkable property of complex numbers is that, since multiplying two
of them gives a third, they provide something new and not at all obvious: a
consistent way of multiplying points on the plane. We will see in the next
section that multiplication by a point on the unit circle of angle θ will have an
interesting geometric interpretation, as counter-clockwise rotation by an angle
θ.
3 Euler’s formula
The central mathematical fact that we are interested in here is generally called
“Euler’s formula”, and written
1 iθ 1 iθ
cos θ = (e + e−iθ ) sin θ = (e − e−iθ )
2 2i
(which, if you are familiar with hyperbolic functions, explains the name of the
hyperbolic cosine and sine).
In the next section we will see that this is a very useful identity (and those of
a practical bent may want to skip ahead to this), but first we should address the
question of what exactly the left-hand side means. The notation used implies
that it is “the number e raised to the power iθ” and a striking example of this
is the special case of θ = π, which says
eiπ = −1
ex = exp(x)
and think of this as a function of x, the exponential function, with name “exp”.
The true signficance of Euler’s formula is as a claim that the definition of the
exponential function can be extended from the real to the complex numbers,
preserving the usual properties of the exponential. For any complex number
c = a + ib one can apply the exponential function to get
4
The trigonmetric addition formulas (equation 1) are equivalent to the usual
property of the exponential, now extended to any complex numbers c1 = a1 +ib1
and c2 = a2 + ib2 , giving
It is possible to show that eiθ = cos θ + i sin θ has the correct exponential
property purely geometrically, without invoking the trigonometric addition for-
mulas. One can do this by showing that multiplication of a point z = x + iy
in the complex plane by eiθ rotates the point about the origin by a counter-
clockwise angle θ. It then follows that multiplication by the product of eiθ1 and
eiθ2 will be counterclockwise rotation by an angle θ1 + θ2 , implying the correct
exponential property
eiθ1 eiθ2 = ei(θ1 +θ2 )
To show that multiplication by eiθ will give a rotation by θ, one can argue
as follows. One can easily see that multiplication by eiθ rotates the point z = 1
along the unit circle by an angle θ, taking (in terms of real coordinates)
This is also true for the point z = i, which gets taken to i(cos θ + i sin θ) =
− sin θ + i cos θ. In terms of real coordinates on the plane, this is
5
An arbitrary point on the plane is a linear combination of the points (1, 0)
and (0, 1), and one can see that multiplication by eiθ will act as rotation by θ
on any such linear combination, knowing that it does so for the cases of (1, 0)
and (0, 1).
Two other ways to motivate an extension of the exponential function to
complex numbers, and to show that Euler’s formula will be satisfied for such an
extension are given in the next two sections.
d
f = cf
dx
One can ask what function of x satisfies this equation for c = i. Using the
derivatives of the cosine and sine one finds
d
(cos x + i sin x) = − sin x + i cos x = i(cos x + i sin x)
dx
so cos x + i sin x has the correct derivative to be the desired extension of the
exponential function to the case c = i.
θ2 θ4
cos θ = 1 − + + ···
2! 4!
and
θ3 θ5
sin θ = θ − + + ···
3! 5!
Euler’s formula then comes about by extending the power series for the expo-
nential function to the case of x = iθ to get
θ2 θ3 θ4
exp(iθ) = 1 + iθ − −i + + ···
2! 3! 4!
and seeing that this is identical to the power series for cos θ + i sin θ.
6
4 Applications of Euler’s formula
4.1 Trigonometric identities
Euler’s formula allows one to derive the non-trivial trigonometric identities quite
simply from the properties of the exponential. For example, the addition for-
mulas can be found as follows:
and
Multiple angle formulas for the cosine and sine can be found by taking real
and imaginary parts of the following identity (which is known as de Moivre’s
formula):
and
7
4.2 Derivatives of trigonometric functions
Writing the cosine and sine as the real and imaginary parts of eiθ , one can easily
compute their derivatives from the derivative of the exponential. One has
d d
cos θ = Re(eiθ )
dθ dθ
d 1
= ( (eiθ + e−iθ ))
dθ 2
i
= (eiθ − e−iθ )
2
= − sin θ
and
d d
sin θ = Im(eiθ )
dθ dθ
d 1
= ( (eiθ − e−iθ ))
dθ 2i
1
= (eiθ + e−iθ )
2
= cos θ
are typically done in calculus textbooks using a trick involving two inte-
grations by parts. They can be more straightforwardly evaluated by using
Euler’s formula to rewrite them as integrals of complex exponentials, for
8
instance
Z Z
eax cos(bx)dx =Re( eax eibx dx)
Z
=Re( e(a+ib)x dx)
1
=Re( e(a+ib)x ) + C
a + ib
a − ib ax ibx
=Re( 2 e e )+C
a + b2
a − ib ax
=Re( 2 e (cos(bx) + i sin(bx))) + C
a + b2
1
= 2 eax (a cos(bx) + b sin(bx)) + C
a + b2
are usually done by using the addition formulas for the cosine and sine
functions. They could equally well be be done using exponentials, for
instance (assuming a 6= b)
Z Z
1 iax 1
cos(ax) cos(bx)dx = (e + e−iax ) (eibx + e−ibx )dx
2 2
Z
1
= (ei(a+b)x + ei(a−b)x + e−i(a−b)x + e−i(a+b)x )dx
4
Z
1
= (cos((a + b)x) + cos((a − b)x))dx
2
1 1 1
= ( sin((a + b)x) + sin((a − b)x)) + C
2 a+b a−b
9
• Integrals of the form
Z Z Z
cosm x dx, cosm x sinn x dx or sinm x dx
x = r cos θ, y = r sin θ
10
The point with polar coordinates (r, θ) has a simple complex coordinate,
which, using Euler’s formula, will be given by
5 Problems
1. Compute Z
eax sin(bx)dx
the same as what one gets by the textbook method (using a substitution
u = sin x).
11