Question: Develop an M-file to solve a single ODE with Heuns method with iteration. Design the M-file so that it creates a plot of the results.

Develop an M-file to solve a single ODE with Heun’s method with iteration. Design the M-file so that it creates a plot of the results. Test your program by using it to solve for population as described in Prob. 22.5. Employ a step size of 5 years and iterate the corrector until ε


Data From Problem  22.5

 In such cases, the growth rate is not a constant,  but can be formulated as

kg = kgm(1 − p/pmax)

where kgm = the maximum growth rate under unlimited conditions, p = population, and pmax = the maximum population. Note that pmax is sometimes called the carrying capacity. Thus, at low population density p ≪ pmax, kg → kgm. As p approaches pmax, the growth rate approaches zero. Using this growth rate formulation, the rate of change of population can be modeled as

dp dt = kgm (1-P/Pmax) P

This is referred to as the logistic model. The analytical solution to this model is

image


dp dt = kgm (1-P/Pmax) P

Step by Step Solution

3.24 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It seems youre asking for assistance in developing an Mfile using MATLAB to solve an ordinary differential equation ODE representing population growth ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Applied Numerical Methods Questions!