harmonic oscillator
1 Introduction
Harmonic oscillator is the simplest model but one of the most important vibrating system. It is often encountered in engineering systems and commonly produced by the unbalance in rotating machinery, isolation, earthquakes, bridges, building, control and atomatization devices, just for naming a few examples. Although pure harmonic oscillation is less likely to occur than general periodic oscillations by the action of arbitrary types of excitation, understanding the behavior of a system undergoing harmonic oscillation is essential in order to comprehend how the system will respond to more general types of excitation. Such harmonic oscillations may be in the form of free vibrations or by the action of an exciter force applied at some point of the system, as we shall see later. Indeed, harmonic oscillator is a single degree of freedom system (it is like a vibration module) which is tipically constituted by an ideal spring in parallel with an ideal (but not conservative) viscous damper, both attached to a mass in one end and the other one grounded.
In this entry we will make an elementary but nonconventional discussion about the fundamental concepts involved in a single vibrating system. Unlike the conventional method, which is usually discussed in inherent Literature about this topic, where, by one side, the solution of the corresponding differential equation^{} of motion is expressed in terms of circular trigonometric functions^{}, having to deal with complex arbitrary constants (obviously depending on the initial conditions^{}) and, on the other hand, studying separately the three cases of damping. Alternatively we shall use hyperbolic functions^{} and their properties to obtain the solution of the mentioned differential equation. This way we gain a little in brevity and hilarity in the exposition, as we may study all the three cases of damping simultaneously, avoiding at the same time calculating complex constants.
Besides preliminars, we will separate the discussion in three paragraphs namely: free damped vibrations, forced damped vibrations and mechanical resonance.
2 Preliminars
The purpose of this section is concept definifitions.
Response: $x=x(t)$, the general solution of the linear differential equation involved in the motion of harmonic oscillator. We will assume $x>0$ downward, like the sense of gravitatory field.
Ideal spring: an unidimensional model, weightless, linear, elastic and that obeys the Hooke’s law ${F}_{s}=kx$, where $k$ is an elastic constant socalled stiffness, ${F}_{s}$ is the restitutive spring force and $x$ an arbitrary spring elongation.
Ideal damper: an unidimensional model, weightless, where the damping force is proportional to the velocity of oscillator, i.e. ${F}_{d}=c\dot{x}$, being $c$ the damping constant.
Natural angular frequency: ${\omega}_{n}=\sqrt{k/m}$ (rad/sec), a specific property of the system; $m$ is the mass of oscillator.
Damping factor: $\zeta =c/2\sqrt{km}\equiv c/2m{\omega}_{n}$ (physical dimensionless).
Critical damping: ${c}_{c}=2\sqrt{km}\equiv 2m{\omega}_{n}$. Thus $\zeta =c/{c}_{c}$, and it is also called damping ratio.
Static equilibrium configuration^{}: a static position at $t={0}^{}$, reached because the action of gravitatory field over the mass of oscillator, i.e. the weight $mg$ ($g$ is the gravity acceleration), thus deflecting the spring a quantity $\delta $, from its natural length, socalled spring static deflection. As a result, from Newton’s equation $\sum {F}_{x}=0$, the spring force $k\delta $ (damper does not work!) due to its static deflection is balanced, at every instant, by the weight of oscillator and therefore both forces do not appear in the dynamical equation.
3 Free Damped Vibrations
With the help of an oscillator’s free body diagram and by applying the Newton’s second law $\sum {F}_{x}=m\ddot{x}$, we obtain the differential equation of motion
$$m\ddot{x}+c\dot{x}+kx=F(t),$$  (1) 
being $F(t)$ the socalled exciter force. It is convenient to introduce ${\omega}_{n}$ and $\zeta $. So that (1) becomes
$$\ddot{x}+2\zeta {\omega}_{n}\dot{x}+{\omega}_{n}^{2}x=f(t),$$  (2) 
where $f(t)=F(t)/m$. But in this section we are interested in free vibrations. So that we set $f(t)\equiv 0$ and thus we get the associate^{} homogeneous differential equation
$$\ddot{x}+2\zeta {\omega}_{n}\dot{x}+{\omega}_{n}^{2}x=0.$$  (3) 
In this case, about free oscillations, $x$ means an arbitrary displacement from the static equilibrium position. Let us suppose initial conditions $x(0)={x}_{0},\dot{x}(0)={\dot{x}}_{0}$. These conditions may be interpreted as follows: from the static equilibrium position we give an initial displacement ${x}_{0}$ and an initial velocity ${\dot{x}}_{0}$ to the mass $m$ and then we let it free at instant $t=0$. Accordingly, the characteristic equation^{} of (3) is
$${s}^{2}+2\zeta {\omega}_{n}s+{\omega}_{n}^{2}=0,$$  (4) 
whose roots are given by
$${s}_{1}=\zeta {\omega}_{n}+{\omega}_{n}\sqrt{{\zeta}^{2}1}\equiv \zeta {\omega}_{n}+{\omega}_{d},$$  (5) 
$${s}_{2}=\zeta {\omega}_{n}{\omega}_{n}\sqrt{{\zeta}^{2}1}\equiv \zeta {\omega}_{n}{\omega}_{d},$$  (6) 
where we are defining ${\omega}_{d}:={\omega}_{n}\sqrt{{\zeta}^{2}1}$ which is called frecuency of damped oscillation.
In the nullspace^{} of the linear operator associate to (3), we find the general solution
$$x(t)=A{e}^{{s}_{1}t}+B{e}^{{s}_{2}t}\u27f9\dot{x}(t)=A{s}_{1}{e}^{{s}_{1}t}+B{s}_{2}{e}^{{s}_{2}t}.$$  (7) 
By substituting the initial conditions in (7), we obtain the symmetric^{} linear system of equations
$${x}_{0}=A+B,{\dot{x}}_{0}=A{s}_{1}+B{s}_{2}.$$  (8) 
From (5), (6) and solving (8) for $A$ and $B$, leads to
$$A=\frac{{\dot{x}}_{0}+(\zeta {\omega}_{n}+{\omega}_{d}){x}_{0}}{2{\omega}_{d}},B=\frac{{\dot{x}}_{0}+(\zeta {\omega}_{n}{\omega}_{d}){x}_{0}}{2{\omega}_{d}},$$  (9) 
which substituted into the solution (7) and after an elementary algebraic^{} manipulation, leads to
$$x(t)=\frac{{e}^{\zeta {\omega}_{n}t}}{{\omega}_{d}}\left\{({\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0})\frac{{e}^{{\omega}_{d}t}{e}^{{\omega}_{d}t}}{2}+{\omega}_{d}{x}_{0}\frac{{e}^{{\omega}_{d}t}+{e}^{{\omega}_{d}t}}{2}\right\},$$  (10) 
that, in terms of hyperbolic functions, it is expressed as
$$x(t)=\frac{{e}^{\zeta {\omega}_{n}t}}{{\omega}_{d}}\left\{({\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0})\mathrm{sinh}{\omega}_{d}t+{\omega}_{d}{x}_{0}\mathrm{cosh}{\omega}_{d}t\right\}.$$  (11) 
It is now easily seen that the general solution of the homogeneous equation (3) satifies ${lim}_{t\to \mathrm{\infty}}x(t)=0$, since we are dealing with a transitory solution which agree with the fact that an exciter force $f(t)$ is not present.
Damping factor lets a classification about the kind of damping in concordance with the values that $\zeta $ may take. Thus,
$$ 
Let us proceed to study all the three cases.

1.
$\zeta >1$. Overdamped case. The response is nonperiodic and is given directly by (11), i.e.
$$x(t)=\frac{{e}^{\zeta {\omega}_{n}t}}{{\omega}_{d}}\left\{({\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0})\mathrm{sinh}{\omega}_{d}t+{\omega}_{d}{x}_{0}\mathrm{cosh}{\omega}_{d}t\right\}.$$ (12) Roots ${s}_{1}>{s}_{2}\in \mathbb{R}$. Hence ${e}^{{s}_{1}t},{e}^{{s}_{1}t}$ are linearly independent^{} and form a basis in the above mentioned nullspace.

2.
$\zeta =1$. Critical damping case. The response is also nonperiodic. In addition^{}, $$, so that ${e}^{{s}_{1}t},{e}^{{s}_{2}t}$ are linearly dependent and therefore they do not form a complete^{} basis in the space of solutions of the differential equation (3). Nevertheless, we may find out a second solution linearly independent because in this case ${\omega}_{d}\equiv 0$, and recalling (11) we note that (by applying L’Hospital),
$$\underset{{\omega}_{d}\to 0}{lim}\frac{\mathrm{sinh}{\omega}_{d}t}{{\omega}_{d}}=t.$$ Thus, the general solution for critical damping may be expressed as
$$x(t)\equiv {x}_{c}(t)={e}^{{\omega}_{n}t}\left\{{x}_{0}+({\dot{x}}_{0}+{\omega}_{n}{x}_{0})t\right\}.$$ (13) 
3.
$$. Underdamped case. Since in this case ${\omega}_{d}\in \u2102$, we redefine it as ${\omega}_{d}=i{\omega}_{n}\sqrt{1{\zeta}^{2}}:=i{\omega}_{d}^{\prime},i=\sqrt{1}$. Recalling the hyperbolic equations $\mathrm{sinh}{\omega}_{d}t=\mathrm{sinh}i{\omega}_{d}^{\prime}t=i\mathrm{sin}{\omega}_{d}^{\prime}t$, $\mathrm{cosh}{\omega}_{d}t=\mathrm{cosh}i{\omega}_{d}^{\prime}t=\mathrm{cos}{\omega}_{d}^{\prime}t$ which substituted into (11) gives the general solution on this case. That is,
$$x(t)={e}^{\zeta {\omega}_{n}t}\left\{\frac{{\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0}}{{\omega}_{d}^{\prime}}\mathrm{sin}{\omega}_{d}^{\prime}t+{x}_{0}\mathrm{cos}{\omega}_{d}^{\prime}t\right\}.$$ (14) This solution is clearly harmonics. Alternatively, we may introduce definitions about the amplitude $X$ of the response and the phase angle $\varphi $. They are,
$$X:=\sqrt{{x}_{0}^{2}+{\left(\frac{{\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0}}{{\omega}_{d}^{\prime}}\right)}^{2}},\mathrm{tan}\varphi :=\frac{{\omega}_{d}^{\prime}{x}_{0}}{{\dot{x}}_{0}+\zeta {\omega}_{n}{x}_{0}}\cdot $$ (15) With these definitions placed into (14), it becomes
$$x(t)=X{e}^{\zeta {\omega}_{n}t}\mathrm{sin}({\omega}_{d}^{\prime}t+\varphi ).$$ (16)
4 Forced Damped Vibrations
In this case an exciter force is present. Many useful and important applications, a few mentioned above in the Introduction, agree with an excellent degree of accuracy if we assume an intensive periodic exciter force (exciter force by mass unit) on the form $f(t)={f}_{0}\mathrm{cos}\omega t$^{1}^{1}Naturally, an exciter force on the form $F(t)={F}_{0}\mathrm{sin}\omega t$ is also valid, but the conclusions^{} are the same., being ${f}_{0}:={F}_{0}/m$ the amplitude of the intensive exciter force, and $\omega $ the frecuency of the exciter force. In such case, the differential equation of motion (2) takes the form
$$\ddot{x}+2\zeta {\omega}_{n}\dot{x}+{\omega}_{n}^{2}x={f}_{0}\mathrm{cos}\omega t.$$  (17) 
It is wellknown, from the linear differential equations theory, that the general solution of (17) may be expressed as the superposition of an homegeneous or transitory response and a particular or permanent^{} response, i.e.
$$x(t)={x}_{h}(t)+{x}_{p}(t).$$  (18) 
The general homogeneous^{} solution ${x}_{h}$ already have been stablished, so that in this section we focus our attention in find out a particular solution ${x}_{p}$. We search that solution on the form
$${x}_{p}(t)=C\mathrm{cos}\omega t+D\mathrm{sin}\omega t.$$  (19) 
Its first and second time derivatives are
$${\dot{x}}_{p}(t)=C\omega \mathrm{sin}\omega t+D\omega \mathrm{cos}\omega t\u27f9{\ddot{x}}_{p}(t)=C{\omega}^{2}\mathrm{cos}\omega tD{\omega}^{2}\mathrm{sin}\omega t.$$  (20) 
Next we substitute (19) and (20) into (17), setting $x(t)={x}_{p}(t)$ and by collecting terms in $\mathrm{cos}\omega t$ and $\mathrm{sin}\omega t$, we have
$$\{({\omega}_{n}^{2}{\omega}^{2})C+(2\zeta {\omega}_{n}\omega )D\}\mathrm{cos}\omega t+\{({\omega}_{n}^{2}{\omega}^{2})D(2\zeta {\omega}_{n}\omega )C\}\mathrm{sin}\omega t={f}_{0}\mathrm{cos}\omega t.$$ 
We are dealing with a subspace^{} of dimension^{} $2$, where the set of functions^{} $\{\mathrm{cos}\omega t,\mathrm{sin}\omega t\}\subset \mathcal{C}[0,\mathrm{\infty})$ form an orthogonal basis in the spaces of solutions of (17). In other words, $\mathrm{cos}\omega t$ and $\mathrm{sin}\omega t$ are there linearly independent. Therefore,
$$({\omega}_{n}^{2}{\omega}^{2})D(2\zeta {\omega}_{n}\omega )C\equiv 0,\text{and}\mathit{\hspace{1em}}({\omega}_{n}^{2}{\omega}^{2})C+(2\zeta {\omega}_{n}\omega )D\equiv {f}_{0}.$$ 
By solving for $C$ and $D$,
$$C=\frac{({\omega}_{n}^{2}{\omega}^{2}){f}_{0}}{{({\omega}_{n}^{2}{\omega}^{2})}^{2}+4{\zeta}^{2}{\omega}_{n}^{2}{\omega}^{2}},D=\frac{2\zeta {\omega}_{n}\omega {f}_{0}}{{({\omega}_{n}^{2}{\omega}^{2})}^{2}+4{\zeta}^{2}{\omega}_{n}^{2}{\omega}^{2}}\cdot $$ 
These one are introduced into (19) and we obtain a particular solution of (17), i.e. the permanent response of harmonic oscillator’s forced vibrations. That is,
$${x}_{p}(t)=\frac{({\omega}_{n}^{2}{\omega}^{2}){f}_{0}}{{({\omega}_{n}^{2}{\omega}^{2})}^{2}+4{\zeta}^{2}{\omega}_{n}^{2}{\omega}^{2}}\mathrm{cos}\omega t+\frac{2\zeta {\omega}_{n}\omega {f}_{0}}{{({\omega}_{n}^{2}{\omega}^{2})}^{2}+4{\zeta}^{2}{\omega}_{n}^{2}{\omega}^{2}}\mathrm{sin}\omega t.$$  (21) 
One also may define the frecuency ratio $r=\omega /{\omega}_{n}$ and continue to discuss an important set of physical considerations, but that is not the sight of this entry^{2}^{2}Indeed the author mostly wanted to indicate the alternative elementary method corresponding to free vibrations but, for completeness reasons, the latter two sections have been added..
5 Mechanical Resonance
In absence of damping, i.e. $\zeta =0$, (21) reduces to
$${x}_{p}(t)=\frac{{f}_{0}}{{\omega}_{n}^{2}{\omega}^{2}}\mathrm{cos}\omega t.$$  (22) 
One realize (theoretically) that as the frequency of exciter force coincides with the natural frequency of the system, i.e. $\omega ={\omega}_{n}$ (or equivalently $r=1$), then ${x}_{p}=\mathrm{\infty}$. This is what is defined as mechanical resonance phenomena. In the practice, however, low values of $\zeta $ ($\zeta \ll 1$) make feasible high values of the permanent response and thus, this fact, is also called resonance. Such phenomena is undesirable in any system, unlike the magnetic resonance that provides beneficial applications in several fields of science.
6 References
P. Fernández, Un método elemental alternativo para el estudio de las vibraciones libres amortiguadas en un oscilador armónico, (ComunicaciÃÂ³n interna), Departamento de Mecánica, Facultad de Ingeniería, Universidad Central de Venezuela (UCV), Caracas, 1997.
Title  harmonic oscillator 

Canonical name  HarmonicOscillator 
Date of creation  20130322 17:22:46 
Last modified on  20130322 17:22:46 
Owner  perucho (2192) 
Last modified by  perucho (2192) 
Numerical id  10 
Author  perucho (2192) 
Entry type  Application 
Classification  msc 34C05 
Classification  msc 34A30 
Classification  msc 3401 