Problems:
- Problem 1.2 and 1.3. Use Euler's method, like the problem asks, but additionally do 4th order Runge-Kutta. Also, for a step size of dt=0.1 for Euler's method, approximately what step size gives the same accuracy using 4th order R-K? You can answer this by experimenting and graphing the answer or error; it's not a theoretical question.
- Problem 13.1, except use sin(t) + t^2 for the inhomogeneous term. I didn't realize I was doing the exact same problem as the course example.
- Do Example 1.9.2 from the text using 4th order R-K. Compare with the answer that matlab gives using ode45().
- 4th order R-K requires that f(x,t) be evaluated 4 times during each time step. So, it seems that a fair comparison would be to compare the error for 4th order R-K with a given dt to using Euler's method with a dt that is 4 times smaller because Euler's method only requires that f(x,t) be evaluated one time during each step. Using the same system as was used for all the class examples in the numerical methods topics, compare the error for 4th order R-K with a specified dt to Euler's method with dt 4 times smaller. Which is better? More importantly, explain why.