Graphs of the Sine and Cosine Function: Learn It 3

Phase Shift of [latex]y=\sin x[/latex] and [latex]y=\cos x[/latex]

Now that we understand how A and B relate to the general form equation for the sine and cosine functions, we will explore the variables and D. Recall the general form:

[latex]y = A \sin(Bx−C)+D[/latex] and [latex]y=A\cos(Bx−C)+D[/latex]
or
[latex]y=A\sin(B(x−\frac{C}{B}))+D[/latex] and [latex]y=A\cos(B(x−\frac{C}{B}))+D[/latex]

The value [latex]\frac{C}{B}[/latex] for a sinusoidal function is called the phase shift, or the horizontal displacement of the basic sine or cosine function. If C > 0, the graph shifts to the right. If C < 0,the graph shifts to the left. The greater the value of |C|, the more the graph is shifted. Figure 11 shows that the graph of [latex]f(x)=\sin(x−π)[/latex] shifts to the right by π units, which is more than we see in the graph of [latex]f(x)=\sin(x−\frac{π}{4})[/latex], which shifts to the right by [latex]\frac{π}{4}[/latex]units.

A graph with three items. The first item is a graph of sin(x). The second item is a graph of sin(x-pi/4), which is the same as sin(x) except shifted to the right by pi/4. The third item is a graph of sin(x-pi), which is the same as sin(x) except shifted to the right by pi.
Figure 11

While C relates to the horizontal shift, D indicates the vertical shift from the midline in the general formula for a sinusoidal function. The function [latex]y=\cos(x)+D[/latex] has its midline at [latex]y=D[/latex].

A graph of y=Asin(x)+D. Graph shows the midline of the function at y=D.
Figure 12

Any value of D other than zero shifts the graph up or down. Figure 13 compares [latex]f(x)=\sin x[/latex] with [latex]f(x)=\sin (x)+2[/latex], which is shifted 2 units up on a graph.

A graph with two items. The first item is a graph of sin(x). The second item is a graph of sin(x)+2, which is the same as sin(x) except shifted up by 2.

phase shift and vertical shift for sine and cosine

Given an equation in the form [latex]f(x)=A\sin(Bx−C)+D[/latex] or [latex]f(x)=A\cos(Bx−C)+D[/latex], [latex]\frac{C}{B}[/latex]is the phase shift and D is the vertical shift.

Determine the direction and magnitude of the phase shift for [latex]f(x)=\sin(x+\frac{π}{6})−2[/latex].

Determine the direction and magnitude of the phase shift for [latex]f(x)=3\cos(x−\frac{\pi}{2})[/latex].

Determine the direction and magnitude of the vertical shift for [latex]f(x)=\cos(x)−3[/latex].

Determine the direction and magnitude of the vertical shift for [latex]f(x)=3\sin(x)+2[/latex].

How To: Given a sinusoidal function in the form [latex]f(x)=A\sin(Bx−C)+D[/latex], identify the midline, amplitude, period, and phase shift.

  1. Determine the amplitude as [latex]|A|[/latex].
  2. Determine the period as [latex]P=\frac{2π}{|B|}[/latex].
  3. Determine the phase shift as [latex]\frac{C}{B}[/latex].
  4. Determine the midline as [latex]y = D[/latex].
Determine the midline, amplitude, period, and phase shift of the function [latex]y=3\sin(2x)+1[/latex].

Determine the midline, amplitude, period, and phase shift of the function [latex]y=\frac{1}{2}\cos(\frac{x}{3}−\frac{π}{3})[/latex].