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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

Approximate Solutions<br />

3.1 <strong>The</strong> Forward Euler Method<br />

By a numerical solution of the initial value problem<br />

we mean a sequence of values<br />

a corresponding mesh or grid M by<br />

and a grid spacing as<br />

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

y 0 , y 1 , y 2 , ..., y n−1 , y n ; (3.2)<br />

M = {t 0 < t 1 < t 2 < · · · < t n−1 < t n }; (3.3)<br />

h j = t j+1 − t j (3.4)<br />

<strong>The</strong>n the numerical solution or numerical approximation to the solution is the sequence<br />

of points<br />

(t 0 , y 0 ), (t 1 , y 1 ), . . . , (t n−1 , y n−1 ), (t n , y n ) (3.5)<br />

In this solution the point (t j , y j ) represents the numerical approximation to the<br />

solution point y(t j ). We can imagine plotting the points (3.5) and then “connecting<br />

the dots” to represent an approximate image of the graph of y(t), t 0 ≤ t ≤ t n . We<br />

will use the convenient notation<br />

y n ≈ y(t n ) (3.6)<br />

which is read as “y n is the numerical approximation to y(t) at t = t n .”<br />

Euler’s Method is constructed as follows. At grid point t n , y(t) ≈ y n , and the<br />

slope of the solution is given by exactly y ′ = f(t n , y(t n )). If we approximate the<br />

slope by the straight line segment between the numerical solution at t n and the<br />

numerical solution at t n+1 then<br />

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

t n+1 − t n<br />

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

h n<br />

(3.7)<br />

43

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

Saved successfully!

Ooh no, something went wrong!