In this lecture, we introduce the concept of harmonic oscillators. We derive an equation of motion of a harmonic oscillator and derive an analytical solution. Models of harmonic oscillators are archetypical models of a number of mechanical and electrical systems. A YouTube video accompanying this post is given below.
A basic example of a harmonic oscillator is a mass-spring system shown in Fig. 1 below.
An object of a mass
The force
The next step is to apply Newton’s second law:
(1)
By projecting this equation onto the x-axis, we obtain:
(2)
By defining
(3)
The equation (3) is the equation of motion describing the dynamics of the mass-spring system. For given initial conditions, the solution of this equation is a function
(4)
The quantity
The next step is to solve the equation of motion. We assume a solution of the following form:
(5)
where
(6)
or compactly
(7)
Since
(8)
The equation (8) is called the auxiliary equation. The soluton of this equation is given by
(9)
where
(10)
where
(11)
where
(12)
where we used the fact that
(13)
The equation (13) is the solution of the equation of motion (8). Our next goal is to write this equation in a more compact form. Namely, we want to write this equation as follows:
(14)
where
(15)
By applying this formula to (14), we obtain
(16)
By comparing (16) and (13), we obtain
(17)
From these two equations, we obtain:
(18)
The equation (14) is important since it tells us that the mass will oscillate with the angular frequency of
(19)
That is, higher the stiffness and smaller the mass, higher is the frequency of oscillation and vice-versa. Also, the frequency of oscillation is independent from the initial condition. That is, the object will oscillate with a predetermined frequency that only depends on the mass and on the spring stiffness. This is the main reason why
Now in order to find the constants,
(20)
Substituting this value in (13) and differentiating, we obtain
(21)
So, the solution is
(22)