From extreme values to a sinusoidal model
A repeating quantity may rise and fall in a smooth cycle. Examples include an idealized daily temperature pattern, the height of a point on a rotating wheel, and the position of a simple oscillation. If the pattern is sinusoidal, its period and extreme values tell us much of its shape.
There is an important distinction between determining the shape and placing the model on the horizontal axis. The maximum and minimum determine the amplitude and midline; the period determines how quickly the cycle repeats. But these values alone do not say when a maximum or minimum occurs. To determine the phase shift, we also need the horizontal location of at least one extreme, or other equivalent timing information.
Amplitude and midline from the extremes
Let the maximum output be \(M\) and the minimum output be \(m\), with \(M>m\). The amplitude measures the distance from the midline to either extreme. The midline is halfway between the maximum and minimum. Thus the vertical distance between the extremes is twice the amplitude.
These formulas apply whether the outputs are positive, negative, or on both sides of zero. The amplitude is nonnegative; when the maximum and minimum are distinct, it is positive. The midline can be negative, zero, or positive.
Worked Example: Finding amplitude and midline
A quantity has maximum \(18\) and minimum \(6\). Find its amplitude and midline, then check that they reproduce both extremes.
The difference between the extremes is \(18-6=12\), so the amplitude is half of that difference:
The midline is their average:
Adding and subtracting the amplitude from the midline gives the two extremes:
The values check: the model’s midline and amplitude place its maximum at \(18\) and its minimum at \(6\).
How the period determines the input coefficient
The basic sine and cosine functions repeat when their input increases by \(2\pi\). For a sinusoid with period \(P\), the input angle must therefore increase by \(2\pi\) when \(x\) increases by \(P\). This is achieved by multiplying the horizontal displacement by \(2\pi/P\).
Here \(h\) is a horizontal location used to align the cycle. The factor \(2\pi/P\) makes one full cycle correspond to a change of \(P\) in \(x\). The angle is in radians, consistent with the standard sine and cosine periods.
For a cosine model with positive amplitude, the cosine reaches its maximum value \(1\) when its input is \(0\), and its minimum value \(-1\) when its input is \(\pi\). Therefore, choosing \(h\) as the location of a maximum gives a direct model:
If instead the known anchor is a minimum at \(x=q\), use a negative cosine term, or equivalently shift the maximum by half a period:
Why the maximum-anchored cosine works
We can verify the model directly. Suppose \(A=(M-m)/2\), \(D=(M+m)/2\), and the maximum occurs at \(x=h\). At that point, the cosine input is zero, so the output is \(D+A\). At a point half a period later, the input is \(\pi\), so the output is \(D-A\).
After another half-period, the input has increased by another \(\pi\), so the cosine returns to \(1\) and the output returns to \(M\). A complete cycle therefore takes \(P\). This verifies the extremes and the period, not just the shape of the expression.
Building the model from a maximum
When the time or position of a maximum is known, a positive-amplitude cosine model is often the simplest choice. In a model written as \(D+A\cos\!\left(\frac{2\pi}{P}(x-h)\right)\), the phase shift is \(h\): the graph is shifted horizontally so its maximum occurs at \(x=h\).
Worked Example: A daily temperature cycle
An idealized temperature has a period of \(24\) hours, a maximum of \(30\) degrees at hour \(14\), and a minimum of \(10\) degrees. Construct a cosine model and verify its maximum, minimum, and period.
First find the amplitude and midline:
The maximum occurs at \(x=14\), so use \(h=14\). The period is \(P=24\), giving the input coefficient \(2\pi/24=\pi/12\). The model is
At hour \(14\), the input is \(\frac{\pi}{12}(14-14)=0\), so \(T(14)=20+10\cos(0)=20+10=30\).
Half a period later is hour \(14+12=26\). The input is \(\frac{\pi}{12}(26-14)=\pi\), so \(T(26)=20+10\cos(\pi)=20-10=10\). Hour \(26\) is equivalent to hour \(2\) of the next day.
Finally, increasing \(x\) by \(24\) increases the input by \(\frac{\pi}{12}\cdot24=2\pi\), so the model repeats every \(24\) hours. All three checks agree with the stated information.
Writing a sine model
Sine can describe the same cycle, but its maximum occurs when its input is \(\pi/2\), rather than \(0\). If a maximum occurs at \(x=h\), the sine input must equal \(\pi/2\) there. With the same period \(P\), the corresponding model is
Indeed, at \(x=h\), the input is \(\frac{2\pi}{P}\cdot\frac{P}{4}=\pi/2\), giving the maximum. In this form the horizontal shift is \(h-P/4\), not \(h\). The sine and cosine models describe the same cycle; their phase shifts differ because their unshifted graphs start at different positions in the cycle.
Worked Example: Sine model from a maximum
A repeating quantity has period \(8\), maximum \(14\) at \(x=3\), and minimum \(2\). Find a sine model and check the extreme values and period.
The amplitude and midline are
For a sine model whose maximum is at \(x=3\), the phase shift is \(h-P/4=3-8/4=1\). Also, \(2\pi/P=2\pi/8=\pi/4\). Therefore,
At \(x=3\), the input is \(\frac{\pi}{4}(3-1)=\pi/2\), so \(y=8+6(1)=14\). Half a period later, at \(x=7\), the input is \(\frac{\pi}{4}(7-1)=3\pi/2\), so \(y=8+6(-1)=2\). Increasing \(x\) by \(8\) increases the input by \(\frac{\pi}{4}\cdot8=2\pi\), so the period is \(8\). The model checks against the stated maximum, minimum, and period.
When the minimum location is given
A minimum can serve as the phase anchor just as well as a maximum. With positive amplitude, subtracting a cosine term makes the output smallest when the cosine is \(1\). If the minimum occurs at \(x=q\), then \(y=D-A\cos\!\left(\frac{2\pi}{P}(x-q)\right)\) reaches \(D-A=m\) at that location.
Worked Example: Cosine model from a minimum
A quantity has period \(10\), maximum \(18\), minimum \(6\), and reaches its minimum at \(x=1\). Construct a cosine model and verify it.
Compute the vertical parameters and the input coefficient:
Since \(x=1\) is a minimum, use the negative-cosine form:
At \(x=1\), the input is \(0\), so \(y=12-6\cos(0)=12-6=6\), the stated minimum. Half a period later, at \(x=1+5=6\), the input is \(\frac{\pi}{5}(6-1)=\pi\). Thus \(y=12-6\cos(\pi)=12-6(-1)=18\), the stated maximum. Increasing \(x\) by \(10\) increases the input by \(\frac{\pi}{5}\cdot10=2\pi\), verifying the period.
Phase information and common pitfalls
A period and a pair of extreme values do not determine a unique horizontal placement. For instance, shifting a sinusoid horizontally leaves its maximum, minimum, and period unchanged. To identify a particular model as a function of \(x\), you need an anchor such as “the maximum occurs at \(x=h\)” or “the minimum occurs at \(x=q\).” If no timing or horizontal location is supplied, you can find the amplitude, midline, and period coefficient, but not a unique phase shift.
A frequent mistake is to call the full vertical range the amplitude. For the maximum \(18\) and minimum \(6\), the incorrect calculation \(A=18-6=12\) would give a range of \(24\) if used with the correct midline \(12\): the predicted extremes would be \(12+12=24\) and \(12-12=0\), not \(18\) and \(6\). The correction is to halve the range: \(A=(18-6)/2=6\). Another common error is to set the cosine shift equal to the maximum’s location in a sine model. A sine reaches its maximum one quarter-period after its shift, so for a maximum at \(h\), the sine shift is \(h-P/4\).
Interpreting the parameters
Each parameter answers a different question. The amplitude is half the distance between the extremes, so it measures the size of the oscillation about the midline. The midline is the average of the extremes, so it gives the central output level. The period is the horizontal length of one complete cycle. The phase shift places that cycle relative to the horizontal coordinate \(x\).
Keep the units meaningful: if \(x\) is measured in hours, then \(P\) and the phase shift are also in hours. The amplitude and midline have the units of the output. For example, in the temperature model, \(24\) and \(14\) are hours, while \(10\) and \(20\) are degrees.
These steps construct a model from specified cycle information. When a model must instead be inferred from a collection of repeating observations, the additional task is to choose parameters that represent those data.
Check Your Understanding
Answer each question, showing the calculations that support your choice of parameters.
- A sinusoid has maximum \(22\) and minimum \(4\). Find its amplitude and midline.
- A cosine model has period \(12\) and a maximum at \(x=5\). What coefficient belongs in its input, and what is the cosine phase shift?
- A sine model has period \(16\) and a maximum at \(x=10\). What horizontal shift places its maximum correctly?
- A model has maximum \(9\), minimum \(-3\), period \(6\), and a minimum at \(x=2\). Write a cosine model anchored at that minimum.
- Why are the period and extreme values alone insufficient to determine a unique phase shift?