Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Consider the IVP y' =-3y, y(0) = 2 for 0t (t+dt, t+dy) % adjust look ; grid of values in t and y direction

image text in transcribed

2. Consider the IVP y' =-3y, y(0) = 2 for 0t (t+dt, t+dy) % adjust look ; grid of values in t and y direction quiver (T, Y, dT,dY) axis tight hold on After running these commands you should get the graph of the slope field. (b) Use linspace to generate a vector of 100 t-values between 0 and 5. Evaluate the solution y at these t-valucs and plot it in black together with the direction field (use 'linewidth',2) (c Enter the function defining the ODE as anonymous. Use euler.m with N-6 to determine the approximation to the solution. Plot the approxi- mated points in red (use 'ro-', 'linewidth',2 as line-style in your plot), together with the exact solution and the direction field. You should get Figure L3b. Based on the slope field and the geometrical meaning of Euler's method explain why the approximations are so inaccurate for this particular value of the stepsize. (d) Open a new figure by typing figure. Plot again the direction field but in a different window: t 0:.3:5; y -1:.4:2Repeat part (b) and repeat part (c) but this time with N 12. You should get Figure L3c. Comment on the result from a geometrical point of view. Note: Brief explanations of the commands quiver and meshgrid are included in Appendix A. In Appendix B we describe the Graphical User Interface dfield8 for plotting slope fields

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago