21.04.2015 Views

The Computable Differential Equation Lecture ... - Bruce E. Shapiro

The Computable Differential Equation Lecture ... - Bruce E. Shapiro

The Computable Differential Equation Lecture ... - Bruce E. Shapiro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 3. APPROXIMATE SOLUTIONS 49<br />

Figure 3.2: Construction of the approximate solution.<br />

P<br />

✟<br />

S<br />

✛<br />

h<br />

✲<br />

❍ (t 2 , y 2 )<br />

❍ ❍❍❍❍<br />

O ✟✥✥✥✥✥ ✟✟✟✟✟✟✟✟✟✟✟✟✟ (t 1 , y 1 )<br />

<br />

❍<br />

✻ (t 0 , y 0 ) α<br />

❍ ❍❍❍❍❍❍❍❍❍❍❍❍❍<br />

❍<br />

Mh<br />

❄<br />

Q<br />

|ˆt − t|, |ŷ − y| < δ =⇒ |f(ˆt, ŷ) − f(t, y)| ≤ ɛ (3.44)<br />

∀(ˆt, ŷ), (t, y) ∈ S.<br />

Pick any meshing satisfying<br />

t 0 < t 1 < · · · < t n−1 < t n = t 0 + h (3.45)<br />

t i − t i−1 ≤ min(δ, δ/M), i = 1, 2, . . . , n (3.46)<br />

To simplify the notation we define the points<br />

O = (t 0 , y 0 ) (3.47)<br />

P = (t 0 + h, y 0 + Mh) (upper right hand corner of S) (3.48)<br />

Q = (t 0 + h, y 0 − Mh) (lower right hand corder of S) (3.49)<br />

Construct the solution by drawing a line segment from (t 0 , y 0 ) with slope f(t 0 , y 0 )<br />

until it intersects the line t = t 1 . <strong>The</strong> end point then has coordinates (t 1 , y 1 ) where<br />

y 1 − y 0<br />

t 1 − t 0<br />

= f(t 0 , y 0 ) (3.50)<br />

y 1 = y 0 + (t 1 − t 0 )f(t 0 , y 0 ) (3.51)<br />

<strong>The</strong> reader should compare the construction of y 1 in equation(3.51) with equation<br />

(3.9); the step size h n in (3.9) corresponds to the time-step t 1 − t 0 in (3.51). So we<br />

are constructing the first segment of the solution using the Forward Euler Method.<br />

We then continue to construct additional points on the solution at subsequent steps,<br />

c○2007, B.E.<strong>Shapiro</strong><br />

Last revised: May 23, 2007<br />

Math 582B, Spring 2007<br />

California State University Northridge

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

Saved successfully!

Ooh no, something went wrong!