A-level Physics (Advancing Physics)/Simple Harmonic Motion/Mathematical Derivation

The following second-order differential equation describes simple harmonic motion:

Since we have a second derivative, we cannot separate the variables, so let:


By substitution:

ezt is asymptotic at 0, so ezt cannot equal 0, and we can therefore get away with dividing by ezt:



where P and Q are constants of integration. At this point, it is useful to clean things up a bit by letting:

It has been proven elsewhere (de Moivre's Theorem) that, when n is a constant:




So, the general solution of the differential equation is:

This describes what the simple harmonic oscillator will do given any possible situation. However, we don't want an equation which will cover anything and everything. We want to give our oscillator a starting position - let's say, at a position where x = A at t = 0:

Therefore, R = A and S = 0.

So, the specific solution is: