1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Oct 29, 2014 #1
    1. The problem statement, all variables and given/known data


    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?


    2. Relevant equations


    3. 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!
     
  2. jcsd
  3. Oct 29, 2014 #2
    How about these ODEs?
    u = y
    v = y'
    so that v' = y"
    Then
    u' = v
    v' = - w^2 u
    And similarly transform the ICs.
     
  4. Oct 29, 2014 #3
    ICs?
     
  5. Oct 29, 2014 #4

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    IC = initial conditions
     
  6. Oct 29, 2014 #5

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    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
     
  7. Oct 30, 2014 #6
    I understand OP made a typo ,but the above line is seriously funny :p.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Second-Order Harmonic Motion Equation: Solve as 2 linear diff eqs
  1. Harmonic motion 2 (Replies: 1)

Loading...