Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

2nd order ODE

  1. Nov 3, 2011 #1
    greetings

    Is there any way how to analytically solve the differential equation for harmonic oscillations ?

    x'' + (kx)/m=0
    where m is the mass and k is the spring constant

    thanks
     
  2. jcsd
  3. Nov 3, 2011 #2
    I would substitute x(t)=A*e^(rt) into the ode factor out x(t) and solve for r.
     
  4. Nov 4, 2011 #3
    Thanks for the advice .... after five minutes of playing with it I figured out that we should substitute x(t)=A*e^(i*omega*t) and than all fits perfectly the equation is satisfied, the angular f turns out to be Sqrt(k/m) and the solution x(t)=Acos(omega*t)+iAsin(omega*t) .... However I'm still not sure about that i in the front of the sine. does it change anything ?
     
  5. Nov 4, 2011 #4
    you have it pretty much solved. Just two "minor" things. When you take the square root there should be a plus minus sign in front of the square root. Therefore, it should be x(t)=A*e^(i*omega*t)+B*e^(-i*omega*t). After some minor manipulation this can be rewritten as x(t)=a*cos(omega*t)+b*sin(omega*t)

    i is just another constant. So you can rewrite i*A = constant. It's no different from multiplying an arbitrary constant by 2. For example, let's say i*A=-2...then to make that happen A=-2/i. The presence of the i doesn't prevent i*A from equalling an arbitrary constant. I hope I didn't make that sound more complicated than it actually is.
     
  6. Nov 5, 2011 #5
    thanks ... I've done it that way (with the square root of a square) when I was trying to substitute x(t)=A*e^(rt) unfortunately I'm too lazy and forgot about that later :D .... thanx anyway
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: 2nd order ODE
  1. A 2nd Order ODE (Replies: 5)

  2. 2nd-order ODE Euler's (Replies: 3)

Loading...