Advanced level

Trigonometric graphs

A sine wave is the unit circle unrolled along an axis. See where the period of 2π comes from, why the cosine is a shifted sine, and what happens to the graph of the tangent where the function does not exist.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

All formulas

  • The sine wave

    y=sinxy = \sin x

    the y-coordinate of the point on the unit circle, as a function of the angle

  • The cosine wave

    y=cosxy = \cos x

    the x-coordinate of the same point

  • Periodicity

    sin(x+2π)=sinx\sin(x + 2\pi) = \sin x

    the sine and the cosine have period 2π

  • The cosine as a shifted sine

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

    the same shape, moved by a quarter period

  • The period of the tangent

    tan(x+π)=tanx\tan(x + \pi) = \tan x

    π, half as long as the sine’s

  • Asymptotes of the tangent

    x=π2+kπx = \frac{\pi}{2} + k\pi

    there the cosine vanishes and the function does not exist

The sine and the cosine assign a number to every angle, not only to the angles inside a triangle. That makes them functions — and every function can be drawn.

The circle unrolled into a wave

Picture a point travelling around the unit circle. Put the angle on the horizontal axis and the height of the point — its yy-coordinate — on the vertical one. What you get is the graph of y=sinxy = \sin x.

The height climbs from 00 (angle 00) to 11 (angle π2\frac{\pi}{2}), returns to 00 (angle π\pi), falls to 1-1 (angle 3π2\frac{3\pi}{2}) and is back at zero after a full turn. Then everything repeats forever — because the point on the circle also starts another lap.

−2π−3π/2−π−π/20π/2π3π/2−1.5−1−0.500.511.5xyy = sin x
The graph of y = sin x. The horizontal axis is scaled in radians, because the argument of the function is an angle.

The argument axis is scaled in radians — hence the ticks at π2\frac{\pi}{2}, π\pi, 3π2\frac{3\pi}{2} instead of 1,2,31, 2, 3. If you would rather think in degrees, convert them with our angle converter: π\pi is 180180^\circ, and 2π2\pi is a full turn.

Period, amplitude, range

Three properties are visible on the graph at once.

The period is the length of one complete run, after which the graph repeats. For the sine and the cosine it is 2π2\pi, the length of one lap around the circle:

sin(x+2π)=sinx,cos(x+2π)=cosx\sin(x + 2\pi) = \sin x, \qquad \cos(x + 2\pi) = \cos x

The amplitude is half the distance between the highest and the lowest value — for both functions it is 11, the radius of the unit circle.

The range is the interval from 1-1 to 11. The graph never leaves the horizontal lines y=1y = 1 and y=1y = -1, because a coordinate of a point on a circle of radius 11 cannot be larger.

xx00π2\frac{\pi}{2}π\pi3π2\frac{3\pi}{2}2π2\pi
sinx\sin x0011001-100
cosx\cos x11001-10011
What is sin(9π/2)?

The cosine is a shifted sine

The two graphs have an identical shape. They differ only in position: the cosine starts at 11, the sine at zero.

−2π−3π/2−π−π/20π/2π3π/2−1.5−1−0.500.511.5xyy = sin xy = cos x
Sine and cosine on one pair of axes. The cosine runs a quarter period — π/2 — ahead of the sine.
cosx=sin(x+π2)\cos x = \sin\left(x + \frac{\pi}{2}\right)

The explanation is on the unit circle: the cosine measures the point's motion horizontally, the sine vertically. It is the same rotation seen from two perpendicular directions, so one run leads the other by 9090^\circ. In physics one says the waves are out of phase.

The zeros interleave: the sine vanishes at x=kπx = k\pi, the cosine at x=π2+kπx = \frac{\pi}{2} + k\pi — exactly where the other one peaks.

The graph of the tangent

The tangent is a quotient, so its graph looks nothing like a wave:

tanx=sinxcosx\tan x = \frac{\sin x}{\cos x}
−π−3π/4−π/2−π/40π/4π/23π/4π−4−3−2−101234xyy = tan x
The graph of y = tan x over one period. At −π/2 and π/2 the branches run off to infinity — that is where the cosine vanishes.

Three differences from the sine wave:

  • The period is π\pi, not 2π2\pi — the graph repeats twice as often: tan(x+π)=tanx\tan(x + \pi) = \tan x.
  • The range is all real numbers — the tangent is bounded neither above nor below.
  • The graph has asymptotes — vertical lines the branches approach without ever touching.

The asymptotes stand where the cosine vanishes:

x=π2+kπthat is90,  270,  90,  x = \frac{\pi}{2} + k\pi \qquad \text{that is} \qquad 90^\circ, \; 270^\circ, \; -90^\circ, \; \ldots

Division by zero is impossible, so tan90\tan 90^\circ does not exist — it is not "a very large number" but the absence of a value. The closer you come to 9090^\circ, the larger the tangent grows: tan8957\tan 89^\circ \approx 57, tan89.9573\tan 89.9^\circ \approx 573. They rise without bound, yet 9090^\circ itself is never reached.

Find all the zeros of y = sin x.

Where these graphs show up

The sine wave is not a school invention — it is the shape almost every repeating phenomenon takes:

  • mains voltage — alternating current at 50Hz50\,\text{Hz} varies exactly sinusoidally;
  • sound — a pure tone is a sine wave; we hear its frequency as pitch and its amplitude as loudness;
  • tides, pendulums, a vibrating spring — all described by the same function;
  • a radio signal — the carrier wave is a sine wave with information laid on top of it.

Fourier analysis goes one step further: any periodic signal — even a square digital one — can be written as a sum of sines of different frequencies. Audio and image compression are built on it.

How changing the formula to y=Asin(Bx)y = A \sin(Bx) stretches and squeezes these graphs belongs to the transformations of functions — it returns in the branch on functions and analysis.

Exercises

The questions check what you read off the graph itself: the value of a function at a special angle — including a negative angle and one past a full turn, which is exactly what periodicity means. Type the exact value, e.g. √2/2. Converting degrees to radians is what you practised on the unit circle.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
cos 90° =

Common mistakes

  • Quoting the period of the tangent as 2π2\pi — the tangent repeats every π\pi.
  • Treating an asymptote as a zero — at x=π2x = \frac{\pi}{2} the tangent has no value, rather than the value zero.
  • Writing tan90=\tan 90^\circ = \infty — the function has no value there; infinity is not a number.
  • An axis scaled in degrees under a formula in radians — if the axis shows π\pi, the argument is a radian.
  • Swapping the sine and the cosine — the graph that starts at 11 for x=0x = 0 is the cosine.
  • Reading a value outside [1,1][-1, 1] — for the sine and the cosine no such value exists.

Formula card

Topic: Trigonometric graphs

  • The sine wave

    y=sinxy = \sin x

    the y-coordinate of the point on the unit circle, as a function of the angle

  • The cosine wave

    y=cosxy = \cos x

    the x-coordinate of the same point

  • Periodicity

    sin(x+2π)=sinx\sin(x + 2\pi) = \sin x

    the sine and the cosine have period 2π

  • The cosine as a shifted sine

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

    the same shape, moved by a quarter period

  • The period of the tangent

    tan(x+π)=tanx\tan(x + \pi) = \tan x

    π, half as long as the sine’s

  • Asymptotes of the tangent

    x=π2+kπx = \frac{\pi}{2} + k\pi

    there the cosine vanishes and the function does not exist

−2π−3π/2−π−π/20π/2π3π/2−1.5−1−0.500.511.5xyy = sin xy = cos x
Sine and cosine from −2π to 2π. The same shape, shifted by π/2: the cosine starts at 1, the sine at zero.
−π−3π/4−π/2−π/40π/4π/23π/4π−4−3−2−101234xyy = tan x
The tangent over one period. The dashed vertical lines are the asymptotes at −π/2 and π/2 — the function has no value there.

Frequently asked questions

Related articles