Harmonic oscillator (classical): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Paul Wormer
imported>Paul Wormer
No edit summary
Line 1: Line 1:
[[Image:Springs.png|right|thumb|350px|Harmonic oscillator: mass ''m'' oscillates between −''x'' and ''x''. Equilibrium at ''x'' = 0.]]
[[Image:Springs.png|right|thumb|350px|Harmonic oscillator: mass ''m'' oscillates between −''x'' and ''x''. Equilibrium at ''x'' = 0.]]
In [[classical mechanics]], a '''harmonic oscillator''' appears frequently as a simple model; it describes approximately many different physical phenomena. In its simplest form a harmonic oscillator consists of a mass ''m'' on which a force acts that is linear in a displacement from equilibrium. By [[Hooke's law]]  a spring gives  to very good approximation a force that is linear  for small displacements and so figure 1 shows a very simple example of a harmonic oscillator.
In [[physics]], a '''harmonic oscillator''' appears frequently as a simple model for many different types of phenomena. The simplest physical realization of a harmonic oscillator consists of a mass ''m'' on which a force acts that is linear in a displacement from equilibrium. By [[Hooke's law]]  a spring gives  to very good approximation a force that is linear  for small displacements and so figure 1 shows a simple realization of a harmonic oscillator.
The uppermost mass ''m'' feels a force acting to the right equal to ''f x'', where ''f'' is Hooke's constant. The mass in the middle is in equilibrium, and the mass at the bottom feels a force to the left equal to −''f x''.  The spring force always acts so as to restore mass back toward its equilibrium position. If the mass is pulled out of equilibrium and then let go, the mass will (in an ideal setup) oscillate for ever. In practice, energy will be lost due to friction of the atoms in the spring, so that the oscillation will die out after some time.
The uppermost mass ''m'' feels a force acting to the right equal to ''k x'', where ''k'' is Hooke's spring constant (a positive number). The mass in the middle is in equilibrium, and the mass at the bottom feels a force to the left equal to −''k x''.  The force executed by the springs always acts so as to restore the mass back toward its equilibrium position. If the mass is pulled out of equilibrium to ''x'' = ''A'' and then let go, the mass will (in an ideal setup) oscillate forever between ±''A''. In practice, energy will be lost due to friction of the atoms in the spring, so that the oscillation will die out after some time.


==Mathematical description==
==Mathematical description==
The motion of the mass as a function of time ''t'' may be obtained from [[Newton]]'s second law
The motion of the mass as a function of time ''t'' may be obtained from [[Newton]]'s second law
(briefly: ''F'' = ''ma''). Bringing the force ''F'' and the acceleration ''a'' (times mass ''m'') to the same side of the equation, the ''harmonic oscillator equation'' becomes
(''F'' = ''ma''). Bringing the force ''F'' and the acceleration ''a'' (times mass ''m'') to the same side of Newton's equation, the ''harmonic oscillator equation'' becomes the equation on the left,
:<math>
:<math>
m\ddot{x} + f x = 0\;\Longrightarrow\;
m\ddot{x} + k x = 0\;\Longrightarrow\;
\ddot{x} = -\frac{f}{m} x\quad\hbox{with}\quad \ddot{x} \equiv \frac{d^2 x}{dt^2}.
\ddot{x} = -\frac{k}{m} x\quad\hbox{with}\quad \ddot{x} \equiv \frac{d^2 x}{dt^2}.
</math>
</math>
We see that the second derivative of ''x'' is proportional to &minus;''x''. There are several functions known to have this property (sine, cosine, exponent with imaginary argument), we choose fairly arbitrarily the cosine as a trial function. The equation is a second order ordinary [[differential equation]] and its general solution contains two integration constants. Further the unit of time is undetermined and hence we scale time by a real number &omega;. In total the trial function is
We see that the second derivative of ''x'' is proportional to &minus;''x''. There are several functions known to have this property (sine, cosine, exponent with imaginary argument), we choose fairly arbitrarily the cosine as a trial function. The oscillator equation is a second order ordinary [[differential equation]] and its general solution contains two integration constants. Further the unit of time is undetermined and hence we scale time by a real number &omega;. In total the trial function is
:<math>
:<math>
x(t) = A \cos(\omega t +\phi)\;,
x(t) = A \cos(\omega t +\phi)\;,
</math>
</math>
where the integration constants are to be determined from the initial conditions. Substitution into the Newton equation gives
where the integration constants ''A'' and &phi; are to be determined from the initial conditions. Substitution into the Newton equation gives
:<math>
:<math>
-Am\omega^2 \cos(\omega t +\phi) + f A \cos(\omega t +\phi) = 0\;,
-Am\omega^2 \cos(\omega t +\phi) + k A \cos(\omega t +\phi) = 0\;,
</math>
</math>
which fixes <math>\omega = \sqrt{f/m}</math>. The quantity &omega; has dimension of frequency (1/time)  and is often written as
which fixes <math>\omega = \sqrt{k/m}</math>. The quantity &omega; has dimension of frequency (1/time)  and is often written as &omega; = 2&pi; &nu;, where &nu; is the frequency (number of cycles per second) and &omega; is called angular frequency.  
:<math> \omega = 2\pi \nu   \;,</math>
The time ''T'' &equiv; 1/&nu; is called the ''period'' of the cycle (duration of one cycle),
where &nu; is the frequency and &omega; is called angular frequency. As stated, the [[amplitude]] and the [[phase angle]] &phi; are integration constants. Often it is possible to choose the zero  of time such that &omega;''t'' + &phi; = 0, implying that &phi; is zero:
<table border="2" align="center" rules="all" cellpadding="10%">
<tr><td><math>T =  \frac{1}{\nu} = \frac{2\pi}{\omega} = 2\pi \sqrt{\frac{m}{k}}</math>
</tr>
</table>
As stated, the [[amplitude]] and the [[phase angle]] &phi; are integration constants. Often it is possible to choose the zero  of time such that &omega;''t'' + &phi; = 0, implying that &phi; is zero:
:<math>
:<math>
x(t) =  A \cos(\sqrt{\frac{f}{m}} t )=  A \cos\omega t.
x(t) =  A \cos(\sqrt{\frac{k}{m}} t )=  A \cos\omega t.
</math>  
</math>  
The amplitude ''A'' is determined by how far we move initially (at ''t'' = 0) the mass (in figure 1) away from equilibrium
The amplitude ''A'' is determined by how far we move initially (at ''t'' = 0) the mass (in figure 1) away from equilibrium
Line 28: Line 32:
From the form of the [[cosine]] function we know that ''x'' goes through zero (mass in equilibrium ''x'' = 0 in figure 1) at the following points in time:
From the form of the [[cosine]] function we know that ''x'' goes through zero (mass in equilibrium ''x'' = 0 in figure 1) at the following points in time:
:<math>
:<math>
t_0 =  \frac{(2k+1)\,\pi}{2\omega} \quad\hbox{with}\quad  |k| = 0,1,2, \ldots
t_0 =  \frac{(2n+1)\,\pi}{2\omega} \quad\hbox{with}\quad  |n| = 0,1,2, \ldots
</math>
</math>
The displacement is minimum (mass  in point ''x'' = &minus;''A'' in figure 1, i.e., furthest to the left) for the times
The displacement is minimum (mass  in point ''x'' = &minus;''A'' in figure 1, i.e., furthest to the left) for the times
:<math>
:<math>
t_\mathrm{min} =  \frac{(2k+1)\, \pi}{\omega} \quad\hbox{with}\quad  |k| = 0,1,2, \ldots
t_\mathrm{min} =  \frac{(2n+1)\, \pi}{\omega} \quad\hbox{with}\quad  |n| = 0,1,2, \ldots
</math>
</math>
The value of ''x'' is maximum (mass in point ''x'' = ''A''  in figure 1) for
The value of ''x'' is maximum (mass in point ''x'' = ''A''  in figure 1) for
:<math>
:<math>
t_\mathrm{max} =  \frac{2k\,\pi}{\omega} \quad\hbox{with}\quad  |k| = 0,1,2, \ldots
t_\mathrm{max} =  \frac{2n\,\pi}{\omega} \quad\hbox{with}\quad  |n| = 0,1,2, \ldots
</math>
</math>
Note that for ''n'' = 0, ''t''<sub>min</sub> - ''t''<sub>max</sub> = &pi;/&omega; = ''T''/2 (the time of a half period). It takes  time ''T''  for the mass to return to ''A''.


The mass oscillates from ''x'' = ''A'' to ''x'' = &minus;''A'' and back again. The speed of the mass is
The mass oscillates from ''x'' = ''A'' to ''x'' = &minus;''A'' and back again. The speed of the mass is
Line 47: Line 52:
\begin{align}  
\begin{align}  
\dot{x}(t_0) &= \pm A\omega && (\hbox{maximum speed})\\
\dot{x}(t_0) &= \pm A\omega && (\hbox{maximum speed})\\
\dot{x}(t_\mathrm{min}) &= \dot{x}(t_\mathrm{max}) = 0
\dot{x}(t_\mathrm{min}) &= \dot{x}(t_\mathrm{max}) = 0 &&\hbox{(turning points)}\\
\end{align}
\end{align}
</math>  
</math>  
Physically, after the mass is displaced from equilibrium a distance ''A'' to the right, the restoring force ''fx'' pushes the mass back toward its equilibrium position, causing it to accelerate to the left. When it reaches equilibrium (''x'' = 0), there is no force acting on it at that instant, but it is moving at speed ''A''&omega; to the left, and by Newton's first law it persists in its motion moving beyond equilibrium position. Before it is stopped it reaches position &minus;''A'', and by this time there is a force acting on it again, pulling it back toward equilibrium (to the right in figure 1).  
Physically, after the mass is displaced from equilibrium over a distance ''A'' to the right, the restoring force &minus;''kx'' pushes the mass back toward its equilibrium position, causing it to accelerate to the left. When it reaches equilibrium (''x'' = 0), there is no force acting on it at that instant, but it is moving at maximum speed &minus;''A''&omega; (to the left), and by Newton's first law it persists in its motion moving beyond equilibrium position. Before it is stopped it reaches position &minus;''A'', and by this time there is a force acting on it again, pulling it back toward equilibrium (to the right in figure 1). The direction of the motion is turned around in the points ''x'' = &plusmn;''A'', which is why these are called ''turning points''.


The whole process, known as simple harmonic motion, repeats itself endlessly with an angular frequency given by &omega; = &radic;''f''/''m''. This relation means that the stiffer the springs (i.e., the larger ''f''), the higher the frequency (the faster the oscillations). Making the mass ''m'' greater has exactly the opposite effect, slowing the motion down.
The whole process, known as simple harmonic motion, repeats itself endlessly with a period given by T = 2&pi; &radic;''m''/''k''. This relation means that the stiffer the springs (i.e., the larger ''k''), the shorter the period (the faster the oscillations). Making the mass ''m'' greater has exactly the opposite effect, slowing the motion down.


One of the most important features of harmonic motion is the fact that the frequency of the motion (&omega; or &nu;) depends only on the mass and the stiffness of the spring. It does not depend on the amplitude ''A'' of the motion. If the amplitude is increased, the mass moves faster, but the time required for a complete round trip (the argument of the cosine) remains the same. This fact is used in accurate timekeeping.
One of the most important features of harmonic motion is the fact that the frequency of the motion (&omega;, ''T'', or &nu;) depends only on the mass ''m'' and the stiffness ''k'' of the spring. It does not depend on the amplitude ''A'' of the motion. If the amplitude is increased, the mass moves faster, but the time required for a complete round trip (the argument of the cosine) remains the same. This fact is used in accurate timekeeping.


==Harmonic potential==
==Harmonic potential==
From [[classical mechanics]] it is known that the potential energy is minus the force ''F'' = &minus;''fx'' integrated over  distance:
From [[classical mechanics]] it is known that the potential energy is minus the force integrated over  distance:
:<math>
:<math>
  V(x)-V(x_0) = \int_{x_0}^{x} \; fx'\;\mathrm{d}x' = \frac{1}{2}f x^2 - \frac{1}{2}f x_0^2,  
  V(x)-V(x_0) = \int_{x_0}^{x} \; ky\;\mathrm{d}y = \frac{1}{2}k x^2 - \frac{1}{2}k x_0^2,  
</math>
</math>
where the zero of the potential  is at the arbitrary point ''x''<sub>0</sub> (the lower limit of the integral). When we choose ''x''<sub>0</sub> = 0,  we find  ''V''(''x''<sub>0</sub>) = 0, so that ''V''(''x'') = (''f''/2)''x''<sup>2</sup>.  
where the zero of the potential  is at the arbitrary point ''x''<sub>0</sub> (the lower limit of the integral). When we choose ''x''<sub>0</sub> = 0,  we find  ''V''(''x''<sub>0</sub>) = 0, so that ''V''(''x'') = (''k''/2)''x''<sup>2</sup>.  


Making a minor generalization we shift the origin  on the ''x''-axis from 0 to the arbitrary point ''x''<sub>0</sub>, i.e. we make the substitution ''x'' &rarr; ''x''&minus;''x''<sub>0</sub>.  Then the ''harmonic potential'' becomes the following quadratic function in the displacement ''x'' &minus; ''x''<sub>0</sub>,
Introducing a minor generalization, we shift the origin  on the ''x''-axis from 0 to the arbitrary point ''x''<sub>0</sub>, i.e. we make the substitution ''x'' &rarr; ''x''&minus;''x''<sub>0</sub>.  Then the ''harmonic potential'' becomes the following quadratic function in the displacement ''x'' &minus; ''x''<sub>0</sub>,
:<math>
:<math>
V(x-x_0) = \frac{1}{2} f (x-x_0)^2.
V(x-x_0) = \frac{1}{2} k (x-x_0)^2.
</math>
</math>


Line 82: Line 87:
If we identify Hooke's (spring) constant thus:  
If we identify Hooke's (spring) constant thus:  
:<math>
:<math>
f = \left[\frac{d^2 V(x)}{dx^2}\right]_{x_0},
k = \left[\frac{d^2 V(x)}{dx^2}\right]_{x_0},
</math>
</math>
we have found the harmonic potential from the truncated Taylor series. Note that if ''f'' > 0, the potential has a minimum at ''x''<sub>0</sub> (the stationary point is a minimum).
we have found the harmonic potential from the truncated Taylor series. Note that since ''k'' > 0, the potential has a minimum at ''x''<sub>0</sub> (the stationary point is a minimum).


We went from the force to the potential by integrating over distance. Conversely, given a potential ''V'', it is known from [[classical mechanics]] that the corresponding force ''F'' is minus the derivative <i>V</i>',
We went from the force to the potential by integrating over distance. Conversely, given a potential ''V'', it is known from [[classical mechanics]] that the corresponding force ''F'' is minus the derivative <i>V</i>',
:<math>
:<math>
F = -V' = - (x-x_0)\;\left[\frac{dV(x)}{dx}\right]_{x_0}  = - (x-x_0)\; f.
F = -V' = - (x-x_0)\;\left[\frac{dV(x)}{dx}\right]_{x_0}  = - (x-x_0)\; k.
</math>   
</math>   
So, one could say that we proved [[Hooke's law]] (force linear in displacement) by making (and truncating) a Taylor expansion.
So, one could say that we proved [[Hooke's law]] (force linear in displacement) by use of a truncated Taylor expansion.
 
==Energy==




'''(To be continued)'''
'''(To be continued)'''

Revision as of 07:20, 26 January 2009

Harmonic oscillator: mass m oscillates between −x and x. Equilibrium at x = 0.

In physics, a harmonic oscillator appears frequently as a simple model for many different types of phenomena. The simplest physical realization of a harmonic oscillator consists of a mass m on which a force acts that is linear in a displacement from equilibrium. By Hooke's law a spring gives to very good approximation a force that is linear for small displacements and so figure 1 shows a simple realization of a harmonic oscillator. The uppermost mass m feels a force acting to the right equal to k x, where k is Hooke's spring constant (a positive number). The mass in the middle is in equilibrium, and the mass at the bottom feels a force to the left equal to −k x. The force executed by the springs always acts so as to restore the mass back toward its equilibrium position. If the mass is pulled out of equilibrium to x = A and then let go, the mass will (in an ideal setup) oscillate forever between ±A. In practice, energy will be lost due to friction of the atoms in the spring, so that the oscillation will die out after some time.

Mathematical description

The motion of the mass as a function of time t may be obtained from Newton's second law (F = ma). Bringing the force F and the acceleration a (times mass m) to the same side of Newton's equation, the harmonic oscillator equation becomes the equation on the left,

We see that the second derivative of x is proportional to −x. There are several functions known to have this property (sine, cosine, exponent with imaginary argument), we choose fairly arbitrarily the cosine as a trial function. The oscillator equation is a second order ordinary differential equation and its general solution contains two integration constants. Further the unit of time is undetermined and hence we scale time by a real number ω. In total the trial function is

where the integration constants A and φ are to be determined from the initial conditions. Substitution into the Newton equation gives

which fixes . The quantity ω has dimension of frequency (1/time) and is often written as ω = 2π ν, where ν is the frequency (number of cycles per second) and ω is called angular frequency. The time T ≡ 1/ν is called the period of the cycle (duration of one cycle),

As stated, the amplitude and the phase angle φ are integration constants. Often it is possible to choose the zero of time such that ωt + φ = 0, implying that φ is zero:

The amplitude A is determined by how far we move initially (at t = 0) the mass (in figure 1) away from equilibrium

.

From the form of the cosine function we know that x goes through zero (mass in equilibrium x = 0 in figure 1) at the following points in time:

The displacement is minimum (mass in point x = −A in figure 1, i.e., furthest to the left) for the times

The value of x is maximum (mass in point x = A in figure 1) for

Note that for n = 0, tmin - tmax = π/ω = T/2 (the time of a half period). It takes time T for the mass to return to A.

The mass oscillates from x = A to x = −A and back again. The speed of the mass is

,

which for the specific values of time is

Physically, after the mass is displaced from equilibrium over a distance A to the right, the restoring force −kx pushes the mass back toward its equilibrium position, causing it to accelerate to the left. When it reaches equilibrium (x = 0), there is no force acting on it at that instant, but it is moving at maximum speed −Aω (to the left), and by Newton's first law it persists in its motion moving beyond equilibrium position. Before it is stopped it reaches position −A, and by this time there is a force acting on it again, pulling it back toward equilibrium (to the right in figure 1). The direction of the motion is turned around in the points x = ±A, which is why these are called turning points.

The whole process, known as simple harmonic motion, repeats itself endlessly with a period given by T = 2π √m/k. This relation means that the stiffer the springs (i.e., the larger k), the shorter the period (the faster the oscillations). Making the mass m greater has exactly the opposite effect, slowing the motion down.

One of the most important features of harmonic motion is the fact that the frequency of the motion (ω, T, or ν) depends only on the mass m and the stiffness k of the spring. It does not depend on the amplitude A of the motion. If the amplitude is increased, the mass moves faster, but the time required for a complete round trip (the argument of the cosine) remains the same. This fact is used in accurate timekeeping.

Harmonic potential

From classical mechanics it is known that the potential energy is minus the force integrated over distance:

where the zero of the potential is at the arbitrary point x0 (the lower limit of the integral). When we choose x0 = 0, we find V(x0) = 0, so that V(x) = (k/2)x2.

Introducing a minor generalization, we shift the origin on the x-axis from 0 to the arbitrary point x0, i.e. we make the substitution xxx0. Then the harmonic potential becomes the following quadratic function in the displacement xx0,

It is of interest to show the connection with the Taylor expansion of an arbitrary potential around x0

We truncate the expansion after these three terms. We take V(x0) as zero of potential and assume that x0 is a stationary point of the potential, i.e., that the potential at x0 has a minimum, a maximum, or a point of inflection (saddle point). This means that we assume that

Then the truncated Taylor series shrinks to

If we identify Hooke's (spring) constant thus:

we have found the harmonic potential from the truncated Taylor series. Note that since k > 0, the potential has a minimum at x0 (the stationary point is a minimum).

We went from the force to the potential by integrating over distance. Conversely, given a potential V, it is known from classical mechanics that the corresponding force F is minus the derivative V',

So, one could say that we proved Hooke's law (force linear in displacement) by use of a truncated Taylor expansion.

Energy

(To be continued)