Sinusoidal Function Context and Data Modeling
Why this matters
Imagine you're at the state fair, standing in line for the giant Ferris wheel. You notice it takes about 30 seconds for a cart to go from the very bottom to the very top. You also estimate the wheel is about 100 feet tall. How could you predict your exact height off the ground at, say, 72 seconds into the ride?
It might seem like a random guess, but it's not. The motion is a predictable, repeating cycle. Using the tools we're about to learn, you can build a precise mathematical model—a sinusoidal function—that acts like a crystal ball for this kind of periodic motion. We'll learn how to take a few key observations and turn them into a powerful predictive equation.
Concept overview
flowchart TD
A[Start: Given Data/Scenario] --> B{Find Max & Min Values};
B --> C[Calculate Midline D = (Max+Min)/2];
B --> D[Calculate Amplitude A = (Max-Min)/2];
A --> E{Find Time for One Cycle};
E --> F[Period = Time from max to max];
F --> G[Calculate B = 2π / Period];
A --> H{Choose sin or cos?};
H -- cos for max/min start --> I[Find Phase Shift C based on t of max/min];
H -- sin for midline start --> I;
C --> J[Assemble Model];
D --> J;
G --> J;
I --> J[f(t) = A*func(B(t-C)) + D];
J --> K[End: Use Model for Predictions];
Core explanation
Think of yourself as a detective building a profile of a repeating event. Your goal is to write an equation in the form f(t) = A sin(B(t - C)) + D or f(t) = A cos(B(t - C)) + D. To do this, you just need to find the four clues: A, B, C, and D.
Let's find them one by one using a set of data.
Step 1: Find the Center of the Action (Vertical Shift, D)
Most real-world waves don't oscillate around the x-axis (y=0). A Ferris wheel's height doesn't go down to -50 feet! The wave is shifted vertically. This new center line is called the midline, and its value is D.
To find it, you just need the maximum and minimum values from your data.
- Midline (D) = (Maximum Value + Minimum Value) / 2
It’s simply the average of the highest and lowest points. For a tide that goes from a low of 2 feet to a high of 10 feet, the midline is (10 + 2) / 2 = 6 feet. So, D = 6.
Step 2: Find the Height of the Wave (Amplitude, A)
The amplitude is the distance from the midline to the maximum (or to the minimum). It tells you how dramatic the wave is. It's always a positive value.
- Amplitude (A) = (Maximum Value - Minimum Value) / 2
Using our tide example, the amplitude is (10 - 2) / 2 = 4 feet. This means the tide rises 4 feet above the midline and falls 4 feet below it. So, A = 4.
Step 3: Find the Pacing of the Wave (Period and B)
The period is the length of one full cycle—the time it takes for the pattern to start repeating. You can measure this from one maximum to the next consecutive maximum, or from one minimum to the next.
Let's say high tide was at 3 AM and the next high tide is at 3:30 PM (15.5 hours on a 24-hour clock).
- Period = 15.5 hours - 3 hours = 12.5 hours
The value B in our equation is related to the period by this crucial formula:
- Period = 2π / B
We know the period, but we need to find B for our equation. We just rearrange the formula:
- B = 2π / Period
For our tide example, B = 2π / 12.5. We can leave it like that or use a decimal, but the fraction is more exact.
Step 4: Find the Starting Point (Phase Shift, C)
This is the trickiest piece of the puzzle. The phase shift tells us how far the wave is shifted horizontally from its "default" starting position.
First, you have to make a strategic choice: Are you modeling with sine or cosine?
- Use cosine if you have a data point for a maximum or minimum. A positive cosine function
(A > 0)naturally starts at a maximum. A negative cosine(-A)naturally starts at a minimum. This is usually the easiest path. - Use sine if you have a data point for when the value is at the midline and increasing. A positive sine function naturally starts at the midline, heading up.
Let's say we choose to model our tide with a positive cosine function because we know a high tide (a maximum) occurred at 3 AM. The standard cos(t) function has its first peak at t=0. Our function has its first peak at t=3. It has been shifted 3 units to the right.
Therefore, our phase shift C is 3. The term in the equation will be (t - 3).
Assembling the Model and Using It
Once you have your four values, you assemble the equation. For our tide example:
A = 4, B = 2π / 12.5, C = 3, D = 6.
Since we used a maximum point to find our phase shift, we use cosine:
h(t) = 4 cos( (2π/12.5)(t - 3) ) + 6
Now we have a powerful model. We can use it to predict the tide height at any time t. For example, what's the height at t = 7 hours? Just plug it in.
Finally, remember that these models are most reliable within their contextual domain. Our tide model is great for predicting the tide tomorrow, but it might not be accurate 50 years from now due to climate change or other long-term factors. Similarly, a Ferris wheel model is only valid when the wheel is running!
While we can find these values by hand from key data points, for a messy scatter plot of data, we can use technology (like the SinReg function on a TI calculator) to find the best-fit sinusoidal curve. The calculator is doing the exact same detective work, just with more data and complex algorithms.
Worked examples
Modeling Temperature in a City
The average monthly temperature in a certain city is periodic. The highest average temperature is 85°F in July (month 7), and the lowest is 25°F in January (month 1).
Problem:
a) Find a sinusoidal function T(m) to model the temperature, where m is the month number.
b) Use your model to predict the temperature in April (month 4).
Solution Walkthrough:
- 1Find the Vertical Shift (D)The midline is the average of the max and min temperatures.
D = (Max + Min) / 2 = (85 + 25) / 2 = 110 / 2 = 55- The midline temperature is 55°F.
- 2Find the Amplitude (A)The amplitude is half the difference between the max and min.
A = (Max - Min) / 2 = (85 - 25) / 2 = 60 / 2 = 30- The temperature varies by 30°F above and below the midline.
- 3Find the Period and BThe problem implies the cycle repeats every year, so the period is 12 months. The distance from the minimum (Jan, month 1) to the maximum (July, month 7) is 6 months. This is only half a period.
Period = 2 * (7 - 1) = 12months.- Now, find
B:B = 2π / Period = 2π / 12 = π / 6.
- 4Find the Phase Shift (C)We have a max at month 7 and a min at month 1. Using a cosine model is easiest.
- Option 1 (Positive Cosine)A standard cosine graph starts at a maximum. Our maximum is in July (month 7). So, we can shift the graph 7 units to the right.
C = 7. - Option 2 (Negative Cosine)A negative cosine graph starts at a minimum. Our minimum is in January (month 1). So, we can shift the graph 1 unit to the right.
C = 1. This is simpler! Let's use this one.
- Option 1 (Positive Cosine)
- 5Assemble the ModelUsing the negative cosine approach (
Awill be negative):A = -30(negative because we're matching a minimum)B = π / 6C = 1D = 55T(m) = -30 cos( (π/6)(m - 1) ) + 55
- 6Make a PredictionPredict the temperature in April (
m = 4).T(4) = -30 cos( (π/6)(4 - 1) ) + 55T(4) = -30 cos( (π/6)(3) ) + 55T(4) = -30 cos(π/2) + 55- We know
cos(π/2) = 0. T(4) = -30(0) + 55 = 55°F.- This makes sense! April is halfway between the min in January and the max in July, so the temperature should be at the midline value.
Try it yourself
Problem 1: Ferris Wheel Ride
A Ferris wheel has a diameter of 120 feet, and its lowest point is 5 feet off the ground. After boarding, the wheel starts moving, and you reach the highest point for the first time after 40 seconds. The wheel makes one full rotation every 80 seconds.
Your Task:
Create a sinusoidal function h(t) that models your height h in feet at time t in seconds.
Hints:
- What are the minimum and maximum heights? The diameter is 120 ft, but the bottom is 5 ft off the ground.
- You are given the period directly. Use it to find
B. - You reach the highest point at
t = 40seconds. What does this suggest about using a cosine function and what the phase shiftCshould be? - Put it all together to find
A,B,C, andD.
Practice — 8 questions
In simple terms, this topic is about taking real-world data that repeats in a wave-like pattern, like tides or a Ferris wheel's height, and creating a sine or cosine equation to model it and make predictions.
- 3.7.A: Construct sinusoidal function models of periodic phenomena.
- 3.7.A.1
- The smallest interval of input values over which the maximum or minimum output values start to repeat, that is, the input-value interval between consecutive maxima or consecutive minima, can be used to determine or estimate the period and frequency for a sinusoidal function model.
- 3.7.A.2
- The maximum and minimum output values can be used to determine or estimate the amplitude and vertical shift for a sinusoidal function model.
- 3.7.A.3
- An actual pair of input-output values can be compared to pairs of input-output values produced by a sinusoidal function model to determine or estimate a phase shift for the model.
- 3.7.A.4
- Sinusoidal function models can be constructed for a data set with technology by estimating key values or using sinusoidal regressions.
- 3.7.A.5
- Sinusoidal functions that model a data set are frequently only useful over their contextual domain and can be used to predict values of the dependent variable from values of the independent variable.
flowchart TD
A[Start: Given Data/Scenario] --> B{Find Max & Min Values};
B --> C[Calculate Midline D = (Max+Min)/2];
B --> D[Calculate Amplitude A = (Max-Min)/2];
A --> E{Find Time for One Cycle};
E --> F[Period = Time from max to max];
F --> G[Calculate B = 2π / Period];
A --> H{Choose sin or cos?};
H -- cos for max/min start --> I[Find Phase Shift C based on t of max/min];
H -- sin for midline start --> I;
C --> J[Assemble Model];
D --> J;
G --> J;
I --> J[f(t) = A*func(B(t-C)) + D];
J --> K[End: Use Model for Predictions];
Read what Saavi narrates
Hey there. Let's talk about taking sine and cosine out of the textbook and into the real world.
Imagine you're at a state fair, watching the giant Ferris wheel. You see it spinning in a smooth, predictable cycle. Its height goes up, then down, then up again. That repeating, wave-like motion is everywhere... the tides at the beach, the seasons, even the sound waves from your favorite song.
Today, we're going to learn how to capture that motion in an equation. We're going to act like data detectives, looking at a real-world scenario and pulling out the clues we need to build a sinusoidal function model. This will let us predict what happens at any point in the cycle.
Let's use an example. Say the average temperature in a city hits a high of 85 degrees in July, and a low of 25 degrees in January. We want to build a model to predict the temperature for any month of the year.
First, we find the middle. The vertical shift. We just average the high and low: 85 plus 25 is 110. Divide by 2, and you get 55. That's our midline, our D value.
Next, the amplitude, or A. How far does the temperature swing from that middle? We find the difference, 85 minus 25 is 60. But that's the whole swing. Amplitude is half of that, so A is 30.
Now, the period. This is a yearly cycle, so the period is 12 months. The formula for B is 2 pi over the period. So, B is 2 pi over 12, which simplifies to pi over 6.
Last, the phase shift. This is the tricky one. The low is in January, month 1. A negative cosine graph starts at a minimum. So, we can use a negative cosine and shift it right by 1. That means C is 1.
Put it all together: T of m equals negative 30 times the cosine of... pi over 6 times the quantity m minus 1... all plus 55.
A really common mistake here is confusing the Period with B. Students will find the period is 12, and then just plug 12 in for B in the equation. But B isn't the period. B equals 2 pi divided by the period. Don't fall into that trap.
By breaking it down step-by-step, you can model any periodic event. You've got this.
This gives you the total range of the function, not the distance from the midline to an extreme.
Always use the formula `Amplitude = (Max - Min) / 2`.
`B` is the frequency parameter, not the period itself. They are inversely related. Setting `B` equal to the period you observe in the data is a very common error.
First, find the Period from the data. Then, use the formula `B = 2π / Period` to calculate `B`.
The standard form is `f(t) = A sin(B(t - C)) + D`. The `- C` is part of the formula. A shift to the right by 5 units means `C = 5`, which looks like `(t - 5)` in the equation. A shift to the left by 5 means `C = -5`, which looks like `(t + 5)`.
Identify the horizontal shift first (e.g., "right 5"). Then set `C` equal to that number (`C = 5`). Finally, plug it into the `(t - C)` form.
If you're given the time of a low tide and the time of the next high tide, that's only half of the full cycle. Doubling this time gives you the full period.
Always ask yourself if the data points represent a full cycle or a half cycle. If it's max-to-max or min-to-min, that's a full period. If it's min-to-max or max-to-min, that's a half period, so you must double it.
A model for daily temperature fluctuations in Dallas isn't useful for predicting the temperature a year from now. The periodic pattern changes.
Only use the model to make predictions within a reasonable timeframe or context, known as the contextual domain. State this limitation if asked.