The harmonic oscillator next up previous
Next: Naive numerical approximations Up: Some analytically solvable examples Previous: The free particle

The harmonic oscillator

The harmonic oscillator is described by a Hooke's law force, F(x) = -kx. Thus, Newton's second law becomes

displaymath104

or

displaymath107

Note that the ratio k/m has units of inverse time squared. Thus, let us define a frequency, tex2html_wrap_inline456 so that we may write

displaymath112

This simple second order differential equation can be solved by taking as an ansatz the general form

displaymath115

Substituting in to the differential equation gives

displaymath118

which can only be satisfied if

displaymath121

or

displaymath123

Therefore, we can have solutions of the form tex2html_wrap_inline458 and tex2html_wrap_inline460 . It should also be clear that if we take an arbitrary linear combination of these two, we also get a solution

displaymath127

The reason we need to take such a linear combination is that we still have to apply the initial conditions, tex2html_wrap_inline420 and tex2html_wrap_inline422 which requires that we have two constants in the final solution that we determine by the initial conditions. The above linear combination has the required constants. Thus, applying the initial conditions, we find

eqnarray131

This gives two equations in the two unknowns A and B. The solution for A and B is easily seen to be

eqnarray136

Substituting these into the solution x(t) gives

eqnarray142

A plot of the positions, x(t) vs. t is

   figure147
Figure 2:

Note that the space between the crests of the oscillating function is just the period tex2html_wrap_inline480 .

Home:Top


Mark Tuckerman
Sat Sep 14 17:06:36 EDT 2002