AP Precalculus · Study guide

Sinusoidal Function Transformations

AP® Precalculus · Unit 3 · Trigonometric and Polar Functions

Transforming Sinusoids

Every sinusoid is \(\sin heta\) stretched, squeezed, flipped and slid into place. This guide shows what each number in \(a\sin(b( heta + c)) + d\) does, how to read them off an equation, and how to write an equation from a graph.

The idea in one paragraph

For \(f(\theta) = a\sin(b(\theta + c)) + d\) (and the same for cosine): the amplitude is \(|a|\), with a reflection over the midline when \(a \lt 0\); the period is \(\frac{2\pi}{|b|}\); the midline is \(y = d\); and the phase shift is \(-c\), a horizontal translation. Cosine is sine shifted: \(\cos\theta = \sin\left(\theta + \frac{\pi}{2}\right)\). Always factor \(b\) out of the inside before reading the phase shift.

1What each number does

ChangeEffect on the graphShows up as
\(\sin\theta + d\)Vertical translation by \(d\)Midline \(y = d\)
\(\sin(\theta + c)\)Horizontal translation by \(-c\) (phase shift)Cycle starts earlier or later
\(a\sin\theta\)Vertical dilation by \(|a|\); flip if \(a \lt 0\)Amplitude \(|a|\)
\(\sin(b\theta)\)Horizontal dilation by \(\frac{1}{|b|}\)Period \(\frac{2\pi}{|b|}\)
Figure 1. Each number in a sin(bθ) + d does one job: a stretches the height, b squeezes the cycle, d slides the midline.

2Reading an equation

Worked Example 1 Reading a, b and d

Describe \(f(\theta) = 3\sin(2\theta) - 1\).

  1. 1
    Amplitude \(|3| = 3\). Period \(\frac{2\pi}{2} = \pi\). Midline \(y = -1\).
  2. 2
    Range: from \(-1 - 3 = -4\) to \(-1 + 3 = 2\).
Answer: Amplitude 3, period \(\pi\), midline \(y = -1\), range \([-4, 2]\) (Figure 1).
Worked Example 2 A reflection and a stretch

Describe \(g(\theta) = -2\cos\left(\frac{\theta}{3}\right)\).

  1. 1
    Amplitude \(|-2| = 2\); the negative sign flips the graph, so it starts at a minimum, \(-2\), instead of a maximum.
  2. 2
    \(b = \frac13\): period \(\frac{2\pi}{1/3} = 6\pi\), three times as long as cosine’s.
Answer: Amplitude 2, period \(6\pi\), midline \(y = 0\), starting at its minimum.
Worked Example 3 Phase shift: factor first

Find the phase shift of \(h(\theta) = 4\sin\left(2\theta - \frac{\pi}{3}\right) + 5\).

  1. 1
    Factor the \(b\) out of the inside: \(2\theta - \frac{\pi}{3} = 2\left(\theta - \frac{\pi}{6}\right)\).
  2. 2
    In the form \(a\sin(b(\theta + c)) + d\), \(c = -\frac{\pi}{6}\), so the phase shift is \(-c = \frac{\pi}{6}\) to the right.
Answer: \(\frac{\pi}{6}\) right (not \(\frac{\pi}{3}\)). Amplitude 4, period \(\pi\), midline \(y = 5\).
Common Mistake 1 · Using b as the period

\(\sin(2\theta)\) has period \(\pi\), not 2. A bigger \(b\) packs more cycles into the same space, so the period is \(\frac{2\pi}{b}\).

Common Mistake 2 · Reading the phase shift before factoring

In \(\sin\left(2\theta - \frac{\pi}{3}\right)\) the shift is \(\frac{\pi}{6}\), because \(2\theta - \frac{\pi}{3} = 2\left(\theta - \frac{\pi}{6}\right)\). The \(b\) must be factored out first.

3Key points of a cycle

One cycle of sine has five key points spaced a quarter period apart: midline (going up), maximum, midline (going down), minimum, midline. For cosine the cycle starts at a maximum instead. Shift and stretch those five points and connect them smoothly.

Worked Example 4 Key points of one cycle

List five key points for one cycle of \(k(\theta) = 2\sin\left(\frac{\pi}{2}(\theta - 1)\right) + 3\).

  1. 1
    Period \(\frac{2\pi}{\pi/2} = 4\); the cycle starts at \(\theta = 1\) (phase shift 1) on the midline \(y = 3\), heading up.
  2. 2
    Split the period into quarters of length 1: \(\theta = 1, 2, 3, 4, 5\).
  3. 3
    Midline, max, midline, min, midline: \((1, 3)\), \((2, 5)\), \((3, 3)\), \((4, 1)\), \((5, 3)\).
Answer: \((1, 3)\), \((2, 5)\), \((3, 3)\), \((4, 1)\), \((5, 3)\)

4Writing an equation from a graph

Figure 2. Read the maximum, minimum and the distance between a peak and the next valley, then choose sine or cosine by where the cycle starts.
Worked Example 5 Writing the equation from a graph

A sinusoid has a maximum of 5 at \(x = 1\) and the next minimum, \(-1\), at \(x = 4\). Write an equation.

  1. 1
    \(a = \frac{5 - (-1)}{2} = 3\), \(d = \frac{5 + (-1)}{2} = 2\).
  2. 2
    Peak to next valley is half a period, \(4 - 1 = 3\), so the period is 6 and \(b = \frac{2\pi}{6} = \frac{\pi}{3}\).
  3. 3
    Cosine starts at a peak, so shift it to \(x = 1\): \(y = 3\cos\left(\frac{\pi}{3}(x - 1)\right) + 2\). Check: at \(x = 4\), \(3\cos\pi + 2 = -1\).
Answer: \(y = 3\cos\left(\frac{\pi}{3}(x - 1)\right) + 2\) (Figure 2).
Write it like this

“The maximum is 5 and the minimum is \(-1\), so \(a = 3\) and \(d = 2\). A peak and the next valley are 3 units apart, so the period is 6 and \(b = \frac{\pi}{3}\).”

Worked Example 6 Sine and cosine as shifts of each other

Show that \(\cos\left(\theta - \frac{\pi}{2}\right) = \sin\theta\) and \(\sin(\theta + \pi) = -\sin\theta\).

  1. 1
    Shifting cosine \(\frac{\pi}{2}\) right lines its peak up with sine’s peak at \(\frac{\pi}{2}\). Check \(\theta = 0\): \(\cos\left(-\frac{\pi}{2}\right) = 0 = \sin 0\).
  2. 2
    Shifting sine by half a period (\(\pi\)) puts peaks where valleys were: a reflection over the midline.
Answer: The same wave can be written several ways; choose the one whose starting point matches the graph.

Quick reference

\(a\sin(b(\theta + c)) + d\)Value
Amplitude\(|a|\)
Period\(\frac{2\pi}{|b|}\)
Midline\(y = d\)
Phase shift\(-c\) (factor \(b\) out first)
Range\([d - |a|,\ d + |a|]\)
Reflection\(a \lt 0\): over the midline