Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Sinusoidal Function Context and Data Modeling

Lesson ~11 min read 8 MCQs

In simple terms: 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.

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.

A Ferris wheel's height over time follows a sinusoidal pattern.

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];
This diagram shows a flowchart for building a sinusoidal model from data. It starts with the data and branches into parallel paths for calculating the midline (D) and amplitude (A), and for calculating the period and frequency parameter (B). All paths converge to help determine the phase shift (C) and assemble the final equation.

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.

Visualizing the midline (D) and amplitude (A) of a sinusoidal function.

Worked examples

Example 1

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:

  1. 1
    Find 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.
  2. 2
    Find 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.
  3. 3
    Find the Period and B
    The 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) = 12 months.
    • Now, find B: B = 2π / Period = 2π / 12 = π / 6.
  4. 4
    Find 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.
  5. 5
    Assemble the Model
    Using the negative cosine approach (A will be negative):
    • A = -30 (negative because we're matching a minimum)
    • B = π / 6
    • C = 1
    • D = 55
    • T(m) = -30 cos( (π/6)(m - 1) ) + 55
  6. 6
    Make a Prediction
    Predict the temperature in April (m = 4).
    • T(4) = -30 cos( (π/6)(4 - 1) ) + 55
    • T(4) = -30 cos( (π/6)(3) ) + 55
    • T(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.
Modeling city temperatures with a negative cosine function.

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:

  1. What are the minimum and maximum heights? The diameter is 120 ft, but the bottom is 5 ft off the ground.
  2. You are given the period directly. Use it to find B.
  3. You reach the highest point at t = 40 seconds. What does this suggest about using a cosine function and what the phase shift C should be?
  4. Put it all together to find A, B, C, and D.
The Ferris wheel height function derived from the problem.