Question: 15. Consider the initial value problem dt ct, O -2/5. (a) Use the MATLAB program myeuler.m from Chapter 8 to compute the Eu- ler Method

 15. Consider the initial value problem dt ct, O -2/5. (a)

15. Consider the initial value problem dt ct, O -2/5. (a) Use the MATLAB program myeuler.m from Chapter 8 to compute the Eu- ler Method approximation to y(t) with step size h 0.5 and n 12 steps. The program will generate a list of ordered pairs (ti, i). You do not need to the points (ti vi). What appears to be happening to y as t increases? Repeat part (a) with h- 0.2 and each time plotting the results on the same set of axes as before. How are the (b) n 30, and then with h 0.1 and n 60, approximate solutions changing as the step size decreases? Can you make a reliable prediction about the long-term behavior of the solution? (c) Use ode45 to find an approximate solution and again plot it on the interval [0, 6) on the same set of axes as before. Now what does it look like y is doing as t increases? Next, plot the solution from ode45 on a larger interval (going to t 15) on a new set of axes. Again, what is happening to y as t increases? (d) Solve the initial value problem exactly and compare the exact solution to the approximations found above. In light of the discussion of stability in Chapters 5 and 8, explain your results in parts (a)-(c)

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!