The Computable Differential Equation Lecture ... - Bruce E. Shapiro
The Computable Differential Equation Lecture ... - Bruce E. Shapiro
The Computable Differential Equation Lecture ... - Bruce E. Shapiro
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
44 CHAPTER 3. APPROXIMATE SOLUTIONS<br />
Since y ′ (t) = f(t, y), we can approximate the left hand side of (3.7) by<br />
y ′ n(t n ) ≈ f(t n , y n ) (3.8)<br />
and hence<br />
y n+1 = y n + h n f(t n , y n ) (3.9)<br />
which is the iteration formula for the Forward Euler Method.<br />
It is often the case that we use a fixed step size h = t j+1 − t j , in which case we<br />
have<br />
t j = t 0 + jh (3.10)<br />
In this case the Forward Euler’s method becomes<br />
y n+1 = y n + hf(t n , y n ) (3.11)<br />
<strong>The</strong> Forward Euler’s method is sometimes just called Euler’s Method. <strong>The</strong> application<br />
of Euler’s method is summarized in Algorithm 4.2.<br />
An alternate derivation of equation (3.9) is to expand the solution y(t) in a<br />
Taylor Series about the point t = t n :<br />
y(t n+1 ) = y(t n + h n ) = y(t n ) + h n y ′ (t n ) + h2 n<br />
2 y′′ (t n ) + · · · (3.12)<br />
= y(t n ) + h n f(t n , y( n )) + · · · (3.13)<br />
We then observe that since y n ≈ y(t n ) and y n+1 ≈ y(t n+1 ), then (3.9) follows immediately<br />
from (3.13).<br />
If the scalar initial value problem of equation (3.1) is replaced by a systems of<br />
equations<br />
y ′ = f(t, y), y(t 0 ) = y 0 (3.14)<br />
then the Forward Euler’s Method has the obvious generalization<br />
y n+1 = yn + hf(t n , y n ) (3.15)<br />
Math 582B, Spring 2007<br />
California State University Northridge<br />
c○2007, B.E.<strong>Shapiro</strong><br />
Last revised: May 23, 2007