# Connexions

You are here: Home » Content » Simple Harmonic Oscillator

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
• Rice Digital Scholarship

This module is included in aLens by: Digital Scholarship at Rice UniversityAs a part of collection: "Waves and Optics"

"This book covers second year Physics at Rice University."

Click the "Rice Digital Scholarship" link to see all content affiliated with them.

Click the tag icon to display tags associated with this content.

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

# Simple Harmonic Oscillator

Module by: Paul Padley. E-mail the author

## The Simple Harmonic Oscillator

### Simple Harmonic Motion

For SHM to occur we require stable equilibrium, about a point. For example, at the origin we could have: F ( 0 ) = 0 , F ( 0 ) = 0 , which would describe a system in equilibrium. This however is not necessarily stable equilibrium.

The lower part of the figure shows the case of unstable equilibrium. The upper part shows the case of stable equilibrium. These situations often occur in mechanical systems.

For example, consider a mass attached to a spring:

In general, in a case of stable equilibrium we can write the force as a polynomial expansion: F ( x ) = ( k 1 x + k 2 x 2 + k 3 x 3 + ) F ( x ) = ( k 1 x + k 2 x 2 + k 3 x 3 + ) where the k i k i are positive constants. There is always a region of x x small enough that we can write: F = k x F = k x F = k x m a = k x m x ¨ = k x x ¨ + k m x = 0 F = k x m a = k x m x ¨ = k x x ¨ + k m x = 0 This is satisfied by an equation of the form x = A sin ( ω t + φ 0 ) x = A sin ( ω t + φ 0 ) where A A and φ 0 φ 0 are constants that are determined by the initial conditions. Draw a diagram of a sinusoid and mark on it the period T and Amplitude A

φ 0 φ 0 Is an arbitrary phase which shifts the sinusoid.This is also satisfied by an equation of the form x = A sin ( ω t ) + B cos ( ω t ) x = A sin ( ω t ) + B cos ( ω t ) Lets show this: x = A sin ( ω t ) + B cos ( ω t ) x ˙ = ω ( A cos ( ω t ) B sin ( ω t ) ) x ¨ = ω 2 ( A sin ( ω t ) + B cos ( ω t ) ) x ¨ = ω 2 x x = A sin ( ω t ) + B cos ( ω t ) x ˙ = ω ( A cos ( ω t ) B sin ( ω t ) ) x ¨ = ω 2 ( A sin ( ω t ) + B cos ( ω t ) ) x ¨ = ω 2 x Again there are two constants determined by the initial conditions A A and B B The equation can be rewritten x ¨ + ω 2 x = 0 x ¨ + ω 2 x = 0 Thus if ω 2 = k m ω 2 = k m then the equation is identical to the SHM equation.

So another way to write the equation of Simple Harmonic Motion is x ¨ + ω 2 x = 0 x ¨ + ω 2 x = 0 or x ¨ = ω 2 x x ¨ = ω 2 x

It is also important to remember the relationships between freqency, angular frequency and period: ω = 2 π ν T = 2 π ω ν = 1 T ω = 2 π ν T = 2 π ω ν = 1 T

Another solution to the SHM equation is x ˜ = A cos ( ω t + φ 0 ) + i A sin ( ω t + φ 0 ) x ˜ = A cos ( ω t + φ 0 ) + i A sin ( ω t + φ 0 ) Recall Taylor's expansions of sine and cosine sin θ = θ θ 3 3 ! + θ 5 5 ! sin θ = θ θ 3 3 ! + θ 5 5 ! cos θ = 1 θ 2 2 ! + θ 4 4 ! cos θ = 1 θ 2 2 ! + θ 4 4 ! Then cos θ + i sin θ = 1 + i θ θ 2 2 ! i θ 3 3 ! + θ 4 4 ! = 1 + i θ + ( i θ ) 2 2 ! + ( i θ ) 3 3 ! + ( i θ ) 4 4 ! = e i θ cos θ + i sin θ = 1 + i θ θ 2 2 ! i θ 3 3 ! + θ 4 4 ! = 1 + i θ + ( i θ ) 2 2 ! + ( i θ ) 3 3 ! + ( i θ ) 4 4 ! = e i θ

(an alternative way to show this is the following) z cos θ + i sin θ z = ( sin θ + i cos θ ) θ = i z θ z z = i θ ln z = i θ z = e i θ z cos θ + i sin θ z = ( sin θ + i cos θ ) θ = i z θ z z = i θ ln z = i θ z = e i θ

Thus we can write x ˜ = A cos ( ω t + φ 0 ) + i A sin ( ω t + φ 0 ) x ˜ = A cos ( ω t + φ 0 ) + i A sin ( ω t + φ 0 ) as x ˜ = A e i ( ω t + φ 0 ) x ˜ = A e i ( ω t + φ 0 ) x ˜ = A e i ( ω t + φ 0 ) x ˜ ˙ = i ω A e i ( ω t + φ 0 ) x ˜ ¨ = ( i ω ) 2 A e i ( ω t + φ 0 ) = ω 2 x ˜ x ˜ = A e i ( ω t + φ 0 ) x ˜ ˙ = i ω A e i ( ω t + φ 0 ) x ˜ ¨ = ( i ω ) 2 A e i ( ω t + φ 0 ) = ω 2 x ˜

#### Note:

We will use the complex representation a lot, so you need to become familiar with it. It is used a lot in Optics, Classical and Quantum Mechanics and Electrical Engineering so it is a good thing to know.
Now for physical systems we are interested in just the real part so x = R e [ A e i ( ω t + φ 0 ) ] x = R e [ A e i ( ω t + φ 0 ) ] This will be implicitly understood. In physics we just write x = A e i ( ω t + φ 0 ) x = A e i ( ω t + φ 0 ) One thing that will seem to be confusing is that there are all these different solutions. They are all just different forms of the same thing. Which form is used in a particular circumstance is simply a matter of convenience. Some forms lend themselves to to solutions of certain problems more easily than others. Also the most convenient form can depend upon the initial conditions. For example if x x is at its maximum displacement at time t = 0 t = 0 then a cos cos form may be the most convenient. As a general rule I like using the complex representation because natural logarithms are so easy to work with. For example e x x = e x e x x = e x e a x x = a e a x e a x x = a e a x e a x x = 1 a e a x e a x x = 1 a e a x which is all pretty simple to remember

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks