Processing math: 100%
Skip to main content

Section 9.11 Shooting Method

Assuming that there is a solution to
ยจx=f(t,x,ห™x),x(t0)=x0,x(tf)=xf,
the shooting method's idea is using IVP to find better and better approximations of the value of ห™x(t0) that produces a solution x(t) s.t. x(tf)=xf.

Clearly indeed by assigning values v to ห™x(t0) we obtain a function F(v) defined as the value of x(tf) when ห™x(t0)=v. The shooting method consists exaclty in applying some numerical method, such as the Newton method, to solve the equation F(v)=xf, namely to find the initial value of ห™x(t) such that the point arrives at xf at t=tf.

Subsection 9.11.1 The Linear Case

A particularly simple case it the linear one. Recall the following theorem:

In fact, the explicit expression of that map is given by
x0โ†ฆx(t)=eA(tโˆ’t0)x0.
In particular, this means that for linear BVP
ยจx=a(t)ห™x+b(t)x+c(t),x(t0)=x0,x(tf)=xf,
the function F(v) is itself linear, namely
F(v)=ฮฑv+ฮฒ.
Hence it is enough to solve numerically two IVP in order to solve the BVP. For instance, say that F(0)=q0 and F(1)=q1. Then ฮฒ=q0 and ฮฑ=q1โˆ’q0, so that the solution to
F(v)=xf is v=xfโˆ’q0q1โˆ’q0.
Example. Consider the IVP
ห™x=โˆ’xcost,x(0)=1,
whose solution is x(t)=eโˆ’sint.

Since we need a 2nd order ODE,

we will rather consider the BVP given by its "first prolongation"
ยจx=โˆ’ห™xcost+xsint,x(0)=1,x(15ฯ€/2)=e.
The code below applies the method illustrade above to solve this BVP.