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 4. IMPROVING ON EULER’S METHOD 71<br />

At t = t 0 + 2h the solution jumps again by δ, to<br />

y(t 0 + 2h) = y 0 e 2λh + δe λ(t 0+2h−(t 0 +h))<br />

(4.18)<br />

= y 0 e 2λh + δe λh) (4.19)<br />

hence for t 0 + h ≤ t < t 0 + 2h, we have<br />

y(t 0 + 2h) = (y 0 e 2λh + δe λh + δ)e λ(t−(t 0+2h))<br />

= y 0 e λ(t−t 0) + δe λ(t−(t 0+h)) + δe λ(t−(t 0+2h))<br />

(4.20)<br />

(4.21)<br />

In general, the solution in the n th interval will be<br />

y = y 0 e λ(t−t0) + δe λ(t−(t0+h)) + δe λ(t−(t0+2h)) + · · · + δe λ(t−(t 0+n))<br />

(4.22)<br />

n∑<br />

= y 0 e λ(t−t0) + δe λ(t−t 0)<br />

e −kλh (4.23)<br />

Summing the geometric series,<br />

k=1<br />

y = y 0 e λ(t−t 0) + δe λ(t−t 0) 1 − e−nλh<br />

e λh − 1<br />

(4.24)<br />

Figure 4.1: Illustration of the experimental process of simulating numerical error<br />

due to numerical integration by a stepwise approach. <strong>The</strong> numerical solution is<br />

illustrated by the black dots. Exact solutions to the IVP pass through those dots.<br />

Starting at (t 0 , y 0 ), the exact solution is followed through (t 0 + h, y(t 0 + h)). <strong>The</strong>n a<br />

new initial value problem is solved, starting at t 0 +h, with initial value y(t 0 +h)+δ.<br />

<strong>The</strong> process is then repeated. <strong>The</strong> solution that emulates the numerical solution is<br />

shaded.<br />

.<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!