Module

for

The Shooting Method for Boundary Value Problems

     

Background for Boundary Value Problems

    
Another type of differential equation has the form  

(1)        
[Graphics:Images/ShootingMod_gr_1.gif]     for   [Graphics:Images/ShootingMod_gr_2.gif]  

with the boundary conditions  

        
with  [Graphics:Images/ShootingMod_gr_3.gif]  

This is called a boundary value problem.  The conditions that guarantee that a solution to (1) exists should be checked before any numerical scheme is applied; otherwise, a list of meaningless output may be generated. The general conditions are stated in the following theorem.

 

Theorem  (Boundary Value Problem).  Assume that  [Graphics:Images/ShootingMod_gr_4.gif]  is continuous on the region  [Graphics:Images/ShootingMod_gr_5.gif]  and  that  [Graphics:Images/ShootingMod_gr_6.gif]  and  [Graphics:Images/ShootingMod_gr_7.gif]  are continuous on  [Graphics:Images/ShootingMod_gr_8.gif].  If there exists a constant  [Graphics:Images/ShootingMod_gr_9.gif]  for which  [Graphics:Images/ShootingMod_gr_10.gif]  satisfy

    [Graphics:Images/ShootingMod_gr_11.gif]  
and
    
[Graphics:Images/ShootingMod_gr_12.gif],  

then the boundary value problem

    
[Graphics:Images/ShootingMod_gr_13.gif]  with  [Graphics:Images/ShootingMod_gr_14.gif]  

has a unique solution   [Graphics:Images/ShootingMod_gr_15.gif].  

    The notation  [Graphics:Images/ShootingMod_gr_16.gif]  has been used to distinguish the third variable of the function    [Graphics:Images/ShootingMod_gr_17.gif].   Finally, the special case of linear differential equations is worthy of mention.

 

Corollary (Linear Boundary Value Problem).  Assume that  [Graphics:Images/ShootingMod_gr_18.gif]  in the theorem has the form  [Graphics:Images/ShootingMod_gr_19.gif]  and that  f  and its partial derivatives  [Graphics:Images/ShootingMod_gr_20.gif]  and  [Graphics:Images/ShootingMod_gr_21.gif] are continuous on  [Graphics:Images/ShootingMod_gr_22.gif].  If there exists a constant  [Graphics:Images/ShootingMod_gr_23.gif]  for which  p(t)  and   q(t)  satisfy

    [Graphics:Images/ShootingMod_gr_24.gif]  
and
    
[Graphics:Images/ShootingMod_gr_25.gif],  

then the linear boundary value problem

    
[Graphics:Images/ShootingMod_gr_26.gif]  with  [Graphics:Images/ShootingMod_gr_27.gif]  

has a unique solution   [Graphics:Images/ShootingMod_gr_28.gif].  

Proof  Shooting Methods for O.D.E.'s  Shooting Methods for O.D.E.'s  

 

Footnote. The significance of the theory.  

    We are all familiar with the differential equation  
[Graphics:Images/ShootingMod_gr_29.gif] and its general solution  [Graphics:Images/ShootingMod_gr_30.gif].  The boundary conditions with  [Graphics:Images/ShootingMod_gr_31.gif]  can only be solved if  [Graphics:Images/ShootingMod_gr_32.gif].  Unfortunately, because of this counter example, the "theory" which "guarantees" a solution must be phrased with [Graphics:Images/ShootingMod_gr_33.gif].  A careful reading of the "theory" reveals that this is a sufficient condition and not a necessary condition.  Indeed there are many problems that can be solved with the "shooting method" , all we ask is to be cautious with its implementation and take note that it might not apply sometimes.    

 

Reduction to Two I.V.P.s: Linear Shooting Method

    
Finding the solution of a linear boundary problem is assisted by the linear structure of the equation and the use of two special initial value problems. Suppose that  
u(t)  is the unique solution to the I.V.P.

    
[Graphics:Images/ShootingMod_gr_34.gif]  with  [Graphics:Images/ShootingMod_gr_35.gif].  

Furthermore, suppose that  
v(t)  is the unique solution to the I.V.P.

    
[Graphics:Images/ShootingMod_gr_36.gif]  with  [Graphics:Images/ShootingMod_gr_37.gif].  

Then the linear combination

     [Graphics:Images/ShootingMod_gr_38.gif].   

is a solution to  
[Graphics:Images/ShootingMod_gr_39.gif]  with  [Graphics:Images/ShootingMod_gr_40.gif].  

Proof  Shooting Methods for O.D.E.'s  Shooting Methods for O.D.E.'s  

 

Computer Programs  Shooting Methods for O.D.E.'s  Shooting Methods for O.D.E.'s  

Program (Linear Shooting Method).  To approximate the solution of the boundary value problem  

    
[Graphics:Images/ShootingMod_gr_41.gif]  with  [Graphics:Images/ShootingMod_gr_42.gif]  

over the interval  [a,b]  by using the Runge-Kutta method of order n=4.

The method involves solving a two systems of equations over  [Graphics:Images/ShootingMod_gr_43.gif].  First solve     

    [Graphics:Images/ShootingMod_gr_44.gif]                        with    [Graphics:Images/ShootingMod_gr_45.gif],  
    [Graphics:Images/ShootingMod_gr_46.gif]    and    [Graphics:Images/ShootingMod_gr_47.gif].  
    
Then solve  

    [Graphics:Images/ShootingMod_gr_48.gif]                        with    [Graphics:Images/ShootingMod_gr_49.gif],   
    [Graphics:Images/ShootingMod_gr_50.gif]    and    [Graphics:Images/ShootingMod_gr_51.gif].  
    
Finally, the desired solution x(t) is the linear combination  

     [Graphics:Images/ShootingMod_gr_52.gif].   

The subroutine Runge2D will be used to construct the two solutions  [Graphics:Images/ShootingMod_gr_53.gif],  and  [Graphics:Images/ShootingMod_gr_54.gif].     

 

Theory of computation.  

    
What should the "theory" really say?  "Existence theory" needs for numerical analysis needs to be "computational theory."  We really need to be guaranteed that two "linearly independent" solutions u(t) and v(t) given above can be computed.  In practice, if  [Graphics:Images/ShootingMod_gr_55.gif] then we need to compute [Graphics:Images/ShootingMod_gr_56.gif].  

[Graphics:Images/ShootingMod_gr_57.gif]

Example 1.  Consider the D. E.  [Graphics:Images/ShootingMod_gr_58.gif]  over  [Graphics:Images/ShootingMod_gr_59.gif]  with  [Graphics:Images/ShootingMod_gr_60.gif]  and  [Graphics:Images/ShootingMod_gr_61.gif].
Is this a "linear differential equation" ?  Why ?
Identify the functions p(t), q(t) and r(t).  
Solution 1.

 

Example 2.  Consider the D. E.  [Graphics:Images/ShootingMod_gr_70.gif]  over  [Graphics:Images/ShootingMod_gr_71.gif]  with  [Graphics:Images/ShootingMod_gr_72.gif]  and  [Graphics:Images/ShootingMod_gr_73.gif].
Use the "linear shooting" method and solve for the first function u(t).  
Solution 2.

 

Example 3.  Use the "linear shooting" method and solve for the second function v(t).  
Solution 3.

 

Example 4.  Neither of the solutions in 2 and 3 solve the given boundary values.  Graph them to verify this.
However, you should be able to "see the initial conditions"  u(1) = 1, u'(1) = 0  and  v(1) = 0, v'(1) = 1. for u and v, respectively.
Solution 4.

 

Example 5.  Form the desired solution to Example 1.
Solution 5.

 

Example 6.  Find the analytic solution to  [Graphics:Images/ShootingMod_gr_145.gif]  over  [Graphics:Images/ShootingMod_gr_146.gif]  with  [Graphics:Images/ShootingMod_gr_147.gif]  and  [Graphics:Images/ShootingMod_gr_148.gif].
Solution 6.

 

Research Experience for Undergraduates

Shooting Methods for ODE's  Shooting Methods for ODE's  Internet hyperlinks to web sites and a bibliography of articles.  

 

Download this Mathematica Notebook Shooting Method for Boundary Value Problems

 

Return to Numerical Methods - Numerical Analysis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004