### Simple Harmonic Oscillator

In mechanics and physics, **simple harmonic motion** is a type of periodic motion where the restoring force is directly proportional to the displacement. It can serve as a mathematical model of a variety of motions, such as the oscillation of a spring. In addition, other phenomena can be approximated by simple harmonic motion, including the motion of a simple pendulum as well as molecular vibration. Simple harmonic motion is typified by the motion of a mass on a spring when it is subject to the linear elastic restoring force given by Hooke's Law. The motion is sinusoidal in time and demonstrates a single resonant frequency. In order for simple harmonic motion to take place, the net force of the object at the end of the pendulum must be proportional to the displacement.

Simple harmonic motion provides a basis for the characterization of more complicated motions through the techniques of Fourier analysis.

## Contents

## Introduction

In the diagram a simple harmonic oscillator, comprising a mass attached to one end of a spring, is shown. The other end of the spring is connected to a rigid support such as a wall. If the system is left at rest at the equilibrium position then there is no net force acting on the mass. However, if the mass is displaced from the equilibrium position, a restoring elastic force which obeys Hooke's law is exerted by the spring.

Mathematically, the restoring force **F** is given by

- $\backslash mathbf\{F\}=-k\backslash mathbf\{x\},$

where **F** is the restoring elastic force exerted by the spring (in SI units: N), *k* is the spring constant (N·m^{−1}), and **x** is the displacement from the equilibrium position (in m).

For any simple harmonic oscillator:

- When the system is displaced from its equilibrium position, a restoring force which resembles Hooke's law tends to restore the system to equilibrium.

Once the mass is displaced from its equilibrium position, it experiences a net restoring force. As a result, it accelerates and starts going back to the equilibrium position. When the mass moves closer to the equilibrium position, the restoring force decreases. At the equilibrium position, the net restoring force vanishes. However, at *x* = 0, the mass has momentum because of the impulse that the restoring force has imparted. Therefore, the mass continues past the equilibrium position, compressing the spring. A net restoring force then tends to slow it down, until its velocity reaches zero, whereby it will attempt to reach equilibrium position again.

As long as the system has no energy loss, the mass will continue to oscillate. Thus, simple harmonic motion is a type of periodic motion.

## Dynamics of simple harmonic motion

For one-dimensional simple harmonic motion, the equation of motion, which is a second-order linear ordinary differential equation with constant coefficients, could be obtained by means of Newton's second law and Hooke's law.

- $F\_\{net\}\; =\; m\backslash frac\{\backslash mathrm\{d\}^2\; x\}\{\backslash mathrm\{d\}t^2\}\; =\; -kx,$

where *m* is the inertial mass of the oscillating body, *x* is its displacement from the equilibrium (or mean) position, and *k* is the spring constant.

Therefore,

- $\backslash frac\{\backslash mathrm\{d\}^2\; x\}\{\backslash mathrm\{d\}t^2\}\; =\; -\backslash left(\backslash frac\{k\}\{m\}\backslash right)x,$

Solving the differential equation above, a solution which is a sinusoidal function is obtained.

- $x(t)\; =\; c\_1\backslash cos\backslash left(\backslash omega\; t\backslash right)\; +\; c\_2\backslash sin\backslash left(\backslash omega\; t\backslash right)\; =\; A\backslash cos\backslash left(\backslash omega\; t\; -\; \backslash varphi\backslash right),$

where

- $\backslash omega\; =\; \backslash sqrt\{\backslash frac\{k\}\{m\}\},$
- $A\; =\; \backslash sqrt,$

and since *T* = 1/*f* where T is the time period,

- $T\; =\; 2\backslash pi\; \backslash sqrt\{\backslash frac\{m\}\{k\}\}.$

These equations demonstrate that the simple harmonic motion is isochronous (the period and frequency are independent of the amplitude and the initial phase of the motion).

## Energy of simple harmonic motion

The kinetic energy *K* of the system at time *t* is

- $K(t)\; =\; \backslash frac\{1\}\{2\}\; mv^2(t)\; =\; \backslash frac\{1\}\{2\}m\backslash omega^2A^2\backslash sin^2(\backslash omega\; t\; -\; \backslash varphi)\; =\; \backslash frac\{1\}\{2\}kA^2\; \backslash sin^2(\backslash omega\; t\; -\; \backslash varphi),$

and the potential energy is

- $U(t)\; =\; \backslash frac\{1\}\{2\}\; k\; x^2(t)\; =\; \backslash frac\{1\}\{2\}\; k\; A^2\; \backslash cos^2(\backslash omega\; t\; -\; \backslash varphi).$

The total mechanical energy of the system therefore has the constant value

- $E\; =\; K\; +\; U\; =\; \backslash frac\{1\}\{2\}\; k\; A^2.$

## Examples

The following physical systems are some examples of simple harmonic oscillator.

### Mass on a spring

A mass *m* attached to a spring of spring constant *k* exhibits simple harmonic motion in closed space. The equation

- $T=\; 2\; \backslash pi\{\backslash sqrt\{\backslash frac\{m\}\{k\}\}\}$

shows that the period of oscillation is independent of both the amplitude and gravitational acceleration

### Uniform circular motion

Simple harmonic motion can in some cases be considered to be the one-dimensional projection of uniform circular motion. If an object moves with angular speed *ω* around a circle of radius *r* centered at the origin of the *x*-*y* plane, then its motion along each coordinate is simple harmonic motion with amplitude *r* and angular frequency *ω*.

### Mass on a simple pendulum

In the small-angle approximation, the motion of a simple pendulum is approximated by simple harmonic motion. The period of a mass attached to a pendulum of length *ℓ* with gravitational acceleration *g* is given by

- $T\; =\; 2\; \backslash pi\; \backslash sqrt\{\backslash frac\{\backslash ell\}\{g\}\}$

This shows that the period of oscillation is independent of the amplitude and mass of the pendulum but not the acceleration due to gravity (*g*), therefore a pendulum of the same length on the Moon would swing more slowly due to the Moon's lower gravitational field strength.

This approximation is accurate only in small angles because of the expression for angular acceleration *α* being proportional to the sine of position:

- $m\; g\; \backslash ell\; \backslash sin(\backslash theta)=I\; \backslash alpha,$

where *I* is the moment of inertia. When *θ* is small, sin *θ* ≈ *θ* and therefore the expression becomes

- $-m\; g\; \backslash ell\; \backslash theta=I\; \backslash alpha$

which makes angular acceleration directly proportional to *θ*, satisfying the definition of simple harmonic motion.

### Scotch yoke

**
**

## See also

- Isochronous
- Uniform circular motion
- Complex harmonic motion
- Damping
- Harmonic oscillator
- Pendulum (mathematics)
- Circle group

## Notes

## References

## External links

- HyperPhysics
- Java simulation of spring-mass oscillator