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.

368 LESSON 33. NUMERICAL METHODS<br />

If we expand y <strong>in</strong> a Taylor series about t n−1 ,<br />

Thus<br />

y(t n ) = y(t n−1 ) + hy ′ (t n−1 ) + h2<br />

2 y′′ (t n−1 ) + · · · (33.50)<br />

= y(t n−1 ) + hf(t n−1 , y n−1 ) + h2<br />

2 y′′ (t n−1 ) + · · · (33.51)<br />

LTE(Euler) = h 2 y′′ (t n−1 ) + c 2 h 2 + c 3 h 3 + · · · (33.52)<br />

for some constants c 1 , c 2 , ... Because the lowest order term <strong>in</strong> powers of h<br />

is proportional to h, we say that<br />

LTE(Euler) = O(h) (33.53)<br />

and say that Euler’s method is a First Order Method. In general, to<br />

improve accuracy for a given step size, we look for higher order methods,<br />

which are O(h n ); the larger the value of n, the better the method <strong>in</strong> general.<br />

The Trapezoidal Method averages the values of f at the two end po<strong>in</strong>ts.<br />

It has an iteration formula given by<br />

y n = y n−1 + h n<br />

2 (f(t n, y n ) + f(t n−1 , y n−1 )) (33.54)<br />

We can f<strong>in</strong>d the LTE as follows by expand<strong>in</strong>g the Taylor Series,<br />

LTE(Trapezoidal) = y(t n) − y(t n−1 )<br />

− f(t n , y n ) (33.55)<br />

h<br />

= 1 )<br />

(y(t n−1 ) + hy ′ (t n−1 ) + h2<br />

h<br />

2 y′′ (t n−1 ) + h3<br />

3! y′′′ (t n−1 ) + · · · − y(t n−1 )<br />

− 1 2 (f(t n, y n ) + f(t n−1 , y n−1 )) (33.56)<br />

Therefore us<strong>in</strong>g y ′ (t n−1 ) = f(t n−1 , y n−1 ),<br />

LTE(Trapezoidal) = 1 2 f(t n−1, y n−1 ) + h 2 y′′ (t n−1 ) + h2<br />

6 y′′′ (t n−1 ) · · · − 1 2 f(t n, y n )<br />

(33.57)

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

Saved successfully!

Ooh no, something went wrong!