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

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

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

364 LESSON 33. NUMERICAL METHODS<br />

The Backwards Euler Method<br />

Now consider the IVP<br />

y ′ = −5ty 2 + 5 t − 1 , y(1) = 1 (33.35)<br />

t2 The exact solution is y = 1/t. The numerical solution is plotted for three<br />

different step sizes on the <strong>in</strong>terval [1, 25] <strong>in</strong> the follow<strong>in</strong>g figure. Clearly<br />

someth<strong>in</strong>g appears to be happen<strong>in</strong>g here around h = 0.2, but what is it?<br />

For smaller step sizes, a relatively smooth solution is obta<strong>in</strong>ed, and for<br />

larger values of h the solution becomes progressively more jagged (figure<br />

??).<br />

Figure 33.2: Solutions for equation 33.35 for various step sizes us<strong>in</strong>g Euler’s<br />

method.<br />

0.4<br />

y<br />

0.3<br />

0.2<br />

0.1<br />

5 10 15 20 25<br />

t<br />

This example illustrates a problem that occurs <strong>in</strong> the solution of differential<br />

equations, known as stiffness. Stiffness occurs when the numerical method<br />

becomes unstable. One solution is to modify Euler’s method as illustrated<br />

<strong>in</strong> figure 33.3 to give the Backward’s Euler Method:<br />

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

The problem with the Backward’s Euler method is that we need to know the<br />

answer to compute the solution: y n exists on both sides of the equation, and<br />

<strong>in</strong> general, we can not solve explicitly for it. The Backwards Euler Method<br />

is an example of an implicit method, because it conta<strong>in</strong>s y n implicitly.<br />

In general it is not possible to solve for y n explicitly as a function of y n−1<br />

<strong>in</strong> equation 33.36, even though it is sometimes possible to do so for specific<br />

differential equations. Thus at each mesh po<strong>in</strong>t one needs to make some<br />

first guess to the value of y n and then perform some additional ref<strong>in</strong>ement

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

Saved successfully!

Ooh no, something went wrong!