Learning

open
close

Graphs of the Sine and Cosine Functions

June 15, 2024 | by Bloom Code Studio

Learning Objectives

In this section, you will:

  • Graph variations of   y=sin(x)𝑦=sin(𝑥)  and y=cos(x)𝑦=cos(𝑥)  .
  • Use phase shifts of sine and cosine curves.
A photo of a rainbow colored beam of light stretching across the floor.

Figure 1 Light can be separated into colors because of its wavelike properties. (credit: “wonderferret”/ Flickr)

White light, such as the light from the sun, is not actually white at all. Instead, it is a composition of all the colors of the rainbow in the form of waves. The individual colors can be seen only when white light passes through an optical prism that separates the waves according to their wavelengths to form a rainbow.

Light waves can be represented graphically by the sine function. In the chapter on Trigonometric Functions, we examined trigonometric functions such as the sine function. In this section, we will interpret and create graphs of sine and cosine functions.

Graphing Sine and Cosine Functions

Recall that the sine and cosine functions relate real number values to the x– and y-coordinates of a point on the unit circle. So what do they look like on a graph on a coordinate plane? Let’s start with the sine function. We can create a table of values and use them to sketch a graph. Table 1 lists some of the values for the sine function on a unit circle.

x𝑥00π6𝜋6π4𝜋4π3𝜋3π2𝜋22π32𝜋33π43𝜋45π65𝜋6π𝜋
sin(x)sin(𝑥)0012122–√2223–√232113–√2322–√222121200
Table 1

Plotting the points from the table and continuing along the x-axis gives the shape of the sine function. See Figure 2.

A graph of sin(x). Local maximum at (pi/2, 1). Local minimum at (3pi/2, -1). Period of 2pi.

Figure 2 The sine function

Notice how the sine values are positive between 0 and π,𝜋, which correspond to the values of the sine function in quadrants I and II on the unit circle, and the sine values are negative between π𝜋 and 2π,2𝜋, which correspond to the values of the sine function in quadrants III and IV on the unit circle. See Figure 3.

A side-by-side graph of a unit circle and a graph of sin(x). The two graphs show the equivalence of the coordinates.

Figure 3 Plotting values of the sine function

Now let’s take a similar look at the cosine function. Again, we can create a table of values and use them to sketch a graph. Table 2 lists some of the values for the cosine function on a unit circle.

x𝑥00π6𝜋6π4𝜋4π3𝜋3π2𝜋22π32𝜋33π43𝜋45π65𝜋6π𝜋
cos(x)cos(𝑥)113–√2322–√222121200−12−12−2–√2−22−3–√2−32−1−1
Table 2

As with the sine function, we can plots points to create a graph of the cosine function as in Figure 4.

A graph of cos(x). Local maxima at (0,1) and (2pi, 1). Local minimum at (pi, -1). Period of 2pi.

Figure 4 The cosine function

Because we can evaluate the sine and cosine of any real number, both of these functions are defined for all real numbers. By thinking of the sine and cosine values as coordinates of points on a unit circle, it becomes clear that the range of both functions must be the interval [−1,1].[−1,1].

In both graphs, the shape of the graph repeats after 2π,2𝜋, which means the functions are periodic with a period of 2π.2𝜋. A periodic function is a function for which a specific horizontal shift, P, results in a function equal to the original function: f(x+P)=f(x)𝑓(𝑥+𝑃)=𝑓(𝑥) for all values of x𝑥 in the domain of f.𝑓. When this occurs, we call the smallest such horizontal shift with P>0𝑃>0 the period of the function. Figure 5 shows several periods of the sine and cosine functions.

Side-by-side graphs of sin(x) and cos(x). Graphs show period lengths for both functions, which is 2pi.

Figure 5

Looking again at the sine and cosine functions on a domain centered at the y-axis helps reveal symmetries. As we can see in Figure 6, the sine function is symmetric about the origin. Recall from The Other Trigonometric Functions that we determined from the unit circle that the sine function is an odd function because sin(−x)=−sinx.sin(−𝑥)=−sin𝑥. Now we can clearly see this property from the graph.

A graph of sin(x) that shows that sin(x) is an odd function due to the odd symmetry of the graph.

Figure 6 Odd symmetry of the sine function

Figure 7 shows that the cosine function is symmetric about the y-axis. Again, we determined that the cosine function is an even function. Now we can see from the graph that cos(−x)=cosx.cos(−𝑥)=cos𝑥.

A graph of cos(x) that shows that cos(x) is an even function due to the even symmetry of the graph.

Figure 7 Even symmetry of the cosine function

CHARACTERISTICS OF SINE AND COSINE FUNCTIONS

The sine and cosine functions have several distinct characteristics:

  • They are periodic functions with a period of 2π.2𝜋.
  • The domain of each function is (−∞,∞)(−∞,∞) and the range is [−1,1].[−1,1].
  • The graph of y=sinx𝑦=sin𝑥 is symmetric about the origin, because it is an odd function.
  • The graph of y=cosx𝑦=cos𝑥 is symmetric about the y𝑦-axis, because it is an even function.

Investigating Sinusoidal Functions

As we can see, sine and cosine functions have a regular period and range. If we watch ocean waves or ripples on a pond, we will see that they resemble the sine or cosine functions. However, they are not necessarily identical. Some are taller or longer than others. A function that has the same general shape as a sine or cosine function is known as a sinusoidal function. The general forms of sinusoidal functions are

y=Asin(Bx−C)+Dandy=Acos(Bx−C)+D𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷and𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷

Determining the Period of Sinusoidal Functions

Looking at the forms of sinusoidal functions, we can see that they are transformations of the sine and cosine functions. We can use what we know about transformations to determine the period.

In the general formula, B𝐵 is related to the period by P=2π|B|.𝑃=2𝜋|𝐵|. If |B|>1,|𝐵|>1, then the period is less than 2π2𝜋 and the function undergoes a horizontal compression, whereas if |B|<1,|𝐵|<1, then the period is greater than 2π2𝜋 and the function undergoes a horizontal stretch. For example, f(x)=sin(x),𝑓(𝑥)=sin(𝑥), B=1,𝐵=1, so the period is 2π,2𝜋, which we knew. If f(x)=sin(2x),𝑓(𝑥)=sin(2𝑥), then B=2,𝐵=2, so the period is π𝜋 and the graph is compressed. If f(x)=sin(x2),𝑓(𝑥)=sin(𝑥2), then B=12,𝐵=12, so the period is 4π4𝜋 and the graph is stretched. Notice in Figure 8 how the period is indirectly related to |B|.|𝐵|.

A graph with three items. The x-axis ranges from 0 to 2pi. The y-axis ranges from -1 to 1. The first item is the graph of sin(x) for one full period. The second is the graph of sin(2x) over two periods. The third is the graph of sin(x/2) for one half of a period.

Figure 8

PERIOD OF SINUSOIDAL FUNCTIONS

If we let C=0𝐶=0 and D=0𝐷=0 in the general form equations of the sine and cosine functions, we obtain the forms

y=Asin(Bx)𝑦=𝐴sin(𝐵𝑥)

y=Acos(Bx)𝑦=𝐴cos(𝐵𝑥)

The period is 2π|B|.2𝜋|𝐵|.

EXAMPLE 1

Identifying the Period of a Sine or Cosine Function

Determine the period of the function f(x)=sin(π6x).𝑓(𝑥)=sin(𝜋6𝑥).

Solution

Let’s begin by comparing the equation to the general form y=Asin(Bx).𝑦=𝐴sin(𝐵𝑥).

In the given equation, B=π6,𝐵=𝜋6, so the period will be

P=2π|B|=2ππ6=2π⋅6π=12𝑃=2𝜋|𝐵|=2𝜋𝜋6=2𝜋⋅6𝜋=12

TRY IT #1

Determine the period of the function g(x)=cos(x3).𝑔(𝑥)=cos(𝑥3).

Determining Amplitude

Returning to the general formula for a sinusoidal function, we have analyzed how the variable B𝐵 relates to the period. Now let’s turn to the variable A𝐴 so we can analyze how it is related to the amplitude, or greatest distance from rest. A𝐴 represents the vertical stretch factor, and its absolute value |A||𝐴| is the amplitude. The local maxima will be a distance |A||𝐴| above the horizontal midline of the graph, which is the line y=D;𝑦=𝐷; because D=0𝐷=0 in this case, the midline is the x-axis. The local minima will be the same distance below the midline. If |A|>1,|𝐴|>1, the function is stretched. For example, the amplitude of f(x)=4sinx𝑓(𝑥)=4sin𝑥 is twice the amplitude of

f(x)=2sinx.𝑓(𝑥)=2sin𝑥.If |A|<1,|𝐴|<1, the function is compressed. Figure 9 compares several sine functions with different amplitudes.

A graph with four items. The x-axis ranges from -6pi to 6pi. The y-axis ranges from -4 to 4. The first item is the graph of sin(x), which has an amplitude of 1. The second is a graph of 2sin(x), which has amplitude of 2. The third is a graph of 3sin(x), which has an amplitude of 3. The fourth is a graph of 4 sin(x) with an amplitude of 4.

Figure 9

AMPLITUDE OF SINUSOIDAL FUNCTIONS

If we let C=0𝐶=0 and D=0𝐷=0 in the general form equations of the sine and cosine functions, we obtain the forms

y=Asin(Bx) and y=Acos(Bx)𝑦=𝐴sin(𝐵𝑥) and 𝑦=𝐴cos(𝐵𝑥)

The amplitude is |A|,|𝐴|, which is the vertical height from the midline .. In addition, notice in the example that

|A| = amplitude = 12|maximum − minimum||𝐴| = amplitude = 12|maximum − minimum|

EXAMPLE 2

Identifying the Amplitude of a Sine or Cosine Function

What is the amplitude of the sinusoidal function f(x)=−4sin(x)?𝑓(𝑥)=−4sin(𝑥)? Is the function stretched or compressed vertically?

Solution

Let’s begin by comparing the function to the simplified form y=Asin(Bx).𝑦=𝐴sin(𝐵𝑥).

In the given function, A=−4,𝐴=−4, so the amplitude is |A|=|−4|=4.|𝐴|=|−4|=4. The function is stretched.

Analysis

The negative value of A𝐴 results in a reflection across the x-axis of the sine function, as shown in Figure 10.

A graph of -4sin(x). The function has an amplitude of 4. Local minima at (-3pi/2, -4) and (pi/2, -4). Local maxima at (-pi/2, 4) and (3pi/2, 4). Period of 2pi.

Figure 10

TRY IT #2

What is the amplitude of the sinusoidal function f(x)=12sin(x)?𝑓(𝑥)=12sin(𝑥)? Is the function stretched or compressed vertically?

Analyzing Graphs of Variations of y = sin x and y = cos x

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 C𝐶 and D.𝐷. Recall the general form:

y=Asin(Bx−C)+D and y=Acos(Bx−C)+Dory=Asin(B(x−CB))+D and y=Acos(B(x−CB))+D𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷 and 𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷𝑜𝑟𝑦=𝐴sin(𝐵(𝑥−𝐶𝐵))+𝐷 and 𝑦=𝐴cos(𝐵(𝑥−𝐶𝐵))+𝐷

The value CB𝐶𝐵 for a sinusoidal function is called the phase shift, or the horizontal displacement of the basic sine or cosine function. If C>0,𝐶>0, the graph shifts to the right. If C<0,𝐶<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 f(x)=sin(x−π)𝑓(𝑥)=sin(𝑥−𝜋) shifts to the right by π𝜋 units, which is more than we see in the graph of f(x)=sin(x−π4),𝑓(𝑥)=sin(𝑥−𝜋4), which shifts to the right by π4𝜋4 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. See Figure 12. The function y=cos(x)+D𝑦=cos(𝑥)+𝐷 has its midline at y=D.𝑦=𝐷.

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 f(x)=sin(x)𝑓(𝑥)=sin(𝑥) with f(x)=sin(x)+2,𝑓(𝑥)=sin(𝑥)+2, 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.

Figure 13

VARIATIONS OF SINE AND COSINE FUNCTIONS

Given an equation in the form f(x)=Asin(Bx−C)+D𝑓(𝑥)=𝐴sin(𝐵𝑥−𝐶)+𝐷 or f(x)=Acos(Bx−C)+D,𝑓(𝑥)=𝐴cos(𝐵𝑥−𝐶)+𝐷, CB𝐶𝐵 is the phase shift and D𝐷 is the vertical shift.

EXAMPLE 3

Identifying the Phase Shift of a Function

Determine the direction and magnitude of the phase shift for f(x)=sin(x+π6)−2.𝑓(𝑥)=sin(𝑥+𝜋6)−2.

Solution

Let’s begin by comparing the equation to the general form y=Asin(Bx−C)+D.𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷.

In the given equation, notice that B=1𝐵=1 and C=−π6.𝐶=−𝜋6. So the phase shift is

CB=−π61=−π6𝐶𝐵=−𝜋61=−𝜋6

or π6𝜋6 units to the left.

Analysis

We must pay attention to the sign in the equation for the general form of a sinusoidal function. The equation shows a minus sign before C.𝐶. Therefore f(x)=sin(x+π6)−2𝑓(𝑥)=sin(𝑥+𝜋6)−2 can be rewritten as f(x)=sin(x−(−π6))−2.𝑓(𝑥)=sin(𝑥−(−𝜋6))−2. If the value of C𝐶 is negative, the shift is to the left.

TRY IT #3

Determine the direction and magnitude of the phase shift for f(x)=3cos(x−π2).𝑓(𝑥)=3cos(𝑥−𝜋2).

EXAMPLE 4

Identifying the Vertical Shift of a Function

Determine the direction and magnitude of the vertical shift for f(x)=cos(x)−3.𝑓(𝑥)=cos(𝑥)−3.

Solution

Let’s begin by comparing the equation to the general form y=Acos(Bx−C)+D.𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷.

In the given equation, D=−3𝐷=−3 so the shift is 3 units downward.

TRY IT #4

Determine the direction and magnitude of the vertical shift for f(x)=3sin(x)+2.𝑓(𝑥)=3sin(𝑥)+2.

HOW TO

Given a sinusoidal function in the form f(x)=Asin(Bx−C)+D,𝑓(𝑥)=𝐴sin(𝐵𝑥−𝐶)+𝐷, identify the midline, amplitude, period, and phase shift.

  1. Determine the amplitude as |A|.|𝐴|.
  2. Determine the period as P=2π|B|.𝑃=2𝜋|𝐵|.
  3. Determine the phase shift as CB.𝐶𝐵.
  4. Determine the midline as y=D.𝑦=𝐷.

EXAMPLE 5

Identifying the Variations of a Sinusoidal Function from an Equation

Determine the midline, amplitude, period, and phase shift of the function y=3sin(2x)+1.𝑦=3sin(2𝑥)+1.

Solution

Let’s begin by comparing the equation to the general form y=Asin(Bx−C)+D.𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷.

A=3,𝐴=3, so the amplitude is |A|=3.|𝐴|=3.

Next, B=2,𝐵=2, so the period is P=2π|B|=2π2=π.𝑃=2𝜋|𝐵|=2𝜋2=𝜋.

There is no added constant inside the parentheses, so C=0𝐶=0 and the phase shift is CB=02=0.𝐶𝐵=02=0.

Finally, D=1,𝐷=1, so the midline is y=1.𝑦=1.

Analysis

Inspecting the graph, we can determine that the period is π,𝜋, the midline is y=1,𝑦=1, and the amplitude is 3. See Figure 14.

A graph of y=3sin(2x)+1. The graph has an amplitude of 3. There is a midline at y=1. There is a period of pi. Local maximum at (pi/4, 4) and local minimum at (3pi/4, -2).

Figure 14

TRY IT #5

Determine the midline, amplitude, period, and phase shift of the function y=12cos(x3−π3).𝑦=12cos(𝑥3−𝜋3).

EXAMPLE 6

Identifying the Equation for a Sinusoidal Function from a Graph

Determine the formula for the cosine function in Figure 15.

A graph of -0.5cos(x)+0.5. The graph has an amplitude of 0.5. The graph has a period of 2pi. The graph has a range of [0, 1]. The graph is also reflected about the x-axis from the parent function cos(x).

Figure 15

Solution

To determine the equation, we need to identify each value in the general form of a sinusoidal function.

y=Asin(Bx−C)+Dy=Acos(Bx−C)+D𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷

The graph could represent either a sine or a cosine function that is shifted and/or reflected. When x=0,𝑥=0, the graph has an extreme point, (0,0).(0,0). Since the cosine function has an extreme point for x=0,𝑥=0, let us write our equation in terms of a cosine function.

Let’s start with the midline. We can see that the graph rises and falls an equal distance above and below y=0.5.𝑦=0.5. This value, which is the midline, is D𝐷 in the equation, so D=0.5.𝐷=0.5.

The greatest distance above and below the midline is the amplitude. The maxima are 0.5 units above the midline and the minima are 0.5 units below the midline. So |A|=0.5.|𝐴|=0.5. Another way we could have determined the amplitude is by recognizing that the difference between the height of local maxima and minima is 1, so |A|=12=0.5.|𝐴|=12=0.5. Also, the graph is reflected about the x-axis so that A=−0.5.𝐴=−0.5.

The graph is not horizontally stretched or compressed, so B=1;𝐵=1; and the graph is not shifted horizontally, so C=0.𝐶=0.

Putting this all together,

g(x)=−0.5cos(x)+0.5𝑔(𝑥)=−0.5cos(𝑥)+0.5

TRY IT #6

Determine the formula for the sine function in Figure 16.

A graph of sin(x)+2. Period of 2pi, amplitude of 1, and range of [1, 3].

Figure 16

EXAMPLE 7

Identifying the Equation for a Sinusoidal Function from a Graph

Determine the equation for the sinusoidal function in Figure 17.

A graph of 3cos(pi/3x-pi/3)-2. Graph has amplitude of 3, period of 6, range of [-5,1].

Figure 17

Solution

With the highest value at 1 and the lowest value at −5,−5, the midline will be halfway between at −2.−2. So D=−2.𝐷=−2.

The distance from the midline to the highest or lowest value gives an amplitude of |A|=3.|𝐴|=3.

The period of the graph is 6, which can be measured from the peak at x=1𝑥=1 to the next peak at x=7,𝑥=7, or from the distance between the lowest points. Therefore, P=2π|B|=6.𝑃=2𝜋|𝐵|=6. Using the positive value for B,𝐵, we find that

B=2πP=2π6=π3𝐵=2𝜋𝑃=2𝜋6=𝜋3

So far, our equation is either y=3sin(π3x−C)−2𝑦=3sin(𝜋3𝑥−𝐶)−2 or y=3cos(π3x−C)−2.𝑦=3cos(𝜋3𝑥−𝐶)−2. For the shape and shift, we have more than one option. We could write this as any one of the following:

  • a cosine shifted to the right
  • a negative cosine shifted to the left
  • a sine shifted to the left
  • a negative sine shifted to the right

While any of these would be correct, the cosine shifts are easier to work with than the sine shifts in this case because they involve integer values. So our function becomes

y=3cos(π3x−π3)−2 or y=−3cos(π3x+2π3)−2𝑦=3cos(𝜋3𝑥−𝜋3)−2 or 𝑦=−3cos(𝜋3𝑥+2𝜋3)−2

Again, these functions are equivalent, so both yield the same graph.

TRY IT #7

Write a formula for the function graphed in Figure 18.

A graph of 4sin((pi/5)x-pi/5)+4. Graph has period of 10, amplitude of 4, range of [0,8].

Figure 18

Graphing Variations of y = sin x and y = cos x

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.

Instead of focusing on the general form equations

y=Asin(Bx−C)+D and y=Acos(Bx−C)+D,𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷 and 𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷,

we will let C=0𝐶=0 and D=0𝐷=0 and work with a simplified form of the equations in the following examples.

HOW TO

Given the function y=Asin(Bx),𝑦=𝐴sin(𝐵𝑥), sketch its graph.

  1. Identify the amplitude, |A|.|𝐴|.
  2. Identify the period, P=2π|B|.𝑃=2𝜋|𝐵|.
  3. Start at the origin, with the function increasing to the right if A𝐴 is positive or decreasing if A𝐴 is negative.
  4. At x=π2|B|𝑥=𝜋2|𝐵| there is a local maximum for A>0𝐴>0 or a minimum for A<0,𝐴<0, with y=A.𝑦=𝐴.
  5. The curve returns to the x-axis at x=π|B|.𝑥=𝜋|𝐵|.
  6. There is a local minimum for A>0𝐴>0 (maximum for A<0𝐴<0 ) at x=3π2|B|𝑥=3𝜋2|𝐵| with y=–A.𝑦=–𝐴.
  7. The curve returns again to the x-axis at x=2π|B|.𝑥=2𝜋|𝐵|.

EXAMPLE 8

Graphing a Function and Identifying the Amplitude and Period

Sketch a graph of f(x)=−2sin(πx2).𝑓(𝑥)=−2sin(𝜋𝑥2).

Solution

Let’s begin by comparing the equation to the form y=Asin(Bx).𝑦=𝐴sin(𝐵𝑥).

  • Step 1. We can see from the equation that A=−2,𝐴=−2, so the amplitude is 2.|A|=2|𝐴|=2
  • Step 2. The equation shows that B=π2,𝐵=𝜋2, so the period isP=2ππ2=2π⋅2π=4𝑃=2𝜋𝜋2=2𝜋⋅2𝜋=4
  • 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,𝑥=0, the horizontal midpoints are at x=2𝑥=2 and at the end of one period at x=4.𝑥=4.

The quarter points include the minimum at x=1𝑥=1 and the maximum at x=3.𝑥=3. A local minimum will occur 2 units below the midline, at x=1,𝑥=1, and a local maximum will occur at 2 units above the midline, at x=3.𝑥=3. Figure 19 shows the graph of the function.

A graph of -2sin((pi/2)x). Graph has range of [-2,2], period of 4, and amplitude of 2.

Figure 19

TRY IT #8

Sketch a graph of g(x)=−0.8cos(2x).𝑔(𝑥)=−0.8cos(2𝑥). 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.

  1. Express the function in the general form y=Asin(Bx−C)+D or y=Acos(Bx−C)+D.𝑦=𝐴sin(𝐵𝑥−𝐶)+𝐷 or 𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷.
  2. Identify the amplitude, |A|.|𝐴|.
  3. Identify the period, P=2π|B|.𝑃=2𝜋|𝐵|.
  4. Identify the phase shift, CB.𝐶𝐵.
  5. Draw the graph of f(x)=Asin(Bx)𝑓(𝑥)=𝐴sin(𝐵𝑥) shifted to the right or left by CB𝐶𝐵 and up or down by D.𝐷.

EXAMPLE 9

Graphing a Transformed Sinusoid

Sketch a graph of f(x)=3sin(π4x−π4).𝑓(𝑥)=3sin(𝜋4𝑥−𝜋4).

Solution

  • Step 1. The function is already written in general form: f(x)=3sin(π4x−π4).𝑓(𝑥)=3sin(𝜋4𝑥−𝜋4). This graph will have the shape of a sine function, starting at the midline and increasing to the right.
  • Step 2. |A|=|3|=3.|𝐴|=|3|=3. The amplitude is 3.
  • Step 3. Since |B|=∣∣π4∣∣=π4,|𝐵|=|𝜋4|=𝜋4, we determine the period as follows.P=2π|B|=2ππ4=2π⋅4π=8𝑃=2𝜋|𝐵|=2𝜋𝜋4=2𝜋⋅4𝜋=8The period is 8.
  • Step 4. Since C=π4,𝐶=𝜋4, the phase shift isCB=π4π4=1.𝐶𝐵=𝜋4𝜋4=1.The phase shift is 1 unit.
  • Step 5. Figure 20 shows the graph of the function.A graph of 3sin(*(pi/4)x-pi/4). Graph has amplitude of 3, period of 8, and a phase shift of 1 to the right.Figure 20 A horizontally compressed, vertically stretched, and horizontally shifted sinusoid

TRY IT #9

Draw a graph of g(x)=−2cos(π3x+π6).𝑔(𝑥)=−2cos(𝜋3𝑥+𝜋6). Determine the midline, amplitude, period, and phase shift.

EXAMPLE 10

Identifying the Properties of a Sinusoidal Function

Given y=−2cos(π2x+π)+3,𝑦=−2cos(𝜋2𝑥+𝜋)+3, determine the amplitude, period, phase shift, and vertical shift. Then graph the function.

Solution

Begin by comparing the equation to the general form and use the steps outlined in Example 9.

y=Acos(Bx−C)+D𝑦=𝐴cos(𝐵𝑥−𝐶)+𝐷

  • Step 1. The function is already written in general form.
  • Step 2. Since A=−2,𝐴=−2, the amplitude is |A|=2.|𝐴|=2.
  • Step 3. |B|=π2,|𝐵|=𝜋2, so the period is P=2π|B|=2ππ2=2π⋅2π=4.𝑃=2𝜋|𝐵|=2𝜋𝜋2=2𝜋⋅2𝜋=4. The period is 4.
  • Step 4. C=−π,𝐶=−𝜋, so we calculate the phase shift as CB=−π,π2=−π⋅2π=−2.𝐶𝐵=−𝜋,𝜋2=−𝜋⋅2𝜋=−2. The phase shift is −2.−2.
  • Step 5. D=3,𝐷=3, so the midline is y=3, 𝑦=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.

Figure 21 shows one cycle of the graph of the function.

A graph of -2cos((pi/2)x+pi)+3. Graph shows an amplitude of 2, midline at y=3, and a period of 4.

Figure 21

Using Transformations of Sine and Cosine Functions

We can use the transformations of sine and cosine functions in numerous applications. As mentioned at the beginning of the chapter, circular motion can be modeled using either the sine or cosine function.

EXAMPLE 11

Finding the Vertical Component of Circular Motion

A point rotates around a circle of radius 3 centered at the origin. Sketch a graph of the y-coordinate of the point as a function of the angle of rotation.

Solution

Recall that, for a point on a circle of radius r, the y-coordinate of the point is y=rsin(x),𝑦=𝑟sin(𝑥), so in this case, we get the equation y(x)=3sin(x).𝑦(𝑥)=3sin(𝑥). The constant 3 causes a vertical stretch of the y-values of the function by a factor of 3, which we can see in the graph in Figure 22.

A graph of 3sin(x). Graph has period of 2pi, amplitude of 3, and range of [-3,3].

Figure 22

Analysis

Notice that the period of the function is still 2π;2𝜋; as we travel around the circle, we return to the point (3,0)(3,0) for x=2π,4π,6π,…𝑥=2𝜋,4𝜋,6𝜋,… Because the outputs of the graph will now oscillate between –3–3 and 3,3, the amplitude of the sine wave is 3.3.

TRY IT #10

What is the amplitude of the function f(x)=7cos(x)?𝑓(𝑥)=7cos(𝑥)? Sketch a graph of this function.

EXAMPLE 12

Finding the Vertical Component of Circular Motion

A circle with radius 3 ft is mounted with its center 4 ft off the ground. The point closest to the ground is labeled P, as shown in Figure 23. Sketch a graph of the height above the ground of the point P𝑃 as the circle is rotated; then find a function that gives the height in terms of the angle of rotation.

An illustration of a circle lifted 4 feet off the ground. Circle has radius of 3 ft. There is a point P labeled on the circle's circumference.

Figure 23

Solution

Sketching the height, we note that it will start 1 ft above the ground, then increase up to 7 ft above the ground, and continue to oscillate 3 ft above and below the center value of 4 ft, as shown in Figure 24.

A graph of -3cox(x)+4. Graph has midline at y=4, amplitude of 3, and period of 2pi.

Figure 24

Although we could use a transformation of either the sine or cosine function, we start by looking for characteristics that would make one function easier to use than the other. Let’s use a cosine function because it starts at the highest or lowest value, while a sine function starts at the middle value. A standard cosine starts at the highest value, and this graph starts at the lowest value, so we need to incorporate a vertical reflection.

Second, we see that the graph oscillates 3 above and below the center, while a basic cosine has an amplitude of 1, so this graph has been vertically stretched by 3, as in the last example.

Finally, to move the center of the circle up to a height of 4, the graph has been vertically shifted up by 4. Putting these transformations together, we find that

y=−3cos(x)+4𝑦=−3cos(𝑥)+4

TRY IT #11

A weight is attached to a spring that is then hung from a board, as shown in Figure 25. As the spring oscillates up and down, the position y𝑦 of the weight relative to the board ranges from –1–1 in. (at time x=0)𝑥=0) to –7–7 in. (at time x=π)𝑥=𝜋) below the board. Assume the position of y𝑦 is given as a sinusoidal function of x.𝑥. Sketch a graph of the function, and then find a cosine function that gives the position y𝑦 in terms of x.𝑥.

An illustration of a spring with length y.

Figure 25

EXAMPLE 13

Determining a Rider’s Height on a Ferris Wheel

The London Eye is a huge Ferris wheel with a diameter of 135 meters (443 feet). It completes one rotation every 30 minutes. Riders board from a platform 2 meters above the ground. Express a rider’s height above ground as a function of time in minutes.

Solution

With a diameter of 135 m, the wheel has a radius of 67.5 m. The height will oscillate with amplitude 67.5 m above and below the center.

Passengers board 2 m above ground level, so the center of the wheel must be located 67.5+2=69.567.5+2=69.5 m above ground level. The midline of the oscillation will be at 69.5 m.

The wheel takes 30 minutes to complete 1 revolution, so the height will oscillate with a period of 30 minutes.

Lastly, because the rider boards at the lowest point, the height will start at the smallest value and increase, following the shape of a vertically reflected cosine curve.

  • Amplitude: 67.5,67.5, so A=67.5𝐴=67.5
  • Midline: 69.5,69.5, so D=69.5𝐷=69.5
  • Period: 30,30, so B=2π30=π15𝐵=2𝜋30=𝜋15
  • Shape: −cos(t)−cos(𝑡)

An equation for the rider’s height would be

y=−67.5cos(π15t)+69.5𝑦=−67.5cos(𝜋15𝑡)+69.5

where t𝑡 is in minutes and y𝑦 is measured in meters.

RELATED POSTS

View all

view all