Consider the same differential equation as in the previous question dy dt + 2y = e t

Question:

Consider the same differential equation as in the previous question dy dt

+ 2y = e t

, y(0) = 1.

a. Calculate the exact solution at t = 1, 2, 5 and t = 10.

b. Now use Euler’s method, with h = 0.5, to calculate approximate values of y at t = 1, 2, 5 and t = 10.

c. Calculate the error (i.e., the difference between the approximate value and the true value) for each value of t.

d. Plot the error against t. What do you notice about how the error depends on t?

Step by Step Answer:

Related Book For  book-img-for-question

Mathematics And Statistics For Science

ISBN: 9783031053177

1st Edition

Authors: James Sneyd, Rachel M. Fewster, Duncan McGillivray

Question Posted: