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 8<br />

Boundary Value Problems<br />

8.1 Shooting<br />

In this section the method of shooting will be illustrated with an example. Suppose<br />

we are given the boundary value problem<br />

It is easily verified that an exact solution is<br />

y ′′ + 1 t y′ (t) − 1 t 2 y = 0 (8.1)<br />

y(1) = y(2) = 1 (8.2)<br />

y(t) = 2 + t2<br />

3t<br />

(8.3)<br />

Our goal is to find this solution numerically. We will do this by converting the the<br />

problem into an initial value problem. Let u = y, v = y ′ . <strong>The</strong>n<br />

u ′ = v, u(1) = 1 (8.4)<br />

v ′ = 1 t 2 u − 1 v, v(1) = c (8.5)<br />

t<br />

where c is the unknown initial condition for v(1) = y ′ (1). We can estimate a first<br />

guess at c using 8.7 and the given boundary data with a forward approximation to<br />

the derivative:<br />

c (0) = v(1) (0) = u ′ (1) ≈<br />

u(2) − u(1)<br />

2 − 1<br />

= 0 (8.6)<br />

<strong>The</strong> estimate is very rough and could be quite far from the actual value. Next<br />

we will use our Forward Euler method (we could replace this with any other IVP<br />

method, but we will stick to Forward Euler because it is the simplest, and works<br />

quite well for illustrating the problem) to solve the first IVP approximation to our<br />

BVP:<br />

u ′ = v, u(1) = 1 (8.7)<br />

v ′ = 1 t 2 u − 1 t v, v(1)(0) = c (0) = 0 (8.8)<br />

153

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

Saved successfully!

Ooh no, something went wrong!