Second-Order Harmonic Motion Equation: Solve as 2 linear diff eqs

leonmate
Messages
81
Reaction score
1

Homework Statement



[/B]
Write the second-order equation for the harmonic oscillator,

y ̈ + ω2y = 0

as two linear ordinary differential equations. What is the analytic solution y(t) if ω = 2π, y(0) = 1 and y′(0) = 0?


Homework Equations

The Attempt at a Solution



So, I have to write some python code to solve this and a series of other questions but I'm falling at the first hundle! :(

What does it mean, as two linear ordinary differential equations, how do you do that? I've been searching the internet for hours and I can't find what I'm looking for. I watched about an hour of khan academy second-order equations.

Could someone help me out, I can do the coding I just don't know what to put in!
 
Physics news on Phys.org
How about these ODEs?
u = y
v = y'
so that v' = y"
Then
u' = v
v' = - w^2 u
And similarly transform the ICs.
 
ICs?
 
leonmate said:
ICs?
IC = initial conditions
 
leonmate said:

Homework Statement



[/B]
Write the second-order equation for the harmonic oscillator,

y ̈ + ω2y = 0

as two linear ordinary differential equations. What is the analytic solution y(t) if ω = 2π, y(0) = 1 and y′(0) = 0?

Homework Equations

The Attempt at a Solution



So, I have to write some python code to solve this and a series of other questions but I'm falling at the first hundle! :(

What does it mean, as two linear ordinary differential equations, how do you do that? I've been searching the internet for hours and I can't find what I'm looking for. I watched about an hour of khan academy second-order equations.

Could someone help me out, I can do the coding I just don't know what to put in!

I'm not sure what a 'hundle' is, but it sounds serious.

In any event, the OP asks you to find the analytic solution to the DE, which you should be able to do without writing any Python code.

It's not clear why you had so much difficulty with converting a second order ODE to a system of first-order equations. The standard methods of solving ODEs numerically (Euler, Runge-Kutta, etc.) are all based on solving first order equations only, thus a higher order equation must first be transformed into a system of first-order equations before a numerical solution can be obtained:

http://www.efunda.com/math/num_ode/num_ode.cfm
 
SteamKing said:
I'm not sure what a 'hundle' is, but it sounds serious.

I understand OP made a typo ,but the above line is seriously funny :p.
 
Thread 'Need help understanding this figure on energy levels'
This figure is from "Introduction to Quantum Mechanics" by Griffiths (3rd edition). It is available to download. It is from page 142. I am hoping the usual people on this site will give me a hand understanding what is going on in the figure. After the equation (4.50) it says "It is customary to introduce the principal quantum number, ##n##, which simply orders the allowed energies, starting with 1 for the ground state. (see the figure)" I still don't understand the figure :( Here is...
Thread 'Understanding how to "tack on" the time wiggle factor'
The last problem I posted on QM made it into advanced homework help, that is why I am putting it here. I am sorry for any hassle imposed on the moderators by myself. Part (a) is quite easy. We get $$\sigma_1 = 2\lambda, \mathbf{v}_1 = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \sigma_2 = \lambda, \mathbf{v}_2 = \begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{pmatrix} \sigma_3 = -\lambda, \mathbf{v}_3 = \begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \\ 0 \end{pmatrix} $$ There are two ways...
Back
Top