Skip to content

Trigonometric graphs: sine, cosine and tangent

Trigonometric graphs turn rotation around a circle into repeating patterns. Their shapes are not arbitrary: for a point (cosx,sinx)(\cos x,\sin x) on the unit circle, cosine records the horizontal coordinate, sine records the vertical coordinate, and tangent records their ratio.

This lesson develops the graphs of y=sinxy=\sin x, y=cosxy=\cos x and y=tanxy=\tan x, then shows how to read and sketch transformations such as

y=asin(b(xc))+d.y=a\sin\bigl(b(x-c)\bigr)+d.

Unless degrees are shown explicitly, angles are measured in radians.

You should be able to:

A function is periodic if its outputs repeat after a fixed positive change in the input. If TT is a period, then

f(x+T)=f(x)f(x+T)=f(x)

for every xx in the domain. The fundamental period is the smallest positive such value.

One complete turn is 2π2\pi radians, so sine and cosine return to the same coordinate after 2π2\pi:

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

Tangent repeats after only half a turn because both coordinates change sign:

tan(x+π)=sinxcosx=tanx.\tan(x+\pi) =\frac{-\sin x}{-\cos x} =\tan x.

Thus sine and cosine have fundamental period 2π2\pi, while tangent has fundamental period π\pi.

The graph of y=sinxy=\sin x has domain R\mathbb R and range [1,1][-1,1]. Over one period, its five structural points are

xx00π/2\pi/2π\pi3π/23\pi/22π2\pi
sinx\sin x0011001-100

Join these points with a smooth curve, then repeat the pattern every 2π2\pi. The curve crosses the axis at

x=nπ,nZ.x=n\pi, \qquad n\in\mathbb Z.

It has maximum value 11 and minimum value 1-1. Sine is an odd function:

sin(x)=sinx,\sin(-x)=-\sin x,

so its graph has rotational symmetry of order two about the origin.

Worked example 1: sketch sine from key points

Section titled “Worked example 1: sketch sine from key points”

Sketch y=sinxy=\sin x for πx2π-\pi\leq x\leq2\pi.

Start with the points separated by quarter periods:

xππ/20π/2π3π/22πsinx0101010\begin{array}{c|rrrrrrr} x&-\pi&-\pi/2&0&\pi/2&\pi&3\pi/2&2\pi\\ \hline \sin x&0&-1&0&1&0&-1&0 \end{array}

Plot these points and join them smoothly. Do not use straight line segments. At each zero, the graph crosses the axis. It rises through (0,0)(0,0) because small positive angles have positive sine.

The graph of y=cosxy=\cos x also has domain R\mathbb R, range [1,1][-1,1] and period 2π2\pi.

xx00π/2\pi/2π\pi3π/23\pi/22π2\pi
cosx\cos x11001-10011

Its roots occur at

x=π2+nπ,nZ.x=\frac\pi2+n\pi, \qquad n\in\mathbb Z.

Cosine is an even function:

cos(x)=cosx,\cos(-x)=\cos x,

so its graph is symmetric about the yy axis. Sine and cosine have the same shape, shifted horizontally:

cosx=sin(x+π2).\cos x=\sin\left(x+\frac\pi2\right).

The plus sign inside shifts the sine graph left by π/2\pi/2.

Without a calculator, state:

  1. the period and range of y=cosxy=\cos x;
  2. the coordinates of the maximum of y=sinxy=\sin x in 0x2π0\leq x\leq2\pi;
  3. all roots of cosx\cos x;
  4. whether sinx\sin x is even, odd, or neither.
Answers
  1. Period 2π2\pi and range [1,1][-1,1].
  2. (π/2,1)(\pi/2,1).
  3. x=π/2+nπx=\pi/2+n\pi, where nZn\in\mathbb Z.
  4. Odd, because sin(x)=sinx\sin(-x)=-\sin x.

Since

tanx=sinxcosx,\tan x=\frac{\sin x}{\cos x},

tangent is undefined wherever cosx=0\cos x=0. These inputs give vertical asymptotes:

x=π2+nπ,nZ.x=\frac\pi2+n\pi, \qquad n\in\mathbb Z.

Between consecutive asymptotes, y=tanxy=\tan x increases from -\infty to ++\infty and crosses the axis at

x=nπ.x=n\pi.

Its domain and range are

xR{π2+nπ:nZ},yR.x\in\mathbb R\setminus\left\{\frac\pi2+n\pi:n\in\mathbb Z\right\}, \qquad y\in\mathbb R.

Tangent has period π\pi and is odd because

tan(x)=tanx.\tan(-x)=-\tan x.

An asymptote is not part of the graph. The tangent curve approaches it without touching or crossing it.

Sketch y=tanxy=\tan x for πxπ-\pi\leq x\leq\pi.

First mark the asymptotes

x=π2andx=π2.x=-\frac\pi2 \qquad\text{and}\qquad x=\frac\pi2.

Then mark the roots (π,0)(-\pi,0), (0,0)(0,0) and (π,0)(\pi,0). Useful guide points are

tan(π4)=1,tan(π4)=1.\tan\left(\frac\pi4\right)=1, \qquad \tan\left(-\frac\pi4\right)=-1.

Draw a separate increasing branch between each pair of asymptotes. Never join branches across an asymptote.

For

y=asin(b(xc))+dy=a\sin\bigl(b(x-c)\bigr)+d

or the corresponding cosine function, where a0a\ne0 and b0b\ne0:

FeatureValue
amplitude$
period$\dfrac{2\pi}{
phase shiftcc units right
midliney=dy=d
range$d-

The amplitude is the maximum vertical distance from the midline, not the full height from minimum to maximum. That full height is 2a2|a|.

The factor bb acts horizontally, so the period is divided by b|b|. The shift must be read after factorising the whole argument. For example,

sin(2xπ)=sin(2(xπ2)),\sin(2x-\pi)=\sin\left(2\left(x-\frac\pi2\right)\right),

so the shift is π/2\pi/2 right, not π\pi right.

For one cycle of transformed sine or cosine:

  1. Calculate the period T=2π/bT=2\pi/|b|.
  2. Divide it into four equal steps of length T/4T/4.
  3. Begin at the phase shift x=cx=c.
  4. Use the familiar five output levels, transformed by yay+dy\mapsto ay+d.

For positive aa, sine uses the pattern

d,d+a,d,da,d,d,\quad d+a,\quad d,\quad d-a,\quad d,

while cosine uses

d+a,d,da,d,d+a.d+a,\quad d,\quad d-a,\quad d,\quad d+a.

The formula still handles a<0a<0: multiplying by a negative number reflects the curve in its midline.

Worked example 3: analyse and sketch a sine transformation

Section titled “Worked example 3: analyse and sketch a sine transformation”

For

y=3sin(2x)1,y=3\sin(2x)-1,

state the amplitude, period, midline and range, then give five points for one cycle.

Here a=3a=3, b=2b=2, c=0c=0 and d=1d=-1. Therefore

amplitude=3,T=2π2=π,midline y=1.\text{amplitude}=3, \qquad T=\frac{2\pi}{2}=\pi, \qquad \text{midline }y=-1.

The range is

13y1+3,-1-3\leq y\leq-1+3,

so

4y2.\boxed{-4\leq y\leq2}.

The quarter period is π/4\pi/4. Starting at x=0x=0, the five points are

(0,1),(π4,2),(π2,1),(3π4,4),(π,1).(0,-1),\quad \left(\frac\pi4,2\right),\quad \left(\frac\pi2,-1\right),\quad \left(\frac{3\pi}4,-4\right),\quad (\pi,-1).

These determine one complete cycle.

Worked example 4: extract a hidden phase shift

Section titled “Worked example 4: extract a hidden phase shift”

Describe

y=2cos(3x+π)+4.y=-2\cos(3x+\pi)+4.

Factorise the argument:

3x+π=3(x+π3).3x+\pi=3\left(x+\frac\pi3\right).

Thus the graph is shifted π/3\pi/3 left. Its amplitude is 22, its period is

T=2π3,T=\frac{2\pi}{3},

and its midline is y=4y=4. The negative coefficient reflects the cosine curve in the midline. Its range is

42y4+2,4-2\leq y\leq4+2,

or

2y6.\boxed{2\leq y\leq6}.

At the phase shift x=π/3x=-\pi/3, the original cosine input is zero. Since cos0=1\cos0=1,

y=2(1)+4=2.y=-2(1)+4=2.

The transformed cycle therefore begins at a minimum, not a maximum.

Worked example 5: find a formula from graph features

Section titled “Worked example 5: find a formula from graph features”

A sinusoidal graph has maximum 77, minimum 1-1, period 66 and crosses its midline at x=2x=2 while rising. Find a possible sine formula.

The midline is halfway between the extrema:

d=7+(1)2=3.d=\frac{7+(-1)}2=3.

The amplitude is half their difference:

a=7(1)2=4.a=\frac{7-(-1)}2=4.

For period 66,

2πb=6b=π3.\frac{2\pi}{|b|}=6 \quad\Longrightarrow\quad |b|=\frac\pi3.

A positive sine curve rises through its midline when its argument is zero. The crossing at x=2x=2 therefore gives c=2c=2. One suitable formula is

y=4sin(π3(x2))+3.\boxed{y=4\sin\left(\frac\pi3(x-2)\right)+3}.

Equivalent cosine formulae are also possible. A graph does not usually have a unique trigonometric representation.

For

y=atan(b(xc))+d,y=a\tan\bigl(b(x-c)\bigr)+d,

the period is

T=πb.\boxed{T=\frac\pi{|b|}}.

There is no amplitude because tangent is unbounded. The centre points of its branches lie on the midline y=dy=d at

x=c+nT.x=c+nT.

Vertical asymptotes occur half a period on either side:

x=c+(2n+1)π2b,nZ.x=c+\frac{(2n+1)\pi}{2b}, \qquad n\in\mathbb Z.

If a/b>0a/b>0, each branch rises from left to right. If a/b<0a/b<0, each branch falls. This sign test accounts for reflections caused by either coefficient.

For

y=2tan(3(xπ6))1,y=2\tan\left(3\left(x-\frac\pi6\right)\right)-1,

state the period, a central point, and the adjacent asymptotes.

The period is

T=π3.T=\frac\pi3.

At x=π/6x=\pi/6, the tangent input is zero, so

y=2tan01=1.y=2\tan0-1=-1.

Thus (π/6,1)(\pi/6,-1) is the central point. The adjacent asymptotes are half a period away:

x=π6±π6,x=\frac\pi6\pm\frac\pi6,

giving

x=0andx=π3.\boxed{x=0\quad\text{and}\quad x=\frac\pi3}.

Between them, the branch rises through (π/6,1)(\pi/6,-1).

The same shapes apply in degrees, but the basic periods change:

FunctionPeriod in radiansPeriod in degrees
sinx\sin x2π2\pi360360^\circ
cosx\cos x2π2\pi360360^\circ
tanx\tan xπ\pi180180^\circ

Therefore y=sin(bx)y=\sin(bx) has period 360/b360^\circ/|b| when xx is measured in degrees, not 2π/b2\pi/|b|.

State the period and range of

y=52cos(4x),y=5-2\cos(4x),

where xx is measured in degrees.

The period is

3604=90.\frac{360^\circ}{4}=90^\circ.

The midline is y=5y=5 and the amplitude is 22, so

3y7.\boxed{3\leq y\leq7}.
  • Using bb as the period. For sine and cosine, the period is 2π/b2\pi/|b|; for tangent it is π/b\pi/|b|.
  • Calling the peak to trough height the amplitude. Amplitude is half that height.
  • Reading an inside shift before factorising. Rewrite bx+kbx+k as b(xc)b(x-c) first.
  • Giving tangent an amplitude or maximum. Tangent has neither because its range is all real numbers.
  • Drawing through a tangent asymptote. Each branch is separate, and the function is undefined on every asymptote.
  • Mixing angle units. A radian graph is labelled with multiples of π\pi; a degree graph is labelled with degree symbols.
  • Trusting a calculator window blindly. A narrow or poorly scaled window can hide periods, turning points, or asymptotes. Establish the features algebraically first.
  1. For y=4sin(3x)+2y=-4\sin(3x)+2, find the amplitude, period, midline and range.
  2. For y=cos(2xπ)y=\cos(2x-\pi), state the phase shift and give five key xx coordinates for one cycle.
  3. For y=tan(x+π/4)y=\tan(x+\pi/4), state the period, central root and adjacent asymptotes.
  4. A cosine graph has midline y=2y=-2, amplitude 55, period π\pi, and a maximum at x=π/3x=\pi/3. Write a possible formula.
  5. Explain why tanx\tan x has period π\pi although sine and cosine have period 2π2\pi.
Answers
  1. Amplitude 44, period 2π/32\pi/3, midline y=2y=2, range 2y6-2\leq y\leq6.
  2. Since 2xπ=2(xπ/2)2x-\pi=2(x-\pi/2), the shift is π/2\pi/2 right. The period is π\pi, so the quarter period is π/4\pi/4. The five coordinates are x=π/2,3π/4,π,5π/4,3π/2x=\pi/2,3\pi/4,\pi,5\pi/4,3\pi/2.
  3. Period π\pi. The central root is x=π/4x=-\pi/4. The adjacent asymptotes are x=3π/4x=-3\pi/4 and x=π/4x=\pi/4.
  4. One possible formula is y=5cos(2(xπ/3))2y=5\cos\bigl(2(x-\pi/3)\bigr)-2.
  5. Increasing xx by π\pi changes both sine and cosine to their negatives, so their ratio is unchanged: (sinx)/(cosx)=tanx(-\sin x)/(-\cos x)=\tan x.

Use these graphs to understand principal values in reciprocal and inverse trigonometric functions, then find every solution in an interval in trigonometric equations. The symmetry and periodicity developed here also support trigonometric identities and harmonic form.