Session 11
Boundary Value Problems
for
Ordinary Differential Equations
Ernesto Gutierrez-Miravete
December 2, 1999
1 Linear Shooting
A boundary value problem (BVP) involving an ordinary differential equation
of order two consists of determining the function y(x) for x Î [a,b]
such that
subject to the boundary conditions
and
Theorem 11.1 (p. 625) If the function
f(x,y,y¢) as well as ¶f/¶y and
¶f/¶y¢ are continuous in the
set D = {(x,y,y¢) : a £ x £ b, -¥ £ y +¥, -¥ £ y¢+¥} and if
¶f/¶y > 0 for all (x,y,y¢) Î D and
|¶f/¶y| £ M for all (x,y,y¢) Î D where
M is a constant, then the BVP has a unique solution.
Example 11.1.1 (p. 626).
The shooting method is based on the idea of replacing the
original BVP by an equivalent set of initial value problems (IVPs)
which are solved using standard IVP methods..
Corollary 11.2 (p. 626) If the BVP is linear , i.e.
|
|
| y¢¢ = p(x) y¢+ q(x) y + r(x), a £ x £ b, y(a) = a, y(b) = b |
|
| |
|
and satisfies
i) p(x), q(x), and r(x) are continuous on [a,b],
ii) q(x) > 0 on [a,b],
then the problem has a unique solution which is given by
|
|
| y(x) = y1(x) + |
b- y1(b) y2(b)
|
y2(x) |
|
| |
|
where y1(x) and y2(x) are, respectively,
the solutions to the following IVPs
|
|
| y¢¢ = p(x) y¢+ q(x) y + r(x), a £ x £ b, y(a) = a, y(a)¢ = 0 |
|
| |
|
|
|
| y¢¢ = p(x) y¢+ q(x) y, a £ x £ b, y(a) = 0, y(a)¢ = 1 |
|
| |
|
Algorithm 11.1 (p. 627) Linear Shooting.
Example 11.1.2 (p. 629).
2 Nonlinear Shooting
If the BVP is nonlinear, its solution cannot be obtained by linear
combination of the solutions of the associated IVPs. Instead one must produce
a sequence of solutions y(x,t) corresponding to an IVP of the form
|
|
| y¢¢(x,t) = f(x,y(x,t),y¢(x,t)), a £ x £ b, y(a,t) = a, y¢(a,t) = t |
|
| |
|
where t is a parameter of the method whose values must be selected
so that
If the preceeding differential equation is differentiated with respect to t
and z(x,t) = (¶y/¶t) (x,t) the second associated
IVP is obtained
|
|
| z¢¢(x,t) = |
¶f ¶y
|
z(x,t) + |
¶f ¶y¢
|
z¢(x,t), a £ x £ b, z(a,t) = 0, z¢(a,t) = 1 |
|
| |
|
Therefore, nonlinear shooting proceeds by solving the above two IVP's and
Newton's method to determine subsequent iterate values for tk as
follows
|
|
| tk = tk-1 - |
y(b,tk-1) - b z(b,tk-1)
|
|
|
| |
|
Algorithm 11.2 (p. 635) Nonlinear Shooting.
Example 11.2.1 (p. 637).
3 Finite Difference Methods for Linear Problems
Consider the linear BVP
|
|
| y¢¢ = p(x) y¢+ q(x) y + r(x), a £ x £ b, y(a) = a, y(b) = b |
|
| |
|
Introduce a mesh in [a,b] by dividing the interval into
N+1 equal subintervals of size h.
This produces two boundary mesh points
x0 and xN+1, and N interior mesh points
xi, i = 1,2,..,N. The values y(x0) = y(a) and
y(xN+1) = y(b) are known but the values
y(xi), i = 1,2,..,N must be determined.
From the Taylor expansions for y(xi+1) and y(xi-1) the following
centered difference formula is obtained
|
|
| y¢¢(xi) = |
1 h2
|
[y(xi+1) - 2 y(xi) + y(xi-1)] + |
h2 12
|
y(4)(xi) |
|
| |
|
for some xi Î (xi-1,xi+1).
Similarly, an approximation for y¢(xi) is
|
|
| y¢(xi) = |
1 2 h
|
[y(xi+1) - y(xi-1)] - |
h2 6
|
y(3)(hi) |
|
| |
|
for some hi Î (xi-1,xi+1).
If the higher order terms are discarded from the above formulae and the
approximations are used in the original differential equation, the
second order accurate finite difference approximation to the BVP becomes
a system of simulataneous linear algebraic equations
|
|
| - ( |
wi+1 - 2 wi + wi-1 h2
|
) + p(xi) ( |
wi+1 - wi-1 2 h
|
) + q(xi) wi = -r(xi) |
|
| |
|
or, alternatively
|
|
| -(1 + |
h 2
|
p(xi)) wi-1 + (2 + h2 q(xi)) wi -(1- |
h 2
|
p(xi)) wi+1 = - h2 r(xi) |
|
| |
|
for i = 1,2,..,N.
In matrix notation the system becomes
where A is a tridiagonal matrix.
Theorem 11.3 (p. 641) If p,q, and r are continuous
and q(x) > 0 on [a,b] the problem A w = b has
a unique solution provided h < 2/L where
L = maxa £ x £ b |p(x)|. Further, if y(4) is continuous
on [a,b] the truncation error is O(h2).
Algorithm 11.3 (p. 641) Linear Finite Difference Method.
Example 11.3.1 (p. 642).
Example 11.3.2 (p. 643). Same as 11.3.1 but with Richardson extrapolation.
4 Finite Difference Methods for Nonlinear Problems
Let the BVP
|
|
| y¢¢ = f(x,y,y¢), y(a) = a, y(b) = b |
|
| |
|
be such that
1) f, ¶f/¶y = fy and
¶f/¶y¢ = fy¢ are
continuous on D,
2) ¶f/¶y ³ d > 0
3) Constants k and L exist such that
k = max |¶f/¶y| and
L = max |¶f/¶y¢|
Then, a unique solution exists. Introducing finite differences and
since f is nonlinear, the following
system of nonlinear algebraic equations is obtained
|
|
| - ( |
wi+1 - 2 wi + wi-1 h2
|
) + f(xi,wi, |
wi+1 - wi-1 2 h
|
) = 0 |
|
| |
|
for each interior mesh point i = 1,2,..,N. The nonlinear system
has a unique solution as long as h < 2/L.
The Jacobian matrix associated with this system is tridiagonal
and it is given by
|
|
| J(w1,...,wN)ij = |
ì ï ï ï ï ï í
ï ï ï ï ï î
|
|
|
|
| |
|
Newton's method applied to this problem requires first the
solution of the linear system
to produce v(k) which is then added to w(k-1) to
obtain w(k), i.e.
for each i = 1,2,..,N.
Algorithm 11.4 (p. 648) Nonlinear Finite Difference Method.
Example 11.4.1 (p. 649).
5 Rayleigh-Ritz Method
Instead of using finite difference approximation to the derivatives in the
original differential equation one can invoke variational principles.
Theorem 11.4 Let p Î C1[0,1], q,f Î C[0,1] with
p(x) ³ d > 0 and q(x) ³ 0 for 0 £ x £ 1.
Then, the function y(x) Î C2[0,1] with y(0) = y(1) = 0
is the solution to the differential equation
|
|
| - |
d dx
|
( p(x) |
dy dx
|
) + q(x) y = f(x) |
|
| |
|
if and only if y(x) is the unique function which
minimizes the integral
|
|
| I[y] = |
ó õ
|
1
0
|
{ p(x) [ y¢(x)]2 + q(x) [ y(x)]2 -2 f(x) y(x) } dx |
|
| |
|
In practice one searches for the solution among a set of functions
produced by linear combination of a set of linearly independent and
well defined basis functions fi(x), i = 1,2,...,n.
The solution y(x) is first approximated by åin ci fi(x)
and then the coefficients ci are chosen so that
I[y] = I[åin ci fi(x)] is minimized, i.e.
for each j = 1,2,..,n.
Substituting y(x) » åin ci fi(x) into
I[y], differentiating and introducing the minimization condition
leads to
where
|
|
| aij = |
ó õ
|
1
0
|
[ p(x) fi¢(x) fj¢(x) + q(x) fi(x) fj(x) ] dx |
|
| |
|
are the entries of the n ×n stiffness matrix A,
|
|
| bi = |
ó õ
|
1
0
|
f(x) fi(x) dx |
|
| |
|
is the load vector and
c = (c1,c2,..,cn)t is the vector of
unknown coefficients.
The simplest kind of basis functions is the set of
piecewise linear polynomials defined by first
introducing in [0,1] a collection of nodes
x0,x1,...,xn+1 with hi = xi+1 - xi
and then making
for each i = 1,2,..,n. This approximation is continuous
but it is not differentiable. Note that fi(x) fj(x) = 0 and
fi¢(x) fj¢(x) = 0 except when j is equal to
i-1, i, or i+1 and this makes A tridiagonal. Evaluation
of the matrix entries requires the calculation of 6 integrals for each node.
One can approximate the functions p, q, and f by
first order interpolating polynomials and then integrate numerically.
Algorithm 11.5 (p. 658) Piecewise Linear Rayleigh-Ritz.
Example 11.5.1 (p. 659).
Differentiability of the approximation can be obtained by using
spline functions.
Algorithm 11.6 (p. 663) Cubic Spline Rayleigh-Ritz.
Example 11.5.2 (p. 665)
File translated from TEX by TTH, version 2.34.
On 29 Nov 1999, 18:48.