MATLAB Answers


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.

Asked by Jenn
on 9 Oct 2013
Latest activity Commented on by sixwwwwww
on 10 Oct 2013

Can someone please help me with this, I am new using the program and I really do not know what to do,

  1 Comment

Nasty little system, not very tractable to analysis.

Log in to comment.


2 Answers

Answer by sixwwwwww
on 10 Oct 2013
Edited by sixwwwwww
on 10 Oct 2013

I will come back to it soon


But for different initial conditions we will have different integration constants values. Then it should work

Even with specific boundary conditions, the integrals along the way have the singularity at x = 0 or y = 0

Probably you are right it's not easy to solve it directly. Thanks for correction

Log in to comment.

Answer by Walter Roberson
on 10 Oct 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])


Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!