Question: Solve With Matlab Bacteria population: boundary value problem # 2 Consider the following differential equation used to help determine population for a bacteria over time:

Solve With Matlab
Bacteria population: boundary value problem #2
Consider the following differential equation used to help determine population for a bacteria over time:
(d^(2)P)/(dt^(2))=(1-(dP)/(dt))sqrtP
where t is time in days and P is population in hundred thousands. The population on day 5 is 4.2 hundred thousand. On day 7.8 the population is 19.6 hundred thousand. Solve the boundary value
problem
A. Solve the problem with the shooting method. Use fprintf statement to display the calculated guess for the initial condition (e.g. Calculated P^(')(5)=dots and the calculated value for P at the end point
(e.g. Calculated P(7.8)=dots )
B. Solve the problem using the finite difference approach with Delta x=0.4 and a magnitude percent relative approximate error tolerance of 0.04%. For your initial guess values make all your y points
linearly distributed between the boundary points. Display your x and y values formatted like the table below:
Sample output
t (in days) P (in 100,000s)
x.x xx.xxxx
C. Plot both solutions on the same axes and use a legend to distinguish data. Use a solid blue line for the shooting method and red stars for the finite difference solution. Turn the grid on. Don't forget
units.
Solve With Matlab Bacteria population: boundary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!