- #1
musicmar
- 100
- 0
Homework Statement
Consider the initial value problem y' = -2y + x, y(0) = 1
The analytical solution is y(x) = (1/2)x2-(1/4) + (5/4)e-2x
a. Approximate y(0.1) using one step and the RK4 method.
b. Find a bound for the local truncation error in y1.
c. Compare the error in y1 with the error bound.
d. Approximate y(0.1) using two steps and the RK4 method.
e. Verify that the global truncation error for the RK4 method is O(h4) by comparing the errors in parts (a) and (d).
The Attempt at a Solution
I think I know how to approximate y(0.1). I don't have time to write out my work now. I'll be back in about an hour and can do it then.
Can someone please help me understand the errors of the RK4 method? Thank you!