A harmonic oscillator is a wave that has a constant period and amplitude for all of its oscillations. These oscillations are particularly important in physics, and when solving differential equations. The expression for a harmonic oscillator is the simplest type of oscillation you will come across.
Theory
A harmonic oscillator is a wave given by
where
The equilibrium tells you the balancing point of the graph, which means that the plot of the graph is as equally above this point as it is below it. You can find the equilibrium of a sine function by finding the average of the maximum and the minimum of the graph.
Formula
The amplitude tells you the distance between the maximum and the minimum, and the equilibrium. You find the amplitude by taking the distance between the maximum and the minimum and divide it by two.
Formula
The number in front of shows you how fast the graph is oscillating—that means it determines the period of the graph. The relationship between and is . You find the period by finding the difference between two subsequent maxima or minima and .
Formula
The phase tells you how much the graph is shifted along the -axis in relation to the basic sine or cosine function. The value of the phase is . For a sine function, this means that is the distance between 0 and the closest point where a rising graph passes the equilibrium.
Formula
The phase is positive when . That means the graph is shifted towards the right.
The phase is negative when . That means the graph is shifted towards the left.
Example 1
Find an expression for the graph above. Use the sine function.
We begin by finding the equilibrium. The maximum is , while the minimum is . That means the equilibrium is
Next, you find the amplitude:
You can read off the graph that the function has a maximum at and a subsequent maximum at . This gives you a period of
Now that you have the period, you can find as well:
Finally you need to find the phase . You can see from the graph that the first time the graph rises past the equilibrium after is when . That gives you
Since the graph is shifted towards the right, you have , which means that you must change the sign into . Now you can express the graph as a sine function: