Consider the following initial value problem.a. Find the approximations to y(0.2) and y(0.4) using Euler’s methodwith time steps of Δt = 0.2, 0.1, 0.05, and 0.025.b. Using the exact solution given, compute the errors in the Euler approximations at t = 0.2 and t = 0.4.c. Which time step results in the more accurate approximation?Explain your observations.d. In general, how does halving the time step affect the error att = 0.2 and t = 0.4? y '(t) = 4 - y, y(0) = 3; y(t) = 4 - e-t
Consider the following initial value problem.
a. Find the approximations to y(0.2) and y(0.4) using Euler’s method
with time steps of Δt = 0.2, 0.1, 0.05, and 0.025.
b. Using the exact solution given, compute the errors in the Euler approximations at t = 0.2 and t = 0.4.
c. Which time step results in the more accurate approximation?
Explain your observations.
d. In general, how does halving the time step affect the error at
t = 0.2 and t = 0.4?
y '(t) = 4 - y, y(0) = 3; y(t) = 4 - e-t
Given:
.
To Do:
(a) Find the approximations to using the Euler's method with time steps .
(b) Using the exact solution calculate the errors.
(c) Which time step gives more accurate approximation?
(d) In general, how does halving the time step affect the error at ?
(a)
We have,
.
Let .
Euler's formula is: .
Calculating :
Now, for we have,
For we have,
For we have,
For we have,
Now, calculating :
For we have,
For we have,
For we have,
For we have,
Step by step
Solved in 5 steps