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.

369<br />

Expand<strong>in</strong>g the f<strong>in</strong>al term <strong>in</strong> a Taylor series,<br />

f(t n , y n ) = y ′ (t n ) (33.58)<br />

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

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

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

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

Therefore the Trapezoidal method is a second order method:<br />

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

6 y′′′ n−1 + · · ·<br />

The theta method is given by<br />

− 1 2 f n−1 − 1 2 hy′′ n−1 − 1 4 h2 y ′′′<br />

n−1 + · · · (33.61)<br />

= − 1<br />

12 h2 y n−1 ′′′ + · · · (33.62)<br />

= O(h 2 ) (33.63)<br />

y n = y n−1 + h [θf(t n−1 , y n−1 ) + (1 − θ)f(t n , y n )] (33.64)<br />

The theta method is implicit except when θ = 1, where it reduces to Euler’s<br />

method, and is first order unless θ = 1/2. For θ = 1/2 it becomes the trapezoidal<br />

method. The usefulness of the comes from the ability to remove the<br />

error for specific high order terms. For example, when θ = 2/3, there is no<br />

h 3 term even though there is still an h 2 term. This can help if the coefficient<br />

of the h 3 is so larger that it overwhelms the the h 2 term for some values of h.<br />

The second-order midpo<strong>in</strong>t method is given by<br />

(<br />

y n = y n−1 + h n f t n−1/2 , 1 )<br />

2 [y n + y n−1 ]<br />

(33.65)<br />

The modified Euler Method, which is also second order, is<br />

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

2 [f(t n−1, y n−1 ) + f(t n , y n−1 + hf(t n−1 , y n−1 ))] (33.66)

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

Saved successfully!

Ooh no, something went wrong!