Jump to content

Sine and cosine – "Math for Non-Geeks"

From Wikibooks, open books for an open world

In this chapter, we introduce the two trigonometric functions sine and cosine. They are the most important trigonometric functions and are used in geometry for triangle calculations and trigonometry. Waves such as electromagnetic waves and harmonic oscillations can be described by sine and cosine functions, so they are also omnipresent in physics.

Definition via unit circle

[edit | edit source]

There are several ways to define the sine and cosine. The visually most accessible one is that on the unit circle. Here, a point P(x,y) is considered that is located on a circle around the origin with radius r=1. The x axis includes the angle θ with the distance from the origin to P(x,y):

The point P on the unit circle with coordinates (x,y)
The point P on the unit circle with coordinates (x,y)


The angle θ uniquely determines where the point P(x,y) is located. Thus, the x-coordinate and the y-coordinate can be described by a function depending on θ. We call these functions x(θ) and y(θ) the sine function sin⁡(θ) and cosine function cos⁡(θ) respectively:

The sine and cosine function on the unit circle
The sine and cosine function on the unit circle

In the following we take x as the angle and write sin⁡(x) instead of sin⁡(θ) and cos⁡(x) instead of cos⁡(θ). This results in the following definition:

Definition (Definition of sine and cosine on the unit circle)

Let P be the point on the unit circle whose position vector with the horizontal coordinate axis encloses the angle x. The coordinates of P are then defined as (cos⁡(x),sin⁡(x)). Here cos⁡(x) is called the cosine of x and sin⁡(x) the sine of x.

Graph of the sine and cosine function

[edit | edit source]

The following animation shows how the graphs of the sine and cosine functions are constructed step by step:

Animation of the sine and cosine on the unit circle
Animation of the sine and cosine on the unit circle

This gives the following graph for the sine function:

Graph of the sine function
Graph of the sine function

For the cosine function we get:

Graph of the cosine function
Graph of the cosine function

Definition via exponential function

[edit | edit source]

Representation by the complex exponential function

[edit | edit source]

The sine and cosine function can also be defined as the sum of certain complex exponential functions. With this representation, properties of the sine and cosine can be demonstrated in a particularly elegant way.

Definition (Sine and cosine via complex exponential function)

We define the functions sin (sine) and cos (cosine) by

sin⁡:ℝ→ℝ:x↦12i(eix−e−ix)cos⁡:ℝ→ℝ:x↦12(eix+e−ix)

These functions are well-defined: For every real number x the complex number e−ix is the complex conjugate of eix. Thus eix+e−ix is a real number and there is cos⁡(x)=12(eix+e−ix)∈ℝ. In an analogous way, one can show that sin⁡(x)=12i(eix−e−ix)∈ℝ.

Deriving the exponential definition

[edit | edit source]

One can show that eiθ is the point on the unit circle whose position vector with the x axis encloses the angle θ:

e^(i'"`UNIQ--postMath-00000028-QINU`"') on the unit circle
e^(iθ) on the unit circle

The real part of the complex number eiθ is cos⁡(θ), and the imaginary part is sin⁡(θ). There is hence eiθ=cos⁡(θ)+sin⁡(θ)i. At e−iθ we consider the angle −θ. The point e−iθ is mirrored on the real axis on the other side:

e^(-i'"`UNIQ--postMath-00000030-QINU`"') on the unit circle
e^(-iθ) on the unit circle


Thus, the real part of e−iθ is the same as for eiθ, i.e. cos⁡(θ). However, the imaginary part is eiθ multiplied by the number −1 and thus equal to −sin⁡(θ). We get e−iθ=cos⁡(θ)−sin⁡(θ)i. So we have:

eiθ=cos⁡(θ)+sin⁡(θ)ie−iθ=cos⁡(θ)−sin⁡(θ)i

By adding both equations we get:

eiθ+e−iθ=2cos⁡(θ)⟹cos⁡(θ)=12(eiθ+e−iθ)

And by subtracting the two equations we get:

eiθ−e−iθ=2sin⁡(θ)i⟹sin⁡(θ)=12i(eiθ−e−iθ)

Thus, we have derived the two definitions sin⁡(x)=12i(eix−e−ix) and cos⁡(x)=12(eix+e−ix). This derivation is illustrated again in the following figure:

Derivation of the complex exponential representation of the sine and cosine
Derivation of the complex exponential representation of the sine and cosine

Series expansion of sine and cosine

[edit | edit source]

Definition as a series

[edit | edit source]
This animation illustrates the definition of the sine function by a series. The higher the number N, the more summands are used in the series definition. Thus, for N=2, in addition to the sine function, the cubic polynomial ∑k=02−1(−1)k(2k+1)!x2k+1=x−x36 is drawn in

.

Another mathematically precise definition that does not require geometrical notions is the so-called series representation, in which the sine and cosine are defined as a series. The series representation is less visual than the definition over the unit circle, but with it some properties of the sine and cosine can be proved more easily. It can also be used to extend the sine and cosine to complex numbers.

Definition (sine and cosine)

We define the functions sin (sine) and cos (cosine) by

sin⁡:ℝ→ℝ,x↦∑k=0∞(−1)k(2k+1)!x2k+1cos⁡:ℝ→ℝ,x↦∑k=0∞(−1)k(2k)!x2k

Well-definedness

[edit | edit source]

We have to prove that our series representation of the sine and cosine function is well-defined. That is, we have to show that for all x∈ℝ the series ∑k=0∞(−1)k(2k+1)!x2k+1 and ∑k=0∞(−1)k(2k)!x2k converge to a real number.

Theorem

For all real numbers x the series ∑k=0∞(−1)k(2k+1)!x2k+1 and ∑k=0∞(−1)k(2k)!x2k converge.

Proof

We prove the theorem explicitly for the series ∑k=0∞(−1)k(2k+1)!x2k+1 of the sine function. The proof for the series of the cosine function can be done analogously. For x=0 we first find:

∑k=0∞(−1)k(2k+1)!x2k+1 ↓ x=0= ∑k=0∞(−1)k(2k+1)!02k+1= ∑k=0∞0=0

For x=0 the series therefore converges. For x≠0 we apply the ratio test. For this, let ak:=(−1)k(2k+1)!x2k+1 for all k∈ℕ0, so that we have ∑k=0∞(−1)k(2k+1)!x2k+1=∑k=0∞ak. There is:

limk→∞|ak+1ak|= limk→∞|−x2(k+1)+1⋅(2k+1)!x2k+1⋅(2(k+1)+1)!|= limk→∞|−x2k+3⋅(2k+1)!x2k+1⋅(2k+3)!|= limk→∞|x2(2k+2)(2k+3)|=0

Since limk→∞|ak+1ak|=0 the series converges according to the ratio test.

Equivalence of exponential and series definition

[edit | edit source]

We have learned several definitions of the sine and cosine function. We have already established a connection between the exponential representation and the definition on the unit circle. Now we need to show that the exponential and series definitions are equivalent to each other.

Theorem

There is for all x∈ℝ:

∑k=0∞(−1)k(2k+1)!x2k+1=12i(eix−e−ix)∑k=0∞(−1)k(2k)!x2k=12(eix+e−ix)

Thus, it does not matter whether the sine or cosine function is defined via its series representation or via its exponential representation.

Proof

We already know from the chapter on the exponential function (missing) that the exponential function has the series representation exp⁡(x)=∑k=0∞xkk!. If we now substitute ix~ for x in the series representation, we get:

eix~=∑k=0∞(ix~)kk! ↓ absolute convergence⟹split the series=∑l=0∞(ix~)2l(2l)!+∑l=0∞(ix~)2l+1(2l+1)! ↓ i2l=(−1)land i2l+1=i⋅(−1)l=∑l=0∞(−1)l(2l)!x~2l+i∑l=0∞(−1)l(2l+1)!x~2l+1

Now we plug −ix~ into the series representation of the exponential function:

e−ix~=∑k=0∞(−ix~)kk! ↓ absolute convergence⟹split the series=∑l=0∞(−ix~)2l(2l)!+∑l=0∞(−ix~)2l+1(2l+1)! ↓ (−i)2l=(−1)land (−i)2l+1=−i⋅(−1)l=∑l=0∞(−1)l(2l)!x~2l−i∑l=0∞(−1)l(2l+1)!x~2l+1

If we write α(x)=∑k=0∞(−1)k(2k)!x2k and β(x)=∑k=0∞(−1)k(2k+1)!x2k+1 then we have shown that

eix~=α(x)+iβ(x)e−ix~=α(x)−iβ(x)

For the difference, we get

eix−e−ix=α(x)+iβ(x)−(α(x)−iβ(x))=2i⋅β(x)

So:

∑k=0∞(−1)k(2k+1)!x2k+1=β(x)=12i(eix−e−ix)

And analogously:

eix+e−ix=α(x)+iβ(x)+(α(x)−iβ(x))=2⋅α(x)

Hence:

∑k=0∞(−1)k(2k)!x2k=α(x)=12(eix+e−ix)