Harmonic oscillator (original) (raw)

Physical system that responds to a restoring force inversely proportional to displacement

In classical mechanics, a harmonic oscillator is a system that, when displaced from its equilibrium position, experiences a restoring force F proportional to the displacement x: F → = − k x → , {\displaystyle {\vec {F}}=-k{\vec {x}},} {\displaystyle {\vec {F}}=-k{\vec {x}},}where k is a positive constant.

If F is the only force acting on the system, the system is called a simple harmonic oscillator, and it undergoes simple harmonic motion: sinusoidal oscillations about the equilibrium point, with a constant amplitude and a constant frequency (which does not depend on the amplitude).

If a frictional force (damping) proportional to the velocity is also present, the harmonic oscillator is described as a damped oscillator. Depending on the friction coefficient, the system can:

The boundary solution between an underdamped oscillator and an overdamped oscillator occurs at a particular value of the friction coefficient and is called critically damped.

If an external time-dependent force is present, the harmonic oscillator is described as a driven oscillator.

Mechanical examples include pendulums (with small angles of displacement), masses connected to springs, and acoustical systems. Other analogous systems include electrical harmonic oscillators such as RLC circuits. The harmonic oscillator model is very important in physics, because any mass subject to a force in stable equilibrium acts as a harmonic oscillator for small vibrations. Harmonic oscillators occur widely in nature and are exploited in many manmade devices, such as clocks and radio circuits. They are the source of virtually all sinusoidal vibrations and waves.

Simple harmonic oscillator

[edit]

Mass-spring harmonic oscillator

Simple harmonic motion

A simple harmonic oscillator is an oscillator that is neither driven nor damped. It consists of a mass m, which experiences a single force F, which pulls the mass in the direction of the point x = 0 and depends only on the position x of the mass and a constant k. Balance of forces (Newton's second law) for the system is F = m a = m d 2 x d t 2 = m x ¨ = − k x . {\displaystyle F=ma=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}=m{\ddot {x}}=-kx.} {\displaystyle F=ma=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}=m{\ddot {x}}=-kx.}

Solving this differential equation, we find that the motion is described by the function x ( t ) = A sin ⁡ ( ω t + φ ) , {\displaystyle x(t)=A\sin(\omega t+\varphi ),} {\displaystyle x(t)=A\sin(\omega t+\varphi ),}where ω = k m . {\displaystyle \omega ={\sqrt {\frac {k}{m}}}.} {\displaystyle \omega ={\sqrt {\frac {k}{m}}}.}

The motion is periodic, repeating itself in a sinusoidal fashion with constant amplitude A. In addition to its amplitude, the motion of a simple harmonic oscillator is characterized by its period T = 2 π / ω {\displaystyle T=2\pi /\omega } {\displaystyle T=2\pi /\omega }, the time for a single oscillation or its frequency f = 1 / T {\displaystyle f=1/T} {\displaystyle f=1/T}, the number of cycles per unit time. The position at a given time t also depends on the phase φ, which determines the starting point on the sine wave. The period and frequency are determined by the size of the mass m and the force constant k, while the amplitude and phase are determined by the starting position and velocity.

The velocity and acceleration of a simple harmonic oscillator oscillate with the same frequency as the position, but with shifted phases. The velocity is maximal for zero displacement, while the acceleration is in the direction opposite to the displacement.

The potential energy stored in a simple harmonic oscillator at position x is U = 1 2 k x 2 . {\displaystyle U={\tfrac {1}{2}}kx^{2}.} {\displaystyle U={\tfrac {1}{2}}kx^{2}.}

Damped harmonic oscillator

[edit]

Dependence of the system behavior on the value of the damping ratio ζ

Phase portrait of damped oscillator, with increasing damping strength.

Video clip demonstrating a damped harmonic oscillator consisting of a dynamics cart between two springs. An accelerometer on top of the cart shows the magnitude and direction of the acceleration.

In real oscillators, friction, or damping, slows the motion of the system. Due to frictional force, the velocity decreases in proportion to the acting frictional force. While in a simple undriven harmonic oscillator the only force acting on the mass is the restoring force, in a damped harmonic oscillator there is in addition a frictional force which is always in a direction to oppose the motion. In many vibrating systems the frictional force _F_f can be modeled as being proportional to the velocity v of the object: F_f = −_cv, where c is called the viscous damping coefficient.

The balance of forces (Newton's second law) for damped harmonic oscillators is then[1][2][3] F = − k x − c d x d t = m d 2 x d t 2 , {\displaystyle F=-kx-c{\frac {\mathrm {d} x}{\mathrm {d} t}}=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}},} {\displaystyle F=-kx-c{\frac {\mathrm {d} x}{\mathrm {d} t}}=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}},}which can be rewritten into the form d 2 x d t 2 + 2 ζ ω 0 d x d t + ω 0 2 x = 0 , {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x=0,} {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x=0,}where

Step response of a damped harmonic oscillator; curves are plotted for three values of μ = _ω_1 = _ω_0√1 − _ζ_2. Time is in units of the decay time τ = 1/(_ζω_0).

The value of the damping ratio ζ critically determines the behavior of the system. A damped harmonic oscillator can be:

The Q factor of a damped oscillator is defined as Q = 2 π × energy stored energy lost per cycle . {\displaystyle Q=2\pi \times {\frac {\text{energy stored}}{\text{energy lost per cycle}}}.} {\displaystyle Q=2\pi \times {\frac {\text{energy stored}}{\text{energy lost per cycle}}}.}

Q is related to the damping ratio by Q = 1 2 ζ . {\textstyle Q={\frac {1}{2\zeta }}.} {\textstyle Q={\frac {1}{2\zeta }}.}

Driven harmonic oscillators

[edit]

Driven harmonic oscillators are damped oscillators further affected by an externally applied force F(t).

Newton's second law takes the form F ( t ) − k x − c d x d t = m d 2 x d t 2 . {\displaystyle F(t)-kx-c{\frac {\mathrm {d} x}{\mathrm {d} t}}=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}.} {\displaystyle F(t)-kx-c{\frac {\mathrm {d} x}{\mathrm {d} t}}=m{\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}.}

It is usually rewritten into the form d 2 x d t 2 + 2 ζ ω 0 d x d t + ω 0 2 x = F ( t ) m . {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x={\frac {F(t)}{m}}.} {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x={\frac {F(t)}{m}}.}

This equation can be solved exactly for any driving force, using the solutions z(t) that satisfy the unforced equation d 2 z d t 2 + 2 ζ ω 0 d z d t + ω 0 2 z = 0 , {\displaystyle {\frac {\mathrm {d} ^{2}z}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} z}{\mathrm {d} t}}+\omega _{0}^{2}z=0,} {\displaystyle {\frac {\mathrm {d} ^{2}z}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} z}{\mathrm {d} t}}+\omega _{0}^{2}z=0,}

and which can be expressed as damped sinusoidal oscillations: z ( t ) = A e − ζ ω 0 t sin ⁡ ( 1 − ζ 2 ω 0 t + φ ) , {\displaystyle z(t)=Ae^{-\zeta \omega _{0}t}\sin \left({\sqrt {1-\zeta ^{2}}}\omega _{0}t+\varphi \right),} {\displaystyle z(t)=Ae^{-\zeta \omega _{0}t}\sin \left({\sqrt {1-\zeta ^{2}}}\omega _{0}t+\varphi \right),}in the case where ζ ≤ 1. The amplitude A and phase φ determine the behavior needed to match the initial conditions.

In the case ζ < 1 and a unit step input with x(0) = 0: F ( t ) m = { ω 0 2 t ≥ 0 0 t < 0 {\displaystyle {\frac {F(t)}{m}}={\begin{cases}\omega _{0}^{2}&t\geq 0\\0&t<0\end{cases}}} {\displaystyle {\frac {F(t)}{m}}={\begin{cases}\omega _{0}^{2}&t\geq 0\\0&t<0\end{cases}}}the solution is x ( t ) = 1 − e − ζ ω 0 t sin ⁡ ( 1 − ζ 2 ω 0 t + φ ) sin ⁡ ( φ ) , {\displaystyle x(t)=1-e^{-\zeta \omega _{0}t}{\frac {\sin \left({\sqrt {1-\zeta ^{2}}}\omega _{0}t+\varphi \right)}{\sin(\varphi )}},} {\displaystyle x(t)=1-e^{-\zeta \omega _{0}t}{\frac {\sin \left({\sqrt {1-\zeta ^{2}}}\omega _{0}t+\varphi \right)}{\sin(\varphi )}},}

with phase φ given by

cos ⁡ φ = ζ . {\displaystyle \cos \varphi =\zeta .} {\displaystyle \cos \varphi =\zeta .}

The time an oscillator needs to adapt to changed external conditions is of the order τ = 1/(_ζω_0). In physics, the adaptation is called relaxation, and τ is called the relaxation time.

In electrical engineering, a multiple of τ is called the settling time, i.e. the time necessary to ensure the signal is within a fixed departure from final value, typically within 10%. The term overshoot refers to the extent the response maximum exceeds final value, and undershoot refers to the extent the response falls below final value for times following the response maximum.

Sinusoidal driving force

[edit]

Steady-state variation of amplitude with relative frequency ω / ω 0 {\displaystyle \omega /\omega _{0}} {\displaystyle \omega /\omega _{0}} and damping ζ {\displaystyle \zeta } {\displaystyle \zeta } of a driven harmonic oscillator. This plot is also called the harmonic oscillator spectrum or motional spectrum.

In the case of a sinusoidal driving force: d 2 x d t 2 + 2 ζ ω 0 d x d t + ω 0 2 x = 1 m F 0 sin ⁡ ( ω t ) , {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x={\frac {1}{m}}F_{0}\sin(\omega t),} {\displaystyle {\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}+2\zeta \omega _{0}{\frac {\mathrm {d} x}{\mathrm {d} t}}+\omega _{0}^{2}x={\frac {1}{m}}F_{0}\sin(\omega t),}where F 0 {\displaystyle F_{0}} {\displaystyle F_{0}} is the driving amplitude, and ω {\displaystyle \omega } {\displaystyle \omega } is the driving frequency for a sinusoidal driving mechanism. This type of system appears in AC-driven RLC circuits (resistorinductorcapacitor) and driven spring systems having internal mechanical resistance or external air resistance.

The general solution is a sum of a transient solution that depends on initial conditions, and a steady state that is independent of initial conditions and depends only on the driving amplitude F 0 {\displaystyle F_{0}} {\displaystyle F_{0}}, driving frequency ω {\displaystyle \omega } {\displaystyle \omega }, undamped angular frequency ω 0 {\displaystyle \omega _{0}} {\displaystyle \omega _{0}}, and the damping ratio ζ {\displaystyle \zeta } {\displaystyle \zeta }.

The steady-state solution is proportional to the driving force with an induced phase change φ {\displaystyle \varphi } {\displaystyle \varphi }: x ( t ) = F 0 m Z m ω sin ⁡ ( ω t + φ ) , {\displaystyle x(t)={\frac {F_{0}}{mZ_{m}\omega }}\sin(\omega t+\varphi ),} {\displaystyle x(t)={\frac {F_{0}}{mZ_{m}\omega }}\sin(\omega t+\varphi ),}where Z m = ( 2 ω 0 ζ ) 2 + 1 ω 2 ( ω 0 2 − ω 2 ) 2 {\displaystyle Z_{m}={\sqrt {\left(2\omega _{0}\zeta \right)^{2}+{\frac {1}{\omega ^{2}}}(\omega _{0}^{2}-\omega ^{2})^{2}}}} {\displaystyle Z_{m}={\sqrt {\left(2\omega _{0}\zeta \right)^{2}+{\frac {1}{\omega ^{2}}}(\omega _{0}^{2}-\omega ^{2})^{2}}}}is the absolute value of the impedance or linear response function, and φ = arctan ⁡ ( 2 ω ω 0 ζ ω 2 − ω 0 2 ) + n π {\displaystyle \varphi =\arctan \left({\frac {2\omega \omega _{0}\zeta }{\omega ^{2}-\omega _{0}^{2}}}\right)+n\pi } {\displaystyle \varphi =\arctan \left({\frac {2\omega \omega _{0}\zeta }{\omega ^{2}-\omega _{0}^{2}}}\right)+n\pi }

is the phase of the oscillation relative to the driving force. The phase value is usually taken to be between −180° and 0 (that is, it represents a phase lag, for both positive and negative values of the arctan argument).

For a particular driving frequency called the resonance, or resonant frequency ω r = ω 0 1 − 2 ζ 2 {\textstyle \omega _{r}=\omega _{0}{\sqrt {1-2\zeta ^{2}}}} {\textstyle \omega _{r}=\omega _{0}{\sqrt {1-2\zeta ^{2}}}}, the amplitude (for a given F 0 {\displaystyle F_{0}} {\displaystyle F_{0}}) is maximal. This resonance effect only occurs when ζ < 1 / 2 {\displaystyle \zeta <1/{\sqrt {2}}} {\displaystyle \zeta <1/{\sqrt {2}}}, i.e. for significantly underdamped systems. For strongly underdamped systems the value of the amplitude can become quite large near the resonant frequency.

The transient solutions are the same as the unforced ( F 0 = 0 {\displaystyle F_{0}=0} {\displaystyle F_{0}=0}) damped harmonic oscillator and represent the systems response to other events that occurred previously. The transient solutions typically die out rapidly enough that they can be ignored.

Parametric oscillators

[edit]

A parametric oscillator is a driven harmonic oscillator in which the drive energy is provided by varying the parameters of the oscillator, such as the damping or restoring force. A familiar example of parametric oscillation is "pumping" on a playground swing.[4][5][6]A person on a moving swing can increase the amplitude of the swing's oscillations without any external drive force (pushes) being applied, by changing the moment of inertia of the swing by rocking back and forth ("pumping") or alternately standing and squatting, in rhythm with the swing's oscillations. The varying of the parameters drives the system. Examples of parameters that may be varied are its resonance frequency ω {\displaystyle \omega } {\displaystyle \omega } and damping β {\displaystyle \beta } {\displaystyle \beta }.

Parametric oscillators are used in many applications. The classical varactor parametric oscillator oscillates when the diode's capacitance is varied periodically. The circuit that varies the diode's capacitance is called the "pump" or "driver". In microwave electronics, waveguide/YAG based parametric oscillators operate in the same fashion. The designer varies a parameter periodically to induce oscillations.

Parametric oscillators have been developed as low-noise amplifiers, especially in the radio and microwave frequency range. Thermal noise is minimal, since a reactance (not a resistance) is varied. Another common use is frequency conversion, e.g., conversion from audio to radio frequencies. For example, the Optical parametric oscillator converts an input laser wave into two output waves of lower frequency ( ω s , ω i {\displaystyle \omega _{s},\omega _{i}} {\displaystyle \omega _{s},\omega _{i}}).

Parametric resonance occurs in a mechanical system when a system is parametrically excited and oscillates at one of its resonant frequencies. Parametric excitation differs from forcing, since the action appears as a time varying modification on a system parameter. This effect is different from regular resonance because it exhibits the instability phenomenon.

Universal oscillator equation

[edit]

The equation d 2 q d τ 2 + 2 ζ d q d τ + q = 0 {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=0} {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=0}is known as the universal oscillator equation, since all second-order linear oscillatory systems can be reduced to this form.[_citation needed_] This is done through nondimensionalization.

If the forcing function is f(t) = cos(ωt) = cos(ωtcτ) = cos(ωτ), where ω = ωt c, the equation becomes d 2 q d τ 2 + 2 ζ d q d τ + q = cos ⁡ ( ω τ ) . {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=\cos(\omega \tau ).} {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=\cos(\omega \tau ).}

The solution to this differential equation contains two parts: the "transient" and the "steady-state".

The solution based on solving the ordinary differential equation is for arbitrary constants _c_1 and _c_2

q t ( τ ) = { e − ζ τ ( c 1 e τ ζ 2 − 1 + c 2 e − τ ζ 2 − 1 ) ζ > 1 (overdamping) e − ζ τ ( c 1 + c 2 τ ) = e − τ ( c 1 + c 2 τ ) ζ = 1 (critical damping) e − ζ τ [ c 1 cos ⁡ ( 1 − ζ 2 τ ) + c 2 sin ⁡ ( 1 − ζ 2 τ ) ] ζ < 1 (underdamping) {\displaystyle q_{t}(\tau )={\begin{cases}e^{-\zeta \tau }\left(c_{1}e^{\tau {\sqrt {\zeta ^{2}-1}}}+c_{2}e^{-\tau {\sqrt {\zeta ^{2}-1}}}\right)&\zeta >1{\text{ (overdamping)}}\\e^{-\zeta \tau }(c_{1}+c_{2}\tau )=e^{-\tau }(c_{1}+c_{2}\tau )&\zeta =1{\text{ (critical damping)}}\\e^{-\zeta \tau }\left[c_{1}\cos \left({\sqrt {1-\zeta ^{2}}}\tau \right)+c_{2}\sin \left({\sqrt {1-\zeta ^{2}}}\tau \right)\right]&\zeta <1{\text{ (underdamping)}}\end{cases}}} {\displaystyle q_{t}(\tau )={\begin{cases}e^{-\zeta \tau }\left(c_{1}e^{\tau {\sqrt {\zeta ^{2}-1}}}+c_{2}e^{-\tau {\sqrt {\zeta ^{2}-1}}}\right)&\zeta >1{\text{ (overdamping)}}\\e^{-\zeta \tau }(c_{1}+c_{2}\tau )=e^{-\tau }(c_{1}+c_{2}\tau )&\zeta =1{\text{ (critical damping)}}\\e^{-\zeta \tau }\left[c_{1}\cos \left({\sqrt {1-\zeta ^{2}}}\tau \right)+c_{2}\sin \left({\sqrt {1-\zeta ^{2}}}\tau \right)\right]&\zeta <1{\text{ (underdamping)}}\end{cases}}}

The transient solution is independent of the forcing function.

Steady-state solution

[edit]

Apply the "complex variables method" by solving the auxiliary equation below and then finding the real part of its solution: d 2 q d τ 2 + 2 ζ d q d τ + q = cos ⁡ ( ω τ ) + i sin ⁡ ( ω τ ) = e i ω τ . {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=\cos(\omega \tau )+i\sin(\omega \tau )=e^{i\omega \tau }.} {\displaystyle {\frac {\mathrm {d} ^{2}q}{\mathrm {d} \tau ^{2}}}+2\zeta {\frac {\mathrm {d} q}{\mathrm {d} \tau }}+q=\cos(\omega \tau )+i\sin(\omega \tau )=e^{i\omega \tau }.}

Supposing the solution is of the form q s ( τ ) = A e i ( ω τ + φ ) . {\displaystyle q_{s}(\tau )=Ae^{i(\omega \tau +\varphi )}.} {\displaystyle q_{s}(\tau )=Ae^{i(\omega \tau +\varphi )}.}

Its derivatives from zeroth to second order are q s = A e i ( ω τ + φ ) , d q s d τ = i ω A e i ( ω τ + φ ) , d 2 q s d τ 2 = − ω 2 A e i ( ω τ + φ ) . {\displaystyle q_{s}=Ae^{i(\omega \tau +\varphi )},\quad {\frac {\mathrm {d} q_{s}}{\mathrm {d} \tau }}=i\omega Ae^{i(\omega \tau +\varphi )},\quad {\frac {\mathrm {d} ^{2}q_{s}}{\mathrm {d} \tau ^{2}}}=-\omega ^{2}Ae^{i(\omega \tau +\varphi )}.} {\displaystyle q_{s}=Ae^{i(\omega \tau +\varphi )},\quad {\frac {\mathrm {d} q_{s}}{\mathrm {d} \tau }}=i\omega Ae^{i(\omega \tau +\varphi )},\quad {\frac {\mathrm {d} ^{2}q_{s}}{\mathrm {d} \tau ^{2}}}=-\omega ^{2}Ae^{i(\omega \tau +\varphi )}.}

Substituting these quantities into the differential equation gives − ω 2 A e i ( ω τ + φ ) + 2 ζ i ω A e i ( ω τ + φ ) + A e i ( ω τ + φ ) = ( − ω 2 A + 2 ζ i ω A + A ) e i ( ω τ + φ ) = e i ω τ . {\displaystyle -\omega ^{2}Ae^{i(\omega \tau +\varphi )}+2\zeta i\omega Ae^{i(\omega \tau +\varphi )}+Ae^{i(\omega \tau +\varphi )}=(-\omega ^{2}A+2\zeta i\omega A+A)e^{i(\omega \tau +\varphi )}=e^{i\omega \tau }.} {\displaystyle -\omega ^{2}Ae^{i(\omega \tau +\varphi )}+2\zeta i\omega Ae^{i(\omega \tau +\varphi )}+Ae^{i(\omega \tau +\varphi )}=(-\omega ^{2}A+2\zeta i\omega A+A)e^{i(\omega \tau +\varphi )}=e^{i\omega \tau }.}

Dividing by the exponential term on the left results in − ω 2 A + 2 ζ i ω A + A = e − i φ = cos ⁡ φ − i sin ⁡ φ . {\displaystyle -\omega ^{2}A+2\zeta i\omega A+A=e^{-i\varphi }=\cos \varphi -i\sin \varphi .} {\displaystyle -\omega ^{2}A+2\zeta i\omega A+A=e^{-i\varphi }=\cos \varphi -i\sin \varphi .}

Equating the real and imaginary parts results in two independent equations A ( 1 − ω 2 ) = cos ⁡ φ , 2 ζ ω A = − sin ⁡ φ . {\displaystyle A(1-\omega ^{2})=\cos \varphi ,\quad 2\zeta \omega A=-\sin \varphi .} {\displaystyle A(1-\omega ^{2})=\cos \varphi ,\quad 2\zeta \omega A=-\sin \varphi .}

Bode plot of the frequency response of an ideal harmonic oscillator

Squaring both equations and adding them together gives A 2 ( 1 − ω 2 ) 2 = cos 2 ⁡ φ ( 2 ζ ω A ) 2 = sin 2 ⁡ φ } ⇒ A 2 [ ( 1 − ω 2 ) 2 + ( 2 ζ ω ) 2 ] = 1. {\displaystyle \left.{\begin{aligned}A^{2}(1-\omega ^{2})^{2}&=\cos ^{2}\varphi \\(2\zeta \omega A)^{2}&=\sin ^{2}\varphi \end{aligned}}\right\}\Rightarrow A^{2}[(1-\omega ^{2})^{2}+(2\zeta \omega )^{2}]=1.} {\displaystyle \left.{\begin{aligned}A^{2}(1-\omega ^{2})^{2}&=\cos ^{2}\varphi \\(2\zeta \omega A)^{2}&=\sin ^{2}\varphi \end{aligned}}\right\}\Rightarrow A^{2}[(1-\omega ^{2})^{2}+(2\zeta \omega )^{2}]=1.}

Therefore, A = A ( ζ , ω ) = sgn ⁡ ( − sin ⁡ φ 2 ζ ω ) 1 ( 1 − ω 2 ) 2 + ( 2 ζ ω ) 2 . {\displaystyle A=A(\zeta ,\omega )=\operatorname {sgn} \left({\frac {-\sin \varphi }{2\zeta \omega }}\right){\frac {1}{\sqrt {(1-\omega ^{2})^{2}+(2\zeta \omega )^{2}}}}.} {\displaystyle A=A(\zeta ,\omega )=\operatorname {sgn} \left({\frac {-\sin \varphi }{2\zeta \omega }}\right){\frac {1}{\sqrt {(1-\omega ^{2})^{2}+(2\zeta \omega )^{2}}}}.}

Compare this result with the theory section on resonance, as well as the "magnitude part" of the RLC circuit. This amplitude function is particularly important in the analysis and understanding of the frequency response of second-order systems.

To solve for φ, divide both equations to get tan ⁡ φ = − 2 ζ ω 1 − ω 2 = 2 ζ ω ω 2 − 1 ⟹ φ ≡ φ ( ζ , ω ) = arctan ⁡ ( 2 ζ ω ω 2 − 1 ) + n π . {\displaystyle \tan \varphi =-{\frac {2\zeta \omega }{1-\omega ^{2}}}={\frac {2\zeta \omega }{\omega ^{2}-1}}~~\implies ~~\varphi \equiv \varphi (\zeta ,\omega )=\arctan \left({\frac {2\zeta \omega }{\omega ^{2}-1}}\right)+n\pi .} {\displaystyle \tan \varphi =-{\frac {2\zeta \omega }{1-\omega ^{2}}}={\frac {2\zeta \omega }{\omega ^{2}-1}}~~\implies ~~\varphi \equiv \varphi (\zeta ,\omega )=\arctan \left({\frac {2\zeta \omega }{\omega ^{2}-1}}\right)+n\pi .}

This phase function is particularly important in the analysis and understanding of the frequency response of second-order systems.

Combining the amplitude and phase portions results in the steady-state solution q s ( τ ) = A ( ζ , ω ) cos ⁡ ( ω τ + φ ( ζ , ω ) ) = A cos ⁡ ( ω τ + φ ) . {\displaystyle q_{s}(\tau )=A(\zeta ,\omega )\cos(\omega \tau +\varphi (\zeta ,\omega ))=A\cos(\omega \tau +\varphi ).} {\displaystyle q_{s}(\tau )=A(\zeta ,\omega )\cos(\omega \tau +\varphi (\zeta ,\omega ))=A\cos(\omega \tau +\varphi ).}

The solution of original universal oscillator equation is a superposition (sum) of the transient and steady-state solutions: q ( τ ) = q t ( τ ) + q s ( τ ) . {\displaystyle q(\tau )=q_{t}(\tau )+q_{s}(\tau ).} {\displaystyle q(\tau )=q_{t}(\tau )+q_{s}(\tau ).}

Harmonic oscillators occurring in a number of areas of engineering are equivalent in the sense that their mathematical models are identical (see universal oscillator equation above). Below is a table showing analogous quantities in four harmonic oscillator systems in mechanics and electronics. If analogous parameters on the same line in the table are given numerically equal values, the behavior of the oscillators – their output waveform, resonant frequency, damping factor, etc. – are the same.

Translational mechanical Rotational mechanical Series RLC circuit Parallel RLC circuit
Position x {\displaystyle x} {\displaystyle x} Angle θ {\displaystyle \theta } {\displaystyle \theta } Charge q {\displaystyle q} {\displaystyle q} Flux linkage φ {\displaystyle \varphi } {\displaystyle \varphi }
Velocity d x d t {\displaystyle {\frac {\mathrm {d} x}{\mathrm {d} t}}} {\displaystyle {\frac {\mathrm {d} x}{\mathrm {d} t}}} Angular velocity d θ d t {\displaystyle {\frac {\mathrm {d} \theta }{\mathrm {d} t}}} {\displaystyle {\frac {\mathrm {d} \theta }{\mathrm {d} t}}} Current d q d t {\displaystyle {\frac {\mathrm {d} q}{\mathrm {d} t}}} {\displaystyle {\frac {\mathrm {d} q}{\mathrm {d} t}}} Voltage d φ d t {\displaystyle {\frac {\mathrm {d} \varphi }{\mathrm {d} t}}} {\displaystyle {\frac {\mathrm {d} \varphi }{\mathrm {d} t}}}
Mass m {\displaystyle m} {\displaystyle m} Moment of inertia I {\displaystyle I} {\displaystyle I} Inductance L {\displaystyle L} {\displaystyle L} Capacitance C {\displaystyle C} {\displaystyle C}
Momentum p {\displaystyle p} {\displaystyle p} Angular momentum L {\displaystyle L} {\displaystyle L} Flux linkage φ {\displaystyle \varphi } {\displaystyle \varphi } Charge q {\displaystyle q} {\displaystyle q}
Spring constant k {\displaystyle k} {\displaystyle k} Torsion constant μ {\displaystyle \mu } {\displaystyle \mu } Elastance 1 / C {\displaystyle 1/C} {\displaystyle 1/C} Magnetic reluctance 1 / L {\displaystyle 1/L} {\displaystyle 1/L}
Damping c {\displaystyle c} {\displaystyle c} Rotational friction Γ {\displaystyle \Gamma } {\displaystyle \Gamma } Resistance R {\displaystyle R} {\displaystyle R} Conductance G = 1 / R {\displaystyle G=1/R} {\displaystyle G=1/R}
Drive force F ( t ) {\displaystyle F(t)} {\displaystyle F(t)} Drive torque τ ( t ) {\displaystyle \tau (t)} {\displaystyle \tau (t)} Voltage v {\displaystyle v} {\displaystyle v} Current i {\displaystyle i} {\displaystyle i}
Undamped resonant frequency f n {\displaystyle f_{n}} {\displaystyle f_{n}}:
1 2 π k m {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {k}{m}}}} {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {k}{m}}}} 1 2 π μ I {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {\mu }{I}}}} {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {\mu }{I}}}} 1 2 π 1 L C {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {1}{LC}}}} {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {1}{LC}}}} 1 2 π 1 L C {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {1}{LC}}}} {\displaystyle {\frac {1}{2\pi }}{\sqrt {\frac {1}{LC}}}}
Damping ratio ζ {\displaystyle \zeta } {\displaystyle \zeta }:
c 2 1 k m {\displaystyle {\frac {c}{2}}{\sqrt {\frac {1}{km}}}} {\displaystyle {\frac {c}{2}}{\sqrt {\frac {1}{km}}}} Γ 2 1 I μ {\displaystyle {\frac {\Gamma }{2}}{\sqrt {\frac {1}{I\mu }}}} {\displaystyle {\frac {\Gamma }{2}}{\sqrt {\frac {1}{I\mu }}}} R 2 C L {\displaystyle {\frac {R}{2}}{\sqrt {\frac {C}{L}}}} {\displaystyle {\frac {R}{2}}{\sqrt {\frac {C}{L}}}} G 2 L C {\displaystyle {\frac {G}{2}}{\sqrt {\frac {L}{C}}}} {\displaystyle {\frac {G}{2}}{\sqrt {\frac {L}{C}}}}
Differential equation:
m x ¨ + c x ˙ + k x = F {\displaystyle m{\ddot {x}}+c{\dot {x}}+kx=F} {\displaystyle m{\ddot {x}}+c{\dot {x}}+kx=F} I θ ¨ + Γ θ ˙ + μ θ = τ {\displaystyle I{\ddot {\theta }}+\Gamma {\dot {\theta }}+\mu \theta =\tau } {\displaystyle I{\ddot {\theta }}+\Gamma {\dot {\theta }}+\mu \theta =\tau } L q ¨ + R q ˙ + q / C = v {\displaystyle L{\ddot {q}}+R{\dot {q}}+q/C=v} {\displaystyle L{\ddot {q}}+R{\dot {q}}+q/C=v} C φ ¨ + G φ ˙ + φ / L = i {\displaystyle C{\ddot {\varphi }}+G{\dot {\varphi }}+\varphi /L=i} {\displaystyle C{\ddot {\varphi }}+G{\dot {\varphi }}+\varphi /L=i}

Application to a conservative force

[edit]

The problem of the simple harmonic oscillator occurs frequently in physics, because a mass at equilibrium under the influence of any conservative force, in the limit of small motions, behaves as a simple harmonic oscillator.

A conservative force is one that is associated with a potential energy. The potential-energy function of a harmonic oscillator is V ( x ) = 1 2 k x 2 . {\displaystyle V(x)={\tfrac {1}{2}}kx^{2}.} {\displaystyle V(x)={\tfrac {1}{2}}kx^{2}.}

Given an arbitrary potential-energy function V ( x ) {\displaystyle V(x)} {\displaystyle V(x)}, one can do a Taylor expansion in terms of x {\displaystyle x} {\displaystyle x} around an energy minimum ( x = x 0 {\displaystyle x=x_{0}} {\displaystyle x=x_{0}}) to model the behavior of small perturbations from equilibrium.

V ( x ) = V ( x 0 ) + V ′ ( x 0 ) ⋅ ( x − x 0 ) + 1 2 V ″ ( x 0 ) ⋅ ( x − x 0 ) 2 + O ( x − x 0 ) 3 . {\displaystyle V(x)=V(x_{0})+V'(x_{0})\cdot (x-x_{0})+{\tfrac {1}{2}}V''(x_{0})\cdot (x-x_{0})^{2}+O(x-x_{0})^{3}.} {\displaystyle V(x)=V(x_{0})+V'(x_{0})\cdot (x-x_{0})+{\tfrac {1}{2}}V''(x_{0})\cdot (x-x_{0})^{2}+O(x-x_{0})^{3}.}

Because V ( x 0 ) {\displaystyle V(x_{0})} {\displaystyle V(x_{0})} is a minimum, the first derivative evaluated at x 0 {\displaystyle x_{0}} {\displaystyle x_{0}} must be zero, so the linear term drops out: V ( x ) = V ( x 0 ) + 1 2 V ″ ( x 0 ) ⋅ ( x − x 0 ) 2 + O ( x − x 0 ) 3 . {\displaystyle V(x)=V(x_{0})+{\tfrac {1}{2}}V''(x_{0})\cdot (x-x_{0})^{2}+O(x-x_{0})^{3}.} {\displaystyle V(x)=V(x_{0})+{\tfrac {1}{2}}V''(x_{0})\cdot (x-x_{0})^{2}+O(x-x_{0})^{3}.}

The constant term V(_x_0) is arbitrary and thus may be dropped, and a coordinate transformation allows the form of the simple harmonic oscillator to be retrieved: V ( x ) ≈ 1 2 V ″ ( 0 ) ⋅ x 2 = 1 2 k x 2 . {\displaystyle V(x)\approx {\tfrac {1}{2}}V''(0)\cdot x^{2}={\tfrac {1}{2}}kx^{2}.} {\displaystyle V(x)\approx {\tfrac {1}{2}}V''(0)\cdot x^{2}={\tfrac {1}{2}}kx^{2}.}

Thus, given an arbitrary potential-energy function V ( x ) {\displaystyle V(x)} {\displaystyle V(x)} with a non-vanishing second derivative, one can use the solution to the simple harmonic oscillator to provide an approximate solution for small perturbations around the equilibrium point.

A simple pendulum exhibits approximately simple harmonic motion under the conditions of no damping and small amplitude.

Assuming no damping, the differential equation governing a simple pendulum of length l {\displaystyle l} {\displaystyle l}, where g {\displaystyle g} {\displaystyle g} is the local acceleration of gravity, is d 2 θ d t 2 + g l sin ⁡ θ = 0. {\displaystyle {\frac {d^{2}\theta }{dt^{2}}}+{\frac {g}{l}}\sin \theta =0.} {\displaystyle {\frac {d^{2}\theta }{dt^{2}}}+{\frac {g}{l}}\sin \theta =0.}

If the maximal displacement of the pendulum is small, we can use the approximation sin ⁡ θ ≈ θ {\displaystyle \sin \theta \approx \theta } {\displaystyle \sin \theta \approx \theta } and instead consider the equation d 2 θ d t 2 + g l θ = 0. {\displaystyle {\frac {d^{2}\theta }{dt^{2}}}+{\frac {g}{l}}\theta =0.} {\displaystyle {\frac {d^{2}\theta }{dt^{2}}}+{\frac {g}{l}}\theta =0.}

The general solution to this differential equation is θ ( t ) = A cos ⁡ ( g l t + φ ) , {\displaystyle \theta (t)=A\cos \left({\sqrt {\frac {g}{l}}}t+\varphi \right),} {\displaystyle \theta (t)=A\cos \left({\sqrt {\frac {g}{l}}}t+\varphi \right),}where A {\displaystyle A} {\displaystyle A} and φ {\displaystyle \varphi } {\displaystyle \varphi } are constants that depend on the initial conditions. Using as initial conditions θ ( 0 ) = θ 0 {\displaystyle \theta (0)=\theta _{0}} {\displaystyle \theta (0)=\theta _{0}} and θ ˙ ( 0 ) = 0 {\displaystyle {\dot {\theta }}(0)=0} {\displaystyle {\dot {\theta }}(0)=0}, the solution is given by θ ( t ) = θ 0 cos ⁡ ( g l t ) , {\displaystyle \theta (t)=\theta _{0}\cos \left({\sqrt {\frac {g}{l}}}t\right),} {\displaystyle \theta (t)=\theta _{0}\cos \left({\sqrt {\frac {g}{l}}}t\right),}where θ 0 {\displaystyle \theta _{0}} {\displaystyle \theta _{0}} is the largest angle attained by the pendulum (that is, θ 0 {\displaystyle \theta _{0}} {\displaystyle \theta _{0}} is the amplitude of the pendulum). The period, the time for one complete oscillation, is given by the expression τ = 2 π l g = 2 π ω , {\displaystyle \tau =2\pi {\sqrt {\frac {l}{g}}}={\frac {2\pi }{\omega }},} {\displaystyle \tau =2\pi {\sqrt {\frac {l}{g}}}={\frac {2\pi }{\omega }},}which is a good approximation of the actual period when θ 0 {\displaystyle \theta _{0}} {\displaystyle \theta _{0}} is small. Notice that in this approximation the period τ {\displaystyle \tau } {\displaystyle \tau } is independent of the amplitude θ 0 {\displaystyle \theta _{0}} {\displaystyle \theta _{0}}. In the above equation, ω {\displaystyle \omega } {\displaystyle \omega } represents the angular frequency.

Spring–mass system in equilibrium (A), compressed (B) and stretched (C) states

When a spring is stretched or compressed by a mass, the spring develops a restoring force. Hooke's law gives the relationship of the force exerted by the spring when the spring is compressed or stretched a certain length: F ( t ) = − k x ( t ) , {\displaystyle F(t)=-kx(t),} {\displaystyle F(t)=-kx(t),}where F is the force, k is the spring constant, and x is the displacement of the mass with respect to the equilibrium position. The minus sign in the equation indicates that the force exerted by the spring always acts in a direction that is opposite to the displacement (i.e. the force always acts towards the zero position), and so prevents the mass from flying off to infinity.

By using either force balance or an energy method, it can be readily shown that the motion of this system is given by the following differential equation: F ( t ) = − k x ( t ) = m d 2 d t 2 x ( t ) = m a , {\displaystyle F(t)=-kx(t)=m{\frac {\mathrm {d} ^{2}}{\mathrm {d} t^{2}}}x(t)=ma,} {\displaystyle F(t)=-kx(t)=m{\frac {\mathrm {d} ^{2}}{\mathrm {d} t^{2}}}x(t)=ma,}the latter being Newton's second law of motion.

If the initial displacement is A, and there is no initial velocity, the solution of this equation is given by x ( t ) = A cos ⁡ ( k m t ) . {\displaystyle x(t)=A\cos \left({\sqrt {\frac {k}{m}}}t\right).} {\displaystyle x(t)=A\cos \left({\sqrt {\frac {k}{m}}}t\right).}

Given an ideal massless spring, m {\displaystyle m} {\displaystyle m} is the mass on the end of the spring. If the spring itself has mass, its effective mass must be included in m {\displaystyle m} {\displaystyle m}.

Energy variation in the spring–damping system

[edit]

In terms of energy, all systems have two types of energy: potential energy and kinetic energy. When a spring is stretched or compressed, it stores elastic potential energy, which is then transferred into kinetic energy. The potential energy within a spring is determined by the equation U = 1 2 k x 2 . {\textstyle U={\frac {1}{2}}kx^{2}.} {\textstyle U={\frac {1}{2}}kx^{2}.}

When the spring is stretched or compressed, kinetic energy of the mass gets converted into potential energy of the spring. By conservation of energy, assuming the datum is defined at the equilibrium position, when the spring reaches its maximal potential energy, the kinetic energy of the mass is zero. When the spring is released, it tries to return to equilibrium, and all its potential energy converts to kinetic energy of the mass.

Definition of terms

[edit]

Symbol Definition Dimensions SI units
a {\displaystyle a} {\displaystyle a} Acceleration of mass L T − 2 {\displaystyle {\mathsf {LT^{-2}}}} {\displaystyle {\mathsf {LT^{-2}}}} m/s2
A {\displaystyle A} {\displaystyle A} Peak amplitude of oscillation L {\displaystyle {\mathsf {L}}} {\displaystyle {\mathsf {L}}} m
c {\displaystyle c} {\displaystyle c} Viscous damping coefficient M T − 1 {\displaystyle {\mathsf {MT^{-1}}}} {\displaystyle {\mathsf {MT^{-1}}}} N·s/m
f {\displaystyle f} {\displaystyle f} Frequency T − 1 {\displaystyle {\mathsf {T^{-1}}}} {\displaystyle {\mathsf {T^{-1}}}} Hz
F {\displaystyle F} {\displaystyle F} Drive force M L T − 2 {\displaystyle {\mathsf {MLT^{-2}}}} {\displaystyle {\mathsf {MLT^{-2}}}} N
g {\displaystyle g} {\displaystyle g} Acceleration of gravity at the Earth's surface L T − 2 {\displaystyle {\mathsf {LT^{-2}}}} {\displaystyle {\mathsf {LT^{-2}}}} m/s2
i {\displaystyle i} {\displaystyle i} Imaginary unit, i 2 = − 1 {\displaystyle i^{2}=-1} {\displaystyle i^{2}=-1}
k {\displaystyle k} {\displaystyle k} Spring constant M T − 2 {\displaystyle {\mathsf {MT^{-2}}}} {\displaystyle {\mathsf {MT^{-2}}}} N/m
μ {\displaystyle \mu } {\displaystyle \mu } Torsion Spring constant M L 2 T − 2 {\displaystyle {\mathsf {ML^{2}T^{-2}}}} {\displaystyle {\mathsf {ML^{2}T^{-2}}}} Nm/rad
m , M {\displaystyle m,M} {\displaystyle m,M} Mass M {\displaystyle {\mathsf {M}}} {\displaystyle {\mathsf {M}}} kg
Q {\displaystyle Q} {\displaystyle Q} Quality factor
T {\displaystyle T} {\displaystyle T} Period of oscillation T {\displaystyle {\mathsf {T}}} {\displaystyle {\mathsf {T}}} s
t {\displaystyle t} {\displaystyle t} Time T {\displaystyle {\mathsf {T}}} {\displaystyle {\mathsf {T}}} s
U {\displaystyle U} {\displaystyle U} Potential energy stored in oscillator M L 2 T − 2 {\displaystyle {\mathsf {ML^{2}T^{-2}}}} {\displaystyle {\mathsf {ML^{2}T^{-2}}}} J
x {\displaystyle x} {\displaystyle x} Position of mass L {\displaystyle {\mathsf {L}}} {\displaystyle {\mathsf {L}}} m
ζ {\displaystyle \zeta } {\displaystyle \zeta } Damping ratio
φ {\displaystyle \varphi } {\displaystyle \varphi } Phase shift rad
ω {\displaystyle \omega } {\displaystyle \omega } Angular frequency T − 1 {\displaystyle {\mathsf {T^{-1}}}} {\displaystyle {\mathsf {T^{-1}}}} rad/s
ω 0 {\displaystyle \omega _{0}} {\displaystyle \omega _{0}} Natural resonant angular frequency T − 1 {\displaystyle {\mathsf {T^{-1}}}} {\displaystyle {\mathsf {T^{-1}}}} rad/s
  1. ^ Fowles & Cassiday (1986, p. 86)
  2. ^ Kreyszig (1972, p. 65)
  3. ^ Tipler (1998, pp. 369, 389)
  4. ^ Case, William. "Two ways of driving a child's swing". Archived from the original on 9 December 2011. Retrieved 27 November 2011.
  5. ^ Case, W. B. (1996). "The pumping of a swing from the standing position". American Journal of Physics. 64 (3): 215–220. Bibcode:1996AmJPh..64..215C. doi:10.1119/1.18209.
  6. ^ Roura, P.; Gonzalez, J.A. (2010). "Towards a more realistic description of swing pumping due to the exchange of angular momentum". European Journal of Physics. 31 (5): 1195–1207. Bibcode:2010EJPh...31.1195R. doi:10.1088/0143-0807/31/5/020. S2CID 122086250.