The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
BMES 372 HW-III: Solving ODEs Numerically
Â
Use Matlab for all questions, show code listings, include graphs, run-times and comment what you did (see also Matlab codes for ODE solvers in the weblink file posted in BBLearn)
Important: Do not use Matlab ODE functions (like ODE 45). Instead, implement the numerical methods and calculate all slopes (e.g. k1…. k4) and derivatives explicitly.
______________________________________________________________
Â
Consider the first order differential equations:
Â
dY1/dt = Y2   and  dY2/dt = (1 - Y12)Y2 - Y1
Â
                      with initial conditions: Y1 (0) = 2  and  Y2 (0) = 0
Â
1a) Implement and use Euler’s method with a step size of h = 0.1 to find approximate values of the solution for Y1  for in the interval between t = 0.0 and . Produce a graph showing the numerical solution.
Â
1b) Use your Euler implementation with a step size of h = 0.001. Graph the function (can be included in the first figure).
Â
2a) Implement and use 4th order Runge-Kutta method with a step size of h = 0.1 to find approximate values between .0 and . Graph the solution (can be included in the first figure).
Â
2b) Use 4th order Runge-Kutta method with a step size of .001. Graph the solution (can be included in the first figure).
Â
4) Determine the absolute and relative errors (see Chapter 6.4) by comparing the amount of the state variable Y1 at the last timepoint () of the implementations 1a, 1b and 2a with the implementation 2b. Comment with a summary statement (3-4 sentences) on the accuracy of the methods investigated, their dependency on different step sizes.
-----------