Skip to main content
Physics LibreTexts

16.5: Energy and the Simple Harmonic Oscillator

  • Page ID
    1606
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Learning Objectives

    By the end of this section, you will be able to:

    • Determine the maximum speed of an oscillating system.

    To study the energy of a simple harmonic oscillator, we first consider all the forms of energy it can have. We know from Hooke’s Law: Stress and Strain Revisited that the energy stored in the deformation of a simple harmonic oscillator is a form of potential energy given by:

    \[PR_{el} = \dfrac{1}{2}kx^2.\]

    Because a simple harmonic oscillator has no dissipative forces, the other important form of energy is kinetic energy \(KE\). Conservation of energy for these two forms is:

    \[KE + PE_{el} = constant\]

    or

    \[\dfrac{1}{2}mv^2 + \dfrac{1}{2}kx^2 = constant.\]

    This statement of conservation of energy is valid for all simple harmonic oscillators, including ones where the gravitational force plays a role.

    Namely, for a simple pendulum we replace the velocity with \(v = L\omega\), the spring constant with \(k = mg/L\) and the displacement term with \(x = L\theta\). Thus

    \[\dfrac{1}{2}mL^2\omega^2 + \dfrac{1}{2}mgL\theta^2 = constant.\]

    In the case of undamped simple harmonic motion, the energy oscillates back and forth between kinetic and potential, going completely from one to the other as the system oscillates. So for the simple example of an object on a frictionless surface attached to a spring, as shown again in Figure \(\PageIndex{1}\), the motion starts with all of the energy stored in the spring. As the object starts to move, the elastic potential energy is converted to kinetic energy, becoming entirely kinetic energy at the equilibrium position. It is then converted back into elastic potential energy by the spring, the velocity becomes zero when the kinetic energy is completely converted, and so on. This concept provides extra insight here and in later applications of simple harmonic motion, such as alternating current circuits.

    Figure a shows a spring on a frictionless surface attached to a bar or wall from the left side, and on the right side of it there’s an object attached to it with mass m, its amplitude is given by X, and x equal to zero at the equilibrium level. Force F is applied to it from the right side, shown with left direction pointed red arrow and velocity v is equal to zero. A direction point showing the north and west direction is also given alongside this figure as well as with other four figures. The energy given here for the object is given according to the velocity. In figure b, after the force has been applied, the object moves to the left compressing the spring a bit, and the displaced area of the object from its initial point is shown in sketched dots. F is equal to zero and the V is max in negative direction. The energy given here for the object is given according to the velocity. In figure c, the spring has been compressed to the maximum level, and the amplitude is negative x. Now the direction of force changes to the rightward direction, shown with right direction pointed red arrow and the velocity v zero. The energy given here for the object is given according to the velocity.                In figure d, the spring is shown released from the compressed level and the object has moved toward the right side up to the equilibrium level. F is zero, and the velocity v is maximum. The energy given here for the object is given according to the velocity.               In figure e, the spring has been stretched loose to the maximum level and the object has moved to the far right. Now again the velocity here is equal to zero and the direction of force again is to the left hand side, shown here as F is equal to zero. The energy given here for the object is given according to the velocity.
    Figure \(\PageIndex{1}\): The transformation of energy in simple harmonic motion is illustrated for an object attached to a spring on a frictionless surface.

    The conservation of energy principle can be used to derive an expression for velocity \(v\). If we start our simple harmonic motion with zero velocity and maximum displacement (\(x = X\)), then the total energy is

    \[\dfrac{1}{2}kX^2.\]

    This total energy is constant and is shifted back and forth between kinetic energy and potential energy, at most times being shared by each. The conservation of energy for this system in equation form is thus:

    \[\dfrac{1}{2}mv^2 + \dfrac{1}{2}kx^2 = \dfrac{1}{2}kX^2.\]

    Solving this equation for \(v\) yields:

    \[v = \pm \sqrt{\dfrac{k}{m}(X^2 - x^2)}.\]

    Manipulating this expression algebraically gives:

    \[v = \pm\sqrt{\dfrac{k}{m}}X\sqrt{1 - \dfrac{x^2}{X^2}}\]

    and so

    \[v = \pm v_{max} \sqrt{1 - \dfrac{x^2}{X^2}},\]

    where

    \[v_{max} = \sqrt{\dfrac{k}{m}}X.\]

    From this expression, we see that the velocity is a maximum (\(v_{max}\)) at \(x = 0\), as stated earlier in \(v(t) = - v_{max} \, sin \, \frac{2\pi t}{T}\). Notice that the maximum velocity depends on three factors. Maximum velocity is directly proportional to amplitude. As you might guess, the greater the maximum displacement the greater the maximum velocity. Maximum velocity is also greater for stiffer systems, because they exert greater force for the same displacement. This observation is seen in the expression for \(v_{max}\) it is proportional to the square root of the force constant \(k\) Finally, the maximum velocity is smaller for objects that have larger masses, because the maximum velocity is inversely proportional to the square root of \(m\). For a given force, objects that have large masses accelerate more slowly.

    A similar calculation for the simple pendulum produces a similar result, namely:

    \[\omega_{max} = \sqrt{\dfrac{g}{L}}\theta_{max}.\]

    Example \(\PageIndex{1}\): Determine the Maximum Speed of an Oscillating System: A Bumpy Road

    Suppose that a car is 900 kg and has a suspension system that has a force constant \(k = 6.53 \times 10^4 \, N/m\). The car hits a bump and bounces with an amplitude of 0.100 m. What is its maximum vertical velocity if you assume no damping occurs?

    Strategy

    We can use the expression for \(v_{max}\) given in \(v_{max} = \sqrt{\frac{k}{m}}X\) to determine the maximum vertical velocity. The variables \(m\) and \(k\) are given in the problem statement, and the maximum displacement \(X\) is 0.100 m.

    Solution

    1. Identify known.
    2. Substitute known values into \(v_{max} = \sqrt{\frac{k}{m}}X\). \[v_{max} = \sqrt{\dfrac{6.53 \times 10^4 \, N/m}{900 \, kg}}(0.100 \, m).\]
    3. Calculate to find \(v_{max} = 0.852 \, m/s\).

    Discussion

    This answer seems reasonable for a bouncing car. There are other ways to use conservation of energy to find \(v_{max}\). We could use it directly, as was done in the example featured in Hooke’s Law: Stress and Strain Revisited.

    The small vertical displacement \(y\) of an oscillating simple pendulum, starting from its equilibrium position, is given as

    \[y(t) = a \, sin \, \omega t,\]

    where \(a\) is the amplitude, \(\omega\) is the angular velocity and \(t\) is the time taken. Substituting \(\omega = \frac{2\pi}{T},\) we have

    \[y(t) = a \, sin \left(\dfrac{2\pi t}{T} \right).\]

    Thus, the displacement of pendulum is a function of time as shown above.

    Also the velocity of the pendulum is given by

    \[v(t) = \dfrac{2a\pi}{T} \, cos \left(\dfrac{2\pi t}{T}\right),\]

    so the motion of the pendulum is a function of time.

    Exercise \(\PageIndex{1}\)

    Why does it hurt more if your hand is snapped with a ruler than with a loose spring, even if the displacement of each system is equal?

    Solution

    The ruler is a stiffer system, which carries greater force for the same amount of displacement. The ruler snaps your hand with greater force, which hurts more.

    Exercise \(\PageIndex{2}\):Check Your Understanding

    You are observing a simple harmonic oscillator. Identify one way you could decrease the maximum velocity of the system.

    Solution

    You could increase the mass of the object that is oscillating.

    Summary

    • Energy in the simple harmonic oscillator is shared between elastic potential energy and kinetic energy, with the total being constant: \[\dfrac{1}{2}mv^2 + \dfrac{1}{2}kx^2 = constant. \nonumber\]
    • Maximum velocity depends on three factors: it is directly proportional to amplitude, it is greater for stiffer systems, and it is smaller for objects that have larger masses: \[v_{max} = \sqrt{\dfrac{k}{m}}X. \nonumber\]

    This page titled 16.5: Energy and the Simple Harmonic Oscillator is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.