Solve Ordinary Differential Equations Using MATLAB
Question
Solve the following ODE numerically using (A) a MATLAB differential equation solver, (B) using your own Euler method, and (C) analytically. Plot the two numerical solutions (black, blue) and analytic solution (red) on one graph with x = [0,5]. What steps size (h) did you need to use for the Euler method to get a good result. How does this compare with the result from the MATLAB routine? Show your work for finding the analytic solution.
Y” + 2Y’ + 3Y = 0
Y (0) = 0
Y’ (0) = -1
Summary
This question belongs to MATLAB software and discusses about application of MATLAB to ordinary differential equations and to plot the numerical solutions.
