Boundary Value Problems for ODE

Basic Definitions

We wish to solve the differential equation

y'' + ay' + by = c

in the interval ti £ t £ tf. The prime denotes defferentiation of y with respect to t. We need to specify two conditions for a complete solution of this problem.

Initial Value Problem (IVP):

Both y and y' are given at the initial instant of time ti, as follows

y( ti ) = f, y'( ti ) = g

Boundary Value Problem (BVP):

Both y and y' are not given at the initial instant, instead the conditions are mixed between the boundaries tf and ti of the range of t. Three such boundary conditions are shown below.

(a) y( ti ) = f, y( tf ) = g
(b) y( ti ) = f, y'( tf ) = g
(c) y'( ti ) = f, y( tf ) = g

Shooting Method

We will describe the method in detail for the type (a) problem, other situations are similar.

First, we convert the 2nd-order ODE into two 1st-order ODE's, as follows

y1' = y2
y2' = c - ay2 - by1

with boundary conditions

y1( ti ) = f, y1( tf ) = g . . . Eq. (A)

where y1 = y, and y2 = y'.

We cannot use Runge-Kutta (RK) type marching solution technique for this problem, bacause RK-type methods require that the intital conditions are specified. Thus we convert the BVP into an IVP. As the inital value of y2 is not given, we guess this value. Thus, instead of the conditions in (A), we use the conditions

y1( ti ) = f, y2( ti ) = h . . . Eq. (B)

With the initial conditions of (B), we can use the RK-type marching method to solve the set of ODE's. However, this solution will not satisfy the condition y1( tf ) = g. Instead, we will get y1( tf ) = K. Note that K depends on the choice of h. Thus, K is a function of h. What we want is to find a suitable h such that

K( h ) = g or K( h ) - g = 0 . . . Eq. (C)

The Eq.(C) is solved by using the Newton-Raphson method. Begin with a guess value h0 for h, and update h using the formula

hn+1 = hn - [ K( hn ) - g ] / K'( hn )

The derivative K'( hn ) can be obtained as follows

K'( hn ) = [ K( hn + D h ) - K( hn ) ] / D h

A suitable D h can be 0.01 or 0.001.

Examples by using SIMULINK

Convective Heat Transfer Along a Rod ( D h = 0.001 )




IterationhnK ( hn ) K( hn + D h ) K'( hn )hn+1
05109.622 109.63311.712.7246
112.7246200.401 200.4109.012.6800
212.6800199.877 199.88911.812.6904

Radiative Heat Transfer Along a Rod ( D h = 0.001 )




IterationhnK ( hn ) K( hn + D h ) K'( hn )hn+1
0598.849298.8637 14.511.9759
111.9759506.841507.187 346.011.0891
211.0891326.674326.796 122.110.0516
310.0516238.397238.457 60.69.4180
49.4180205.343205.388 44.59.2979
59.2979200.1412200.184 42.29.2945