Cosine Function

Definition, Graph, and Interactive Exploration of Properties (Amplitude, Period, and Phase Shift)

Definition and Graph of the Cosine Function

Angle \( \theta \) is an angle in standard position with initial side on the positive x-axis and terminal side on \( OM \) as shown below.

Angle in standard position
Fig.1 - Angle in Standard Position

The cosine function \( \cos(\theta) \) is defined by:

\[ \cos(\theta) = \dfrac{x}{r} \]

where \( r \) is the distance of \( OM \) (with \( O \) as the origin of the rectangular coordinate system and \( M \) as any point on the terminal side of angle \( \theta \)), given by:

\[ r = \sqrt{x^2 + y^2} \]

If point \( M \) on the terminal side of angle \( \theta \) is such that \( OM = r = 1 \), we may use a circle with radius equal to 1 called the unit circle to evaluate the cosine function as follows:

\[ \cos(\theta) = \dfrac{x}{r} = \dfrac{x}{1} = x \]

Thus, \( \cos(\theta) \) is equal to the x-coordinate of a point on the terminal side of an angle in standard position located on the unit circle.

No calculator is needed to find \( \cos(\theta) \) for the quadrantal angles: \( 0, \dfrac{\pi}{2}, \pi, \dots \) as shown in the unit circle below:

And so on.

Unit circle
Fig.2 - Unit Circle

Let us now list the values of the quadrantal angles \( 0, \dfrac{\pi}{2}, \pi, \dfrac{3\pi}{2}, 2\pi \) and their cosine values in the table below.

\( \theta \)\( \cos(\theta) \)
\( 0 \)\( 1 \)
\( \dfrac{\pi}{2} \)\( 0 \)
\( \pi \)\( -1 \)
\( \dfrac{3\pi}{2} \)\( 0 \)
\( 2\pi \)\( 1 \)

We now plot the points from the table above in a system of rectangular axes \( (x,y) \) and approximate the graph of the cosine function as shown below.

NOTE: While we are used to \( x \) being the variable of a function, on this graph \( x \) takes the values of \( \theta \) and \( y \) takes the values of \( \cos(\theta) \), written as \( y = \cos(x) \).

After \( 2\pi \), the values of \( \cos(\theta) \) repeat at coterminal angles. We say that the cosine function has a period of \( 2\pi \), shown below in red.

Graph of cos(x) in a rectangular system of axes
Fig.3 - Graph of \( y = \cos(x) \)

General Cosine Function

We now explore interactively the general cosine function:

\( f(x) = a \cos(bx + c) + d \)

and its core properties:

by changing the parameters \( a, b, c \), and \( d \).

A particular exploration of the phase shift presents:

\( f(x) = a \cos(bx + c) + d \) in blue

and

\( f(x) = a \cos(bx) + d \) in red (\( c = 0 \), no phase shift)

as shown in the figure below.

Cosine function with and without phase shift
Fig.4 - Phase Shift Comparison

You may also want to consider another tutorial on the trigonometric unit circle. Once you finish this tutorial, you can go through a self-test on trigonometric graphs.

Interactive Tutorial on the General Cosine Function

\( f(x) = a \cos(bx + c) + d \) in blue

\( f(x) = a \cos(bx) + d \) in red (\( c = 0 \) and no phase shift)

Press the button "draw" to start graphing cosine functions.

a =
b =
c =
d =

Exploration Exercises

Explore how the 4 coefficients \( a, b, c \), and \( d \) affect the graph of \( f(x) \):

  1. Amplitude

    Set \( a = 1, b = 1, c = 0, \) and \( d = 0 \). Write down \( f(x) \) and take note of the amplitude, period, and phase shift. Now change \( a \); how does it affect the graph?
  2. Period

    Set \( a = 1, c = 0, d = 0 \) and change \( b \). Find the period from the graph and compare it to \( \dfrac{2\pi}{|b|} \). How does \( b \) affect the period of \( f(x) \)?
  3. Phase Shift (Positive Values)

    Set \( a = 1, b = 1, d = 0 \) and change \( c \) starting from zero, moving slowly to large positive values. Take note of the shift (left or right) and compare it to \( -\dfrac{c}{b} \).
  4. Phase Shift (Negative Values)

    Set \( a = 1, b = 1, d = 0 \) and change \( c \) starting from zero, moving slowly to smaller negative values. Take note of the shift (left or right) and compare it to \( -\dfrac{c}{b} \).
  5. Phase Shift with Different b Values

    Repeat steps 3 and 4 above for \( b = 2, 3, \) and \( 4 \).
  6. Vertical Shift

    Set \( a, b, \) and \( c \) to non-zero values and change \( d \). What is the direction of the shift of the graph when \( d \) is positive and when \( d \) is negative?

More References Related to Cosine Functions

Properties of Trigonometric Functions
Graphs of Basic Trigonometric Functions
Unit Circle and Trigonometric Functions sin(x), cos(x), tan(x)