A weight bouncing on a spring, the depth of water in a harbor and the hours of daylight through the year all rise and fall like a sine wave. None of them swings between and every units, though. To describe them you stretch, squeeze and slide the basic wave, and four constants are enough to do all of it.
Key terms
General sinusoidal form
Definition A sinusoidal function is a function of the form
where , , and are real constants with and , and the input of sine or cosine is measured in radians. When the graph has amplitude , period , horizontal shift and midline , and the range is . For the sine form with , one cycle starts on the midline at , heading up, and ends at .
In plain words Each constant has one job. The number sets the size of the swing, sets how quickly the cycles come, slides the wave left or right, and lifts or lowers it.
Example Take the function
Its amplitude is , its period is , it is shifted units to the right, and its midline is , so its values fill . One cycle runs from to , and the quarter points of that cycle are the key points.
Amplitude
Definition The amplitude of , or of the matching cosine function, is . It equals , where is the maximum value and is the minimum value. Multiplying by stretches the basic wave vertically by the factor (a compression when ) and also reflects it when .
In plain words Amplitude is how far the graph rises above its midline and how far it sinks below it. Only the size of matters here, not its sign.
Example The graph of has amplitude . It reaches at and at , the reverse of . The graph of has amplitude , so it is a flattened cosine wave.
Midline
Definition The midline of a sinusoidal function is the line . It is the horizontal line halfway between the maximum value and the minimum value , so
In plain words The constant moves the whole wave up or down without changing its shape, and the midline moves with it.
Example The function has midline . Its values run from up to , so the whole graph sits below the -axis.
Period
Definition For the period of a sinusoidal function is
The reason is that as moves across an interval of length , the input moves across an interval of length , which is exactly one cycle of sine or cosine.
In plain words A larger packs more cycles into the same space, so each cycle is shorter. When is between and the cycles are longer than .
Example For the constant is , so
As runs from to , the input runs from to , one full turn. By contrast has period and fits four cycles into every stretch of length .
Frequency
Definition The frequency of a sinusoidal function is the number of cycles per unit of . It is the reciprocal of the period,
The number itself is called the angular frequency. It measures how many radians the input advances per unit of .
In plain words Period says how long one cycle takes. Frequency says how many cycles fit into one unit. Each is the reciprocal of the other.
Example A pure tone can be modeled by with in seconds. Its period is
so its frequency is cycles per second.
Horizontal shift
Definition The graph of is the graph of shifted units to the right when , and units to the left when . The number is also called the phase shift. The same holds for cosine. When the formula is written as , factor out first,
so the shift is , not .
In plain words The constant tells you where the cycle that normally starts at starts instead. Read it only after the inside looks like , or you will slide the wave the wrong distance.
Example The function has the inside
so the shift is to the right, not . A cycle starts at , where . It peaks at , a quarter period later, and ends at .
Positive and negative parameters
Definition In and in the matching cosine function, the sign of each constant has a fixed meaning.
- If , the graph is the graph with the positive constant in place of , reflected across the midline . The amplitude is still .
- If , the function can be rewritten with the positive constant , as shown below. The period is either way.
- If , the shift is to the right, and if , it is to the left. For example has .
- If , the midline lies above the -axis, and if , it lies below.
A negative can always be made positive because sine is odd and cosine is even,
In plain words A negative turns the wave upside down. The minus sign of a negative moves out front for sine and simply disappears for cosine. Once the inside is written as , a plus sign as in means the wave moves left. A negative moves it down.
Example Since sine is odd,
The graph has amplitude , period and midline , and it is upside down compared with . At it reaches its lowest value , exactly where reaches its highest value .
Fitting a sinusoidal model
Definition Fitting a sinusoidal model to a quantity that rises and falls regularly means choosing the constants in
so that the model has the same maximum value , minimum value and period as the data, and peaks at a time where the data peak. With and this gives
The period is the time between two consecutive peaks, or twice the time from a peak to the next low point. A sine model works too, with at a time where the data cross the midline going up.
In plain words Read off four facts. These are the highest value, the lowest value, the length of one cycle and the time of one peak. Each fact fixes one constant.
Example In a harbor the water is 9 meters deep at high tide, 2 hours after midnight, and 3 meters deep at the next low tide, 8 hours after midnight. Measure in hours after midnight. High tide to low tide is half a cycle, so hours, and
The model, in meters, is
As a check, . The same curve can be written as
because a sine wave peaks a quarter cycle, here 3 hours, after it crosses its midline going up. The fit uses one high tide and one low tide, so it is only as reliable as the assumption that the tides repeat exactly every 12 hours.
Check yourself
- Find the amplitude, period, horizontal shift and midline of , and give its range.
Show the answer
Factoring the inside gives
so , , and . The amplitude is , the period is , the graph is shifted to the left, the midline is and the range is .
- Write a sine function with amplitude , period , midline and a shift of to the right, using a positive . What is its value at ?
Show the answer
The period gives , so the function is
At the inside is , so the value is , the maximum.
- In a certain city the daylight lasts 9 hours on the shortest day and 15 hours on the longest day, which is day 172 of a 365-day year. Write a cosine model for the hours of daylight on day .
Show the answer
The amplitude is , the midline is , the period is days and the peak is at . So
The model puts the shortest day half a year after the longest, at , so around day or .