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

Click For Summary
SUMMARY

The discussion focuses on converting the second-order harmonic oscillator equation, ÿ + ω²y = 0, into two linear ordinary differential equations (ODEs). The transformation involves defining u = y and v = y', leading to the system: u' = v and v' = -ω²u. The analytic solution for the specific case where ω = 2π, y(0) = 1, and y′(0) = 0 can be derived without Python coding, utilizing standard methods for solving ODEs.

PREREQUISITES
  • Understanding of second-order ordinary differential equations (ODEs)
  • Familiarity with initial conditions (ICs) in differential equations
  • Basic knowledge of harmonic motion and its mathematical representation
  • Experience with numerical methods for solving ODEs, such as Euler and Runge-Kutta
NEXT STEPS
  • Study the process of converting second-order ODEs to first-order systems
  • Learn about the analytic solution of harmonic oscillators
  • Explore numerical methods for solving ODEs, focusing on Euler and Runge-Kutta techniques
  • Investigate Python libraries for solving differential equations, such as SciPy
USEFUL FOR

Students studying differential equations, physicists analyzing harmonic motion, and developers implementing numerical solutions in Python.

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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
5
Views
2K