Question: Solve numerically the IVP d 2 y d t 2 + 3 y d y d t + 6 y = - 3 s i

Solve numerically the IVP
d2ydt2+3ydydt+6y=-3sint, with ,y(0)=1,dydt(0)=0
in the interval 0t60. Include the M-file in your report.
Is the behavior of the solution significantly different from that of the solution of (7)?
Is MATLAB giving any warning message? Comment.
THIS CONTENT IS PROTECTED AND MAY NOT BE SHARED, UPLOADED, SOLD OR DISTRIBUTED
2021 v 14 Copyrighto School of Mathematical and Statistical Sciences, Arizona State University
A Third-Order Problem
Consider the third-order IVP
d3ydt3+3y2d2ydt2+6y(dydt)2+6dydt=-3cost, with ,y(0)=1,dydt(0)=0,d2ydt2(0)=0.5
Introducing v=dydt and w=dy2dt2 we obtain dvdt=w and dwdt=d3ydt3=-3cost-3y2w-6yv2-6v. Moreover,
v(0)=dydt(0)=0 and w(0)=d2ydt2(0)=0.5. Thus (8) is equivalent to
dydt=v,
dvdt=w,
dwdt=-3cost-3y2w-6yv2-6v
Figure 9: Time series y=y(t),v=v(t)=y'(t), and w=w(t)=y'(t)(left), and 3D phase plot v=y'
vs.y vs w=y'' for (8)(rotated with view ([-40,60])).to.=0;tf=20;yo.=[10;60];
a=.8;b=.01;c=.6;d=.1;
[t,y]=ode45(@f,[to.,tf],yo.,[],a,b,c,d);
u1=y(:,1);u2=y(:,2);,% y in output has 2 columns corresponding to u1 and u2
figure(1);
subplot (2,1,1); plot(t, u1,'b-+'); ylabel('u1');
subplot(2,1,2); plot(t,u2,'ro-'); ylabel('u2');
figure(2)
plot(u1,u2); axis square; xlabel('u_1'); ylabel('u_2'); % plot the phase plot
%-----------------------------------------------------------------
function dydt =f(t,y,a,b,c,d)
u1=y(1);u2=y(2);
dydt =[a**u1-b**u1**u2;-c**u2+d**u1**u2];
end
 Solve numerically the IVP d2ydt2+3ydydt+6y=-3sint, with ,y(0)=1,dydt(0)=0 in the interval 0t60.

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 Databases Questions!