19.2.3: Amplitude and Period
( \newcommand{\kernel}{\mathrm{null}\,}\)
- Understand amplitude and period.
- Graph the sine function with changes in amplitude and period.
- Graph the cosine function with changes in amplitude and period.
- Match a sine or cosine function to its graph and vice versa.
Introduction
You know how to graph the functions y=sinx and y=cosx. Now you’ll learn how to graph a whole “family” of sine and cosine functions. These functions have the form y=asinbx or y=acosbx, where a and b are constants.
Periodic Functions
We used the variable θ previously to show an angle in standard position, and we also referred to the sine and cosine functions as y=sinθ and y=cosθ. Often the sine and cosine functions are used in applications that have nothing to do with triangles or angles, and the letter x is used instead of θ for the input (as well as to label the horizontal axis). So from this point forward, we’ll refer to these same functions as y=sinx and y=cosx. This change does not affect the graphs; they remain the same.
You know that the graphs of the sine and cosine functions have a pattern of hills and valleys that repeat. The length of this repeating pattern is 2π. That is, the graph of y=sinx (or y=cosx) on the interval [0,2π] looks like the graph on the interval [2π,4π] or [4π,6π] or [−2π,0]. This pattern continues in both directions forever.
The graph below shows four repetitions of a pattern of length 2π. Each one contains exactly one complete copy of the “hill and valley” pattern.
If a function has a repeating pattern like sine or cosine, it is called a periodic function. The period is the length of the smallest interval that contains exactly one copy of the repeating pattern. So the period of y=sinx or y=cosx is 2π. Any part of the graph that shows this pattern over one period is called a cycle. For example, the graph of y=cosx on the interval [0,2π] is one cycle.
You know from graphing quadratic functions of the form y=ax2 that as you changed the value of a, you changed the “width” of the graph. Now we’ll look at functions of the form y=sinbx and see how changes to b will affect the graph. For example, is y=sin2x periodic, and if so, what is the period? Here is a table with some inputs and outputs for this function.
for this function.
x (in radians) | 2x (in radians) | sin2x |
0 | 0 | 0 |
π6 | π3 | √32 |
π4 | π2 | 1 |
π3 | 2π3 | √32 |
π2 | π | 0 |
2π3 | 4π3 | −√32 |
3π4 | 3π2 | -1 |
5π6 | 5π3 | −√32 |
π | 2π | 0 |
As the values of x go from 0 to π, the values of 2x go from 0 to 2π. We can see from the graph that the function y=sin2x is a periodic function, and goes through one full cycle on the interval [0, π], so its period is π. If you substituted values of x from π to 2π, the values of 2x would go from2π to 4π, and sin2x would go through another complete cycle of the sine function.
Notice that y=sin2x has two cycles on the interval [0, 2π] which is the interval y=sinx needs to complete one full cycle.
What is the smallest positive value for x where y=sin2x is at its minimum?
- −π4
- π4
- 3π4
- π2
- Answer
-
- −π4. Incorrect. The function does attain its minimum value at this point, but −π4 is not a positive value. The correct answer is 3π4.
- π4. Incorrect. Perhaps you confused minimum and maximum. The correct answer is 3π4.
- 3π4Correct. The minimum value for the sine function is -1. Look at the graph of y=sin2x. It attains this minimum at the bottom of every valley. The bottom of the first valley where x is positive is at x=3π4.
- π2. Incorrect. You may have thought of 0 as the minimum value, but the sine function takes on negative values. The correct answer is 3π4.
What is the period of the function y=sin3x? Here is a table with some inputs and outputs for this function.
x (in radians) | 3x (in radians) | sin3x |
0 | 0 | 0 |
π9 | π3 | √32 |
π6 | π2 | 1 |
2π9 | 2π3 | √32 |
π3 | π | 0 |
4π9 | 4π3 | −√32 |
π2 | 3π2 | -1 |
5π9 | 5π3 | −√32 |
2π3 | 2π | 0 |
As the values of x go from 0 to 2π3, the values of 3x go from 0 to 2π. We can see from the graph that y=sin3x goes through one full cycle on the interval [0, 2π3], so its period is 2π3.
Notice that y=sin3x has three cycles on the interval [0, 2π], which is the interval y=sinx needs to complete one full cycle.
What is the period of the function y=sin(12)x? Here is a table with some inputs and outputs for this function.
x (in radians) | 12x (in radians) | sin(12) |
0 | 0 | 0 |
2π3 | π3 | √32 |
π | π2 | 1 |
4π3 | 2π3 | √32 |
2π | π | 0 |
8π3 | 4π3 | −√32 |
3π | 3π2 | -1 |
10π3 | 5π3 | −√32 |
4π | 2π | 0 |
As the values of x go from 0 to 4π, the values of 12x go from 0 to 2π.
We can see from the graph that y=sin(12x) goes through one full cycle on the interval [0,4π], so its period is 4π.
Notice that y=sin(12x) has half of one full cycle on the interval [0,2π], which is the interval y=sinx
Let’s put these results into a table. For the first three functions, we have rewritten their periods with the numerator 2π so that the pattern becomes clear. Can you see a relationship between the function and the denominator in the periods? needs to complete one full cycle.
Function | Period |
---|---|
y=sin(12x) | 4π=2π12 |
y=sin1x | 2π=2π1 |
y=sin2x | π=2π2 |
y=sin(3x) | 2π3=2π3 |
In each case, the period could be found by dividing 2π by the coefficient of x. In general, the period of y=sinbx is 2π|b|, and the period of y=cosbx is 2π|b|. Since the period is the length of an interval, it must always be a positive number. Since it is possible for b to be a negative number, we must use |b| in the formula to be sure the period, 2π|b|, is always a positive number.
The period of y=sinbx or y=cosbx is 2π|b|.
You can think of the different values of b as having an “accordion” (or a spring) effect on the graphs of sine and cosine. A large value of b squeezes them in and a small value of b stretches them out.
There is another way to describe this effect. In the interval [0, 2π], y=sinx goes through one cycle while y=sin2x goes through two cycles. If you go back and check all of the examples above, you will see that y=sinbx has |b| cycles in the interval [0,2π]. Likewise, y=cosbx has |b| cycles in the interval [0, 2π].
Problem: What are the periods of y=sin4x and y=cos(−12x)?
Answer
For y=sin4x, b=4. Substitute this value into the formula.
period =2π|b|=2π4=π2
For y=cos(−12x), b=−12.
period =2π|b|=2π|−12|=2π12=2π1⋅21=4π
The period of y=sin4x is π2, and the period of y=cos(−12x) is 4π.
Amplitude
As you have seen, the graphs of all of these sine and cosine functions alternate between hills and valleys. The height of one hill (which equals the depth of one valley) is called the amplitude. You can see that for all the graphs we have looked at so far, the amplitude equals 1.
The formal way to say this for any periodic function is:
amplitude =maximum−minimum2
You know that the maximum value of y=sinx or y=cosx is 1 and the minimum value of either is -1. So if you applied the above definition, you would get:
amplitude =1−(−1)2=1+12=22=1
This result agrees with what was observed from the graph.
You have seen that changing the value of b in y=sinbx or y=cosbx either stretches or squeezes the graph like an accordion or a spring, but it does not change the maximum or minimum values. For all of these functions, the maximum is 1 and the minimum is -1. So if you applied the definition of amplitude, you would be doing the exact same calculation as we just did above. The amplitude of any of these functions is 1.
Let’s look at a different kind of change to a function by graphing the function y=2sinx. Here’s a table with some values of this function.
x (in radians) | sinx | 2sinx |
0 | 0 | 0 |
π6 | 12 | 1 |
π4 | √22 | √2 |
π3 | √32 | √3 |
π2 | 1 | 2 |
2π3 | √32 | √3 |
3π4 | √22 | √2 |
5π6 | 12 | 1 |
π | 0 | 0 |
We’ll take the first and third columns to make part of the graph and then extend that pattern to the left and to the right.
Now you can use this graph in the following example.
Problem: What is the amplitude of y=2sinx?
Answer
You can find the maximum and minimum values of the function from the graph. For example, at x=π2 the value is 2, and at x=−π2 the value is -2.
maximum =2 minimum =−2
Use the definition of amplitude.
amplitude =2−(−2)2=2+22=42=2
Notice that the height of each hill is 2, and the depth of each valley is 2. This is equal to the amplitude, as we mentioned at the start.
Notice also that the amplitude is equal to the coefficient of the function: y=2sinx
This is not a coincidence.
The amplitude is 2.
Let’s compare the graph of this function to the graph of the sine function.
The effect of multiplying sinx by 2 is to stretch the graph vertically by a factor of 2. Because it has been stretched vertically by this factor, the amplitude is twice as much, or 2. If we had looked at y=3sinx, the graph would have been stretched vertically by a factor of 3, and the amplitude of this function is 3. Again, this is equal to the coefficient of the function. In general, we have the following rule.
The amplitude of y=asinbx or y=acosbx is |a|.
As the last example, y=2sinx, shows, multiplying by a constant on the outside affects the amplitude. If you multiply by a constant on the outside and on the inside, as in y=−3sin2x, you will affect both the amplitude and the period. Here is the graph of y=−3sin2x:
Problem: Determine the amplitude and period of y=−3cos2x.
Answer
Use the formula for amplitude, with a=−3.
amplitude =|a|=|−3|=3
Use the formula for period, with b=2.
period =2π|b|=2π2=π
The amplitude is 3 and the period is π.
In this example, you could have found the period by looking at the graph above. One complete cycle is shown, for example, on the interval [0, π], so the period is π.
In the functions y=asinbx and y=acosbx, multiplying by the constant a only affects the amplitude, not the period. As we said earlier, changing the value of b only affects the period, not the amplitude. The general result is as follows.
The amplitude of y=asinbx or y=acosbx is |a|.
The period of y=asinbx or y=acosbx is 2π|b|.
Supplemental Interactive Activity
To help you understand changes in amplitude and period for both the sine function and cosine function, try the following interactive exercise.
*Insert Interactive Activity
What are the amplitude and period of y=12sin4x?
- The amplitude is 12, and the period is π2.
- The amplitude is 12, and the period is 8π.
- The amplitude is 1, and the period is π2.
- The amplitude is 1, and the period is 8π.
- Answer
-
- Correct. In this function, a=12, so this is the amplitude. The period equals 2π|b|=2π4=π2.
- Incorrect. The amplitude is correct, but the period is not. You probably multiplied 2π by 4 instead of dividing. The correct answer is A.
- Incorrect. The period is correct, but the amplitude is not. You may have thought the amplitude is the maximum minus the minimum, but it is half of this. The correct answer is A.
- Incorrect. You may have thought the amplitude is the maximum minus the minimum, but it is half of this. You probably multiplied 2π by 4, instead of dividing, to find the period. The correct answer is A.
Graphs of Sine Functions
You know the function y=asinbx has amplitude |a| and period 2π|b|. You can use these facts to draw the graph of any function in the form y=asinbx by starting with the graph of y=sinx and modifying it.
For example, suppose you wanted the graph of y=4sinx. Since b=1, this function has the same period as y=sinx. Since a=4, the amplitude is 4. Therefore, you would take the graph of y=sinx and simply stretch it vertically by a factor of 4. Here is one cycle for these two functions.
Note that the points that were on the x-axis “remain” on the x-axis. At these points (where x=0,π,2π), the value of sinx is 0. If you multiply 0 by 4 (or anything else), you will still have a value of 0. So the points will still be on the x-axis. On the other hand, the highest and lowest points have moved away from the x-axis. They had y-values of 1 and -1 for sinx, and they have y-values of 4 and -4 for 4sinx.
Problem: Graph y=−sinx on the interval [0, 2π].
Answer
The value of b is 1, so the graph has a period of 2π, as does y=sinx.
The value of a is -1, so the graph has an amplitude of 1, as does y=sinx.
Though the amplitude and the period are the same as the function y=sinx, the graph is not exactly the same. The effect of multiplying by -1 is to replace y-values by their opposites. So the graph of y=sinx gets reflected over the x-axis.
If you want to check these graphs with a graphing calculator, make sure that the graphing window has the correct settings. For this last example, you would use 0≤x≤2π and −1≤y≤1. In general, you would probably want to adjust the x-values to show one full cycle and the y-values using the amplitude.
If the values of a and b are both different from 1, then you need to combine the effects of the two changes.
Problem: Graph y=3sin(12x) on the interval [0, 4π].
Answer
The value of a is 3, so the graph has an amplitude of 3. This has the effect of taking the graph of y=sinx and stretching it vertically by a factor of 3.
The value of b is 12, so the graph has a period of 2π12=2π1⋅21=4π. This is twice the period of y=sinx. This has the effect of taking the graph of y=sinx and stretching it horizontally by a factor of 2. (The alternative way to say this is that y=3sin(12x) has 12 of a cycle on the interval [0, 2π].)
To make the graph of y=3sin(12x), you must combine the two effects described above.
Sometimes you need to stretch the graph of the sine function, and sometimes you need to shrink it.
Problem: Graph two cycles of a sine function whose amplitude is 12 and whose period is 2π3.
Answer
There are different functions of the form y=asinbx that fit this description because a and b could be positive or negative. We will draw the graph assuming these are positive.
Because the amplitude is 12, this has the effect of taking the graph of y=sinx and shrinking it vertically by a factor of 2.
The period is 2π3=13⋅2π, which is 13 the period of y=sinx. This has the effect of taking the graph of y=sinx and shrinking it horizontally by a factor of 3.
To make the graph, you must combine the two effects described above.
Even without knowing the specific value of a constant, you can sometimes still narrow down the possibilities for the shape of a graph.
The graph of a function y=asinx, where a is a constant, is drawn on the interval 0≤x≤2π. Which of the following options could be this graph?
- Answer
-
- Incorrect. This has the correct shape and period, but it is in the wrong position. Regardless of the value of a, the graph must pass through the x-axis at x=0,π,2π, which it does not. The correct answer is D.
- Incorrect. This is the graph of a cosine function. Regardless of the value of a, the graph must pass through the x-axis at x=0,π,2π. The correct answer is D.
- Incorrect. Because the coefficient of x is 1, the graph should have a period of 2π, but this graph has a period of π. The correct answer is D.
- Correct. Because the coefficient of x is 1, the graph has a period of 2π, which this option has. The factor a could stretch or shrink the graph, but it must still pass through the x-axis at the points x=0,π,2π, which it does.
Graphs of Cosine Functions
You know the function y=acosbx has amplitude |a| and period 2π|b|. Just as you did with sine functions, you can use these facts to draw the graph of any function in the form y=acosbx by starting with the graph of y=cosx and modifying it.
For example, suppose you wanted the graph of y=cos(12x). Since a=1, it has the same amplitude as y=cosx. And, because b=12, the period is given by:
2π|b|=2π12=2π1⋅21=4π
Since this is twice the period of y=cosx, you would take the graph of y=cosx and stretch it horizontally by a factor of 2. Here is a side-by-side comparison of these two graphs.
Note that in the interval [0, 2π], the graph of y=cosx has one full cycle. Since b=12, the graph of y=cos(12x) has 12 of a cycle in that interval.
If you are using a graphing calculator, you need to adjust the settings for each graph to get a graphing window that shows all the features of the graph. For the last example, you would use 0≤x≤4π and −1≤y≤1. In general, you would probably want to adjust the x-values to show one full cycle and the y-values to show the highest and lowest points. In the next example, you would use −π≤x≤π and −2≤y≤2 for the graphing window because you are specifically asked to graph it over the domain [−π,π] and the graph will have an amplitude of 2, going as low as -2 and as high as +2.
Problem: Graph y=−2cosx on the interval [−π,π].
Answer
The amplitude equals |a|=|−2|=2. This has the effect of taking the graph of y=cosx and stretching it vertically by a factor of 2. The negative sign on the “outside” has an additional effect: the y-values are replaced by their opposites, so the graph is also flipped over the x-axis.
The value of b is 1, so the graph has a period of 2π, as does y=cosx.
When the only change is a vertical stretch, compression, or flip, the x-intercepts remain the same. So the graph will pass through the x-axis at −π2 and π2.
Again, if the values of a and b are both different from 1, you need to combine the effects of the two changes. In the next example, you will see a variation that you have not seen before. Up to this point, all of the values of b have been rational numbers, but here we are using the irrational number π. This situation does not really change the procedure, but you will see that it changes the scale on the x-axis in a new way.
Problem: Graph y=4cosπx on the interval [0, 4].
Answer
The value of a is 4, so the graph has an amplitude of 4. This has the effect of taking the graph of y=cosx and stretching it vertically by a factor of 4.
The value of b is π, so the graph has a period of 2ππ=2. This has the effect of shrinking the graph of y=cosx horizontally by a factor of π, causing it to complete one complete cycle on the interval [0, 2].
Note the effect on the x-values of the intercepts, the high points, and the low points. Because the period is 2, the first cycle of the graph will have high points at x=0 and 2. The low point will still be midway between these, so it is at x=1. The x-intercepts are still midway between the high and the low points, so they will be at x=12 and 32. The second cycle of the graph has all of these points shifted to the right 2 units.
To make the graph of y=4cosπx, you must combine the effects described above.
In two previous examples (y=−sinx and y=−cosx), you saw that a negative sign on the outside (a negative value of a) has the effect of flipping the graph around the x-axis. In the next example, you will see the effect of a negative sign on the “inside” (a negative value of b).
One last hint: besides trying to figure out the overall effect of the value of a or b on the graph, you might want to check specific points. For example, just substitute x=0 into the function and see where that point will end up.
Which of the following options is the graph of y=32cos(−x) on the interval −π≤x≤π?
- Answer
-
- Incorrect. This is the graph of y=32sin(−x). Remember to check specific points like =0. At that point, y=32cos(0)=32⋅1=32. So the point (0,32) should be on the graph. The correct answer is C.
- Incorrect. You confused the effects of a and b. This is the graph of y=−cos(32x). The correct answer is C.
- Correct. The value of a is 32, which will stretch the graph vertically by a factor of 32. The period of the graph is 2π|−1|=2π, as is the period of y=cosx. The effect of the negative sign on the inside is to replace x-values by their opposites. This will flip the graph around the y-axis. However, because the graph of cosine is symmetric about the y-axis, this has no effect at all. So the only change to the graph of y=cosx is the vertical stretch.
- Incorrect. This graph has the correct period and amplitude. However, you have confused the effect of a minus sign on the inside with a minus sign on the outside. The correct answer is C.
Matching Graphs and Functions
Given any function of the form y=asinbx or y=acosbx, you know how to find the amplitude and period and how to use this information to graph the functions.
Given a graph of a sine or cosine function, you also can determine the amplitude and period of the function. From this information, you can find values of a and b, and then a function that matches the graph.
Remember that along with finding the amplitude and period, it’s a good idea to look at what is happening at x=0. If a and b are any nonzero constants, the functions y=asinbx and y=acosbx will have the following values at x=0:
y=asin(b⋅0)=asin0=a⋅0=0y=acos(b⋅0)=acos0=a⋅1=a≠0
This tells you that the graph of y=asinbx passes through (0, 0) regardless of the values of a and b, and the graph of y=acosbx never passes through (0, 0) regardless of the values of a and b. So, for example, if you are given a graph passing through the origin and are asked to determine which function it represents, you know right away that it is not in the form y=acosbx.
You need to be careful about the sign of a. You might determine that a function has an amplitude of 4, for example. Though it is possible that a=4, it is also possible that a=−4. Here is an example of each of these two possibilities.
You will need to compare the graph to that of y=sinx or y=cosx to see if, in addition to any stretching or shrinking, there has been a reflection over the x-axis. The graph above on the right can be thought of as the result of stretching and reflecting the graph of y=sinx across the x-axis. If there has been a reflection, then the value of a will be negative. Once you have determined if a is positive or negative, you can always choose a positive value of b.
Here are some examples of this process.
Problem: Determine a function of the form y=asinbx or y=acosbx whose graph is shown below.
Answer
First, observe that the graph passes through the origin, so you are looking for a function of the form y=asinbx.
Next, observe that the maximum value of the function is 2 and the minimum is -2, so the amplitude is 2. The graph has the same “orientation” as y=sinx. (It starts with a hill to the right of the y-axis.) This implies that a is positive, and in particular, a=2.
Finally, observe that the graph shows two cycles and that one entire cycle is contained in the interval [0,2π3]. Therefore, the period is 2π3. Since 2π3=2π|b|, b=±3. According to our process, once you have determined if a is positive or negative, you can always choose a positive value of b. So b=3.
Combine these three pieces of information.
y=2sin3x
Problem: Determine a function of the form y=asinbx or y=acosbx whose graph is shown below.
Answer
First, observe that the graph does not pass through the origin, but rather crests, reaching a maximum when x=0, so you are looking for a function of the form y=acosbx.
Next, observe that the maximum value of the function is 12 and the minimum is −12, so the amplitude is 12. The graph has the same “orientation” as y=cosx. (It has a hill with the y-axis running through the middle.) This implies that a is positive, and in particular, a=12.
Finally, observe that the graph shows two cycles and that one entire cycle is contained in the interval [0, π]. Therefore, the period is π. Because π=2π|b|, b=±2. According to our process, once you have determined if a is positive or negative, you can always choose a positive value of b. So b=2.
Combine these three pieces of information.
y=12cos2x
Make sure that you recognize where a cycle starts and ends. The period is the length of the interval over which one cycle runs.
Problem: Which of the following functions is represented by the graph below?
- y=−sinx
- y=sin(12x)
- y=−sin2x
- y=−sin(12x)
- Answer
-
- y=−sinx. Incorrect. You correctly recognized the graph as a reflected sine function, but the period is incorrect. Perhaps you saw the 2π on the right and used that as the length of one cycle. However, the entire graph is one cycle, and the period equals 2π−(−2π)=4π. The correct answer is D.
- y=sin(12x). Incorrect. You correctly found the amplitude and period of this sine function. However, you also need to check the orientation of the graph. Notice that to the right of the y-axis you have a valley instead of a hill. The correct answer is D.
- y=−sin2x. Incorrect. You correctly found the amplitude and the orientation of this sine function. However, the period is incorrect. Perhaps you recognized that the period of the graph is twice the period of y=sinx, and thought that the value of b would be 2. However, to find the value of b, you must set the period equal to 2π|b|. The correct answer is D.
- y=−sin(12x). Correct. The graph passes through the origin, so the function could have the form y=asinbx, but not y=acosbx. The amplitude is 1. The graph has a valley on the right, which could be the result of a reflection of y=sinx over the x-axis. Therefore, a=−1. The graph shows one cycle, so the period is 4π. Since 4π=2π|b|, the value of b could be 12. So this could be the graph of y=−sin(12x).
Remember that when writing a function you can use the notation f(x) in place of the variable y.
Which of the following graphs represents f(x)=3cos(23x)?
- Answer
-
- Incorrect. This is the graph of a function of the form f(x)=asinbx. Remember to check the value of the function at x=0. Since f(0)=3, the function f(x)=3cos(23x) passes through (0, 3), not the origin as shown in this graph. The correct answer is B.
- Correct. First, this graph has the shape of a cosine function. Second, because a=3 in the equation, the amplitude is 3. Finally, because b=23,, the period of this function is 2π23=2π1⋅32=3π. The graph in this answer completes one full cycle between x=−32π and x=32π so its period is 32π−(−32π)=3π as needed.
- Incorrect. This graph does have the shape of a cosine function, and the amplitude is 3, which is correct. However, the period is incorrect. You probably multiplied 2π by 23 instead of dividing. The correct answer is B.
- Incorrect. This graph does have the shape of a cosine function. However, in determining the graph, it appears that you switched the values of a and b. The correct answer is B.
Summary
The functions y=asinbx and y=acosbx are periodic functions: their graphs have a repeating pattern of hills and valleys that continues in both directions forever. The height of the hill or the depth of the valley is called the amplitude, and is equal to |a|. Any one full pattern in the graph is called a cycle, and the length of an interval over which a cycle occurs is called the period. The period is equal to the value 2π|b|.
You can use this information to graph any of these functions by starting with the basic graph of y=sinx or y=cosx and then doing a combination of stretching or shrinking the graph vertically based on the value of a, stretching or shrinking the graph horizontally based on the value of b, or reflecting it based on the signs of a and b.
You can also start with a graph, determine the values of a and b, and then determine a function that it represents.