Graphs of the Trigonometric Functions

Part 12, Chapter 12: Trigonometry of the Unit Circle

Learning objectives

  • Sketch the graphs of y = sin x and y = cos x
  • Identify period, amplitude, and phase shift
  • Analyse transformations of the form y = A sin(Bx + C)
  • Relate graph features to the function parameters

The unit-circle definition is a snapshot. It tells you sintheta\sin\theta and costheta\cos\theta for one angle at a time. But what does the function look like as theta\theta varies? If you let the angle sweep forward and plot the height as a function of time, the unit circle unrolls into a wave. The graphs of sine, cosine, and tangent are that unrolling. Once you see the wave, the period, the maxima, the zeros, and the asymptotes all stop being formulas to memorise and start being features of a picture.

The sine wave

Set the yy-axis equal to sintheta\sin\theta and let theta\theta run along the xx-axis. The point sweeping the unit circle drops its yy-coordinate onto the plot, sketching a curve that starts at (0,0)(0, 0), rises to (pi/2,1)(\pi/2, 1), falls back to (pi,0)(\pi, 0), plunges to (3pi/2,1)(3\pi/2, -1), and returns to (2pi,0)(2\pi, 0). Then it repeats. The horizontal length of one cycle is the period, and for plain y=sinxy = \sin x the period is 2pi2\pi. The maximum displacement from the axis, here 11, is the amplitude.

The cosine wave

The same exercise with the xx-coordinate gives y=cosxy = \cos x: same wave shape, but shifted, it starts at (0,1)(0, 1), hits zero at pi/2\pi/2, falls to 1-1 at pi\pi, and so on. Algebraically, cosx=sin(x+pi/2)\cos x = \sin(x + \pi/2); geometrically, cosine is sine shifted left by a quarter period.

Where this shows up
  • Music: A pure tone is y=Asin(2pift)y = A \sin(2\pi f t); doubling the frequency ff raises the pitch by an octave, and amplitude AA is loudness. The shape of these graphs is what your ear perceives as "tone."
  • Electrical Engineering: AC mains supply is a sine wave: 120 V RMS in the US is the amplitude of a 60 Hz sine; the phase shift between current and voltage in a reactive load is a real number that engineers measure directly off the graph.
  • Oceanography: Tide heights through a day approximate a sine curve with period 12.4 hours; coastal-engineering safety designs read the amplitude, period, and phase shift of this graph directly from tide-gauge data.

(Press Play to watch a point sweep the unit circle on the left while its sine, cosine, or tangent value paints the graph on the right. Switch between the three modes; drag the slider to scrub.)

The tangent graph

The tangent function tanx=sinx/cosx\tan x = \sin x / \cos x has a different shape and a different period. It is not a smooth wave between 1-1 and 11; it goes from infty-\infty to +infty+\infty inside each interval (pi/2,pi/2)(-\pi/2, \pi/2), blows up at x=pi/2+npix = \pi/2 + n\pi where cosx=0\cos x = 0, and then repeats with period pi\pi (not 2pi2\pi, we will explain why in the next section).

The general sinusoid: amplitude, period, phase, vertical shift

The four-parameter family y=Asin(Bx+C)+Dy = A\sin(Bx + C) + D stretches and slides the basic sine wave:

  • Amplitude =A= |A|. Vertical stretch.
  • Period =dfrac2piB= \dfrac{2\pi}{|B|}. A larger B|B| packs more cycles into the same horizontal distance.
  • Phase shift =dfracCB= -\dfrac{C}{B}. Positive shift moves the wave to the left.
  • Vertical shift =D= D. The centre line of the wave moves from y=0y = 0 to y=Dy = D.

For instance, y=3sin(2xpi)y = 3\sin(2x - \pi) has amplitude 33, period pi\pi, and a phase shift of pi/2\pi/2 to the right: factor the inside as 2(xpi/2)2(x - \pi/2) to see the shift directly. The same recipe works for cosine.

Periodicity in one equation

The defining property of a periodic function is f(x+T)=f(x)f(x + T) = f(x) for every xx, where TT is the period. For sine and cosine, the smallest such TT is 2pi2\pi. For tangent, it is pi\pi. This is why these functions model anything that repeats: sound waves, alternating current, planetary cycles, tides.

Try it

  • Predict first: what is sinpi\sin\pi? Set mode to sin, drag the slider to pi\pi, and verify the dot lies at y=0y = 0.
  • Predict first: where does tanx\tan x have its first positive vertical asymptote? Switch to tan mode and drag the slider to verify.
  • Sketch y=2sin(x+pi/4)y = 2\sin(x + \pi/4) from memory, then verify by hand: amplitude 22, period 2pi2\pi, shift pi/4\pi/4 left.

Pause: if you doubled the coefficient BB inside sin(Bx)\sin(Bx) from 11 to 22, does the wave get wider or narrower? Predict before checking on the widget. (The period halves, so the wave gets narrower.)

A trap to watch for

Two parameters easy to confuse: period shrinks as BB grows, but amplitude grows as AA grows. A common mistake is to read the period off the curve and write T=2piBT = 2\pi B. It is the other way around: T=2pi/BT = 2\pi / B. Sanity check on B=2B = 2: the wave should complete a full cycle by x=pix = \pi, not x=4pix = 4\pi. Always test the formula on a simple case before trusting it on a hard one.

What you now know

You can sketch y=sinxy = \sin x, y=cosxy = \cos x, and y=tanxy = \tan x from memory, identify the amplitude, period, phase shift, and vertical shift of any sinusoid y=Asin(Bx+C)+Dy = A\sin(Bx + C) + D, and explain why tangent has half the period of sine. The next section dives deeper into tangent, why its period is pi\pi, where its asymptotes live, and how it connects to the slope of a line.

Quick check

Mark section complete →

References

  • Lang, S. (1971). Basic Mathematics. Springer. Chapter 11, §3, graphs of sine and cosine traced from the unit circle.
  • Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage. Section 1.2 catalogs sinusoidal transformations.
  • Strogatz, S. (2003). SYNC: The Emerging Science of Spontaneous Order. Hyperion. Accessible discussion of why periodic functions describe so many natural phenomena.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.