Pendulum and simple harmonic motion
A pendulum, a mass hanging from a spring, a swaying building or a guitar string oscillate for the same reason: when moved away from equilibrium a force appears that brings them back. When that force is proportional to the displacement, the motion is simple harmonic (SHM) and everything is computed with a single frequency. This topic derives SHM for the mass–spring (amplitude, phase, energy), the simple pendulum with its small-angle approximation and what happens when it fails, and the physical pendulum with the moment of inertia. All of it can be checked in the Pendulums and SHM simulator.
Restoring force and simple harmonic motion
A body in stable equilibrium that is moved slightly away feels a force pushing it back: the restoring force. The simplest case is an ideal spring (Hooke's law): the force is proportional to the stretch measured from equilibrium and opposite to it, , with the spring constant (N/m).
Newton's second law gives a differential equation: the acceleration is proportional to the displacement and of opposite sign.
You need a function whose second derivative is itself times : the cosine (and the sine). The general solution is . Check it by differentiating twice: and . The two constants, the amplitude and the phase , are set by the initial conditions; (the angular frequency, in rad/s) depends only on the spring and the mass:
Position, velocity and acceleration
All three oscillate with the same period. The velocity is a quarter period ahead of the position and the acceleration always has the opposite sign to . Hence the maximum values:
| Point | |||
|---|---|---|---|
| Right end | |||
| Equilibrium (moving left) | |||
| Left end | |||
| Equilibrium (moving right) |
Amplitude and phase from x₀ and v₀
If at the mass is at with velocity , the first two equations at give and . Squaring and adding, and dividing one by the other:
It is clearer with the phasor: is the horizontal projection of a vector of length turning counter-clockwise with angular velocity (SHM is the shadow of uniform circular motion). is the angle of the vector at ; its components are and .
- Released from rest at : and .
- Struck at equilibrium with : and .
- Released from rest at : .
Energy
The elastic energy of the spring is and the kinetic energy . Substituting and and using , and : the sum does not depend on time.
The last formula gives the speed at any position without going through time, and energy gives the amplitude of a kick: is the same as .
Vertical spring
If the mass hangs, the spring stretches until its force equals the weight: . Measuring from that new equilibrium position (downward), the net force is : the weight cancels with the static stretch and the same SHM remains, with the same . Gravity only shifts the center of the oscillation.
The second form is useful: measuring how much a spring stretches under the load is enough to know its period, without knowing or .
Simple pendulum
A point mass hanging from a string of length , massless and inextensible. The weight and the tension act on it. Along the path (an arc of radius , with ) the tension does nothing, and the weight component is , always toward the lowest point:
It is not exactly SHM, because the force is proportional to , not to . But for small angles, in radians, (the first term of its series, ), and the equation becomes the spring one with :
The mass cancels (weight and inertia grow equally with ): two pendulums of equal length, one of lead and one of cork, have the same period if the air does not slow them. How wrong is the approximation? The force is overestimated far more than the period is wrong:
| Amplitude θ₀ | θ₀ in rad | sin θ₀ | error of sin θ ≈ θ | exact period over T₀ |
|---|---|---|---|---|
| 5° | 0.08727 | 0.08716 | 0.13 % | +0.048 % |
| 10° | 0.1745 | 0.1736 | 0.51 % | +0.19 % |
| 20° | 0.3491 | 0.3420 | 2.06 % | +0.77 % |
| 30° | 0.5236 | 0.5000 | 4.72 % | +1.74 % |
| 45° | 0.7854 | 0.7071 | 11.07 % | +4.00 % |
Large angles: the exact period
Without approximating, start from energy: released at rest from , . Solving for and integrating from 0 to (a quarter of an oscillation) gives a complete elliptic integral of the first kind:
There is a very handy way to compute it, the one the simulator uses: the arithmetic–geometric mean (AGM). Start from and and repeat , until they agree (in 4 or 5 steps); then . For moderate amplitudes the series also works:
| θ₀ | 10° | 30° | 60° | 90° | 120° | 150° | 170° |
|---|---|---|---|---|---|---|---|
| 1.0019 | 1.0174 | 1.0732 | 1.1803 | 1.3729 | 1.7622 | 2.4394 |
With a large amplitude the motion is still periodic but no longer sinusoidal: it lingers near the ends. The simulator draws the exact (with the Jacobi elliptic functions) next to , and you can see them drift apart.
String tension and speed
Energy gives the speed at each angle, . Along the string, the tension minus the radial weight component is the centripetal force, . Putting both together:
Physical pendulum
Any rigid body that oscillates about a pivot (a rod, a disc, a ruler hanging from a nail). Its weight acts at the center of mass , at distance from the pivot, and makes a torque . The second law for rotation uses the moment of inertia about the pivot, , which measures how much the body resists a change in its rotation (like mass on a straight line):
depends on the axis. Tables give the moment about the center of mass, , and the parallel-axis theorem (Steiner) moves it to a parallel axis at distance : . The equivalent length is that of the simple pendulum that would have the same period.
| Body and pivot | ||||
|---|---|---|---|---|
| Point mass on a string (simple pendulum) | ||||
| Rod of length , hung from one end | ||||
| Rod of length , pivot from the center | ||||
| Disc of radius , hung from its rim |
The mass cancels again: the period depends only on the shape and on where the pivot is. For the rod, has a minimum at (the radius of gyration): neither hanging it from the end nor from the center (as the period becomes infinite, because the weight no longer has a lever arm).
Using the simulator
In Physics → Pendulums and SHM, the System panel has three buttons: Simple pendulum, Mass–spring and Physical pendulum. Below, the panel of each system; at the end, Examples with «Load an example».
- Simple pendulum: Length L, Amplitude θ₀ (in degrees, between 0 and 180), Mass (for the tension) and Gravity g (change it for another planet). It is released from rest at θ₀. Cards: Period (small angles), Exact period (with the extra %), Frequency (with ω₀), Maximum speed, Height it rises, String tension (maximum at the bottom and minimum; it warns «⚠ a string would go slack» if negative) and At t = … s (θ and ω at that instant).
- Mass–spring: Mass m, Constant k, Amplitude A, Gravity g and, optional, or x₀ and and v₀. With x₀ typed, the amplitude and phase come from x₀ and v₀ (and A is ignored); without x₀, it is released from x = A at rest. v₀ without x₀ gives a warning. Cards: Period, Angular frequency, Amplitude (with the phase φ), Maximum speed, Maximum acceleration, Energy, At t = … s and If it hangs vertically (the stretch δ).
- Physical pendulum: the Body selector («Rod hung from one end», «Rod pivoted at a distance d from its center», «Disc hung from its rim» or «Another body (known I and d)») and its fields: Mass m, Rod length, Disc radius, Pivot to center of mass d or I about the pivot (which cannot be less than md², by the parallel-axis theorem). Extra cards: Moment of inertia and Equivalent length.
- The figure (Pendulum or Oscillation) animates with ▶ over two periods, and the t slider picks the instant. For the pendulums, the Angle graph compares the «exact (no approximation)» curve with the «small angle» one (dashed); for the spring, the Position and Velocity graphs.
- The Step by step writes the equation of motion, the approximation, the exact period with and the energy; the Detailed solution (PDF) button gives the complete development to print.
Common mistakes
- Using degrees in or in : the argument is in radians.
- Confusing (rad/s) with (Hz): .
- Believing that the pendulum period depends on the mass, or that the spring period depends on .
- Using with amplitudes of 40° or more without saying it is approximate.
- Taking at the lowest point: the centripetal force is missing.
- In the physical pendulum, using instead of , or the rod length instead of .
Worked examples
Example 1Mass–spring released from rest
Solution
- rad/s; s and Hz.
- It is released at rest at the end: m, , (m).
- m/s (through ); m/s² (at the ends).
- J, equal to .
- Hanging: m; it would oscillate about that position with the same period.
Solve it in Simuveliq
- In Physics → Pendulums and SHM, Mass–spring button: m = 0.5, k = 200, A = 0.05, with x₀ and v₀ empty (or «Load an example» → «Mass–spring: 0.5 kg, k = 200 N/m, stretched 5 cm»).
- Cards: Period 0.3142 s (f = 3.183 Hz), Angular frequency 20 rad/s, Amplitude 0.05 m with φ = 0, Maximum speed 1 m/s, Maximum acceleration 20 m/s², Energy 0.25 J and If it hangs vertically δ = 0.02453 m.
- Double the amplitude (A = 0.1): the period does not change; and double and the energy is multiplied by 4.
Example 2Amplitude and phase from x₀ and v₀
Solution
- rad/s (the same period as example 1, 0.3142 s).
- m; m.
- rad (): fourth quadrant, because and . Then .
- m/s and m/s². Energy: J; check with the initial instant, J.
- It reaches when : s. At , m/s².
Solve it in Simuveliq
- Mass–spring with m = 0.2, k = 80, or x₀ = 0.02 and and v₀ = 0.5 («Load an example» → «Mass–spring with x₀ = 2 cm and v₀ = 0.5 m/s»).
- Cards: Amplitude 0.03202 m with «phase φ = −0.8961 rad», Maximum speed 0.6403 m/s, Maximum acceleration 12.81 m/s², Energy 0.041 J and At t = 0 s: x = 0.02 m, v = 0.5 m/s, a = −8 m/s².
- Move the t slider to about 0.045 s: the instant card gives x ≈ 0.032 m and v ≈ 0, the end.
Example 3Pendulum with a large amplitude
Solution
- rad/s and s.
- Exact: and , so s, 7.32 % more. The series gives : almost the same as the exact 1.0732.
- Energy: it rises m, so m/s at the bottom.
- Tensions: N (twice the weight) and N at the ends.
Solve it in Simuveliq
- Simple pendulum button: L = 1, θ₀ = 60, mass 0.5, g = 9.81 («Load an example» → «Large amplitude: 1 m at 60° (the period grows)»).
- Cards: Period (small angles) 2.006 s, Exact period 2.153 s «7.32 % more than the small-angle one», Maximum speed 3.132 m/s, Height it rises 0.5 m and String tension 9.81 N (min. 2.453 N).
- In the Angle graph the exact curve falls behind the dashed one; at the end of the two periods the lag is already 0.29 s. Try θ₀ = 120°: the minimum tension comes out negative and the string warning appears.
Example 4The seconds pendulum
Solution
- From : m.
- With 5°, the exact period is s: 0.0476 % longer.
- Delay: the clock counts swings, and each lasts 0.0476 % too long; in a day, s. That is why precision clocks swing with small, constant amplitudes.
- On the Moon: s, almost 2.5 times slower ().
Solve it in Simuveliq
- «Load an example» → «Seconds pendulum: 2 s period» (L = 0.994, θ₀ = 5°).
- Cards: Period (small angles) 2 s and Exact period 2.001 s, «0.0476 % more than the small-angle one».
- Change Gravity g to 1.62: the small-angle period becomes 4.922 s.
Example 5Rod: where to put the pivot
Solution
- (a) Parallel axes: kg·m².
- rad/s, s and m.
- (b) From one end: kg·m², m, s and m: slower.
- (c) ; differentiating, m, with m and s. The mass plays no part.
Solve it in Simuveliq
- Physical pendulum button, Body «Rod pivoted at a distance d from its center», m = 2, Rod length 1, Pivot to center of mass d 0.25, θ₀ = 10°.
- Cards: Moment of inertia 0.2917 kg·m², Equivalent length 0.5833 m and Period (small angles) 1.532 s (the exact one, with 10°, 1.535 s).
- Change Body to «Rod hung from one end»: 0.6667 kg·m² and 1.638 s. Go back to the offset pivot and type d = 0.2887: 1.524 s, the minimum; try values on both sides.