Math Core

Lesson 8.4 · Trigonometric Functions

Transformations of trigonometric graphs

Real waves rarely have height 11 and period 2π2\pi. A tide might swing 33 meters around an average level of 55 meters and repeat every 12.412.4 hours. To model waves like that, you stretch and shift the basic sine and cosine graphs, using the same transformation ideas you've applied to parabolas and absolute value graphs.

The general form

Every transformed sine or cosine graph can be written as

y=asin⁡(b(x−h))+kory=acos⁡(b(x−h))+k.y = a\sin\big(b(x - h)\big) + k \qquad\text{or}\qquad y = a\cos\big(b(x - h)\big) + k.

Each parameter controls one feature of the wave.

What each parameter does

  • Amplitude =∣a∣= |a|. The wave rises ∣a∣|a| above the midline and falls ∣a∣|a| below it. If a<0a < 0, the graph is also reflected across the midline.
  • Period =2π∣b∣= \dfrac{2\pi}{|b|}. A larger bb squeezes the cycles closer together.
  • Phase shift =h= h. The graph moves hh units right (left if h<0h < 0).
  • Midline y=ky = k. The graph moves kk units up (down if k<0k < 0).

The maximum value is k+∣a∣k + |a| and the minimum value is k−∣a∣k - |a|.

Amplitude and midline

Multiplying by aa stretches the wave vertically. Adding kk lifts the whole wave, midline and all.

y = sin x and y = 3 sin x + 1. The second wave has amplitude 3 and midline y = 1, so it ranges from -2 to 4.Open in grapher →

For y=3sin⁡x+1y = 3\sin x + 1, the midline is y=1y = 1, the maximum is 1+3=41 + 3 = 4 and the minimum is 1−3=−21 - 3 = -2. The range is −2≤y≤4-2 \le y \le 4.

Period

Why is the period 2πb\dfrac{2\pi}{b}? In y=sin⁡(bx)y = \sin(bx), the input to sine is bxbx. One full cycle happens as bxbx goes from 00 to 2π2\pi, that is, as xx goes from 00 to 2πb\dfrac{2\pi}{b}.

y = sin x and y = sin(2x). With b = 2, the period shrinks from 2π to π, so two cycles fit where one used to.Open in grapher →

Worked example: Identifying the features

State the amplitude, period, midline and range of y=−2cos⁡(4x)+5y = -2\cos(4x) + 5.

  • Amplitude: ∣a∣=∣−2∣=2|a| = |-2| = 2. The negative sign flips the graph, so it starts at a minimum instead of a maximum.
  • Period: 2π4=π2\dfrac{2\pi}{4} = \dfrac{\pi}{2}.
  • Midline: y=5y = 5.
  • Range: from 5−2=35 - 2 = 3 to 5+2=75 + 2 = 7, so 3≤y≤73 \le y \le 7.

Phase shift

The phase shift is the horizontal translation. In y=sin⁡(x−π3)y = \sin\left(x - \dfrac{\pi}{3}\right), every point of the sine graph moves π3\dfrac{\pi}{3} to the right. The "minus means right" rule is the same one you used for y=(x−h)2y = (x - h)^2.

Common mistake

When b≠1b \ne 1, factor bb out before reading the phase shift. In y=sin⁡(2x−π)y = \sin(2x - \pi), the shift is not π\pi. Rewrite it as

y=sin⁡(2(x−π2)),y = \sin\left(2\left(x - \frac{\pi}{2}\right)\right),

so the shift is π2\dfrac{\pi}{2} to the right. You can check: the cycle starts where the input 2x−π2x - \pi equals 00, which is x=π2x = \dfrac{\pi}{2}.

Graphing with key points

To sketch one cycle of y=asin⁡(b(x−h))+ky = a\sin\big(b(x - h)\big) + k:

  1. Draw the midline y=ky = k and mark the max k+∣a∣k + |a| and min k−∣a∣k - |a|.
  2. The cycle starts at x=hx = h and ends at x=h+periodx = h + \text{period}.
  3. Split the cycle into four equal steps of period4\dfrac{\text{period}}{4}. These five xx-values carry the key points.
  4. Sine follows the pattern midline, max, midline, min, midline. Cosine follows max, midline, min, midline, max. If a<0a < 0, swap max and min.

Worked example: Sketching a transformed cosine

Find the five key points of one cycle of y=2cos⁡(x−π4)+1y = 2\cos\left(x - \dfrac{\pi}{4}\right) + 1.

Here a=2a = 2, b=1b = 1, h=π4h = \dfrac{\pi}{4}, k=1k = 1. The period is 2π2\pi, so each step is 2π4=π2\dfrac{2\pi}{4} = \dfrac{\pi}{2}. The max is 33 and the min is −1-1.

xxπ4\dfrac{\pi}{4}3π4\dfrac{3\pi}{4}5π4\dfrac{5\pi}{4}7π4\dfrac{7\pi}{4}9π4\dfrac{9\pi}{4}
yy33 (max)11−1-1 (min)1133 (max)
y = 2cos(x - π/4) + 1 with its midline y = 1 dashed.Open in grapher →

Writing an equation from a graph

Work backward: read the max and min, then the period, then decide where a cycle starts.

Worked example: From graph to equation

A sinusoid has a maximum of 44 at x=0x = 0, and its next maximum is at x=πx = \pi. Its minimum value is −2-2. Write an equation for it.

  • Midline: halfway between 44 and −2-2, so k=4+(−2)2=1k = \dfrac{4 + (-2)}{2} = 1.
  • Amplitude: a=4−(−2)2=3a = \dfrac{4 - (-2)}{2} = 3.
  • Period: from one max to the next is π\pi, so 2πb=π\dfrac{2\pi}{b} = \pi and b=2b = 2.
  • The graph has a maximum at x=0x = 0, which is where cosine starts, so use cosine with no phase shift.
y=3cos⁡(2x)+1y = 3\cos(2x) + 1
y = 3cos(2x) + 1: maximum 4, minimum -2, period π.Open in grapher →

Tip

Many equations describe the same graph. The wave above is also y=3sin⁡(2(x+π4))+1y = 3\sin\left(2\left(x + \dfrac{\pi}{4}\right)\right) + 1, since a sine cycle starts a quarter period before the cosine peak. Choose whichever makes the phase shift simplest.

Practice

Practice 1

What is the amplitude of y=−4cos⁡(3x)+1y = -4\cos(3x) + 1?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

What is the period of y=2sin⁡(4x)y = 2\sin(4x)?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the period of y=5sin⁡(π3x)y = 5\sin\left(\dfrac{\pi}{3}x\right)?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

What is the maximum value of y=3cos⁡x−5y = 3\cos x - 5?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find the range of y=2sin⁡x+3y = 2\sin x + 3. Write it as an inequality in yy.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 6

The graph of y=sin⁡(2x−π2)y = \sin\left(2x - \dfrac{\pi}{2}\right) is the graph of y=sin⁡(2x)y = \sin(2x) shifted to the right. By how much? Give an exact answer.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Which equation matches the graph?

y = -2sin(x/2) + 1Open in grapher →
Practice 8

A Ferris wheel car's height, in meters, is h(t)=−20cos⁡(π4t)+25h(t) = -20\cos\left(\dfrac{\pi}{4}t\right) + 25, where tt is the time in minutes after the car leaves the bottom. When does the car first reach a height of 3535 meters?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.