Solve the system x’=4x-2xy; y’=-3y+3xy; with initial condition varying in the rectangle [0,7]X[0,7]. Use at least five different points.
Ältere Kommentare anzeigen
Can someone please help me with this, I am new using the program and I really do not know what to do,
1 Kommentar
Walter Roberson
am 10 Okt. 2013
Nasty little system, not very tractable to analysis.
Antworten (2)
I will come back to it soon
6 Kommentare
Walter Roberson
am 10 Okt. 2013
No it cannot. The question is about an ODE, so where
x’=4x-2xy
is written in the title, it implies a differential equation
diff(x(t),t) = 4 * x(t) - 2 * x(t) * y(t)
That cannot be solved by using subs().
sixwwwwww
am 10 Okt. 2013
Thanks for correction. I forgot to include differential. I recheck it.
Walter Roberson
am 10 Okt. 2013
I don't think it can be solved using dsolve() either. Determining the proper constants of integration is difficult, involving integrals that appear to have no closed form, and which cannot be numerically integrated because they go to infinity near x = 0 or y = 0.
sixwwwwww
am 10 Okt. 2013
But for different initial conditions we will have different integration constants values. Then it should work
Walter Roberson
am 10 Okt. 2013
Even with specific boundary conditions, the integrals along the way have the singularity at x = 0 or y = 0
sixwwwwww
am 10 Okt. 2013
Probably you are right it's not easy to solve it directly. Thanks for correction
Walter Roberson
am 10 Okt. 2013
Hint: for
x' = 2*x^3 + sin(x) %random example
you would code
fun = @(x) 2 * x.^3 + sin(x);
ode45(fun, [StartTime, EndTime], [InitialX, InitialY])
such as
ode45(fun, [0 20], [3 7])
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!