Modeling with Trigonometric Functions
By the end of this section, you will be able to:
- Determine the amplitude and period of sinusoidal functions
- Model equations and graph sinusoidal functions
- Model periodic behavior
- Model harmonic motion functions
Suppose we charted the average daily temperatures in New York City over the course of one year. We would expect to find the lowest temperatures in January and February and highest in July and August. This familiar cycle repeats year after year, and if we were to extend the graph over multiple years, it would resemble a periodic function.
Many other natural phenomena are also periodic. For example, the phases of the moon have a period of approximately 28 days, and birds know to fly south at about the same time each year.
So how can we model an equation to reflect periodic behavior? First, we must collect and record data. We then find a function that resembles an observed pattern. Finally, we make the necessary alterations to the function to get a model that is dependable. In this section, we will take a deeper look at specific types of periodic behavior and model equations to fit data.
Determining the Amplitude and Period of a Sinusoidal Function
Any motion that repeats itself in a fixed time period is considered periodic motion and can be modeled by a sinusoidal function. The amplitude of a sinusoidal function is the distance from the midline to the maximum value, or from the midline to the minimum value. The midline is the average value. Sinusoidal functions oscillate above and below the midline, are periodic, and repeat values in set cycles. Recall that the period of the sine function and the cosine function is . In other words, for any value of ,
Standard Form of Sinusoidal Equations. The general forms of a sinusoidal equation are given as
where , is related to period such that the , is the phase shift such that denotes the horizontal shift, and represents the vertical shift from the graph’s parent graph.
Note that the models are sometimes written as or , and period is given as .
The difference between the sine and the cosine graphs is that the sine graph begins with the average value of the function and the cosine graph begins with the maximum or minimum value of the function.
Example. Show the transformation of the graph of into the graph of .
Solution. Consider the series of graphs below and the way each change to the equation changes the image.
(a) The basic graph of .
(b) Changing the amplitude from to generates the graph of .
(c) The period of the sine function changes with the value of , such that . Here we have , which translates to a period of . The graph completes one full cycle in units.
(d) The graph displays a horizontal shift equal to , or .
(e) Finally, the graph is shifted vertically by the value of . In this case, the graph is shifted up by units.
Example. Find the amplitude and period of the following functions and graph one cycle.
ⓐ ⓑ ⓒ
Solution. ⓐ involves sine, so we use the form .
We know that is the amplitude, so the amplitude is . Period is , so the period is
See the graph below.
ⓑ involves sine, so we use the form .
Amplitude is , so the amplitude is . Since is negative, the graph is reflected over the -axis. Period is , so the period is
The graph is shifted to the left by units. See below.
ⓒ involves cosine, so we use the form . Amplitude is , so the amplitude is . The period is . See below. This is the standard cosine function shifted up three units.
What are the amplitude and period of the function? Give the amplitude, then the period, separated by a comma.
amplitude, periodCompare to: the amplitude isand the period is.Finding Equations and Graphing Sinusoidal Functions
One method of graphing sinusoidal functions is to find five key points. These points will correspond to intervals of equal length representing of the period. The key points will indicate the location of maximum and minimum values. If there is no vertical shift, they will also indicate -intercepts. For example, suppose we want to graph the function . We know that the period is , so we find the interval between key points as follows.
Starting with , we calculate the first -value, add the length of the interval to , and calculate the second -value. We then add repeatedly until the five key points are determined. The last value should equal the first value, as the calculations cover one full period. Making a table similar to the one below, we can see these key points clearly on the graph shown after it.
Example. Graph the function using amplitude, period, and key points.
Solution. The amplitude is . The period is . (Recall that we sometimes refer to as .) One cycle of the graph can be drawn over the interval . To find the key points, we divide the period by . Make a table similar to the one below, starting with and then adding successively to and calculate . See the graph after it.
For, at what-value (for) does the function first reach its maximum?
The sine function reaches its maximum when its argument is; solve.Modeling Periodic Behavior
We will now apply these ideas to problems involving periodic behavior.
Example. The average monthly temperatures for a small town in Oregon are given in the table below. Find a sinusoidal function of the form that fits the data (round to the nearest tenth) and sketch the graph.
| Month | Temperature, |
|---|---|
| January | |
| February | |
| March | |
| April | |
| May | |
| June | |
| July | |
| August | |
| September | |
| October | |
| November | |
| December |
Solution. Recall that amplitude is found using the formula
Thus, the amplitude is
The data covers a period of months, so which gives .
The vertical shift is found using the following equation.
Thus, the vertical shift is
So far, we have the equation .
To find the horizontal shift, we input the and values for the first month and solve for .
We have the equation . See the graph below.
Example. The hour hand of the large clock on the wall in Union Station measures inches in length. At noon, the tip of the hour hand is inches from the ceiling. At 3 PM, the tip is inches from the ceiling, and at 6 PM, inches. At 9 PM, it is again inches from the ceiling, and at midnight, the tip of the hour hand returns to its original position inches from the ceiling. Let equal the distance from the tip of the hour hand to the ceiling hours after noon. Find the equation that models the motion of the clock and sketch the graph.
Solution. Begin by making a table of values as shown below.
| Points to plot | ||
|---|---|---|
| Noon | in | |
| 3 PM | in | |
| 6 PM | in | |
| 9 PM | in | |
| Midnight | in |
To model an equation, we first need to find the amplitude.
The clock’s cycle repeats every hours. Thus,
The vertical shift is
There is no horizontal shift, so . Since the function begins with the minimum value of when (as opposed to the maximum value), we will use the cosine function with the negative value for . In the form , the equation is
See the graph below.
Example. The height of the tide in a small beach town is measured along a seawall. Water levels oscillate between feet at low tide and feet at high tide. On a particular day, low tide occurred at 6 AM and high tide occurred at noon. Approximately every hours, the cycle repeats. Find an equation to model the water levels.
Solution. As the water level varies from ft to ft, we can calculate the amplitude as
The cycle repeats every hours; therefore, is
There is a vertical translation of . Since the value of the function is at a maximum at , we will use the cosine function, with the positive value for .
See the graph below.
The daily temperature in the month of March in a certain city varies from a low ofto a high of. Lettingcorrespond to noon and taking the daily high to occur at 6 PM, write a sinusoidal function, withandin hours, in, that models the daily temperature.
The amplitude is half the range between the low and high, the midlineis their average, and the period ishours since the temperature cycle is daily.Example. The average person’s blood pressure is modeled by the function , where represents the blood pressure at time , measured in minutes. Interpret the function in terms of period and frequency. Sketch the graph and find the blood pressure reading.
Solution. The period is given by
In a blood pressure function, frequency represents the number of heart beats per minute. Frequency is the reciprocal of period and is given by
See the graph below.
Analysis. Blood pressure of is considered to be normal. The top number is the maximum or systolic reading, which measures the pressure in the arteries when the heart contracts. The bottom number is the minimum or diastolic reading, which measures the pressure in the arteries as the heart relaxes between beats, refilling with blood. Thus, normal blood pressure can be modeled by a periodic function with a maximum of and a minimum of .
Modeling Harmonic Motion Functions
Harmonic motion is a form of periodic motion, but there are factors to consider that differentiate the two types. While general periodic motion applications cycle through their periods with no outside interference, harmonic motion requires a restoring force. Examples of harmonic motion include springs, gravitational force, and magnetic force.
Simple Harmonic Motion
A type of motion described as simple harmonic motion involves a restoring force but assumes that the motion will continue forever. Imagine a weighted object hanging on a spring. When that object is not disturbed, we say that the object is at rest, or in equilibrium. If the object is pulled down and then released, the force of the spring pulls the object back toward equilibrium and harmonic motion begins. The restoring force is directly proportional to the displacement of the object from its equilibrium point. When , .
Simple Harmonic Motion. We see that simple harmonic motion equations are given in terms of displacement:
where is the amplitude, is the period, and is the frequency, or the number of cycles per unit of time.
Example. For the given functions,
- Find the maximum displacement of an object.
- Find the period or the time required for one vibration.
- Find the frequency.
- Sketch the graph.
ⓐ ⓑ ⓒ
Solution. ⓐ
- The maximum displacement is equal to the amplitude, , which is .
- The period is .
- The frequency is given as .
- See the graph below. The graph indicates the five key points.
ⓑ
- The maximum displacement is .
- The period is .
- The frequency is .
- See the graph below.
ⓒ
- The maximum displacement is .
- The period is .
- The frequency is .
- See the graph below.
Damped Harmonic Motion
In reality, a pendulum does not swing back and forth forever, nor does an object on a spring bounce up and down forever. Eventually, the pendulum stops swinging and the object stops bouncing and both return to equilibrium. Periodic motion in which an energy-dissipating force, or damping factor, acts is known as damped harmonic motion. Friction is typically the damping factor.
In physics, various formulas are used to account for the damping factor on the moving object. Some of these are calculus-based formulas that involve derivatives. For our purposes, we will use formulas for basic damped harmonic motion models.
Damped Harmonic Motion. In damped harmonic motion, the displacement of an oscillating object from its rest position at time is given as
where is a damping factor, is the initial displacement and is the period.
Example. Model the equations that fit the two scenarios and use a graphing utility to graph the functions: Two mass-spring systems exhibit damped harmonic motion at a frequency of cycles per second. Both have an initial displacement of cm. The first has a damping factor of and the second has a damping factor of .
Solution. At time , the displacement is the maximum of cm, which calls for the cosine function. The cosine function will apply to both models.
We are given the frequency of cycles per second. Thus,
The first spring system has a damping factor of . Following the general model for damped harmonic motion, we have
models the motion of the first spring system. The graph below models the motion of the first spring system.
The second spring system has a damping factor of and can be modeled as
The graph below models the motion of the second spring system.
Analysis. Notice the differing effects of the damping constant. The local maximum and minimum values of the function with the damping factor decreases much more rapidly than that of the function with .
The equationrepresents damped harmonic motion. Using the model, find,, and the frequency, in that order, separated by commas.
,, frequencyMatch the equation term by term against: read offanddirectly, then compute.Example. Find and graph a function of the form that models the information given.
ⓐ , , ⓑ , ,
Solution. Substitute the given values into the model. Recall that period is and frequency is .
ⓐ . See the graph below.
ⓑ . See the graph below.
Example. Find and graph a function of the form that models the information given.
ⓐ , , ⓑ , ,
Solution. Calculate the value of and substitute the known values into the model.
ⓐ As period is , we have
The damping factor is given as and the amplitude is . Thus, the model is . See the graph below.
ⓑ As frequency is , we have
The damping factor is given as and the amplitude is . The model is . Because the oscillations at this frequency are so tightly packed, the curve reads at ordinary scale as the two bounding envelope curves closing in on the axis, a rapid decay within the first couple of seconds; the source’s own printed figure additionally shows a magnified inset of a short window revealing the individual sinusoidal cycles hidden inside that envelope.
Analysis. A comparison of the last two examples illustrates how we choose between the sine or cosine functions to model sinusoidal criteria. We see that the cosine function is at the maximum displacement when , and the sine function is at the equilibrium point when . For example, consider the equation from the previous example. We can see from the graph that when , , which is the initial amplitude. Check this by setting in the cosine equation:
Using the sine function yields
Thus, cosine is the correct function.
Write the equation for damped harmonic motion given,, and.
Usewith.Example. A spring measuring inches in natural length is compressed by inches and released. It oscillates once every seconds, and its amplitude decreases by every second. Find an equation that models the position of the spring seconds after being released.
Solution. The amplitude begins at in. and decreases each second. Because the spring is initially compressed, we will write as a negative value. We can write the amplitude portion of the function as
We put in the form as follows:
Now let’s address the period. The spring cycles through its positions every seconds; this is the period, and we can use the formula to find .
The natural length of inches is the midline. We will use the cosine function, since the spring starts out at its maximum displacement. This portion of the equation is represented as
Finally, we put both functions together. Our model for the position of the spring at seconds is given as
See the graph below.
A mass suspended from a spring is raisedcm above its resting position and released at time. Assuming no damping, it is observed that the mass first returns to its highest position aftersecond. Find a function to model this motion relative to its initial resting position.
No damping means a constant amplitude, and the mass starts at its maximum, so use cosine with periodsecond.Example. A guitar string is plucked and vibrates in damped harmonic motion. The string is pulled and displaced cm from its resting position. After seconds, the displacement of the string measures cm. Find the damping constant.
Solution. The displacement factor represents the amplitude and is determined by the coefficient in the model for damped harmonic motion. The damping constant is included in the term . It is known that after seconds, the local maximum measures one-half of its original value. Therefore, we have the equation
Use algebra and the laws of exponents to solve for .
Then use the laws of logarithms.
The damping constant is .
Bounding Curves in Harmonic Motion
Harmonic motion graphs may be enclosed by bounding curves. When a function has a varying amplitude, such that the amplitude rises and falls multiple times within a period, we can determine the bounding curves from part of the function.
Example. Graph the function .
Solution. The graph produced by this function will be shown in two parts. The first graph will be the exact function , shown below, and the second graph is the exact function plus a bounding function, shown after it. The graphs look quite different.
Analysis. The curves and are bounding curves: they bound the function from above and below, tracing out the high and low points. The harmonic motion graph sits inside the bounding curves. This is an example of a function whose amplitude not only decreases with time, but actually increases and decreases multiple times within a period.
Key equations
| standard form of sinusoidal equation | or |
|---|---|
| simple harmonic motion | or |
| damped harmonic motion | or |
Key concepts
- Sinusoidal functions are represented by the sine and cosine graphs. In standard form, we can find the amplitude, period, and horizontal and vertical shifts.
- Use key points to graph a sinusoidal function. The five key points include the minimum and maximum values and the midline values.
- Periodic functions can model events that reoccur in set cycles, like the phases of the moon, the hands on a clock, and the seasons in a year.
- Harmonic motion functions are modeled from given data. Similar to periodic motion applications, harmonic motion requires a restoring force. Examples include gravitational force and spring motion activated by weight.
- Damped harmonic motion is a form of periodic behavior affected by a damping factor. Energy dissipating factors, like friction, cause the displacement of the object to shrink.
- Bounding curves delineate the graph of harmonic motion with variable maximum and minimum values.
Key terms
amplitude — the distance from the midline to the maximum or minimum value of a sinusoidal function. damped harmonic motion — a form of harmonic motion affected by a damping factor that dissipates energy, causing the local maximum and minimum values of the displacement to shrink toward the equilibrium value. frequency — the reciprocal of the period, , giving the number of cycles per unit of time. harmonic motion — a kind of periodic motion attributable to a restoring force such as spring tension or gravity. midline — the average value of a sinusoidal function, the vertical shift from the parent graph. periodic motion — motion that repeats itself in a fixed time period. simple harmonic motion — a periodic motion, given as or , that involves a restoring force but assumes the motion will continue forever.
Practice
Determine the amplitude and period of sinusoidal functions
The displacement, in centimeters, of a mass suspended by a spring is modeled by the function, whereis measured in seconds. Find the amplitude (in cm) and the period (in seconds) of this displacement, in that order, separated by a comma.
amplitudecm, periodsCompare to: the amplitude isand the period is.The displacement, in centimeters, of a mass suspended by a spring is modeled by the function, whereis measured in seconds. Find the amplitude (in cm) and the period (in seconds) of this displacement, in that order, separated by a comma.
amplitudecm, periodsCompare to: the amplitude isand the period is.Model equations and graph sinusoidal functions
Find a possible formula for the trigonometric function represented by the table below.
Find a possible formulafor the trigonometric function represented by the table above.
The amplitude is half the range, the midline is the average of the extreme values, and the period is the-distance between repeats of the same value.Find a possible formula for the trigonometric function represented by the table below.
Find a possible formulafor the trigonometric function represented by the table above.
The function equals its midline atand is increasing there, which points to a sine model; then find the amplitude, midline, and period from the extreme values and their spacing.Model periodic behavior
Outside temperatures over the course of a day can be modeled as a sinusoidal function. Suppose the high temperature ofoccurs at 5 PM and the average temperature for the day is. Find the temperature, to the nearest degree (in), at 9 AM.
Buildwithin hours after midnight, since the amplitude is the high minus the average and the maximum occurs at 5 PM (); then evaluate at.Outside temperatures over the course of a day can be modeled as a sinusoidal function. Suppose the temperature varies betweenandduring the day and the average daily temperature first occurs at 10 AM. How many hours after midnight does the temperature first reach?
hours after midnight (8 AM)Buildwithin hours after midnight, since the function crosses its midline, increasing, at; then solvefor the smallest.Model harmonic motion functions
A spring attached to the ceiling is pulledcm down from equilibrium and released. The amplitude decreases byeach second. The spring oscillatestimes each second. Find a functionthat models the distance, in cm, the end of the spring is from equilibriumseconds after being released.
The decay factor per second is, and oscillatingtimes each second gives.A spring attached to the ceiling is pulledcm down from equilibrium and released. Afterseconds, the amplitude has decreased tocm. The spring oscillatestimes each second. Find a functionthat models the distance, in cm, the end of the spring is from equilibriumseconds after being released. Round the decay base to four decimal places.
Solvefor the per-second decay factor, and usefor the oscillation rate.This section is adapted from Precalculus 2e, Section 7.6: Modeling with Trigonometric Functions by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted the decorative photograph of a clock face (Figure 1); recreated all twenty-five instructional figures as accessible spec-first SVGs built from exact coordinates rather than pasted images — the five-panel transformation sequence of Example 1 (simplified its dense every- axis labels to every-, since the shape and endpoints carry the instructional content, the same simplification the section 6.3 page already applies to a comparable overlay figure); the amplitude/period graphs of Example 2; the key-point table graphs of the “Finding Equations” discussion and Example 3; the temperature, clock, and tide models of Examples 4–6 (each recreated with its labeled data points and dashed midline, omitting the source’s additional dashed guide-line grid connecting every point to both axes as a non-mathematical layout device); the blood pressure graph of Example 7; the three key-point graphs of Example 8; the six damped-harmonic-motion graphs of Examples 9–11, each drawn as a polylines trace sampled at high resolution directly from its exact printed formula (recorded here for verification: ; ; ; ; ; ) — the sixth (Example 11b’s , source Figure 20) is omitted entirely and described in the adjoining prose instead, since at that frequency the un-magnified curve is visually indistinguishable from its envelope and apfigure has no primitive for the magnified callout-box inset the source relies on; the spring-oscillation graph of Example 12, similarly a polylines trace of ; and the two oscillating-cosine graphs of Example 14 (, plus its two cosine bounding curves), the first a polylines trace and the second the same trace with the two exact cosine-kind bounding curves overlaid. Omitted the “Access these online resources” media link. The March-temperature Try It adds “taking the daily high to occur at 6 PM” and “, in hours” to its question: the source states only the low and the high, which leaves the sign of (equivalently, whether the high falls at 6 AM or 6 PM) undetermined while its own key assumes , and the engine grades one keyed function strictly, so the constraint the key already assumes is stated rather than letting an equally valid be marked wrong. Every retained Try It became a real fillin component: the two-value “amplitude and period” Try It after Example 2 and the “find , , and the frequency” Try It after Example 9 are each graded as a named-order comma-separated list, since the source itself asks for multiple values from one item; the key-points Try It after Example 3 (originally “graph using its five key points”) was recast asking for the -value of the curve’s first maximum, the one key point a fill-in can grade without handing back the whole answer table. The source’s own printed solution to the damped-harmonic-motion Try It after Example 9 — “initial displacement , damping constant ” for — contradicts the module’s own model , under which the printed equation reads (not ) and, by the sign convention the module uses everywhere else it solves for , (not ); the question here was reworded to name the model explicitly and key the mathematically correct values , , frequency (frequency was already correct as printed) rather than ship an answer that would mark a correct learner wrong. Adapted eight selected end-of-section exercises — two amplitude/period reads, two table-to-formula fits, two periodic-behavior word problems, and two damped-spring word problems — into eight interactive fill-ins in a closing Practice block, one pair per objective.