Unit 6, lesson 47

The Cosine Function

How cosine reads the horizontal coordinate of a point on the unit circle, and how that gives its wave with even symmetry, period, zeros, amplitude and midline.

  • Theory part 93
  • Practice part 94
  • The Six Trigonometric Functions

Watch a turning wheel from directly above and the bolt on its rim seems to slide back and forth along a straight line. That side to side position, on a wheel of radius one, is the cosine of the angle turned. Plotted against the angle it makes a wave just like the sine wave, only starting at its peak instead of at zero.

Key terms

Cosine as a horizontal coordinate

Definition For a real number xx, let P(x)P(x) be the point where the terminal side of the angle of xx radians in standard position meets the unit circle. The cosine of xx is the horizontal coordinate of that point,

P(x)=(cos⁡x,sin⁡x).P(x) = (\cos x, \sin x).

This defines a function cos⁡\cos on all real numbers, with range [−1,1][-1, 1]. The value 11 is reached exactly at x=2πkx = 2\pi k and the value −1-1 exactly at x=π+2πkx = \pi + 2\pi k, for integers kk.

In plain words Turn through the angle and read how far right of the center the point is. A point left of center gives a negative cosine.

Example The angle 3π4\frac{3\pi}{4} lands in quadrant II with reference angle π4\frac{\pi}{4}. The point is left of center by 22\frac{\sqrt{2}}{2}, so

cos⁡3π4=−22.\cos \frac{3\pi}{4} = -\frac{\sqrt{2}}{2}.

Cosine graph

Definition The graph of cosine is the set of points (x,cos⁡x)(x, \cos x) for all real xx. Here the horizontal axis of the graph carries the input xx, and the height of the graph is the horizontal coordinate of P(x)P(x) on the circle. One cycle over [0,2π][0, 2\pi] has the landmarks

xx00π2\frac{\pi}{2}π\pi3π2\frac{3\pi}{2}2π2\pi
cos⁡x\cos x1100−1-10011

Cosine decreases on [0,π][0, \pi] and increases on [π,2π][\pi, 2\pi]. Its graph is the sine graph shifted left by π2\frac{\pi}{2}, since

cos⁡x=sin⁡(x+π2)for every real x.\begin{gathered} \cos x = \sin\left(x + \frac{\pi}{2}\right) \\[0.4em] \text{for every real } x. \end{gathered}

In plain words Take the side to side position of the moving point and plot it as a height above each input. The wave starts at its top, falls through zero to its bottom at π\pi, and climbs back.

Example More points on the first half cycle come from the special triangles.

xx00π6\frac{\pi}{6}π4\frac{\pi}{4}π3\frac{\pi}{3}π2\frac{\pi}{2}2π3\frac{2\pi}{3}3π4\frac{3\pi}{4}5π6\frac{5\pi}{6}π\pi
cos⁡x\cos x1132\frac{\sqrt{3}}{2}22\frac{\sqrt{2}}{2}12\frac{1}{2}00−12-\frac{1}{2}−22-\frac{\sqrt{2}}{2}−32-\frac{\sqrt{3}}{2}−1-1

The drop is slow near 00 and π\pi and fastest as the graph crosses zero at π2\frac{\pi}{2}.

Even symmetry

Definition A function ff is even if −x-x is in its domain whenever xx is and f(−x)=f(x)f(-x) = f(x) for all such xx. Cosine is even,

cos⁡(−x)=cos⁡xfor every real x.\cos(-x) = \cos x \quad \text{for every real } x.

The point P(−x)P(-x) is the reflection of P(x)P(x) across the horizontal axis, and that reflection does not change the horizontal coordinate. The graph of an even function is symmetric about the vertical axis.

In plain words Turning clockwise instead of counterclockwise by the same amount lands you at a point straight below or above, with the same left or right position.

Example From cos⁡2π3=−12\cos \frac{2\pi}{3} = -\frac{1}{2} we get at once

cos⁡(−2π3)=−12.\cos\left(-\frac{2\pi}{3}\right) = -\frac{1}{2}.

Compare sine, which is odd. Here sin⁡(−2π3)=−32\sin\left(-\frac{2\pi}{3}\right) = -\frac{\sqrt{3}}{2} while sin⁡2π3=32\sin \frac{2\pi}{3} = \frac{\sqrt{3}}{2}.

Period

Definition For every real xx and every integer kk

cos⁡(x+2πk)=cos⁡x,\cos(x + 2\pi k) = \cos x,

because adding kk full turns returns the point to the same place. The least positive period of cosine is 2π2\pi. To see that nothing smaller works, suppose p>0p > 0 is a period. Then cos⁡p=cos⁡(0+p)=cos⁡0=1\cos p = \cos(0 + p) = \cos 0 = 1. Cosine equals 11 only at the inputs 2πk2\pi k, so p=2πkp = 2\pi k for a positive integer kk, and therefore p≥2πp \ge 2\pi.

In plain words The side to side motion repeats after one full turn and not sooner.

Example The input −17π3-\frac{17\pi}{3} plus three full turns is

−17π3+6π=π3,-\frac{17\pi}{3} + 6\pi = \frac{\pi}{3},

so cos⁡(−17π3)=cos⁡π3=12\cos\left(-\frac{17\pi}{3}\right) = \cos \frac{\pi}{3} = \frac{1}{2}.

Zeros

Definition The zeros of cosine are the real numbers xx with cos⁡x=0\cos x = 0. They are exactly

x=π2+kπ,k an integer.x = \frac{\pi}{2} + k\pi, \qquad k \text{ an integer}.

These are the inputs whose point is (0,1)(0, 1) or (0,−1)(0, -1), the top and bottom of the circle.

In plain words The horizontal coordinate is zero only when the point is straight above or straight below the center, which happens every half turn starting at a quarter turn.

Example The zeros of cosine in [−π,2π][-\pi, 2\pi] come from k=−1k = -1, 00 and 11. They are −π2-\frac{\pi}{2}, π2\frac{\pi}{2} and 3π2\frac{3\pi}{2}.

Amplitude

Definition For real numbers A≠0A \ne 0, B≠0B \ne 0 and DD, the function

y=Acos⁡(Bx)+Dy = A\cos(Bx) + D

has amplitude ∣A∣\lvert A \rvert and least positive period 2π∣B∣\frac{2\pi}{\lvert B \rvert}. Its values fill the interval [D−∣A∣,D+∣A∣][D - \lvert A \rvert, D + \lvert A \rvert]. The amplitude is the distance from the midline to a peak, not the height of the peak itself.

In plain words Amplitude measures how far the wave swings away from its middle level. Lifting the whole wave does not change the swing.

Example The function y=3cos⁡x+5y = 3\cos x + 5 has peaks at height 88 and troughs at height 22. Its amplitude is 33, not 88, because the peaks are 33 above the middle level y=5y = 5.

Midline

Definition The midline of y=Acos⁡(Bx)+Dy = A\cos(Bx) + D is the horizontal line y=Dy = D, halfway between the maximum D+∣A∣D + \lvert A \rvert and the minimum D−∣A∣D - \lvert A \rvert. From the maximum MM and minimum mm of the wave

D=M+m2,∣A∣=M−m2.D = \frac{M + m}{2}, \qquad \lvert A \rvert = \frac{M - m}{2}.

In plain words The midline is the level the wave oscillates around. Shifting the graph up or down by DD moves the midline with it.

Example Build one full cycle of y=−2cos⁡(x2)+1y = -2\cos\left(\frac{x}{2}\right) + 1. The period is

2π1/2=4π,\frac{2\pi}{1/2} = 4\pi,

the amplitude is 22 and the midline is y=1y = 1. Each landmark (x,y)(x, y) of cos⁡x\cos x moves to (2x,−2y+1)(2x, -2y + 1), where doubling the input stretches the period, the factor −2-2 stretches and reflects, and the +1+1 lifts.

xx00π\pi2π2\pi3π3\pi4π4\pi
yy−1-1113311−1-1

Because of the reflection the cycle starts at its minimum −1-1, crosses the midline at π\pi, peaks at 33 when x=2πx = 2\pi, and returns.

Check yourself

  1. Find cos⁡5π6\cos \frac{5\pi}{6} and cos⁡(−π4)\cos\left(-\frac{\pi}{4}\right) exactly.
Show the answer

The angle 5π6\frac{5\pi}{6} is in quadrant II with reference angle π6\frac{\pi}{6}, so cos⁡5π6=−32\cos \frac{5\pi}{6} = -\frac{\sqrt{3}}{2}. Because cosine is even, cos⁡(−π4)=cos⁡π4=22\cos\left(-\frac{\pi}{4}\right) = \cos \frac{\pi}{4} = \frac{\sqrt{2}}{2}.

  1. A wave of the form y=Acos⁡(Bx)+Dy = A\cos(Bx) + D with A>0A > 0 and B>0B > 0 has maximum 44, minimum −2-2 and period π\pi. Find AA, BB and DD.
Show the answer

The midline is D=4+(−2)2=1D = \frac{4 + (-2)}{2} = 1 and the amplitude is A=4−(−2)2=3A = \frac{4 - (-2)}{2} = 3. The period gives 2πB=π\frac{2\pi}{B} = \pi, so B=2B = 2. The wave is y=3cos⁡(2x)+1y = 3\cos(2x) + 1.

  1. A classmate says the amplitude of y=cos⁡x−3y = \cos x - 3 is 33. What is wrong?
Show the answer

The number −3-3 is the vertical shift, so the midline is y=−3y = -3. The wave swings between −4-4 and −2-2, which is 11 unit from the midline each way, so the amplitude is 11.

How this lesson connects

Resources for this lesson