Question

A second order differential equation can be graphed by using a double entry slopefield (lety,so . Find the exact solution to
0 0
Add a comment Improve this question Transcribed image text
Answer #1


つC 2 13 osta mt +2 02 So that -2Con (2)Matlab code for plotting the double entry slope field clear all close all Function for y(t) and y(t) y-e(t) exp (-t)(2*cos (x vs. y(x) plot 1.5 05 -0.5 0 2345 678 910 vs. z(-dt()Vdx plot 3-2 0 2345 678910 2x vs. d(z(x)Vdx plot 20 15 10 0 2345 678 910 Published with MATLAB R2018a

%%Matlab code for plotting the double entry slope field
clear all
close all

%Function for y(t) and y'(t)

y=@(t) exp(-t).*(2*cos(2*t)-sin(2*t));

z=@(t) exp(-t).*(-4*cos(2*t)-3*sin(2*t));
%All t values
tt=linspace(0,10);
%All y(t) and z(t) values for given t
yy=y(tt);
zz=z(tt);

figure(1)
plot(tt,yy,'r*')
xlabel('x')
ylabel('y(x)')
title('x vs. y(x) plot')
grid on

figure(2)
plot(tt,zz,'r*')
xlabel('x')
ylabel('z(x)')
title('x vs. z(x)=d(y(x))/dx plot')
grid on

figure(3)
plot(tt,-2*yy-5*zz,'r*')
xlabel('x')
ylabel('z(x)')
title('x vs. d(z(x))/dx plot')
grid on

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

Add a comment
Know the answer?
Add Answer to:
A second order differential equation can be graphed by using a double entry slopefield (lety,so '...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT