Coupled first order differential equations

Rafique Mir
Messages
5
Reaction score
0
How i can solve a system of 6 first order differential equations by using numerical techniques like Euler method, RK-4th order method , ODE -45 etc.
 
Physics news on Phys.org
First you need to write the equations in state vairable form and then convert it to state space format where
xdot = Ax + B A is a matrix, x and B are vectors
y = Cx + Du C is the relationship between x and y, and D is an initial condition

Now just pick a single equation and perform your numerical calculations plug those results into all the others and see what you obtain, doing this by hand really isn't recommended. It far worse than solving a system of 6 ordinary algebraic equations by hand whihc is already quite the task. I suggest running ODE 45 on it in matlab
 
Rafique Mir said:
How i can solve a system of 6 first order differential equations by using numerical techniques like Euler method, RK-4th order method , ODE -45 etc.

Here you go dude:

\frac{dx_1}{dt}=f_1(t,x_1,x_2,x_3,x_4,x_5,x_6)
.

.

.

\frac{dx_6}{dt}=f_6(t,x_1,x_2,x_3,x_4,x_5,x_6)

Now, each time you increment t, you have to determine the corresponding increments in x_i.

You see, it's done in parallel: Increment t, calculate x_1[/tex] through x_6 increment, then increment t again, do all six again, and so fourth to the end.<br /> <br /> How about posting the equations?
 
Last edited:
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top