# 2.3: Applications and Modeling with Sinusoidal Functions

- Page ID
- 7106

Focus Questions

*The following questions are meant to guide our study of the material in this section. After studying this section, we should understand the concepts motivated by these questions and be able to write precise, coherent answers to these questions.*

Let \(A, B, C\), and \(D\) be constants with \(B > 0\) and consider the graph of \(f(t) = A\sin(B(t - C)) + D\) or \(f(t) = A\cos(B(t - C)) + D\).

- What does frequency mean?
- How do we model periodic data accurately with a sinusoidal function?
- What is a mathematical model?
- Why is it reasonable to use a sinusoidal function to model periodic phenomena?

In Section 2.2, we used the diagram in Figure \(\PageIndex{1}\) to help remember important facts about sinusoidal functions.

Figure \(\PageIndex{1}\): Graph of a Sinusoid

For example:

- The horizontal distance between a point where a maximum occurs and the next point where a minimum occurs (such as points \(Q\) and \(S\)) is one-half of a period. This is the length of the segment from \(V\) to \(W\) in Figure \(\PageIndex{1}\).
- The vertical distance between a point where a minimum occurs (such as point \(S\)) and a point where is maximum occurs (such as point \(Q\)) is equal to two times the amplitude.
- The center line \(y = D\) for the sinusoid is half-way between the maximum value at point \(Q\) and the minimum value at point \(S\). The value of \(D\) can be found by calculating the average of the \(y\)-coordinates of these two points.
- The horizontal distance between any two successive points on the line \(y = D\) in Figure \(\PageIndex{1}\) is one-quarter of a period.

In Progress Check 2.16, we will use some of these facts to help determine an equation that will model the volume of blood in a person’s heart as a function of time. A **mathematical model** is a function that describes some phenomenon. For objects that exhibit periodic behavior, a sinusoidal function can be used as a model since these functions are periodic. However, the concept of frequency is used in some applications of periodic phenomena instead of the period.

Definition

The **frequency** of a sinusoidal function is the number of periods (or cycles) per unit time.

A typical unit for frequency is the **hertz**. One hertz (Hz) is one cycle per second. This unit is named after Heinrich Hertz (1857 – 1894).

Since frequency is the number of cycles per unit time, and the period is the amount of time to complete one cycle, we see that frequency and period are related as follows:

\[frequency = \dfrac{1}{period}.\]

Exercise \(\PageIndex{1}\)

The volume of the average heart is 140 milliliters (ml), and it pushes out about one-half its volume (70 ml) with each beat. In addition, the frequency of the for a well-trained athlete heartbeat for a well-trained athlete is 50 beats (cycles) per minute. We will model the volume, V .t / (in milliliters) of blood in the heart as a function of time t measured in seconds. We will use a sinusoidal function of the form \[V(t) = A\cos(B(t - C)) + D\]

If we choose time 0 minutes to be a time when the volume of blood in the heart is the maximum (the heart is full of blood), then it reasonable to use a cosine function for our model since the cosine function reaches a maximum value when its input is 0 and so we can use \(C = 0\), which corresponds to a phase shift of 0. So our function can be written as \(V(t) = A\cos(Bt) + D\).

- What is the maximum value of \(V(t)\)? What is the minimum value of \(V(t)\)? Use these values to determine the values of \(A\) and \(D\) for our model? Explain.
- Since the frequency of heart beats is 50 beats per minute, we know that the time for one heartbeat will be 1 of a minute. Determine the time (in 50 seconds) it takes to complete one heartbeat (cycle). This is the period for this sinusoidal function. Use this period to determine the value of B. Write the formula for \(V(t)\) using the values of \(A, B, C\), and \(D\) that have been determined.

**Answer**-
The maximum value of \(V(t)\) is \(140\) ml and the minimum value of \(V(t)\) is \(70\) ml. So the difference \((140 - 70 = 70)\) is twice the amplitude. Hence, the amplitude is \(35\) and we will use \(A = 35\). The center line will then be \(35\) units below the maximum. That is, \(D = 140 - 35 = 105\).

Since there are \(50\) beats per minute, the period is \(\dfrac{1}{50}\) of a minute. Since we are using seconds for time, the period is \(\dfrac{60}{50}\) seconds or \(\dfrac{6}{5}\) sec. We can determine \(B\) by solving the equation \[\dfrac{2\pi}{B} = \dfrac{6}{5}\] for \(B\). This gives \(B = \dfrac{10\pi}{6} = \dfrac{5\pi}{3}\). Our function is

\[V(t) = 35\cos(\dfrac{5\pi}{3}t) + 105.\]

Example \(\PageIndex{1}\):

(Continuation of Progress Check 2.16)

Now that we have determined that \[V(t) = 35\cos(\dfrac{5\pi}{3}t) + 105\]

(where \(t\) is measured in seconds since the heart was full and \(V(t)\) is measured in milliliters) is a model for the amount of blood in the heart, we can use this model to determine other values associated with the amount of blood in the heart. For example:

We can determine the amount of blood in the heart \(1\) second after the heart was full by using \(t = 1\). \[V(1) = 35\cos(\dfrac{5\pi}{3}) + 105\] So we can say that \(1\) second after the heart is full, there will be \(122.5\) milliliters of blood in the heart.

In a similar manner, \(4\) seconds after the heart is full of blood, there will be \(87.5\) milliliters of blood in the heart since \[V(4) = 35\cos(\dfrac{20\pi}{3}) + 105 \approx 87.5\]

Suppose that we want to know at what times after the heart is full that there will be 100 milliliters of blood in the heart. We can determine this if we can solve the equation \(V(t) = 100\) for \(t\). That is, we need to solve the equation \[35\cos(\dfrac{5\pi}{3}t) + 105 = 100\]

Although we will learn other methods for solving this type of equation later in the book, we can use a graphing utility to determine approximate solutions for this equation. Figure \(\PageIndex{2}\) shows the graphs of \(y = V(t)\) and \(y = 100\). To solve the equation, we need to use a graphing utility that allows us to determine or approximate the points of intersection of two graphs. (This can be done using most Texas Instruments calculators and Geogebra.) The idea is to find the coordinates of the points \(P, Q\), and \(R\) in Figure \(\PageIndex{2}\).

Figure \(\PageIndex{2}\): Graph of \(V(t) = 35\cos(\dfrac{5\pi}{3}) + 105\) and \(y = 100\)

We really only need to find the coordinates of one of those points since we can use properties of sinusoids to find the others. For example, we can determine that the coordinates of \(P\) are \((-0.3274, 100)\). Then using the fact that the graph of \(y = V(t)\) is symmetric about the y-axis, we know the co- ordinates of \(Q\) are \((0.3274, 100)\). We can then use the periodic property of the function, to determine the \(t\)-coordinate of \(R\) by adding one period to the \(t\)-coordinate of \(P\). This gives \(0.3274 + \dfrac{6}{5} = 0.8726\), and the coordinates of \(R\) are \((0.8726, 100)\). We can also use the periodic property to determine as many solutions of the equation \(V(t) = 100\) as we like.

Exercise \(\PageIndex{2}\)

The summer solstice in 2014 was on June 21 and the winter solstice was on December 21. The maximum hours of daylight occurs on the summer solstice and the minimum hours of daylight occurs on the winter solstice. According to the U.S. Naval Observatory website, aa.usno.navy.mil/data/docs/Dur_OneYear.php,

the number of hours of daylight in Grand Rapids, Michigan on June 21, 2014 was 15.35 hours, and the number of hours of daylight on December 21, 2014 was 9.02 hours. This means that in Grand Rapids,

- The maximum number of hours of daylight was \(15.35\) hours and occurred on day \(172\) of the year.
- The minimum number of hours of daylight was \(9.02\) hours and occurred on day \(355\) of the year.

1. Let \(y\) be the number of hours of daylight in 2014 in Grand Rapids and let \(t\) be the day of the year. Determine a sinusoidal model for the number of hours of daylight \(y\) in 2014 in Grand Rapids as a function of \(t\).

2. According to this model,

- (a) How many hours of daylight were there on March 10, 2014?
- (b) On what days of the year were there 13 hours of daylight?

**Answer**-
1. Since we have the coordinates for a high and low point, we first do the following computations:

\(2(amp) = 15.35 - 9.02 = 6.33\). Hence, the amplitude is \(3.165\).

\[D = 9.02 + 3.165 = 12.185\].

\(\dfrac{1}{2}\) period \(= 355 - 172 = 183\). So the period is \(366\). Please note that we usually say that there are \(365\) days in a year. So it would also be reasonable to use a period of \(365\) days. Using a period of \(366\) days, we find that \[\dfrac{2\pi}{B} = 366\]

and hence \(B = \dfrac{\pi}{183}\).

We must now decide whether to use a sine function or a cosine function to get the phase shift. Since we have the coordinates of a high point, we will use a cosine function. For this, the phase shift will be 172. So our function is

\[y = 3.165\cos(\dfrac{\pi}{183}(t - 172)) + 12.185\]

We can check this by verifying that when \(t = 155, y = 15.135\) and that when \(t = 355, y = 9.02\).

(a) March \(10\) is day number \(69\). So we use \(t = 69\) and get \[y = 3.165\cos(\dfrac{\pi}{183}(69 - 172)) + 12.185 \approx 11.5642\]

So on March 10, 2014, there were about \(11.564\) hours of daylight.

(b) We use a graphing utility to approximate the points of intersection of \(y = 3.165\cos(\dfrac{\pi}{183}(69 - 172)) + 12.125\) and \(y = 13\). The results are shown to the right. So on day 96 (April 6, 2014) and on day 248 (September 5), there were about 13 hours of daylight.

### Determining a Sinusoid from Data

In Progress Check 2.18 the values and times for the maximum and minimum hours of daylight. Even if we know some phenomenon is periodic, we may not know the values of the maximum and minimum. For example, the following table shows the number of daylight hours (rounded to the nearest hundredth of an hour) on the first of the month for Edinburgh, Scotland \((55^\circ 57' N, 3^\circ 12' W)\).

We will use a sinusoidal function of the form \(y = A\sin(B(t - C)) + D\), where \(y\) is the number of hours of daylight and \(t\) is the time measured in months to model this data. We will use 1 for Jan., 2 for Feb., etc. As a first attempt, we will use \(17.48\) for the maximum hours of daylight and \(7.08\) for the minimum hours of daylight.

Jan | Feb | Mar | Apr | May | June | July | Aug | Sept | Oct | Nov | Dec |
---|---|---|---|---|---|---|---|---|---|---|---|

7.08 | 8.60 | 10.73 | 13.15 | 15.40 | 17.22 | 17.48 | 16.03 | 13.82 | 11.52 | 9.18 | 7.40 |

Table 2.2: Hours of Daylight in Edinburgh

- Since \(17.48 - 7.08 = 10.4\), we see that the amplitude is 5.2 and so \(A = 5.2\).
- The vertical shift will be \(7.08 + 5.2 = 12.28\) and so \(D = 12.28\).
- The period is 12 months and so \(B = \dfrac{2\pi}{12} = \dfrac{\pi}{6}\).
- The maximum occurs at \(t = 7\). For a sine function, the maximum is one- quarter of a period from the time when the sine function crosses its horizontal axis. This indicates a phase shift of 4 to the right. So \(C = 4\).

So we will use the function \(y = 5.2\sin(\dfrac{\pi}{6}(t - 4)) + 12.28\) to model the number of hours of daylight. Figure \(\PageIndex{3}\) shows a scatter plot for the data and a graph of this function. Although the graph fits the data reasonably well, it seems we should be able to find a better model. One of the problems is that the maximum number of hours of daylight does not occur on July 1. It probably occurs about 10 days earlier. The minimum also does not occur on January 1 and is probably somewhat less that 7.08 hours. So we will try a maximum of 17.50 hours and a minimum of 7.06 hours. Also, instead of having the maximum occur at \(t = 7\), we will say it occurs at t D 6:7. Using these values, we have \(A = 5.22, B = \dfrac{\pi}{6}, C = 3.7, \space and \space D = 12.28\). Figure 2.22 shows a scatter plot of the data and a graph of \[y = 5.22\sin(\dfrac{\pi}{6}(t - 3.7)) + 12.28\]

This appears to model the data very well. One important thing to note is that when trying to determine a sinusoid that “fits” or models actual data, there is no single correct answer. We often have to find one model and then use our judgment in order to determine a better model. There is a mathematical “best fit” equation for a sinusoid that is called the **sine regression equation**. Please note that we need to use some graphing utility or software in order to obtain a sine regression equation. Many Texas Instruments calculators have such a feature as does the software Geogebra. Following is a sine regression equation for the number of hours of daylight in Edinburgh shown in Table 2.2 obtained from Geogebra.

\[y = 5.153\sin(0.511t - 1.829) + 12.174\]

A scatter plot with a graph of this function is shown in Figure \(\PageIndex{5}\).

Figure \(\PageIndex{3}\): Hours of Daylight in Edinburgh

Note

See the supplements at the end of this section for instructions on how to use Geogebra and a Texas Instruments TI-84 to determine a sine regression equation for a given set of data.

It is interesting to compare equation (1) and equation (2), both of which are models for the data in Table 2.2. We can see that both equations have a similar amplitude and similar vertical shift, but notice that equation (2) is not in our standard form for the equation of a sinusoid. So we cannot immediately tell what that equation is saying about the period and the phase shift. In this next activity, we will learn how to determine the period and phase shift for sinusoids whose equations are of the form \(y = a\sin(bt + c) + d\) or \(y = a\cos(bt + c) + d\).

Activity 2.19 (Working with Sinusoids that Are Not In Standard Form)

So far, we have been working with sinusoids whose equations are of the form \(y = A\sin(B(t - C)) + D\) or \(y = A\cos(B(t - C)) + D\). When written in this form, we can use the values of \(A, B, C\), and \(D\) to determine the amplitude,

Figure \(\PageIndex{4}\): Hours of Daylight in Edinburgh

period, phase shift, and vertical shift of the sinusoid. We must always remember, however, that to to this, the equation must be written in exactly this form. If we have an equation in a slightly different form, we have to determine if there is a way to use algebra to rewrite the equation in the form \(y = A\sin(B(t - C)) + D\) or \(y = A\cos(B(t - C)) + D\). Consider the equation \(y = 2\sin(3t + \dfrac{\pi}{2})\)

- Use a graphing utility to draw the graph of this equation with \(-\dfrac{\pi}{3} \leq t \leq \dfrac{2\pi}{3} \)and. Does this seem to be the graph of a sinusoid? If so, can you use the graph to find its amplitude, period, phase shift, and vertical shift?
- It is possible to verify any observations that were made by using a little algebra to write this equation in the form \(y = A\sin(B(t - C)) + D\). The idea is to rewrite the argument of the sine function, which is \(3t + \dfrac{\pi}{2}\) by “factoring a 3” from both terms. This may seem a bit strange since we are not used to using fractions when we factor. For example, it is quite easy to factor \(3y + 12\) as \[3y + 12 = 3(y + 4)\]
- In order to “factor” three from \(\dfrac{\pi}{2}\), we basically use the fact that \(3 \cdot \dfrac{1}{3} = 1\)
Figure \(\PageIndex{5}\): Hours of Daylight in Edinburgh

So we can write \[\dfrac{\pi}{2} = 3 \cdot \dfrac{1}{3} \cdot \dfrac{\pi}{6} = 3 \cdot \dfrac{\pi}{6}\]

Now rewrite \(3t + \dfrac{\pi}{2}\) by factoring a 3 and then rewrite \(y = 2\sin(3t + \dfrac{\pi}{2})\) in the form \(y = A\sin(B(t - C)) + D\).

3. What is the amplitude, period, phase shift, and vertical shift for \(y = 2\sin(3t + \dfrac{\pi}{2})\)?

In Activity 2.19, we did a little factoring to show that \[y = 2\sin(3t + \dfrac{\pi}{2}) = 2\sin(3(t + \dfrac{\pi}{6}))\] \[y = 2\sin(3(t - (-\dfrac{\pi}{6})))\]

So we can see that we have a sinusoidal function and that the amplitude is 3, the period is 2, the phase shift is \(\dfrac{2\pi}{3}\), and the vertical shift is 0.

In general, we can see that if \(b\) and \(c\) are real numbers, then \[bt + c = b(t + \dfrac{c}{b}) = b(t - (-\dfrac{c}{d}))\]This means that \[y = a\sin(bt + c) + d = a\sin(b(t - (-\dfrac{c}{d}))) + d\]

So we have the following result:

If \(y = a\sin(bt + c) + d\) or \(y = a\cos(bt + c) + d\), then

- The amplitude of the sinusoid is \(|a|\).
- The period of the sinusoid is \(\dfrac{2\pi}{b}\)
- The phase shift of the sinusoid is \(-\dfrac{c}{b}\)
- The vertical shift of the sinusoid is \(d\).

Exercise \(\PageIndex{3}\)

- Determine the amplitude, period, phase shift, and vertical shift for each of the following sinusoids. Then use this information to graph one complete period of the sinusoid and state the coordinates of a high point, a low point, and a point where the sinusoid crosses the center line.
(a) \(y = -2.5\cos(3x + \dfrac{\pi}{3}) + 2\)

(b) \(y = 4\sin(100\pi x - \dfrac{\pi}{4})\)

- We determined two sinusoidal models for the number of hours of daylight in Edinburgh, Scotland shown in Table 2.2. These were
\[y = 5.22\sin(\dfrac{\pi}{6}(t - 3.7)) + 12.28\] \[y = 5.153\sin(0.511t - 1.829) + 12.174\]

- The second equation was determined using a sine regression feature on a graphing utility. Compare the amplitudes, periods, phase shifts, and vertical shifts of these two sinusoidal functions.

**Answer**-
1. (a) The amplitude is \(2.5\).

The period is \(\dfrac{2\pi}{3}\).

The phase shift is \(-\dfrac{\pi}{9}\). The vertical shift is \(2\).

(b) The amplitude is \(4\).

The period is \(\dfrac{1}{50}\)

The phase shift is \(\dfrac{1}{400}\).

The vertical shift is \(0\).

first equation

second equation

\(5.22\)

amplitude

\(5.153\)

\(12\)

period

\(12.30\)

\(3.7\)

phase shift

\(3.58\)

\(12.28\)

vertical shift

\(12.174\)

## Supplement – Sine Regression Using Geogebra

Before giving written instructions for creating a sine regression equation in Geogebra, it should be noted that there is a Geogebra Playlist on the Grand Valley State University Math Channel on YouTube. The web address is http://gvsu.edu/s/QA

The video screen casts that are of most interest for now are:

- Geogebra–BasicGraphing
- Geogebra–CopyingtheGraphics View
- Geogebra – Plotting Points
- Geogebra – Sine Regression

To illustrate the procedure for a sine regression equation using Geogebra, we will use the data in Table 2.2 on page 115.

**Step 1**. Set a viewing window that is appropriate for the data that will be used.

**Step 2**. Enter the data points. There are three ways to do this.

- Perhaps the most efficient way to enter points is to use the spreadsheet view. To do this, click on the View Menu and select Spreadsheet. A small spreadsheet will open on the right. Although you can use any sets of rows and columns, an easy way is to use cells A1 and B1 for the first data point, cells A2 and B2 for the second data point, and so on. So the first few rows in the spreadsheet would be:
\(A\) \(B\) 1 1 7.08 2 2 8.6 3 3 10.73

Once all the data is entered, to plot the points, select the rows and columns in the spreadsheet that contain the data, then click on the small downward arrow on the bottom right of the button with the label \({1, 2}\) and select “Create List of Points.” A small pop-up screen will appear in which the list of points can be given a name. The default name is “list‘” but that can be changed if desired. Now click on the Create button in the lower right side of the pop-up screen. If a proper viewing window has been set, the points should appear in the graphics view. Finally, close the spreadsheet view.

- Enter each point separately as an order pair. For example, for the first point in Table 2.2, we would enter \((1, 7.08)\). In this case, each point will be given a name such as \(A, B, C\), etc.
- Enter all the points in a list. For example (for a smaller set of points), we could enter something like \[pts = {(-3, 3), (-2, -1), (0, 1), (1, 3), (3, 0)}\)Notice that the list of ordered pairs must be enclosed in braces.

**Step 3**. Use the FitSin command. How this is used depends on which option was used to enter and plot the data points.

- If a list of points has been created (such as one named list1), simply enter \[f(x) = FitSin[list1]\] All that is needed is the name of the list inside the brackets.
- If separate data points have been enter, include the names of all the points inside the brackets and separate them with commas. An abbreviated version of this is \[f(x) = FitSin[A, B, C]\) The sine regression equation will now be shown in the Algebra view and will be graphed in the graphics view.

**Step 4**. Select the rounding option to be used. (This step could be performed at any time.) To do this, click on the Options menu and select Rounding.

Summary

In this section, we studied the following important concepts and ideas:

- The
**frequency**of a sinusoidal function is the number of periods (or cycles) per unit time. \[frequency = \dfrac{1}{period}\] - A
**mathematical model**is a function that describes some phenomenon. For objects that exhibit periodic behavior, a sinusoidal function can be used as a model since these functions are periodic.

To determine a sinusoidal function that models a periodic phenomena, we need to determine the amplitude, the period, and the vertical shift for the periodic phenomena. In addition, we need to determine whether to use a cosine function or a sine function and the resulting phase shift.A sine regression equation can be determined that is a mathematical “best fit” for data from a periodic phenomena.