Coupled Differential Equations: How Do They Depend on Each Other?

  • Context: Graduate 
  • Thread starter Thread starter Jwill
  • Start date Start date
  • Tags Tags
    Coupled First order
Click For Summary

Discussion Overview

The discussion revolves around the conversion of a second-order differential equation into a system of coupled first-order equations, specifically focusing on the equation y''=sin(3y(t)). Participants are exploring the application of the Runge Kutta method for numerical solutions of these coupled equations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant proposes the transformation of the second-order equation into coupled first-order equations as z'=sin(3y(t)) and y'=z, questioning its correctness.
  • Another participant argues that the proposed transformation is valid, explaining that it maintains the relationship y''=z'=sin(3y).
  • A participant expresses confusion about the coupling of the equations, stating that they do not see how solving for one variable helps in solving for the other, and suggests that both variables should appear in each equation for true coupling.
  • One participant shares their attempt at implementing the Runge Kutta method, detailing the calculations for k1, k2, k3, k4, and corresponding l values, while expressing doubt about the correctness of their approach.
  • Another participant reiterates their confusion about the dependency of the equations, emphasizing that they would expect both variables to be present in each equation to establish a coupling.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correctness of the proposed coupled equations or the understanding of their dependency. There are multiple competing views regarding the nature of the coupling and the application of the Runge Kutta method.

Contextual Notes

Participants express uncertainty about the dependencies in the equations and the correct formulation of the Runge Kutta method for this specific case. There are unresolved questions regarding the stage constants and their interdependencies.

Jwill
Messages
39
Reaction score
0
I have a large project involving Runge Kutta numerical solutions of differential equations. I understand the Runge Kutta method and I've done it before, but my problem involves taking the differential equation

y''=sin(3y(t)), t>=0

and reexpressing this IVP into coupled first order equations. I have seen examples where people have done something similar like set

z'=sin(3y(t))
y'=z

and there is a guy in my class that swears that this is right, but frankly that doesn't make sense to me in this case. If someone could help me understand how to do this correctly, I feel like I have a decent understanding of the numerical solution method. I have been asked to use the first order Runge Kutta method, but I have never used this method with coupled equations that looks anything like this...
 
Physics news on Phys.org
Why doesn't it make sense to you? If y'= z, and z'= sin(3y) then y"= z'= sin(3y) as you want.

In order to use Runge-Kutta on this problem do two simultaneous solutions, solving for both y and z at each step, then using the new values of y and z in the next step.
 
If that is correct then I must not understand how to do the stage constants for the iteration.

If
[tex]\frac{dz}{dt} = sin(3y(t))[/tex]

[tex]\frac{dy}{dt} = z[/tex]

then

[tex]\frac{dz}{dt} = f[t, y(t)][/tex]

[tex]\frac{dy}{dt} = f[t, z(t)][/tex]

(I think)

How are they "coupled" in that I don't see that they have a dependency on each other. I understand the runge kutta method when they have a dependency on each other, but how does solving for z or y help you solve for the other?... I don't see how the stage constants rely on each other.

I would understand if it was

[tex]\frac{dy}{dt} = f[t, y(t), z(t)][/tex]

[tex]\frac{dz}{dt} = F[t, y(t), z(t)][/tex]

If you could help me understand this, I'd appreciate it. It would make since if y and z were in both first order equations.
 
Well... anyway my attempt at this was:

[tex]k1 = z_{i}[/tex]

[tex]l1 = sin(3.*(y_{i}));[/tex]

[tex]k2 = z_{i}+\frac{h}{2}*l1[/tex]

[tex]l2 = sin(3*(y_{i}+\frac{h}{2}*k1))[/tex]

[tex]k3 = z_{i}+\frac{h}{2}*l2[/tex]

[tex]l3 = sin(3*(y_{i}+\frac{h}{2}*k2))[/tex]

[tex]k4 = z_{i}+h*l2[/tex]

[tex]l4 = sin(3*(y_{i}+h*k2))[/tex]

[tex]z_{i+1} = z_{i} + \frac{h}{6}*(l1+2*l2+2*l3+l4)[/tex]

[tex]y_{i+1} = y_{i} + \frac{h}{6}*(k1+2*k2+2*k3+k4)[/tex]

I doubt this is correct... In the event that it is, could someone explain it to me better. Either way, I would like to understand this.
 
Jwill said:
If that is correct then I must not understand how to do the stage constants for the iteration.

If
[tex]\frac{dz}{dt} = sin(3y(t))[/tex]

[tex]\frac{dy}{dt} = z[/tex]

then

[tex]\frac{dz}{dt} = f[t, y(t)][/tex]

[tex]\frac{dy}{dt} = f[t, z(t)][/tex]

(I think)

How are they "coupled" in that I don't see that they have a dependency on each other. I understand the runge kutta method when they have a dependency on each other, but how does solving for z or y help you solve for the other?... I don't see how the stage constants rely on each other.

I would understand if it was

[tex]\frac{dy}{dt} = f[t, y(t), z(t)][/tex]

[tex]\frac{dz}{dt} = F[t, y(t), z(t)][/tex]

If you could help me understand this, I'd appreciate it. It would make since if y and z were in both first order equations.
As I have said in another forum, you are right. The first pair of equations is incorrect, the second pair is correct.
 

Similar threads

  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
962
  • · Replies 6 ·
Replies
6
Views
2K