Periodic Functions

This chapter covers notes on periodic functions. The notes assume assume the reader is familiar with right-angle trigonometry. Notes on this topic may be found here. From that chaper, we saw that any point (x,y)R2{(x,y) \in \reals^2} can be expressed as:

(x=cosθ,y=sinθ)(x=\cos \theta, y=\sin \theta)

where θ{\theta} is some fraction of 2π.{2 \pi.} Substituting a value for θ{\theta} in cosθ{\cos \theta} gives us the number of steps we take along the x{x}-axis, and substituting a value for θ{\theta} in sinθ{\sin \theta} gives us the number of steps along the y{y}-axis:

unit circle

Using the ratio identities, we get the following relations:

cos(t)=x \cos(t) = x
sin(t)=y \sin(t) = y
tan(t)=yx, x0 \tan(t) = \dfrac{y}{x},~x \neq 0
sec(t)=1x, x0 \sec(t) = \dfrac{1}{x},~x \neq 0
csc(t)=1y, y0 \csc(t) = \dfrac{1}{y},~y \neq 0
cot(t)=xy, y0 \cot(t) = \dfrac{x}{y},~y \neq 0
Trig functions

Because the trigonometric ratios map real numbers (θ{\theta}) to real numbers, they are, in fact, functions. Collectively, they form a family of functions called the periodic functions:

f(x)=cos(x) f(x) = \cos(x)
f(x)=sin(x) f(x) = \sin(x)
f(x)=tan(x) f(x)= \tan(x)
f(x)=sec(x) f(x) = \sec(x)
f(x)=csc(x) f(x) = \csc(x)
f(x)=cot(t) f(x) = \cot(t)

We can now turn to examining each of these functions.

The Sine Function

The first function we examine is f(x)=sinx.{f(x) = \sin x.} First, let's see some sample values:

x{\bm x} 0{0} π6{\dfrac{\pi}{6}} π4{\dfrac{\pi}{4}} π3{\dfrac{\pi}{3}} π2{\dfrac{\pi}{2}} 2π3{\dfrac{2 \pi}{3}} 3π4{\dfrac{3 \pi}{4}} 5π6{\dfrac{5 \pi}{6}} π{\pi}
sin(x){\bm{\sin(x)}} 0{0} 12{\dfrac{1}{2}} 22{\dfrac{\sqrt{2}}{2}} 32{\dfrac{\sqrt{3}}{2}} 1{1} 32{\dfrac{\sqrt{3}}{2}} 22{\dfrac{\sqrt{2}}{2}} 12{\dfrac{1}{2}} 0{0}

Notice how the output values are cyclical. This isn't surprising — we're getting back points on a circle, as opposed to the straight real number line we're used to. And because we're getting back points on a circle, we see output values repeated at various points. This is even more apparent when we examine the graph of f(x)=sinx:{f(x) = \sin x:}

-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚

Having seen the sine function, we can now provide a description.

sine function. The function f(x)=sin(x),{f(x) = \sin(x),} called the sine function, is an odd function that maps the reals to members of the interval [1,1].{[-1,1].}

sin(x):xR[1,1] \sin(x) : x \in \reals \to [-1,1]

Thus, the function f(x)=sin(x){f(x) = \sin (x)} has the domain of all real numbers, and the range of [1,1].{[-1,1].} There's another interesting property of the sine function. If we look closely at its graph, we see that it repeats after 2π.{2 \pi.} This isn't surprising — from 0{0} to 2π,{2 \pi,} we've gone full circle. This "full circle" nature is where the name "periodic function" comes from. More formally, the notion of "going full circle" is called a cycle — the portion of the graph from one point to the next point where the graph commences repeating.

periodic function. Let f(x){f(x)} be a function, and PR{P \in \reals} be a constant. If, for all values x{x} in the domain of f,{f,}

f(x+P)=f(x) f(x + P) = f(x)

then f{f} is said to be a periodic function.

For the function f(x)=sin(x),{f(x) = \sin(x),} P=2π.{P = 2 \pi.} We call the constant P{P} the periodic function's period — the horizontal length of one cycle. Returning to the graph of sinx,{\sin x,} we see that it's symmetric about the origin. Accordingly, f(x)=sinx{f(x) = \sin x} is an odd function.

The Cosine Function

Once again, let's take a look at some sample values of cosine:

x{\bm x} 0{0} π6{\dfrac{\pi}{6}} π4{\dfrac{\pi}{4}} π3{\dfrac{\pi}{3}} π2{\dfrac{\pi}{2}} 2π3{\dfrac{2 \pi}{3}} 3π4{\dfrac{3 \pi}{4}} 5π6{\dfrac{5 \pi}{6}} π{\pi}
cos(x){\bm{\cos(x)}} 1{1} 32{\dfrac{\sqrt{3}}{2}} 22{\dfrac{\sqrt{2}}{2}} 12{\dfrac{1}{2}} 0{0} 12{-\dfrac{1}{2}} 22{-\dfrac{\sqrt{2}}{2}} 32{-\dfrac{\sqrt{3}}{2}} 1{-1}

Once again, we see repeated values. Examining the graph of cosine:

-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚

Notice that this looks very similar to f(x)=sinx,{f(x) = \sin x,} only this time, the graph is symmetric about the y{y}-axis. As such, the cosine function is an even function, in contrast to its sibling sine. Juxtaposing the two plots:

-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚

cosine function. The function f(x)=cos(x),{f(x) = \cos(x),} called the cosine function, is an even function that maps the reals to members of the interval [1,1].{[-1,1].}

cos(x):xR[1,1] \cos(x) : x \in \reals \to [-1,1]

Sinusoids

Because the sine and cosine functions have the same period (2π{2 \pi}) and range ([1,1]{[-1,1]}), their transformations are collectively called the sinusoids (or sinusoidal functions).

sinusoid. Let f{f} be a function of the form:

f(x)=Asincos(BxC)+D,  where  xR f(x) = A \sincos (B x - C) + D, \where{x \in \reals}

where A,B,C,DR{A, B, C, D \in \reals} are constants, and sincos{\sincos} is either sin{\sin} or cos.{\cos.}

Each of the constants in a sinusoid results in some transformation of the base function (y=cosx{y = \cos x} or y=sin(x){y = \sin(x)}).

Period

Given the function:

f(x)=Asincos(BxC)+D f(x) = A \sincos (B x - C) + D

the constant B{B} is called the period coefficient. It's related to the sinusoid's period P{P} by the equation:

P=2πB P = \dfrac{2 \pi}{\abs{B}}

Changes to the period coefficient results in the following transformations:

B<1{B \ltn 1}B=1{B = 1}B>1{B \gtn 1}
horizontal stretchingbasehorizontal compression

To illustrate, consider the following functions:

-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
f(x)=sin(x2) f(x) = \sin \ar{\dfrac{x}{2}}
f(x)=sin(x) f(x) = \sin(x)
f(x)=sin(4x) f(x) = \sin(4x)
-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
-10-8-6-4-20246810𝒙-5-4-3-2-1012345𝒚
f(x)=cos(x2) f(x) = \cos \ar{\dfrac{x}{2}}
f(x)=cos(x) f(x) = \cos(x)
f(x)=cos(4x) f(x) = \cos(4x)

This behavior is intuitive. If we divide every input that goes in, we get to full circle much more slowly, resulting in a function with a "slower" or "wider" plot. In contrast, if we multiply every input that goes in, we get to full circle much faster, resulting in a "faster" or "tighter" plot.

Midline

Given the function:

f(x)=Asincos(BxC)+D f(x) = A \sincos (B x - C) + D

The constant A{A} communicates how much the function's graph stretches vertically. Moreover, A{\abs{A}} gives us fs{f's} ampltiude.