Solve using matlab code
The initial value problem dydx−y= 2 cosx, y(0) =−2
has the exact solution y(x) =−e^x −√2 cos (x+π4).
Use the Euler method to solve the initial value problem for
0≤x≤2 using n=10,50,100,200 and plot solutions in one graph.
Repeat #1 using the Runge-Kutta method and plot solutions in one
graph with the exact solution