Question: COMPLETE THIS QUESTION USING THIS IN COMMAND WINDOW: clear all; f = @ ( x , y ) 2 * x + y; figure; dirfield
COMPLETE THIS QUESTION USING THIS IN COMMAND WINDOW:
clear all;
f @xyxy;
figure;
dirfieldf::::;hold on;
x ::;
yexpxx;
yx;
y cosx;
plotxyr;hold on;
plotxyg;hold on;
plotxyb;hold off;
PLEASE USE THIS GIVEN TO WRITE SCRIPT DIRFIELD:
function dirfieldftval,yval
dirfieldf t:dt:t y:dy:y
plot direction field for first order ODE y fty
using tvalues from t to t with spacing of dt
using yvalues from y to t with spacing of dy
f is an @ function, or an inline function,
or the name of an mfile with quotes.
Example: yy t
Show direction field for t in y in use
spacing of for both t and y:
f @tyyt;
dirfieldf::::;
tmymmeshgridtvalyval;
dt tval tval;
dy yval yval;
fv vectorizef;
if isaf'functionhandle'
fv evalfv;
end
ypfevalfvtmym;
s maxdtabsypdy;
h ishold;
quivertvalyval,ssypr; hold on;
quivertvalyval,ssypr;
if h
hold on
else
hold off
end
axistvaldttvalenddtyvaldyyvalenddy
Question Translation:
Consider the differential equation
a Write the expression of the explicit solution that passes through
You must show detailed computations in your report.
b Write the expression of the explicit solution that passes through
c Write the expression of the explicit solution that passes through
d Define the three solutions you find as and in ProjectQm
Then use the script to obtain the direction field and plot the solutions in the
direction field. What can you say about the solutions How about
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
