In classical mechanics, a harmonic oscillator is a system which, when displaced from its equilibrium position, experiences a restoring force proportional to the displacement according to Hooke's law:
If 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. In such situation, the frequency of the oscillations is smaller than in the non-damped case, and the amplitude of the oscillations decreases with time.
If an external time-dependent force is present, the harmonic oscillator is described as a driven oscillator.
Mechanical examples include pendula (with small angles of displacement), masses connected to springs, and acoustical systems. Other analogous systems include electrical harmonic oscillators such as RLC circuits (see Equivalent systems below). The analysis of the harmonic oscillator exhibits the paradox that there is almost no ideal, or perfect, harmonic oscillator in nature or by manufacture, yet it is a system of profound importance in mathematics, physics and applied science.
Using Newton's Second Law of motion,
The acceleration, is equal to the second derivative of .
If we define , then the equation can be written as follows,
Define .
We observe that:
and has the general solution
where the amplitude and the phase are determined by the initial conditions.
Alternatively, the general solution can be written as
where the value of is shifted by relative to the previous form;
or as
where and are the constants which are determined by the initial conditions.
The frequency of the oscillations is given by
displaystyle
f
=
frac{omega_0} {2 pi}
=frac{1}{2 pi} sqrt{frac{k}{m}}
The kinetic energy is
and the potential energy is
so the total energy of the system has the constant value
where is the driving amplitude and is the driving frequency for a sinusoidal driving mechanism. This type of system appears in AC LC (inductor-capacitor) circuits and idealized spring systems lacking internal mechanical resistance or external air resistance.
where is an experimentally determined damping constant satisfying the relationship . An example of a system obeying this equation would be a weighted spring underwater if the damping force exerted by the water is assumed to be linearly proportional to .
The frequency of the damped harmonic oscillator is given by
The general solution is a sum of a transient (the solution for damped undriven harmonic oscillator, homogeneous ODE) that depends on initial conditions, and a steady state (particular solution of the nonhomogenous ODE) that is independent of initial conditions and depends only on driving frequency, driving force, restoring force, damping force,
The steady-state solution is
where
is the absolute value of the impedance or linear response function
and
is the phase of the oscillation relative to the driving force.
One might see that for a certain driving frequency, , the amplitude (relative to a given ) is maximal. This occurs for the frequency
and is called resonance of displacement.
In summary: at a steady state the frequency of the oscillation is the same as that of the driving force, but the oscillation is phase-offset and scaled by amounts that depend on the frequency of the driving force in relation to the preferred (resonant) frequency of the oscillating system.
Example: RLC circuit.
where t is time, b is the damping constant, ωo is the characteristic angular frequency, and Aocos(ωt) represents something driving the system with amplitude Ao and angular frequency ω. x is the measurement that is oscillating; it can be position, current, or nearly anything else. The angular frequency is related to the frequency, f, by
is 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 f(t) = cos(ωt) = cos(ωtcτ) = cos(ωτ), where ω = ωtc, the equation becomes
The solution to this differential equation contains two parts, the "transient" and the "steady state".
The transient solution is independent of the forcing function. If the system is critically damped, the response is independent of the damping.
Supposing the solution is of the form
Its derivatives from zero to 2nd order are
Substituting these quantities into the differential equation gives
Dividing by the exponential term on the left results in
Equating the real and imaginary parts results in two independent equations
Squaring both equations and adding them together gives
By convention the positive root is taken since amplitude is usually considered a positive quantity. Therefore,
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.
This phase function is particularly important in the analysis and understanding of the frequency response of second-order systems.
The solution of original universal oscillator equation is a superposition (sum) of the transient and steady-state solutions
For a more complete description of how to solve the above equation, see linear ODEs with constant coefficients.
| Translational Mechanical | Torsional Mechanical | Series RLC Circuit | Parallel RLC Circuit |
|---|---|---|---|
| Position | Angle | Charge | Voltage |
| Velocity | Angular velocity | Current | |
| Mass | Moment of inertia | Inductance | Capacitance |
| Spring constant | Torsion constant | Elastance | Susceptance |
| Friction | Rotational friction | Resistance | Conductance |
| Drive force | Drive torque | ||
| Undamped resonant frequency : | |||
| Differential equation: | |||
A conservative force is one that has a potential energy function. The potential energy function of a harmonic oscillator is:
Given an arbitrary potential energy function , one can do a Taylor expansion in terms of around an energy minimum () to model the behavior of small perturbations from equilibrium.
Because is a minimum, the first derivative evaluated at must be zero, so the linear term drops out:
The constant term V(x0) is arbitrary and thus may be dropped, and a coordinate transformation allows the form of the simple harmonic oscillator to be retrieved:
Thus, given an arbitrary potential energy function 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.
Assuming no damping and small amplitudes, the differential equation governing a simple pendulum is
The solution to this equation is given by:
where is the largest angle attained by the pendulum. The period, the time for one complete oscillation , is given by divided by whatever is multiplying the time in the argument of the cosine
The angular speed of the turntable is the pulsation of the pendulum.
In general, the pulsation-also known as angular frequency, of a straight-line simple harmonic motion is the angular speed of the corresponding circular motion.
Therefore, a motion with period T and frequency f=1/T has pulsation
In general, pulsation and angular speed are not synonymous. For instance the pulsation of a pendulum is not the angular speed of the pendulum itself, but it is the angular speed of the corresponding circular motion.
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:
where F is the force, k is the spring constant, and x is the displacement of the mass with respect to the equilibrium position.
This relationship shows that the distance of the spring is always opposite to the force of the spring.
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:
...the latter evidently being _law_of_resultant_force.
If the initial displacement is A, and there is no initial velocity, the solution of this equation is given by:
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 then is transferred into kinetic energy. The potential energy within a spring is determined by the equation
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 maximum potential energy, the kinetic energy of the mass is zero. When the spring is released, the spring will try to reach back to equilibrium, and all its potential energy is converted into kinetic energy of the mass.