Harmonic oscillator explained

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: \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

See main article: 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 and depends only on the position x of the mass and a constant k. Balance of forces (Newton's second law) for the system isF = m a = m \frac = m\ddot = -k x.

Solving this differential equation, we find that the motion is described by the function x(t) = A \cos(\omega t + \varphi), where\omega = \sqrt.

T=2\pi/\omega

, the time for a single oscillation or its frequency

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 isU = \tfrac 1 2 kx^2.

Damped harmonic oscillator

See main article: Damping.

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 Ff can be modeled as being proportional to the velocity v of the object:, where c is called the viscous damping coefficient.

The balance of forces (Newton's second law) for damped harmonic oscillators is then F = - kx - c\frac = m \frac,which can be rewritten into the form \frac + 2\zeta\omega_0\frac + \omega_0^2 x = 0, where

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

λ=\omega0\zeta.

The Q factor of a damped oscillator is defined as Q = 2\pi \times \frac.

Q is related to the damping ratio by Q = \frac.

Driven harmonic oscillators

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

Newton's second law takes the formF(t) - kx - c\frac=m\frac.

It is usually rewritten into the form \frac + 2\zeta\omega_0\frac + \omega_0^2 x = \frac.

This equation can be solved exactly for any driving force, using the solutions z(t) that satisfy the unforced equation \frac + 2\zeta\omega_0\frac + \omega_0^2 z = 0,

and which can be expressed as damped sinusoidal oscillations:z(t) = A e^ \sin \left(\sqrt \omega_0 t + \varphi \right), in the case where . The amplitude A and phase φ determine the behavior needed to match the initial conditions.

Step input

See also: Step response.

In the case and a unit step input with : \frac = \begin \omega _0^2 & t \geq 0 \\ 0 & t < 0 \endthe solution is x(t) = 1 - e^ \frac,

with phase φ given by

\cos \varphi = \zeta.

The time an oscillator needs to adapt to changed external conditions is of the order . 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

In the case of a sinusoidal driving force: \frac + 2\zeta\omega_0\frac + \omega_0^2 x = \frac F_0 \sin(\omega t),where

F0

is the driving amplitude, and

\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

F0

, driving frequency

\omega

, undamped angular frequency

\omega0

, and the damping ratio

\zeta

.

The steady-state solution is proportional to the driving force with an induced phase change

\varphi

: x(t) = \frac \sin(\omega t + \varphi),where Z_m = \sqrtis the absolute value of the impedance or linear response function, and \varphi = \arctan\left(\frac \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 \omega_r = \omega_0 \sqrt, the amplitude (for a given

F0

) is maximal. This resonance effect only occurs when

\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 (

F0=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

See main article: Parametric oscillator. 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.[1] [2] [3] 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

\omega

and damping

\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 (

\omegas,\omegai

).

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

The equation \frac + 2 \zeta \frac + q = 0is known as the universal oscillator equation, since all second-order linear oscillatory systems can be reduced to this form. This is done through nondimensionalization.

If the forcing function is, where, the equation becomes\frac + 2 \zeta \frac + q = \cos(\omega \tau).

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

Transient solution

The solution based on solving the ordinary differential equation is for arbitrary constants c1 and c2

q_t (\tau) = \begin e^ \left(c_1 e^ + c_2 e^ \right) & \zeta > 1 \text \\ e^ (c_1+c_2 \tau) = e^(c_1+c_2 \tau) & \zeta = 1 \text \\ e^ \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\end

The transient solution is independent of the forcing function.

Steady-state solution

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

Supposing the solution is of the formq_s(\tau) = A e^.

Its derivatives from zeroth to second order areq_s = A e^, \quad\frac = i \omega A e^, \quad\frac = -\omega^2 A e^ .

Substituting these quantities into the differential equation gives-\omega^2 A e^ + 2 \zeta i \omega A e^ + A e^ = (-\omega^2 A + 2 \zeta i \omega A + A) e^ = e^.

Dividing by the exponential term on the left results in-\omega^2 A + 2 \zeta i \omega A + A = e^ = \cos\varphi - i \sin\varphi.

Equating the real and imaginary parts results in two independent equationsA (1 - \omega^2) = \cos\varphi, \quad 2 \zeta \omega A = -\sin\varphi.

Amplitude part

Squaring both equations and adding them together gives\left. \begin A^2 (1-\omega^2)^2 &= \cos^2\varphi \\ (2 \zeta \omega A)^2 &= \sin^2\varphi\end \right\}\Rightarrow A^2[(1 - \omega^2)^2 + (2 \zeta \omega)^2] = 1.

Therefore,A = A(\zeta, \omega) = \sgn \left(\frac \right) \frac.

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.

Phase part

To solve for, divide both equations to get\tan\varphi = -\frac = \frac~~ \implies ~~ \varphi \equiv \varphi(\zeta, \omega) = \arctan \left(\frac \right) + n\pi.

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

Full solution

Combining the amplitude and phase portions results in the steady-state solutionq_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(\tau) = q_t(\tau) + q_s(\tau).

Equivalent systems

See main article: System equivalence. 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 oscillatorstheir output waveform, resonant frequency, damping factor, etc.are the same.

Translational mechanicalRotational mechanicalSeries RLC circuitParallel RLC circuit
Position

x

Angle

\theta

Charge

q

Flux linkage

\varphi

Velocity
dx
dt
Angular velocity
d\theta
dt
Current
dq
dt
Voltage
d\varphi
dt
Mass

m

Moment of inertia

I

Inductance

L

Capacitance

C

Momentum

p

Angular momentum

L

Flux linkage

\varphi

Charge

q

Spring constant

k

Torsion constant

\mu

Elastance

1/C

Magnetic reluctance

1/L

Damping

c

Rotational friction

\Gamma

Resistance

R

Conductance

G=1/R

Drive force

F(t)

Drive torque

\tau(t)

Voltage

v

Current

i

Undamped resonant frequency

fn

:
1\sqrt{
2\pi
k
m
}
1\sqrt{
2\pi
\mu
I
}
1\sqrt{
2\pi
1
LC
}
1\sqrt{
2\pi
1
LC
}
Damping ratio

\zeta

:
c\sqrt{
2
1
km
}
\Gamma\sqrt{
2
1
I\mu
}
R\sqrt{
2
C
L
}
G\sqrt{
2
L
C
}
Differential equation:

m\ddotx+c

x

+kx=F

I\ddot\theta+\Gamma

\theta

+\mu\theta=\tau

L\ddotq+R

q

+q/C=v

C\ddot\varphi+G

\varphi

+\varphi/L=i

Application to a conservative force

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 isV(x) = \tfrac k x^2.

Given an arbitrary potential-energy function

V(x)

, one can do a Taylor expansion in terms of

x

around an energy minimum (

x=x0

) to model the behavior of small perturbations from equilibrium.

V(x) = V(x_0) + V'(x_0) \cdot (x - x_0) + \tfrac V(x_0) \cdot (x - x_0)^2 + O(x - x_0)^3.

Because

V(x0)

is a minimum, the first derivative evaluated at

x0

must be zero, so the linear term drops out:V(x) = V(x_0) + \tfrac V(x_0) \cdot (x - x_0)^2 + O(x - x_0)^3.

The constant term is arbitrary and thus may be dropped, and a coordinate transformation allows the form of the simple harmonic oscillator to be retrieved:V(x) \approx \tfrac V(0) \cdot x^2 = \tfrac k x^2.

Thus, given an arbitrary potential-energy function

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.

Examples

Simple pendulum

Assuming no damping, the differential equation governing a simple pendulum of length

l

, where

g

is the local acceleration of gravity, is\frac + \frac\sin\theta = 0.

If the maximal displacement of the pendulum is small, we can use the approximation

\sin\theta\theta

and instead consider the equation\frac + \frac\theta = 0.

The general solution to this differential equation is\theta(t) = A \cos\left(\sqrt t + \varphi \right),where

A

and

\varphi

are constants that depend on the initial conditions.Using as initial conditions

\theta(0)=\theta0

and
\theta

(0)=0

, the solution is given by\theta(t) = \theta_0 \cos\left(\sqrt t\right),where

\theta0

is the largest angle attained by the pendulum (that is,

\theta0

is the amplitude of the pendulum). The period, the time for one complete oscillation, is given by the expression\tau = 2\pi \sqrt\frac = \frac,which is a good approximation of the actual period when

\theta0

is small. Notice that in this approximation the period

\tau

is independent of the amplitude

\theta0

. In the above equation,

\omega

represents the angular frequency.

Spring/mass system

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) = -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) = -kx(t) = m \frac 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 \left(\sqrt t \right).

Given an ideal massless spring,

m

is the mass on the end of the spring. If the spring itself has mass, its effective mass must be included in

m

.

Energy variation in the spring–damping system

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 = \frackx^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

Symbol DefinitionDimensions SI units

a

Acceleration of mass
LT-2
m/s2

A

Peak amplitude of oscillation

L

m

c

Viscous damping coefficient
MT-1
N·s/m

f

Frequency
T-1
Hz

F

Drive force
MLT-2
N

g

Acceleration of gravity at the Earth's surface
LT-2
m/s2

i

Imaginary unit,

i2=-1

k

Spring constant
MLT-2
N/m

\mu

Torsion Spring constant
ML2T-2
Nm/rad

m,M

Mass

M

kg

Q

Quality factor

T

Period of oscillation

T

s

t

Time

T

s

U

Potential energy stored in oscillator
ML2T-2
J

x

Position of mass

L

m

\zeta

Damping ratio

\varphi

Phase shiftrad

\omega

Angular frequency
T-1
rad/s

\omega0

Natural resonant angular frequency
T-1
rad/s

See also

References

External links

Notes and References

  1. Web site: Two ways of driving a child's swing . William . Case . 27 November 2011 . dead . https://web.archive.org/web/20111209230414/http://www.grinnell.edu/academic/physics/faculty/case/swing . 9 December 2011 .
  2. Case . W. B. . The pumping of a swing from the standing position . 10.1119/1.18209 . American Journal of Physics . 64 . 3 . 215–220 . 1996 . 1996AmJPh..64..215C .
  3. 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 . 10.1088/0143-0807/31/5/020 . 2010EJPh...31.1195R . 122086250 .