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.

160 CHAPTER 8. BOUNDARY VALUE PROBLEMS<br />

where Y is the fundamental matrix. This makes the Newton iteration formul<br />

c i+1 = c i − Q −1 H(c i ) (8.55)<br />

Since inverting a matrix is expensive, it is usually more reasonable to solve the linear<br />

system<br />

Q∆ i+1 = H(c i ) (8.56)<br />

for ∆ and then perform the update<br />

✬<br />

Algorithm 8.1. Shooting<br />

To solve the boundary value problem<br />

✫<br />

c i+1 = c i + ∆ i+1 (8.57)<br />

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

g(y(a), y(b)) = 0<br />

1. Input: f, f y , g(u, v), g u , g v , c (0) , and a convergence tolerance;<br />

2. Repeat the following until the desired tolerance in c is reached<br />

(a) Solve the initial value problem y ′ = f(t, y) with the initial<br />

value at a with y(c i ) obtaining a mesh of solution values<br />

y (i)<br />

0 , . . . , y(i) N .<br />

(b) Form the vector H = g(c (i) , y (i)<br />

N )<br />

(c) Integrate the fundamental matrix Y n on the same mesh<br />

using A j = f y .<br />

(d) Calculate Q and solve the linear system Q∆ = H(c (i) ).<br />

(e) Update c (i) = c (i−1) + ∆.<br />

3. Solve the initial value problem for y(0) = c, where c is the final<br />

iteration in the preceding step.<br />

Shooting has a number of problems, among them<br />

• Roundoff error;<br />

• Propagation error – for linear systems ≈ e L(b−a) where L = max ‖A‖;<br />

✩<br />

✪<br />

• It assumes that the solution to the IVP exists globally, which might not be<br />

true.<br />

and consequently this “simple” shooting algorithm is rarely used.<br />

Math 582B, Spring 2007<br />

California State University Northridge<br />

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

Last revised: May 23, 2007

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

Saved successfully!

Ooh no, something went wrong!