We are given that the movement of a bottle can be modeled using a cosine function. The general form of a cosine function is the following:
Where:
First, we will determine the periodicity "k". To do that we need to have into account that the time between height points is 24 seconds. This is known as the period and is related to the periodicity through the following formula:
Therefore, if we solve for "k" by multiplying by "k" on both sides:
And dividing both sides by "T":
We get a formula for "k". Substituting we get:
Simplifying we get:
Substituting in the cosine wave we have:
Now, the value of "c" is the average height of the bottle since "c" is the distance from the height 0 to the middle of the wave, therefore, we have:
Now, we determine the amplitude. The amplitude is the distance from the middle of the cosine wave to its highest point. Therefore, we need to average the distance between the highest and lowest points:
Substituting in the cosine function:
Now, to determine the value of "b we use the fact that at "t = 0" the height is "y = 8". Substituting we get:
Now, we subtract 8 from both sides:
We divide both sides by 2:
Now, we take the inverse function of cosine:
Solving the operations:
Now, we cancel out the pi:
Multiplying both sides by 12:
Multiplying both sides by -1:
Substituting we get:
We are also given that at the beginning the function moves upwards, therefore, we need to use the negative horizontal shift to fulfill this condition, therefore, we have:
And thus we get the equation. The graph looks like this: