Question: USING MATLAB PLEASE!!! Write Matlab code to find a), b) and d). Consider the following IVP: y=20y+20costsint,0t2,y(0)=0; The exact solution of this IVP is: y=e20t+cost.

USING MATLAB PLEASE!!! USING MATLAB PLEASE!!! Write Matlab code to find a), b) and d).

Write Matlab code to find a), b) and d). Consider the following IVP: y=20y+20costsint,0t2,y(0)=0; The exact solution of this IVP is: y=e20t+cost. With N=5,h=0.4, and ti=0.4i, for i=0,1,2,3,4,5. a) Find approximate solutions using the Euler's Method and compare these results with exact solutions. b) Calculate the error bound for (1.2) using Euler's method and compare the actual error. c) Find approximate solutions using the Modified Euler's Method (RungeKutta method of order two) and compare these results with exact solutions. d) Find approximate solutions using the Runge-Kutta method of order four and compare these results with exact solutions

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 Chemical Engineering Questions!