Exercise 2 Last Week S Module Exercises Used Euler S Method Find Approximate Solutions Ran Q43872965

Exercise 2 In last week’s Module exercises we used Euler’s method to find approximate solutions to a range of initial value problems. The first of which was 7 = f(t,y), y(0) =1, 0<t <2 where f(t,y)=1-e 4 – 2y Write an anonymous function f to calculate the right hand side of the ODE and copy and paste the commands into the text box: Paste code Use ode45 to find a numerical approximation for the solution to this IVP and store the t values in a vector I and the corresponding y values of the solution in a vector Y. Plot the solution with a red line and green ‘+’ symbols. Copy and paste the commands you used to find and then plot the solution here: Paste commands How would you change these commands to solve the IVP for the same ODE but with the condition y(1)=1 on the interval 1 <t<3? Enter answer Have a close look at one of the plots that is generated. When we used Euler’s method we had evenly spaced times at which we worked out the approximate solution. MATLAB doesn’t do this, instead it chooses the step-size adaptively to keep the errors low. Show transcribed image text Exercise 2 In last week’s Module exercises we used Euler’s method to find approximate solutions to a range of initial value problems. The first of which was 7 = f(t,y), y(0) =1, 0
Expert Answer
Answer to Exercise 2 In last week’s Module exercises we used Euler’s method to find approximate solutions to a range of initial va…
OR