AP Precalculus · Topic 3.7 · Reading guide, about 5 min

Modeling with sinusoidal functions

Build sinusoidal models from context or data using max, min, period and a known point; interpret parameters and judge limits.

In one minute

Many real quantities repeat on a steady schedule: ocean tides, the height of a rider on a Ferris wheel, daylight hours over a year, the temperature through a day. A sinusoidal function can describe them with just a few numbers.

The skill is turning a description in words into aa, bb, cc and dd, then using the model to predict and to say what the numbers mean. You also need to know when the model stops being trustworthy.

Key terms

Sinusoidal model
An equation of the form y=asin⁡(b(t+c))+dy=a\sin(b(t+c))+d or the cosine version, fit to a repeating real situation.
Midline value
The average of the maximum and minimum. It is the center level around which the quantity oscillates.
Amplitude
Half the difference between the maximum and minimum, in the units of the output.
Period
The time for one full cycle, in the units of the input. Then b=2πperiodb=\frac{2\pi}{\text{period}}.
Frequency
The number of cycles per unit of input, the reciprocal of the period.
Phase
The horizontal placement of the cycle. It is set by matching a known peak, trough or midline crossing to the model.
Sinusoidal regression
A calculator or software procedure that finds the sine curve closest to a data set, returning values for aa, bb, cc and dd.
Extrapolation
Using a model outside the range of data it was fit to. Predictions here deserve extra caution.

A four-step plan

Almost every modeling problem follows the same plan. First use the maximum and minimum: the midline is d=max⁡+min⁡2d=\frac{\max+\min}{2} and the amplitude is a=max⁡−min⁡2a=\frac{\max-\min}{2}.

Second, find the period from the time between two matching points, such as peak to peak or trough to trough. If you are given peak to trough, that is only half a period, so double it. Then set b=2πperiodb=\frac{2\pi}{\text{period}}.

Third, choose cosine or sine and place the cycle. Cosine starts at a maximum, so if the first known peak is at t=t0t=t_0, then y=acos⁡(b(t−t0))+dy=a\cos(b(t-t_0))+d works directly. Sine starts on the midline going up, so shift it to a midline crossing instead.

Fourth, test the model at one data point you did not use to build it. A quick check catches sign and shift errors before they cost you points.

Worked example: a tide

At a harbor, the water depth reaches a high of 9 feet at 3 hours after midnight and a low of 1 foot 6 hours later. Assume the pattern repeats steadily. Let tt be hours after midnight and h(t)h(t) the depth in feet.

Midline: d=9+12=5d=\frac{9+1}{2}=5. Amplitude: a=9−12=4a=\frac{9-1}{2}=4.

Period: high to low is half a cycle and takes 6 hours, so the full period is 12 hours. Then b=2π12=π6b=\frac{2\pi}{12}=\frac{\pi}{6}.

Phase: the first high occurs at t=3t=3, so use cosine with a right shift of 3. The model is h(t)=4cos⁡ ⁣(π6(t−3))+5h(t)=4\cos\!\big(\tfrac{\pi}{6}(t-3)\big)+5.

Check: at t=3t=3 we get 4cos⁡0+5=94\cos 0+5=9, the high. At t=9t=9 we get 4cos⁡π+5=14\cos\pi+5=1, the low. Now predict: at t=5t=5, the inside is π6⋅2=π3\frac{\pi}{6}\cdot 2=\frac{\pi}{3}, and cos⁡π3=12\cos\frac{\pi}{3}=\frac12, so h(5)=4⋅12+5=7h(5)=4\cdot\frac12+5=7 feet.

An equivalent sine model is h(t)=4sin⁡ ⁣(π6t)+5h(t)=4\sin\!\big(\tfrac{\pi}{6}t\big)+5, because the depth crosses the midline going up at t=0t=0 and then rises to its high at t=3t=3. Both models give 7 feet at t=5t=5.

Turning a context clue into a parameter
What the problem tells youWhat you computeParameter
Highest and lowest valuesHalf the differenceaa (amplitude)
Highest and lowest valuesHalf the sumdd (midline)
Time from peak to next peak2πperiod\frac{2\pi}{\text{period}}bb
A known peak, trough or midline crossingMatch it to the start of a cosine or sine cyclecc (phase shift)

Regression and interpretation

When you have a table of measurements instead of a clean maximum and minimum, use a graphing calculator or software to run sinusoidal regression. It returns the four parameters for the best-fitting curve. Plot the data with the curve to confirm the fit looks reasonable; if the points do not clearly repeat, the model is a poor choice.

Always explain parameters with units. In the tide model, 4 means the depth swings 4 feet above and below the average level, 5 means the average depth is 5 feet, and 12 means the pattern repeats every 12 hours. The phase shift of 3 hours says when a high tide occurs.

Also be ready to answer questions such as when the output first reaches a given value. This means solving an equation, which topic 3.10 develops.

Limits of the model

A sinusoid repeats forever with identical highs and lows. Real tides vary with the moon and weather, daylight hours differ slightly from year to year, and a person on a wheel does not ride forever. A model is best inside the range of data and the conditions it was built from.

Also check that the output makes sense. A model for the number of customers cannot go negative, so a sinusoid for it only makes sense if its minimum stays above zero. Say clearly when a prediction is far from the data, and note that the true pattern may drift or change shape.

How it connects

  • Back to 3.5: period, amplitude and midline are the vocabulary you apply to real data here.
  • Back to 3.6: the same four-parameter equation is used, but you find the parameters from context rather than from a drawing.
  • Forward to 3.10: asking when a quantity reaches a certain level is solving a trigonometric equation.

Common mistakes

  • Using a half cycle as the period. Peak to trough is half a period. Double it before computing bb.
  • **Setting bb equal to the period.** The period is 2πb\frac{2\pi}{b}, so b=2πperiodb=\frac{2\pi}{\text{period}}.
  • Mixing up amplitude with the full swing. Amplitude is half of max minus min, not the whole difference.
  • Skipping units in an interpretation. Say what the number means in the situation, including its unit.

How it shows up on the exam

  • A context with a maximum, a minimum and a time between peaks, asking you to write a model and predict a value.
  • A table of data and a regression output, asking you to interpret a parameter or evaluate the model at a given input.
  • A short explanation of why the model might not hold far from the observed data.

Check yourself

  1. A Ferris wheel has a lowest point of 2 meters and a highest point of 32 meters, and one turn takes 20 minutes. What are the midline, amplitude and bb?
  2. Why does it matter whether a given time interval is peak to peak or peak to trough?
  3. How would you check whether your model fits a data point you did not use?
  4. Give a situation where a sinusoidal model breaks down, and say why.

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.