Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

In this chapter, we will apply Newton’s Laws to cases of simple harmonic motion.

3.1 Force is Proportional to Position

Let’s consider a force that is proportional to the position of the system. Examples of such forces are found in springs, pendulums, and torsion oscillators. Figure 3.1 shows a case of a spring and mass, where the force acting on the mass from the spring is F=kxF = -kx, where kk is a positive constant. (Note this equation is also called Hooke’s Law.)

Figure shows a mass attached to a spring on a horizontal surface.

Figure 3.1:Example of the spring force acting on a mass.

A force in the form of F=kxF = -kx is also called a restoring force, because the force seeks to return a system to a state of equilibrium (x(x = 0). For example, in Figure 3.1, the spring is stretched from where it wants to be, x0x_{0}. The spring force will try to return the mass back to its equilibrium state.

If the net force acting on the mass is the spring force, then we can use Newton’s second law, F=ma=kx\sum F = ma = -kx to get,

a=d2xdt2=kmxa = \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} = - \frac{k}{m} x

Equation 3.1 is a second-order differential equation, where the second time derivative of displacement is proportional to the displacement (k(k and mm are constants). Thus, we need a function that when differentiated twice gives you the negative of that original function multiplied by a constant. This type of problem has a well known solution. Two familiar functions that meet these conditions are the cos and sin functions.

The solution of a cost\cos t or sint\sin t function should make sense. Picture a mass hanging from a spring. If you move the mass upward and let go, the mass will initially move downwards until it reaches a maximum drop at which point it will be pulled back upwards until it reaches its original position then it will move back downwards. Essentially, the mass will move down and up in a periodic manner. Figure 3.2 shows the up-down displacement of this mass as a function of time; note that the displacement looks like a cos (or sin) function.

Figure shows a cartoon of a mass hanging from a vertical spring next to a graph showing the periodic displacement of the mass over time.

Figure 3.2:Motion of a simple harmonic oscillator. The left panel shows that the mass will move up and down in periodic motion. The right panel shows a sketch of its displacement over time. The mass starts with a maximum displacement (e.g., maximum compression of the spring) and moves to the other end (e.g., maximum extension of the spring) and back again. This back-and-forth motion continues.

Therefore, the solution to the second-order differential equation (Eq 3.1) is met with:

x=Acos(ω0t+φ)x = A\cos (\omega _{0}t + \varphi)

where A,ω0A,\omega _{0}, and φ\varphi are all constants.

Equation 3.2 is a generic solution to the second-order differential equation that works for any simple harmonic oscillator (not just a mass and spring). Note also that instead of cos, we can use Bsin(ω0t+φ2)B\sin (\omega _{0}t + \varphi _{2}), where B,ω0B,\omega _{0}, and φ2\varphi _{2} are all constants. Indeed, the cos and sin forms of the equation are interchangeable if you just alter the value of the phase constant. In practice, the most general solution for simple harmonic motion would be a superposition of cos and sin functions. For this textbook, however, we will assume that the motion can be described via a single periodic function and we will use the cos function by default.

Now that we have x(t)x(t), we just need to differentiate once to get the velocity.

v=x˙v=ddt[Acos(ω0t+φ)]\begin{aligned} v&=\dot{x} \\ v&=\frac{\mathrm{d}}{\mathrm{d}t}\left[A\cos(\omega_{0}t+\varphi)\right] \end{aligned}
v=ω0Asin(ω0t+φ)v = -\omega _{0}A\sin (\omega _{0}t + \varphi)

And we can differentiate again to get the acceleration.

a=v˙a=ddt[ω0Asin(ω0t+φ)]a=ω02[Acos(ω0t+φ)]x(t)\begin{aligned} a&=\dot{v} \\ a&=\frac{\mathrm{d}}{\mathrm{d}t}\left[-\omega_{0}A\sin(\omega_{0}t+\varphi)\right] \\ a&=-\omega_{0}^{2}\underbrace{\left[A\cos(\omega_{0}t+\varphi)\right]}_{x(t)} \end{aligned}
a=ω02xa = -\omega _{0}^{2}x

Thus, we find that a=ω02xa = -\omega _{0}^{2}x, where ω0\omega _{0} is the angular frequency constant. Going back to our original definition of the force in Equation (3.1), we had a=kmxa = - \frac{k}{m} x for the force F=kxF = -kx. Thus, the generic differential equation of motion solves Hooke’s Law if:

ω0=km\omega_{0}=\sqrt{\frac{k}{m}}

Note that for other restoring forces, the solution for ω0\omega _{0} will be different.

3.2 Simple Harmonic Motion: Springs

3.2.1 Horizontal Springs

A spring is a coil of wire. When stretched or compressed, the spring will try to return to its equilibrium position via a restoring force of F=kxF = -kx that acts against the spring’s displacement from equilibrium. The constant, kk, is the spring constant and it is a measure of the spring’s stiffness.

We just solved the differential equation of motion for a simple spring-mass system in the previous section. So we know that the solution to this motion is

x=Acos(ω0t+φ)x = A\cos (\omega _{0}t + \varphi)

where ω0=km\omega_{0}=\sqrt{\frac{k}{m}}. To get the values for AA and φ\varphi, you need to be given information about the motion at a particular time. These are constants (similar to constants of integration) and require initial conditions to be solved.

The angular frequency, ω0\omega _{0}, is a fundamental property of the system itself (depends on the mass and spring constant) and it also relates to the period of motion. A cos function repeats every 2π2\pi radians, so a full period TT occurs when ω0T=2π\omega _{0}T = 2\pi or:

T=2πω0=2πmkT=\frac{2\pi}{\omega_{0}}=2\pi\sqrt{\frac{m}{k}}

So the physical properties of the system itself (mass, spring constant) determine the period of motion. That is, the system itself sets the period of motion, not the force that is applied.

3.2.2 Vertical Springs

Consider the case of a vertical spring. If the spring is vertical, we have an additional force to consider: gravity. Figure 3.3 shows a spring hanging from the ceiling. Because there is a force pulling down on the spring, the spring has a different equilibrium point from the case when there is no mass hanging off it.

Figure compares the equilibrium positions for a vertical mass and spring.

Figure 3.3:Example of a vertical mass-spring system. Without the mass, the spring will have an equilibrium point at xx = 0. With the mass, gravity pulls down the spring until it reaches a new equilibrium point at x=x0x = x_{0}, where x0<0x_{0}< 0. If the mass is displaced from this new equilibrium point it will undergo simple harmonic motion.

In this case, gravity stretches the spring downward, but the spring also pulls upward to counteract gravity. At some point, the spring force will balance gravity, and the system is in a new equilibrium. To find the new equilibrium position x0x_{0} and the equation of motion, we go back to Newton’s second law.

F=ma\sum F = ma

Fg+Fs=ma=FF_{g}+ F_{s}= ma =\Rightarrow \sum F is gravity (Fg)(F_{g}) and the spring force (Fs)(F_{s}) ma=kxmg=Fg=mgma = -kx - mg =\Rightarrow F_{g}= -mg and Fs=kxF_{s}= -kx by definition (+x^(+\hat{x} is up)

If the system is static, it is in equilibrium. Here, mama = 0 and kxmg-kx - mg = 0, which means that the new equilibrium position is x0=mgkx_{0}= - \frac{mg}{k} . Note that x0x_{0} is negative because we defined xx = 0 to be at the original equilibrium point when there is no mass on the spring and we defined xx as positive pointing up.

For any other position, xx, the system will feel a net force and aa \not = 0:

ma=kxmgma = -kx - mg
md2xdt2=kx+kx00=d2xdt2+kmxkmx0\begin{aligned} m\frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}}&=-kx+kx_{0} \\ 0&=\frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}}+\frac{k}{m}x-\frac{k}{m}x_{0} \end{aligned}

Here we used x0=mgkx_{0}=-\frac{mg}{k}, so mg=kx0-mg=kx_{0}.

So we have an additional (constant) term in our differential equation of motion. Nevertheless, we can still solve this second order differential equation. The trick here is that,

d2dt2(xx0)=d2xdt2\frac{\mathrm{d}^{2}}{\mathrm{d}t^{2}} (x - x_{0}) = \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}}

if x0x_{0} is a constant. The reason is that the derivative of a constant is always zero. So the constant does not factor into the differential at all. That means that the solution to this differential equation of motion is just what we had before, but with an offset. For example, substitute X=xx0X = x - x_{0}. Doing this gives us:

d2Xdt2=d2xdt2=wherex0isaconstantd2Xdt2=kmX=d2xdt2=km(xx0)=kmXX=Acos(ω0t+φ)\begin{aligned} \frac{\mathrm{d}^{2}X}{\mathrm{d}t^{2}} &= \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} =\Rightarrow \mathrm{where} x_{0}\mathrm{is} \mathrm{a} \mathrm{constant} \\ \frac{\mathrm{d}^{2}X}{\mathrm{d}t^{2}} &= - \frac{k}{m} X =\Rightarrow \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} = - \frac{k}{m} (x - x_{0}) = - \frac{k}{m} X \\ X &= A\cos (\omega _{0}t + \varphi) \end{aligned}

which is the solution for a generic simple harmonic oscillator. But since X=xx0X = x - x_{0}, the equation for vertical displacement xx is then xx0=Acos(ω0t+φ)x - x_{0}= A\cos (\omega _{0}t + \varphi), where x0x_{0} is our new equilibrium position. The equation of motion is,

x=Acos(ω0t+φ)+x0x = A\cos (\omega _{0}t + \varphi) + x_{0}

3.3 Brief Aside on the Differential Equation of Motion

The Differential Equation of Motion is a convenient tool to solve cases of simple harmonic motion. If you can put your physics into this format,

0=d2xdt2+Cx0 = \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} + Cx

where CC is constant with time, then you can get the angular frequency, ω0\omega _{0} (and by default, the period TT and frequency f)f) directly from the equation alone. In this form, where the differential has no coefficient, ω02=C\omega _{0}^{2}= C. Other constants do not matter (e.g., consider the vertical spring) to solving ω0\omega _{0}. Thus, you can read off the value of ω0\omega _{0} directly from the equation.

3.4 Simple Harmonic Motion: Pendulum

3.4.1 Simple Pendulum

Now let’s consider a simple pendulum. A simple pendulum is a mass that hangs at the end of a string and is allowed to swing (see Figure 3.4).

Figure shows the restoring force for a simple pendulum displaced from equilibrium.

Figure 3.4:Example of a simple pendulum. The mass mm is in equilibrium when it is vertically downward and displaced from equilibrium when shifted an angle θ\theta from the vertical axis. A restoring force (F)(F) moves the pendulum back to equilibrium.

A pendulum is a simple harmonic oscillator as well, because it has an equilibrium position (straight down) and a restoring force that is proportional to the displacement will seek to return the pendulum to that position.

To solve for the force, let’s look at the free-body diagram of this system (Figure 3.5).

Figure shows a free-body diagram for a simple pendulum with standard Cartesian axes.

Figure 3.5:Free-body diagram of the simple pendulum from Figure 3.4. The labeled forces are tension (T)(T) in red, gravity (mg)(mg)in blue, and the restoring force (mgsinθ)(mg\sin \theta) in magenta. Shown in dotted-red is the component of gravity that balances tension (mgcosθ)(mg\cos \theta).

The restoring force is caused by a component of gravity that is perpendicular to the tension in the string. Because the mass-string system has an angular displacement (θ)(\theta) from the equilibrium line, there is a component of gravity along the string and a component of gravity perpendicular to the string. It is the perpendicular component that is our restoring force (see magenta arrow in Figure 3.5). From trigonometry, the component parallel to the string can be written as mgcosθmg\cos \theta and the component perpendicular to the string is mgsinθmg\sin \theta. The mgcosθmg\cos \theta component is equal (and opposite) to the tension in the string. The mgsinθmg\sin \theta component is our restoring force and it will be driving our motion. So we have,

F=mgsinθF = -mg\sin \theta

where the negative sign is present because this is a restoring force (it will act in the opposite direction to our angular displacement). Since TT and mgcosθmg\cos \theta cancel (equal and opposite forces because the string is not deforming), our net force is equal to this restoring force.

You’ll notice that this force equation does not depend on xx, but instead depends on the angular displacement. If we want to use F=maF = ma, we need to get the displacement in units of xx because a=x¨a = \ddot{x} . Using the small angle approximation (see Appendix B), we can write

sinθ=xL:\sin \theta = \frac{x}{L} :
Figure shows a simple pendulum and the small angle approximation.

Figure 3.6:Small angle approximation diagram for small values of θ\theta, as this is approximately a right angle triangle where the yy-axis (L)(L), and displacement xx meet.

The true path of the pendulum is an arc, so this assumption requires that θ\theta isn’t too big so that there is very little difference between an arc and a straight line. See Appendix B for a review on applying small angle approximations.

So with the small angle assumption, we get

F=mgLxF = - \frac{mg}{L} x

where m,gm,g, and LL are all constants.

This equation has the exact same form as what we used for the spring F=kxF = -kx, only with different constants. We can solve the equation of motion.

F=ma\sum F = ma
mgLx=md2xdt2gLx=d2xdt20=d2xdt2+gLx\begin{aligned} - \frac{mg}{L} x &= m \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} \\ - \frac{g}{L} x &= \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} \\ 0 &= \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}} + \frac{g}{L} x \end{aligned}

Once more we have a Differential Equation of Motion that we can solve just by looking at it. This equation has the same structure as the spring and mass system. The general solution to this problem is x(t)=Acos(ω0t+φ1)+Bsin(ω0t+φ2)x(t) = A\cos (\omega _{0}t + \varphi _{1}) + B\sin (\omega _{0}t + \varphi _{2}), but in this case, we have a different value for the angular frequency.

ω02=gL\omega_{0}^{2}=\frac{g}{L}

Recall that ω02\omega_{0}^{2} equals the coefficient in front of xx, so

ω0=gL.\omega_{0}=\sqrt{\frac{g}{L}}.

And the angular frequency relates to the period of motion by,

T=2πω0=2πLgT=\frac{2\pi}{\omega_{0}}=2\pi\sqrt{\frac{L}{g}}

The period is independent of the mass of the pendulum.

3.4.2 Physical Pendulum

Technically, any object can be made into a pendulum if displaced from its equilibrium position and allowed to swing freely from a pivot point. We call these cases a physical pendulum. Figure 3.7 shows an example of a physical pendulum.

Figure shows an irregular object as a physical pendulum with a restoring force at the center of mass.

Figure 3.7:A physical pendulum. The irregular object has an equilibrium position as shown by the black dashed outline. When rotated out of this equilibrium position, a restoring force FF will seek to move it back toward equilibrium.

The solution for a physical pendulum via F=maF = ma is non-trivial, because you need to consider the acceleration of every individual particle (Fi=miai)(F_{i}= m_{i}a_{i}) in the system and the linear acceleration aia_{i} will differ throughout the system. Instead, we will revisit the physical pendulum when we discuss angular acceleration and torques in Chapter 7.

3.5 Sample Problems

3.6 Aside on Damping and Driven Motion

The harmonic motion described above is all perfectly conserved (e.g., there is no loss of energy from friction). In practice, most oscillators undergoing harmonic motion are damped or driven. Examples of damped (energy lost) oscillations include the suspension in a vehicle (this is on purpose to limit the oscillations from bumps on the road) and tuned mass dampers in tall buildings to limit motion at high floors from earthquakes or strong winds. Examples of driven (energy gained) oscillations include pushing a child on a swing (when timed right, the child goes higher and higher) or resonances in bridges. Damped and driven motion will not be covered here.

But for fun, here are some videos that show damping motion in action. An excellent example of a tuned mass damper is the Taipei 101 building in Taiwan. Unlike most skyscrapers, the

tuned mass damper in Taipei 101 is available to be seen. Here is a nice video showing the Taipei 101 building tuned mass damper in action This video does a nice job illustrating why these dampers work.

And to also showcase driven motion, here is a video from 1940 which shows the collapse of the Tacoma Narrows bridge in the USA during a strong wind after less than four months in operation. Here is the Millennium pedestrian bridge in the UK. It did not collapse, but note how the oscillations are driven; as the bridge sways, more and more people become unbalanced at the same time and then take steps in sequence driving stronger oscillations.

3.7 Real-World Application

Not all oscillations are simple harmonic motion. Nevertheless, other types of periodic behaviour can be expressed with similar base mathematics even if the physics behind them is very different than a simple restoring force. These more complex cases consequently produce more complex oscillatory motions, extending the concepts of simple harmonic motion into more varied phenomena.

Seismology is the study of seismic (sound) waves that move around and through the Earth. Studying these waves can provide us information about the structure of our planet’s interior that we couldn’t otherwise constrain. The strongest seismic waves are generated by movements of tectonic plates but waves may also be caused by volcanoes, landslides, explosions, and other energetic events on and under the Earth’s surface.

Seismographs are used to record the motion of the ground due to seismic waves. Those waves travel through layers with different compositions and densities, and so are refracted and reflected. Using multiple instruments, the amount of time it takes seismic waves to travel through the Earth can be calculated and the type of material the waves are travelling through can be deduced, giving a picture of the Earth’s interior.

Since seismic waves can cause widespread damage, many agencies around the world have developed early warning systems to detect earthquakes as quickly as possible. The nationwide Earthquake Early Warning (EEW) system operated in Japan is the most advanced detection system in use, with a network of more than 4,000 seismometers.

For more information:

For some introductory science on seismic waves, you can visit the Science Learning Hub - Pokapū Akoranga Pūtaiao.

This web site contains information on earthquake warning systems in use around the world.

This interactive map uses real time data from Japan’s Earthquake Early Warning system.

3.8 Summary

3.9 Practice Problems

See Appendix C for answers to the practice problems.