Phase Shift

A phase shift moves a sine or cosine graph left or right. In y = a \sin(b(x - h)) + k, the graph shifts right h units (left if h is negative), and k shifts it up or down so the middle line is y = k. For y = a \sin(bx - c) + d, the phase shift is \frac{c}{b}.

Before this lesson: You should know Amplitude and Period, Graphs of Sine and Cosine and Transformations of Functions.

Sliding the Wave

Changing x to x - h moves any graph right h units, as you saw in transformations of functions. For a sine wave, this horizontal slide is called the phase shift. The wave keeps its shape; it just starts its cycle at x = h instead of x = 0.

Adding k outside moves the graph up k units. The wave then rises and falls around the line y = k, called the midline, instead of around the x-axis.

Graph with x from −pi/2 to 5 pi/2 and y from −1.5 to 2.5. A gray dashed curve shows y = sin x. A blue solid curve shows y = sin(x − pi/2) + 1, the same wave moved right pi/2 and up 1. A green dashed horizontal line at y = 1 marks the midline of the blue curve. An orange arrow shows the shift from (0, 0) to (pi/2, 1).
The blue wave is y = sin x moved right π/2 (the phase shift) and up 1 (the vertical shift). Its midline is y = 1.

The General Sine and Cosine Equations

y = a \sin(b(x - h)) + k \qquad y = a \cos(b(x - h)) + k
NumberEffectFormula
aAmplitude (and a flip if negative)Amplitude = |a|
bPeriodPeriod = \frac{2\pi}{|b|}
hPhase shift (right if positive, left if negative)Phase shift = h
kVertical shift and midlineMidline: y = k

If the equation is written as y = a \sin(bx - c) + d, factor out b first: bx - c = b(x - \frac{c}{b}). So the phase shift is \frac{c}{b}, not c.

  1. Factor b out of the inside so it looks like b(x - h).
  2. Find the amplitude |a|, the period \frac{2\pi}{|b|}, the phase shift h and the midline y = k.
  3. The cycle starts at x = h. Add a quarter period four times to get five key x-values.
  4. Use the parent pattern for y, multiply by a, then add k.
  5. Plot the points and draw the wave.

Worked Examples

Example 1: A phase shift only

Find the phase shift and key points of y = \sin(x - \frac{\pi}{4}).

Match the form: h = \frac{\pi}{4}, so shift right \frac{\pi}{4}

The period is 2\pi, so the spacing is \frac{\pi}{2}

\frac{\pi}{4}, \frac{3\pi}{4}, \frac{5\pi}{4}, \frac{7\pi}{4}, \frac{9\pi}{4}

Start at \frac{\pi}{4} and add \frac{\pi}{2} each time.

0, 1, 0, -1, 0

Use the sine pattern.

Answer: right \frac{\pi}{4}; key points (\frac{\pi}{4}, 0), (\frac{3\pi}{4}, 1), (\frac{5\pi}{4}, 0), (\frac{7\pi}{4}, -1), (\frac{9\pi}{4}, 0)

Example 2: A left shift and a vertical shift

Describe the graph of y = \cos(x + \frac{\pi}{3}) + 2.

x + \frac{\pi}{3} = x - (-\frac{\pi}{3})

Rewrite the inside as x - h.

h = -\frac{\pi}{3}

Read h from the inside.

The phase shift is left \frac{\pi}{3}

The vertical shift is up 2, so the midline is y = 2

The amplitude is 1, so the maximum is 2 + 1 = 3 and the minimum is 2 - 1 = 1

Answer: the cosine wave moved left \frac{\pi}{3} and up 2. It has midline y = 2 and range [1, 3], and its first maximum is at x = -\frac{\pi}{3}.

Example 3: Factor out b first

Find the amplitude, period, phase shift and key points of y = 3 \sin(2x - \pi).

2x - \pi = 2(x - \frac{\pi}{2})

Factor 2 out of the inside.

|3| = 3

Find the amplitude.

\frac{2\pi}{2} = \pi

Find the period: divide 2π by b.

Phase shift: right \frac{\pi}{2}

Spacing: \frac{\pi}{4}; x-values: \frac{\pi}{2}, \frac{3\pi}{4}, \pi, \frac{5\pi}{4}, \frac{3\pi}{2}

0, 3, 0, -3, 0

Multiply the sine pattern by 3.

Answer: amplitude 3, period \pi, phase shift right \frac{\pi}{2}; key points (\frac{\pi}{2}, 0), (\frac{3\pi}{4}, 3), (\pi, 0), (\frac{5\pi}{4}, -3), (\frac{3\pi}{2}, 0)

Example 4: Write the equation

A sine wave has amplitude 2, period 2\pi and midline y = -1. It rises through its midline at x = \frac{\pi}{6}. Write its equation.

h = \frac{\pi}{6}

A plain sine wave rises through its midline at the start of its cycle.

a = 2

Amplitude 2, and the wave rises.

b = \frac{2\pi}{2\pi} = 1

Divide 2π by the period, 2\pi.

k = -1

The midline is y = -1.

Answer: y = 2 \sin(x - \frac{\pi}{6}) - 1

Example 5: Word problem with daily temperature

The temperature in a city, in degrees Celsius, is modeled by T(t) = 10 \sin(\frac{\pi}{12}(t - 9)) + 15, where t is hours after midnight. What is the highest temperature, and at what time does it happen?

Read the parts: amplitude 10, midline T = 15

15 + 10 = 25

Find the highest temperature: midline plus amplitude.

\frac{\pi}{12}(t - 9) = \frac{\pi}{2}

Sine reaches its maximum when its input is \frac{\pi}{2}.

t - 9 = 6

Multiply both sides by \frac{12}{\pi}.

t = 15

Add 9 to both sides.

Answer: The high is 25°C at t = 15, which is 3:00 p.m. The period is \frac{2\pi}{\frac{\pi}{12}} = 24 hours, so the pattern repeats each day.

Graph of T(t) = 10 sin(π/12 (t − 9)) + 15 for t from 0 to 24 hours after midnight. The wave starts its cycle on the midline T = 15 at t = 9, rises to its high point (15, 25) at 3 p.m., and has its low point at (3, 5). A dashed segment shows the amplitude of 10 above the midline.
The cycle starts at t = 9 on the 15°C midline; a quarter period (6 hours) later, at 3 p.m., it reaches the high of 25°C.

Common Mistakes

MistakeExample of the errorFix
Shifting the wrong directiony = \sin(x - \frac{\pi}{4}) moves leftA minus inside moves the graph right: right \frac{\pi}{4}.
Not factoring out bPhase shift of y = 3 \sin(2x - \pi) is \piFactor: 2(x - \frac{\pi}{2}), so the shift is \frac{\pi}{2}.
Mixing up the vertical shift and amplitudeSaying y = \sin x + 4 has amplitude 4The 4 outside moves the midline to y = 4. The amplitude is still 1.
Using the old rangeRange of y = \cos x + 2 is [-1, 1]Add the shift: the range is [1, 3].
Starting key points at 0Key points of y = \sin(x - \frac{\pi}{4}) start at x = 0The cycle starts at the phase shift, x = \frac{\pi}{4}.

Related Methods

Find the shift from the start of the cycle

Set the inside of the function equal to 0 and solve. For y = 3 \sin(2x - \pi), 2x - \pi = 0 gives x = \frac{\pi}{2}, which is where the cycle starts.

Sine and cosine are shifts of each other

A cosine wave is a sine wave shifted left \frac{\pi}{2}: \cos x = \sin(x + \frac{\pi}{2}). So any sinusoid can be written with either function, using a different phase shift.

Midline from the maximum and minimum

The midline is halfway between the highest and lowest values: k = \frac{\text{max} + \text{min}}{2}. For a range of [1, 3], k = \frac{1 + 3}{2} = 2.

Practice Problems

  1. Find the phase shift of y = \sin(x - \frac{\pi}{2}).
  2. Find the phase shift of y = \cos(x + \pi).
  3. Find the midline and range of y = \sin x + 4.
  4. Find the amplitude, phase shift, midline and range of y = 2 \cos(x - \frac{\pi}{6}) - 3.
  5. Find the period and phase shift of y = \sin(3x - \pi).
  6. Find the period and phase shift of y = -\cos(2x + \frac{\pi}{2}).
  7. Find the amplitude, period, phase shift and midline of y = 4 \sin(\frac{1}{2}(x - \pi)) + 1.
  8. List the key points of y = \sin(x + \frac{\pi}{2}) for one cycle. What do you notice?
  9. Write a cosine function with amplitude 3, period 2\pi, midline y = 0 and a maximum at x = \frac{\pi}{4}.
  10. A Ferris wheel seat’s height in meters after t minutes is h(t) = 20 \sin(\frac{\pi}{5}(t - 2.5)) + 22. Find the greatest and least heights and the first time the seat is at the top.
Show answers

1.

h = \frac{\pi}{2}

Match the form.

Answer: right \frac{\pi}{2}

2.

x + \pi = x - (-\pi)

Rewrite.

h = -\pi

Read h from the inside.

Answer: left \pi

3.

y = 4

The 4 outside moves the midline up.

[4 - 1, 4 + 1] = [3, 5]

Find the range: midline minus and plus the amplitude.

Answer: midline y = 4, range [3, 5]

4.

|2| = 2

Find the amplitude.

Phase shift: right \frac{\pi}{6}

y = -3

Find the midline.

[-3 - 2, -3 + 2] = [-5, -1]

Find the range: midline minus and plus the amplitude.

Answer: amplitude 2, right \frac{\pi}{6}, midline y = -3, range [-5, -1]

5.

3x - \pi = 3(x - \frac{\pi}{3})

Factor.

\frac{2\pi}{3}

Find the period: divide 2π by b.

Answer: period \frac{2\pi}{3}, right \frac{\pi}{3}

6.

2x + \frac{\pi}{2} = 2(x + \frac{\pi}{4})

Factor.

\frac{2\pi}{2} = \pi

Find the period: divide 2π by b.

Answer: period \pi, left \frac{\pi}{4}, and the negative sign flips the graph

7.

|4| = 4

Find the amplitude.

\frac{2\pi}{\frac{1}{2}} = 4\pi

Find the period: divide 2π by b.

y = 1

Phase shift: right \pi; midline.

Answer: amplitude 4, period 4\pi, right \pi, midline y = 1

8.

Phase shift: left \frac{\pi}{2}, so start at -\frac{\pi}{2}

-\frac{\pi}{2}, 0, \frac{\pi}{2}, \pi, \frac{3\pi}{2}

List the x-values of the key points.

0, 1, 0, -1, 0

List the y-values of the key points.

Answer: these are the points of y = \cos x, so \sin(x + \frac{\pi}{2}) = \cos x

9.

Cosine starts its cycle at a maximum, so h = \frac{\pi}{4}
Amplitude 3 means a = 3; period 2\pi means b = 1; midline 0 means k = 0
Answer: y = 3 \cos(x - \frac{\pi}{4})

10.

Greatest height: 22 + 20 = 42; least height: 22 - 20 = 2

\frac{\pi}{5}(t - 2.5) = \frac{\pi}{2}

The top is where the sine input is \frac{\pi}{2}.

t - 2.5 = 2.5

Multiply both sides by \frac{5}{\pi}.

t = 5

Add 2.5 to both sides.

Answer: 42 meters and 2 meters; the seat first reaches the top at 5 minutes

Want more practice? The Trigonometry Unit 4 Practice Pack has 48 pages of problems on this and the other lessons in the unit. Every answer is worked step by step, and the steps link to the lessons that teach them. A cheat sheet is included.

FAQ

What is a phase shift?

It is a horizontal shift of a sine or cosine graph. In y = a \sin(b(x - h)) + k, the phase shift is h: right if positive, left if negative.

How do you find the phase shift of y = a sin(bx − c)?

Factor out b to get a \sin(b(x - \frac{c}{b})). The phase shift is \frac{c}{b}. You can also set bx - c = 0 and solve for x.

What is the midline of a trig graph?

It is the horizontal line halfway between the maximum and minimum. For y = a \sin(b(x - h)) + k, the midline is y = k.

Does a phase shift change the period?

No. A phase shift slides the graph sideways but does not stretch it. Only b changes the period.

Summary

  • The general form is y = a \sin(b(x - h)) + k (or cosine).
  • h is the phase shift: right for positive h, left for negative h.
  • k is the vertical shift; the midline is y = k.
  • Factor out b first: for bx - c, the phase shift is \frac{c}{b}.
  • Key points start at x = h and are a quarter period apart.

Previous lesson: Amplitude and Period

Next lesson: Graph of Tangent

Back to the Trigonometry Index