Graphs of the Sine and Cosine Function: Learn It 5
Graphing Transformations of [latex]y = \sin x[/latex] and [latex]y=\cos x[/latex]
Throughout this section, we have learned about types of variations of sine and cosine functions and used that information to write equations from graphs. Now we can use the same information to create graphs from equations.
How To: Given the function [latex]y=Asin(Bx)[/latex], sketch its graph.
Identify the amplitude,|A|.
Identify the period, [latex]P=\frac{2π}{|B|}[/latex].
Start at the origin, with the function increasing to the right if A is positive or decreasing if A is negative.
At [latex]x=\frac{π}{2|B|}[/latex] there is a local maximum for A > 0 or a minimum for A < 0, with y = A.
The curve returns to the x-axis at [latex]x=\frac{π}{|B|}[/latex].
There is a local minimum for A > 0 (maximum for A < 0) at [latex]x=\frac{3π}{2|B|}[/latex] with y = –A.
The curve returns again to the x-axis at [latex]x=\frac{π}{2|B|}[/latex].
Sketch a graph of [latex]f(x)=−2\sin(\frac{πx}{2})[/latex].
Let’s begin by comparing the equation to the form [latex]y=A\sin(Bx)[/latex].
Step 1. We can see from the equation that A=−2,so the amplitude is 2.
|A| = 2
Step 2. The equation shows that [latex]B=\frac{π}{2}[/latex], so the period is
Step 3. Because A is negative, the graph descends as we move to the right of the origin.
Step 4–7. The x-intercepts are at the beginning of one period, x = 0, the horizontal midpoints are at x = 2 and at the end of one period at x = 4.
The quarter points include the minimum at x = 1 and the maximum at x = 3. A local minimum will occur 2 units below the midline, at x = 1, and a local maximum will occur at 2 units above the midline, at x = 3.
Sketch a graph of [latex]g(x)=−0.8\cos(2x)[/latex]. Determine the midline, amplitude, period, and phase shift.
How To: Given a sinusoidal function with a phase shift and a vertical shift, sketch its graph.
Express the function in the general form [latex]y=A\sin(Bx−C)+D[/latex] or [latex]y=A\cos(Bx−C)+D[/latex].
Identify the amplitude, |A|.
Identify the period, [latex]P=\frac{2π}{|B|}[/latex].
Identify the phase shift, [latex]\frac{C}{B}[/latex].
Draw the graph of [latex]f(x)=A\sin(Bx)[/latex] shifted to the right or left by [latex]\frac{C}{B}[/latex] and up or down by D.
Sketch a graph of [latex]f(x)=3\sin\left(\frac{π}{4}x−\frac{π}{4}\right)[/latex].
Step 1. The function is already written in general form: [latex]f(x)=3\sin\left(\frac{π}{4}x−\frac{π}{4}\right)[/latex]. This graph will have the shape of a sine function, starting at the midline and increasing to the right.
Step 2. |A|=|3|=3. The amplitude is 3.
Step 3. Since [latex]|B|=|\frac{π}{4}|=\frac{π}{4}[/latex], we determine the period as follows.
Given [latex]y=−2\cos\left(\frac{\pi}{2}x+\pi\right)+3[/latex], determine the amplitude, period, phase shift, and horizontal shift. Then graph the function.
Begin by comparing the equation to the general form and use the steps outlined in Example 9.
[latex]y=A\cos(Bx−C)+D[/latex]
Step 1. The function is already written in general form.
Step 2. Since A = −2, the amplitude is|A| = 2.
Step 3. [latex]|B|=\frac{\pi}{2}[/latex], so the period is [latex]P=\frac{2π}{|B|}=\frac{2\pi}{\frac{\pi}{2}}\times2\pi=4[/latex]. The period is 4.
Step 4. [latex]C=−\pi[/latex], so we calculate the phase shift as [latex]\frac{C}{B}=\frac{−\pi}{\frac{\pi}{2}}=−\pi\times\frac{2}{\pi}=−2[/latex]. The phase shift is −2.
Step 5.D = 3, so the midline is y = 3, and the vertical shift is up 3.
Since A is negative, the graph of the cosine function has been reflected about the x-axis.