Rewriting ODE's into lower orders

  • Thread starter Thread starter Euler2718
  • Start date Start date
  • Tags Tags
    matlab ode
Click For Summary
SUMMARY

The discussion focuses on rewriting second-order ordinary differential equations (ODEs) into a system of first-order equations. The equation discussed is \(\frac{d^{2}x}{dt^{2}} + \sin(x) = 0\), which is transformed into a system using substitutions \(x' = y\) and \(y' = -\sin(x)\). The approach aligns with the application of Euler's method in MATLAB for solving initial value problems (IVPs). Participants confirm the correctness of this method for proceeding with their work on ODEs.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with MATLAB for numerical methods
  • Knowledge of Euler's method for solving differential equations
  • Basic calculus, specifically differentiation and integration
NEXT STEPS
  • Research the implementation of Euler's method in MATLAB
  • Study the conversion of higher-order ODEs to first-order systems
  • Explore numerical stability and error analysis in ODE solvers
  • Learn about other numerical methods for solving ODEs, such as Runge-Kutta methods
USEFUL FOR

Students and professionals working with differential equations, particularly those using MATLAB for numerical analysis and simulations. This discussion is beneficial for anyone looking to deepen their understanding of ODE transformations and numerical methods.

Euler2718
Messages
90
Reaction score
3

Homework Statement



Express

\frac{d^{2}x}{dt^{2}} + \sin(x) = 0

In a system in terms of x' and y'.

Homework Equations

The Attempt at a Solution


[/B]
I seen this example:

x^{\prime\prime\prime} = x^{\prime}(t)\cdot x(t) - 2t(x^{\prime\prime}(t))^{2}

Where they then wrote:

x^{\prime} = y
y^{\prime} = z
z^{\prime} = y^{\prime\prime} = x^{\prime\prime\prime} = x^{\prime}(t)\cdot x(t) - 2t(x^{\prime\prime}(t))^{2}
So:
z^{\prime} = xy - 2tz^{2}
Since y^{\prime\prime} = x^{\prime} = z

And thus an Euler's method can be devised in MATLAB, given some IVP's of course. Is this then the correct approach for my problem:

x^{\prime} = y
y^{\prime} = x^{\prime\prime} = -\sin(x)

Not really familiar with ODE's and such processes, but I need to apply this correctly to proceed with my work.
 
Physics news on Phys.org
Morgan Chafe said:

Homework Statement



Express

\frac{d^{2}x}{dt^{2}} + \sin(x) = 0

In a system in terms of x' and y'.

Homework Equations

The Attempt at a Solution


[/B]
I seen this example:

x^{\prime\prime\prime} = x^{\prime}(t)\cdot x(t) - 2t(x^{\prime\prime}(t))^{2}

Where they then wrote:

x^{\prime} = y
y^{\prime} = z
z^{\prime} = y^{\prime\prime} = x^{\prime\prime\prime} = x^{\prime}(t)\cdot x(t) - 2t(x^{\prime\prime}(t))^{2}
So:
z^{\prime} = xy - 2tz^{2}
Since y^{\prime\prime} = x^{\prime} = z

And thus an Euler's method can be devised in MATLAB, given some IVP's of course. Is this then the correct approach for my problem:

x^{\prime} = y
y^{\prime} = x^{\prime\prime} = -\sin(x)
This is it right here.
 
  • Like
Likes   Reactions: Euler2718
Mark44 said:
This is it right here.

Thanks. I really had to be sure before continuing.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 61 ·
3
Replies
61
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K