Purchase Solution

Matlab: Runge-Kutta versus Euler in a Lottka-Volterra example

Not what you're looking for?

Ask Custom Question

See the attached file.

Consider the Lotka-Volterra system. Consider the following system of differential equations
dx/dt=-x(2-y),t_0=0,x(t_0=1), (2)
dy/dt=y(1-2x),t_0=0,y(t_0 )=2, (3)
Let [0; 40] be the interval of integration.
C1. Implement Runge-Kutta integration scheme with Δ = 0:005 for system (2), (3).Plot the phase curves (trajectories x(t); y(t) in the phase/state space).
C2. Run explicit Euler and improved Euler integration schemes for the same system and same Δ. Plot the phase curves.
How the results compare with the curves obtained using the Runge-Kutta method?

Purchase this Solution

Solution Summary

We arrange Matlab script to solve an example of Lottka-Volterra equations numerically, using either Runge-Kutta or two versions of Euler methods, and compare the three types of numerical solutions by plotting the results in the phase space.

Solution Preview

An example of a Matlab script to calculate and plot the three solutions on the same plot is attached.

There is a difficulty in making all the three ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

C# variables and classes

This quiz contains questions about C# classes and variables.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.