Question

In: Advanced Math

Now assume that the harvesting is not done at a constant rate, but rather at rates...

Now assume that the harvesting is not done at a constant rate, but rather at rates that vary at different times of the year. This can be modeled by ??/?? = .25? (1 − ?/4 ) − ?(1 + sin(?)). This equation cannot be solved by any technique we have learned. In fact, it cannot be solved analytically, but it can still be analyzed graphically.

8.) Let c=0.16. Use MATLAB to graph a slopefield and approximate solutions for several different values of p(0), and interpret what you see. Turn in the graphs together with your analysis. Note: 0<p<5, and 0<t<50 is a reasonable viewing window to start with. PLEASE DO IT USING MATLAB.

Solutions

Expert Solution


%%Matlab code for ode solution and direction field
clear all
close all
%function to be solved
f = @(t,p) 0.25.*p.*(1-(p/4))-0.16.*(1+sin(t));
t_ini=0;
t_end=50;
grid on
%Plotting Direction field
figure(1)
dirrfield(f,0:2:50,0:.25:5)
hold on
%plot for different initial velocity
for v0=0:1:5
[ts,ys] = ode45(f,[t_ini,t_end],v0); plot(ts,ys,'b','Linewidth',2)
end

hold off
title('phase potrait plot')
xlabel('t')
ylabel('p(t) ')


%%Matlab function for direction filed
function dirrfield(f,tval,yval)
% dirfield(f, t1:dt:t2, y1:dy:y2)
%
%   plot direction field for first order ODE y' = f(t,y)
%   using t-values from t1 to t2 with spacing of dt
%   using y-values from y1 to t2 with spacing of dy
%
%   f is an @ function, or an inline function,
%     or the name of an m-file with quotes.
%
% Example: y' = -y^2 + t
%   Show direction field for t in [-1,3], y in [-2,2], use
%   spacing of .2 for both t and y:
%
%   f = @(t,y) -y^2+t
%   dirfield(f, -1:.2:3, -2:.2:2)

[tm,ym]=meshgrid(tval,yval);
dt = tval(2) - tval(1);
dy = yval(2) - yval(1);
fv = vectorize(f);
if isa(f,'function_handle')
fv = eval(fv);
end
yp=feval(fv,tm,ym);
s = 1./max(1/dt,abs(yp)./dy)*0.75;
h = ishold;
quiver(tval,yval,s,s.*yp,0,'r'); hold on;
%quiver(tval,yval,-s,-s.*yp,0,'r');
if h
hold on
else
hold off
end
axis([tval(1)-dt/2,tval(end)+dt/2,yval(1)-dy/2,yval(end)+dy/2])
end

        %%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%


Related Solutions

Constant Yield Harvesting. In this problem, we assume that fish are caught at a constant rate...
Constant Yield Harvesting. In this problem, we assume that fish are caught at a constant rate h independent of the size of the fish population, that is, the harvesting rate H(y, t) = h. Then y satisfies dy/dt = r(1 − y/K )y − h = f (y). (ii) The assumption of a constant catch rate h may be reasonable when y is large but becomes less so when y is small. (a) If h < rK/4, show that Eq....
7. Now assume the country has a fixed exchange rate rather than a floating rate. a....
7. Now assume the country has a fixed exchange rate rather than a floating rate. a. Explain how the central bank could use a change in the exchange rate to stimulate the economy. Also, explain what monetary and fiscal policies you would use along with a change in the exchange rate. b. Now suppose the country has large debts in a foreign currency. Would this change your answer in (a)? Explain.
Monetarists argue that the money supply should be expanded at a fairly constant rate rather than...
Monetarists argue that the money supply should be expanded at a fairly constant rate rather than being manipulated to combat the business cycle. True False According to Marx, under socialism, the state would be a dictatorship of the proletariat. True False
The basic models of growth assume that capital leads to faster growth rates rather than using...
The basic models of growth assume that capital leads to faster growth rates rather than using labour provide one specific real world example that contradicts this theory
Assume the last dividend was $1.15 and the company is growing at a constant rate of...
Assume the last dividend was $1.15 and the company is growing at a constant rate of 7% per year. Investors require 13% to invest in this company. What is the capital gains yield for the first year?
Assume that the economy starts at the 'natural rate of output'. Now suppose there is a...
Assume that the economy starts at the 'natural rate of output'. Now suppose there is a decline in net exports due to the global economic downturn caused by COVID-19. Using the AD-AS diagram to show the effects in the short run and the medium run on the output, employment. and the price level. show how expansionary fiscal policy may influence these equilibrium positions.
Suppose that the Treasury bill rate is 5% rather than 2%. Assume the expected return on...
Suppose that the Treasury bill rate is 5% rather than 2%. Assume the expected return on the market stays at 9%. Use the following information. Stock Beta (β) United States Steel 3.10 Amazon 1.36 Southwest Airlines 1.24 The Travelers Companies 1.17 Tesla 0.99 ExxonMobil 0.93 Johnson & Johnson 0.92 Coca-Cola 0.59 Consolidated Edison 0.16 Newmont 0.10 Calculate the expected return from Johnson & Johnson. (Do not round intermediate calculations. Enter your answers as a percent rounded to 2 decimal places.)...
How do “maximum sustained yield” and “economically efficient” harvesting rates for a renewable resource such as...
How do “maximum sustained yield” and “economically efficient” harvesting rates for a renewable resource such as a fishery compare? How can the structure of property rights with “open access” resources lead to the “tragedy of the commons”? What policies should be implemented to achieving desirable outcomes when managing renewable resources?
Assume that Techtron is a constant growth company with a required rate of return of 13...
Assume that Techtron is a constant growth company with a required rate of return of 13 percent whose last dividend (D0, which was paid yesterday) was $2.00, and whose dividend is expected to grow indefinitely at a 5 percent rate. a. What is the firm’s expected dividend stream over the next 3 years?                          b. What is the firm’s current stock price? c. What is the stock's expected value 1 year from now?             d. What are the expected dividend yield, the...
Assume that the real risk free rate is constant at 1.5 %. The yield is 2.3%...
Assume that the real risk free rate is constant at 1.5 %. The yield is 2.3% on 1-year treasury, 3.0% on 2-year treasury, 3.5% on 3-year treasury, and 5.0% on 5-year treasury securities. What is the expected rate on three year treasury securities, 2 years from now? What is the expected rate on 3year treasury securities, 2 years from now? Show all the work with formula
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT