Unit 4, lesson 53

Graphs of Sine and Cosine

How the sine and cosine waves come from a point moving around the unit circle, and how to read their period, amplitude and midline from a graph or a formula.

  • Theory part 105
  • Practice part 106
  • Graphs of Trigonometric Functions

Picture a point riding around the unit circle at a steady pace. Ignore everything about it except its height, and plot that height against the distance it has traveled. You get a smooth wave that rises, falls and repeats forever. That wave is the graph of sine, and tracking the point’s left and right position instead gives cosine.

Key terms

Sine wave

Definition For a real number xx, let P(x)P(x) be the point on the unit circle reached by starting at (1,0)(1, 0) and traveling an arc of length ∣x∣\lvert x \rvert, counterclockwise when x≥0x \ge 0 and clockwise when x<0x < 0. As in the unit circle lesson, P(x)=(cos⁡x,sin⁡x)P(x) = (\cos x, \sin x), so sin⁡x\sin x is the second coordinate of P(x)P(x). The sine wave is the graph of y=sin⁡xy = \sin x with xx in radians. Its domain is all real numbers and its range is [−1,1][-1, 1]. Its values repeat every 2π2\pi units, and it is odd, which means sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x. Its zeros are exactly the numbers x=kπx = k\pi with kk an integer. It takes its maximum value 11 exactly at x=π2+2kπx = \frac{\pi}{2} + 2k\pi and its minimum value −1-1 exactly at x=3π2+2kπx = \frac{3\pi}{2} + 2k\pi.

In plain words Follow a point around the unit circle and record its height. Over one full turn the height climbs from 00 to 11, falls back through 00 to −1-1, and returns to 00.

Example Stopping every eighth of a turn gives the key points of one cycle on [0,2π][0, 2\pi].

xxP(x)P(x)sin⁡x\sin x
00(1,0)(1, 0)00
π4\frac{\pi}{4}(22,22)\left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right)22≈0.71\frac{\sqrt{2}}{2} \approx 0.71
π2\frac{\pi}{2}(0,1)(0, 1)11
3π4\frac{3\pi}{4}(−22,22)\left(-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right)22≈0.71\frac{\sqrt{2}}{2} \approx 0.71
π\pi(−1,0)(-1, 0)00
5π4\frac{5\pi}{4}(−22,−22)\left(-\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}\right)−22≈−0.71-\frac{\sqrt{2}}{2} \approx -0.71
3π2\frac{3\pi}{2}(0,−1)(0, -1)−1-1
7π4\frac{7\pi}{4}(22,−22)\left(\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}\right)−22≈−0.71-\frac{\sqrt{2}}{2} \approx -0.71
2π2\pi(1,0)(1, 0)00

Joining these points with a smooth curve gives one hump above the xx-axis on (0,π)(0, \pi) and one dip below it on (π,2π)(\pi, 2\pi). Copies of this cycle continue to the left and to the right.

Cosine wave

Definition The cosine wave is the graph of y=cos⁡xy = \cos x, where cos⁡x\cos x is the first coordinate of P(x)P(x) and xx is in radians. Its domain is all real numbers and its range is [−1,1][-1, 1]. Its values repeat every 2π2\pi units, and it is even, which means cos⁡(−x)=cos⁡x\cos(-x) = \cos x. Its zeros are exactly the numbers x=π2+kπx = \frac{\pi}{2} + k\pi with kk an integer. It takes its maximum value 11 exactly at x=2kπx = 2k\pi and its minimum value −1-1 exactly at x=π+2kπx = \pi + 2k\pi. For every real xx

cos⁡x=sin⁡(x+π2),\cos x = \sin\left(x + \frac{\pi}{2}\right),

so the cosine wave is the sine wave shifted π2\frac{\pi}{2} units to the left.

In plain words Cosine records how far left or right the point is. It has exactly the same shape as sine but starts each cycle at its highest point instead of at zero.

Example Reading the first coordinates from the table above gives the key points of one cycle of cosine.

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

Compare the peaks. Cosine reaches 11 at x=0x = 0, and sine reaches 11 a quarter turn later, at x=π2x = \frac{\pi}{2}. Every feature of the cosine wave comes π2\frac{\pi}{2} units earlier than the same feature of the sine wave, which is exactly the shift to the left.

Periodic function

Definition A function ff is periodic if there is a number p>0p > 0 such that, whenever xx is in the domain of ff, the number x+px + p is also in the domain and

f(x+p)=f(x).f(x + p) = f(x).

Each such number pp is called a period of ff.

In plain words Slide the graph pp units to the right and it lands exactly on itself. The same values come back in the same order, again and again.

Example One more full turn brings a point on the unit circle back where it started, so P(x+2π)=P(x)P(x + 2\pi) = P(x). That gives

sin⁡(x+2π)=sin⁡xandcos⁡(x+2π)=cos⁡xfor every real x,\begin{gathered} \sin(x + 2\pi) = \sin x \\[0.4em] \text{and} \\[0.4em] \cos(x + 2\pi) = \cos x \\[0.4em] \text{for every real } x, \end{gathered}

so sine and cosine are periodic. This turns unfamiliar inputs into familiar ones.

sin⁡13π6=sin⁡(π6+2π)=sin⁡π6=12.\begin{aligned} \sin \frac{13\pi}{6} &= \sin\left(\frac{\pi}{6} + 2\pi\right) \\[0.8em] &= \sin \frac{\pi}{6} = \frac{1}{2}. \end{aligned}

Adding two full turns works just as well for a negative input.

cos⁡(−7π3)=cos⁡(−7π3+4π)=cos⁡5π3=12.\begin{aligned} \cos\left(-\frac{7\pi}{3}\right) &= \cos\left(-\frac{7\pi}{3} + 4\pi\right) \\[0.8em] &= \cos \frac{5\pi}{3} = \frac{1}{2}. \end{aligned}

Period

Definition If a periodic function ff has a smallest period, that is, a smallest number p>0p > 0 with f(x+p)=f(x)f(x + p) = f(x) for every xx in its domain, that smallest number is the fundamental period of ff, usually just called the period. The part of the graph over an interval of length pp, such as [0,p][0, p], is called one cycle. Sine and cosine both have period 2π2\pi. Shifts by 4π4\pi or 6π6\pi also satisfy f(x+p)=f(x)f(x + p) = f(x), so they are periods too, but they are not the fundamental period, because they are not the smallest.

In plain words The period is the length of the shortest stretch of the xx-axis after which the graph starts over.

Example Why can no shift smaller than 2π2\pi work for sine? Suppose some p>0p > 0 works for every xx. At x=π2x = \frac{\pi}{2} that means

sin⁡(π2+p)=sin⁡π2=1.\sin\left(\frac{\pi}{2} + p\right) = \sin \frac{\pi}{2} = 1.

Sine equals 11 only at the numbers π2+2kπ\frac{\pi}{2} + 2k\pi with kk an integer, so pp must be a positive multiple of 2π2\pi. The smallest choice is 2π2\pi. A shift by π\pi, for instance, fails at this very point, since sin⁡(π2+π)=−1\sin\left(\frac{\pi}{2} + \pi\right) = -1.

Midline

Definition Let ff be a periodic function with maximum value MM and minimum value mm. The midline of its graph is the horizontal line

y=M+m2.y = \frac{M + m}{2}.

For y=sin⁡xy = \sin x and y=cos⁡xy = \cos x the midline is the xx-axis, y=0y = 0. Adding a constant DD, as in y=sin⁡x+Dy = \sin x + D, moves every point up by DD (down by ∣D∣\lvert D \rvert when D<0D < 0), so the midline becomes y=Dy = D.

In plain words The midline is the horizontal line halfway between the highest and the lowest points of the graph. It is the level the wave swings around.

Example The values of sin⁡x\sin x run from −1-1 to 11, so the values of y=7+3sin⁡xy = 7 + 3\sin x run from 7−3=47 - 3 = 4 up to 7+3=107 + 3 = 10. The midline is

y=10+42=7.y = \frac{10 + 4}{2} = 7.

Amplitude

Definition For a periodic function with maximum value MM and minimum value mm, the amplitude is

M−m2,\frac{M - m}{2},

which is the vertical distance from the midline to a highest point. For y=Asin⁡xy = A\sin x and y=Acos⁡xy = A\cos x with A≠0A \ne 0 the amplitude is ∣A∣\lvert A \rvert. Sine and cosine themselves have amplitude 11.

In plain words Amplitude measures how far the wave swings away from its midline, up or down. It is a distance, so it is never negative, even when the formula has a minus sign in front.

Example The graph of y=−3cos⁡xy = -3\cos x reaches its minimum −3-3 at x=0x = 0 and its maximum 33 at x=πx = \pi. Its amplitude is

3−(−3)2=3=∣−3∣.\frac{3 - (-3)}{2} = 3 = \lvert -3 \rvert.

The minus sign does not change the size of the swing. It flips the wave upside down, so this graph starts its cycle at a low point instead of a high one.

Check yourself

  1. Find the amplitude and the midline of y=5−2sin⁡xy = 5 - 2\sin x. Where on [0,2π][0, 2\pi] does the graph reach its highest and its lowest values?
Show the answer

Since sin⁡x\sin x runs between −1-1 and 11, the values of 5−2sin⁡x5 - 2\sin x run between 5−2=35 - 2 = 3 and 5+2=75 + 2 = 7. The midline is y=5y = 5 and the amplitude is 22. The highest value 77 occurs where sin⁡x=−1\sin x = -1, at x=3π2x = \frac{3\pi}{2}, and the lowest value 33 occurs where sin⁡x=1\sin x = 1, at x=π2x = \frac{\pi}{2}.

  1. List every xx in [−2π,2π][-2\pi, 2\pi] where sin⁡x=−1\sin x = -1.
Show the answer

Sine equals −1-1 exactly at x=3π2+2kπx = \frac{3\pi}{2} + 2k\pi for integers kk. Only k=−1k = -1 and k=0k = 0 land in the interval, which gives x=−π2x = -\frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}.

  1. Is p=πp = \pi a period of cos⁡x\cos x?
Show the answer

No. A period has to work for every xx, and p=πp = \pi already fails at x=0x = 0, where cos⁡(0+π)=−1\cos(0 + \pi) = -1 but cos⁡0=1\cos 0 = 1. One failing input is enough to rule it out.

How this lesson connects

Resources for this lesson