21.04.2015 Views

Lecture Notes in Differential Equations - Bruce E. Shapiro

Lecture Notes in Differential Equations - Bruce E. Shapiro

Lecture Notes in Differential Equations - Bruce E. Shapiro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

372 LESSON 33. NUMERICAL METHODS<br />

k 4 = y 1 + hf(t 1.5 , k 3 ) (33.98)<br />

= 1.64844 + (0.5)(2.16358) (33.99)<br />

= 2.73023 (33.100)<br />

y 2 = y 1 + h 6 (k 1 + 2k 2 + 2k 3 + k 4 ) (33.101)<br />

= 1.64844 + .5 1.64844 + 2(2.06055) + 2(2.16358) + 2.73023<br />

6<br />

(33.102)<br />

= 2.71735 (33.103)<br />

This gives us a numerical approximation of y(1) ≈ 2.71735, and error of<br />

approximately 0.034% (the exact value is e ≈ 2.71828. By comparison, a<br />

forward Euler computation with the same step size will yield a numerical<br />

result of 2.25, an error approximately 17%.<br />

S<strong>in</strong>ce it is an explicit method, the Runge-Kutta 4-stage method is very easy<br />

to implement <strong>in</strong> a computer, even though calculations are very tedious to<br />

do by hand

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!