Educerie

Educerie · AP · Precalculus

AP Precalculus 3.7

Sinusoidal Function Context and Data Modeling

How do we build a sinusoid from a description or a data set, and what can the model tell us about the world, and where does it stop being useful?

What you will learn

  • Understand that four readings (highest, lowest, one cycle, one known pair) fix a sinusoidal model
  • Know how to read a regression's c as a shift of -c ÷ b
  • Know that a model applies only over its contextual domain

You must be able to

  1. Build a sinusoidal model from a described cycle
  2. Predict an output and find the times a value is reached, with a calculator in radian mode
  3. Count solutions inside the contextual domain
  4. Read period and phase shift from a regression output
  5. Check a model at two points before using it
  6. State the limits of a model beyond its data

In the exam. Section I, Part A and Part B multiple choice: pick the model that fits a described cycle, or use a given model to find when a value is reached. Section II Question 3 is a periodic context with no calculator: five points on a cycle, then the constants aa, bb, cc, dd, then behaviour and concavity. Real tides, daylight, wheels and temperatures appear every year.

1From readings to constants

Use the same four steps as Topic 3.6. The context supplies the numbers.

  1. Midline dd: the average of the highest and the lowest values.
  2. Amplitude aa: half of highest minus lowest.
  3. Period and bb: the interval between consecutive maxima, or between consecutive minima. Then b=2πperiodb = \frac{2\pi}{\text{period}}.
  4. Phase shift: use one actual pair of values. A maximum is easiest: a cosine has its maximum at the start of its cycle. The input of the maximum is the shift.

Maxima and minima can both be used. The distance from a maximum to the next minimum is half a period.

2A worked model: the tide

Worked example 1 (invented). At a harbour, the depth of water is greatest, 5.5 metres, at 6 hours after midnight. It is least, 2.5 metres, 6 hours later. The cycle repeats. Let h(t)h(t) be the depth in metres at tt hours after midnight.

An invented tide model: depth in metres against hours after midnight 3 6 9 12 15 18 21 24 2.5 4 5.5 7 0 h (m) t (hours) 6 to 18: one period
Figure 1 · An invented tide model. The depth is 5.5 m at t = 6 and t = 18 and 2.5 m at t = 12, so the period is 12 hours.
  • Highest 5.5 and lowest 2.5, so the midline is d=5.5+2.52=4d = \frac{5.5 + 2.5}{2} = 4 and the amplitude is a=5.5−2.52=1.5a = \frac{5.5 - 2.5}{2} = 1.5.
  • The depth is greatest at t=6t = 6 and 6 hours later is least. That is half a period, so the period is 12 hours and b=2π12=π6b = \frac{2\pi}{12} = \frac{\pi}{6}.
  • The maximum is at t=6t = 6, so with a cosine the shift is 6 to the right:

h(t)=1.5cos⁡(π6(t−6))+4. h(t) = 1.5\cos\left(\frac{\pi}{6}(t - 6)\right) + 4.

Check against Figure 1. At t=6t = 6: cos⁡0=1\cos 0 = 1, so h=5.5h = 5.5. At t=12t = 12: π6(6)=π\frac{\pi}{6}(6) = \pi, cos⁡π=−1\cos\pi = -1, so h=2.5h = 2.5. Both match. At t=18t = 18 the cosine is back at 1, so h=5.5h = 5.5 again. The two maxima at 6 and 18 are 12 apart, which is the period.

The same graph is h(t)=1.5sin⁡(π6(t−3))+4h(t) = 1.5\sin\left(\frac{\pi}{6}(t - 3)\right) + 4. Here the sine starts on the midline, going up, at t=3t = 3. Both forms are correct. A question that asks for a sine uses this one.

3Using the model

Predicting an output. Put the input into the formula.

Worked example 2. Find the depth at t=8t = 8.

  • h(8)=1.5cos⁡(π6(2))+4=1.5cos⁡π3+4=1.5(0.5)+4=4.75h(8) = 1.5\cos\left(\frac{\pi}{6}(2)\right) + 4 = 1.5\cos\frac{\pi}{3} + 4 = 1.5(0.5) + 4 = 4.75 metres.

Finding an input. Set the model equal to the target value and solve. With no calculator, use exact values (Topic 3.10). With a calculator, solve by graphing the model and the target line and finding the intersections.

Worked example 3 (Part B, graphing calculator). For how long in one cycle is the depth at least 5 metres? Give the answer to three decimal places.

  • Graph y=1.5cos⁡(π6(x−6))+4y = 1.5\cos\left(\frac{\pi}{6}(x - 6)\right) + 4 and the line y=5y = 5. Take the window 0≤x≤120 \le x \le 12.
  • The intersections are at x≈4.394x \approx 4.394 and x≈7.606x \approx 7.606, on either side of the maximum at 6.
  • The depth is at least 5 between them: 7.606−4.394=3.2137.606 - 4.394 = 3.213 hours.

You can check it by hand. 1.5cos⁡u+4=51.5\cos u + 4 = 5 gives cos⁡u=23\cos u = \frac{2}{3}, and u=±arccos⁡23≈±0.841u = \pm\arccos\frac{2}{3} \approx \pm 0.841. Then t−6=6πu≈±1.606t - 6 = \frac{6}{\pi}u \approx \pm 1.606, so t≈4.394t \approx 4.394 and 7.6067.606.

A decimal answer needs the accuracy the question asks for. Do not round on the way: keep the calculator's stored values until the end.

4Modeling data with technology

When the data are a table, the exam may ask you to find the model with a sinusoidal regression on a graphing calculator. The calculator reports a formula of the form

y=asin⁡(bx+c)+d. y = a\sin(bx + c) + d.

Here the cc is not the phase shift. It is the number added inside the bracket after the bb has been multiplied through. To read the shift, factor:

asin⁡(bx+c)+d=asin⁡(b(x+cb))+d. a\sin(bx + c) + d = a\sin\left(b\left(x + \frac{c}{b}\right)\right) + d.

The phase shift is −cb-\frac{c}{b}.

Worked example 4 (invented). A calculator gives y=2.94sin⁡(0.52x−0.61)+11.8y = 2.94\sin(0.52x - 0.61) + 11.8. Find the period and the phase shift.

  • Period: 2π0.52≈12.083\frac{2\pi}{0.52} \approx 12.083.
  • Phase shift: −cb=−−0.610.52≈1.173-\frac{c}{b} = -\frac{-0.61}{0.52} \approx 1.173, so the graph is shifted about 1.173 to the right.
  • Amplitude 2.94 and midline y=11.8y = 11.8 are read directly.

You can also estimate the model by hand from key values in the data, as in Section 2. A regression is useful when the data are noisy and the points do not fall exactly on a wave. The estimate from key values is useful for a quick model and for checking the regression.

5Where the model applies

A sinusoid is not the same thing as the real world. A model works well for the situation it was fitted to, and no further.

  • Contextual domain. The model is only useful over the values the context allows. A model of the tide may be built for one day, and the context says 0≤t≤240 \le t \le 24. Outside it the formula still gives numbers, but the model may not describe the tide.
  • Predicting. The model gives a predicted output for an input in its domain.
  • Determining an input. It can also find the input for a given output. Because the wave repeats, several inputs may give the same output, and the domain limits how many count.

Worked example 5. How many times in 0≤t≤240 \le t \le 24 is the depth exactly 5.5 metres in the tide model?

  • The maximum is 5.5, reached once per period: at t=6t = 6 and at t=18t = 18.
  • The domain holds two periods. So the depth is 5.5 exactly twice.
  • The formula would give a solution at t=30t = 30, 4242, and so on, but they are outside the domain.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.