Shooting Method
   HOME

TheInfoList



OR:

In
numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of ...
, the shooting method is a method for solving a
boundary value problem In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional constraints, called the boundary conditions. A solution to a boundary value problem is a solution to t ...
by reducing it to an
initial value problem In multivariable calculus, an initial value problem (IVP) is an ordinary differential equation together with an initial condition which specifies the value of the unknown function at a given point in the domain. Modeling a system in physics or oth ...
. It involves finding solutions to the initial value problem for different initial conditions until one finds the solution that also satisfies the boundary conditions of the boundary value problem. In layman's terms, one "shoots" out trajectories in different directions from one boundary until one finds the trajectory that "hits" the other boundary condition.


Mathematical description

Suppose one wants to solve the boundary-value problem y''(t) = f(t, y(t), y'(t)), \quad y(t_0) = y_0, \quad y(t_1) = y_1. Let y(t; a) solve the initial-value problem y''(t) = f(t, y(t), y'(t)), \quad y(t_0) = y_0, \quad y'(t_0) = a. If y(t_1; a) = y_1 , then y(t; a) is also a solution of the boundary-value problem. The shooting method is the process of solving the initial value problem for many different values of a until one finds the solution y(t; a) that satisfies the desired boundary conditions. Typically, one does so numerically. The solution(s) correspond to root(s) of F(a) = y(t_1; a) - y_1.To systematically vary the shooting parameter a and find the root, one can employ standard root-finding algorithms like the
bisection method In mathematics, the bisection method is a root-finding method that applies to any continuous function for which one knows two values with opposite signs. The method consists of repeatedly bisecting the interval defined by these values and the ...
or
Newton's method In numerical analysis, Newton's method, also known as the Newton–Raphson method, named after Isaac Newton and Joseph Raphson, is a root-finding algorithm which produces successively better approximations to the roots (or zeroes) of a real-valu ...
. Roots of F and solutions to the boundary value problem are equivalent. If a is a root of F , then y(t; a) is a solution of the boundary value problem. Conversely, if the boundary value problem has a solution y(t) , it is also the unique solution y(t; a) of the initial value problem where a = y'(t_0) , so a is a root of F .


Etymology and intuition

The term "shooting method" has its origin in artillery. An analogy for the shooting method is to * place a cannon at the position y(t_0) = y_0, then * vary the angle a = y'(t_0) of the cannon, then * fire the cannon until it hits the boundary value y(t_1) = y_1. Between each shot, the direction of the cannon is adjusted based on the previous shot, so every shot hits closer than the previous one. The trajectory that "hits" the desired boundary value is the solution to the boundary value problem — hence the name "shooting method".


Linear shooting method

The boundary value problem is linear if ''f'' has the form : f(t, y(t), y'(t))=p(t)y'(t)+q(t)y(t)+r(t). \, In this case, the solution to the boundary value problem is usually given by: :y(t) = y_(t)+\fracy_(t) where y_(t) is the solution to the initial value problem: :y_''(t) = p(t)y_'(t)+q(t)y_(t)+r(t),\quad y_(t_0) = y_0, \quad y_'(t_0) = 0, and y_(t) is the solution to the initial value problem: :y_''(t) = p(t)y_'(t)+q(t)y_(t),\quad y_(t_0) = 0, \quad y_'(t_0) = 1. See the proof for the precise condition under which this result holds.


Examples


Standard boundary value problem

A
boundary value problem In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional constraints, called the boundary conditions. A solution to a boundary value problem is a solution to t ...
is given as follows by Stoer and BulirschStoer, J. and Bulirsch, R. ''Introduction to Numerical Analysis''. New York: Springer-Verlag, 1980. (Section 7.3.1). : w''(t) = \frac w^2, \quad w(0) = 4, \quad w(1) = 1 The
initial value problem In multivariable calculus, an initial value problem (IVP) is an ordinary differential equation together with an initial condition which specifies the value of the unknown function at a given point in the domain. Modeling a system in physics or oth ...
: w''(t) = \frac w^2, \quad w(0) = 4, \quad w'(0) = s was solved for ''s'' = −1, −2, −3, ..., −100, and ''F''(''s'') = ''w''(1;''s'') − 1 plotted in the Figure 2. Inspecting the plot of ''F'', we see that there are roots near −8 and −36. Some trajectories of ''w''(''t'';''s'') are shown in the Figure 1. Stoer and Bulirsch state that there are two solutions, which can be found by algebraic methods. These correspond to the initial conditions ''w''′(0) = −8 and ''w''′(0) = −35.9 (approximately).


Eigenvalue problem

The shooting method can also be used to solve eigenvalue problems. Consider the time-independent Schrödinger equation for the
quantum harmonic oscillator 量子調和振動子 は、 古典調和振動子 の 量子力学 類似物です。任意の滑らかな ポテンシャル は通常、安定した 平衡点 の近くで 調和ポテンシャル として近似できるため、最 ...
-\frac \psi_n''(x) + \frac x^2 \psi_n(x) = E_n \psi_n(x).In quantum mechanics, one seeks normalizable wavefunctions \psi_n(x) and their corresponding energies subject to the boundary conditions \psi_n(x \rightarrow +\infty) = \psi_n(x \rightarrow -\infty) = 0.The problem can be solved analytically to find the energies E_n = n + 1/2 for n = 0, 1, 2, \dots, but also serves as an excellent illustration of the shooting method. To apply it, first note some general properties of the Schrödinger equation: * If \psi_n(x) is an eigenfunction, so is C \psi_n(x) for any nonzero constant C. * The n-th excited state \psi_n(x) has n roots where \psi_n(x) = 0. * For even n, the n-th excited state \psi_n(x) = \psi_n(-x) is symmetric and nonzero at the origin. * For odd n, the n-th excited state \psi_n(x) = -\psi_n(-x) is antisymmetric and thus zero at the origin. To find the n-th excited state \psi_n(x) and its energy E_n, the shooting method is then to: # Guess some energy E_n. # Integrate the Schrödinger equation. For example, use the central
finite difference A finite difference is a mathematical expression of the form . If a finite difference is divided by , one gets a difference quotient. The approximation of derivatives by finite differences plays a central role in finite difference methods for t ...
-\frac \frac + \frac (x^i)^2 \psi^i_n = E_n \psi^i_n. #* If n is even, set \psi_0 to some arbitrary number (say \psi^0_n = 1 — the wavefunction can be normalized after integration anyway) and use the symmetric property to find all remaining \psi_n^i. #* If n is odd, set \psi^0_n = 0 and \psi^1_n to some arbitrary number (say \psi^1_n = 1 — the wavefunction can be normalized after integration anyway) and find all remaining \psi_n^i. # Count the roots of \psi_n and refine the guess for the energy E_n. #* If there are n or less roots, the guessed energy is too low, so increase it and repeat the process. #* If there are more than n roots, the guessed energy is too high, so decrease it and repeat the process. The energy-guessing can be done with the
bisection method In mathematics, the bisection method is a root-finding method that applies to any continuous function for which one knows two values with opposite signs. The method consists of repeatedly bisecting the interval defined by these values and the ...
, and the process can be terminated when the energy difference is sufficiently small. Then one can take any energy in the interval to be the correct energy.


See also

*
Direct multiple shooting method In the area of mathematics known as numerical ordinary differential equations, the direct multiple shooting method is a numerical method for the solution of boundary value problems. The method divides the interval over which a solution is sough ...
*
Computation of radiowave attenuation in the atmosphere The computation of radiowave attenuation in the atmosphere is a series of radio propagation models and methods to estimate the path loss due to attenuation of the signal passing through the atmosphere by the absorption of its different components. ...


Notes


References

*{{Cite book , last1=Press , first1=WH , last2=Teukolsky , first2=SA , last3=Vetterling , first3=WT , last4=Flannery , first4=BP , year=2007 , title=Numerical Recipes: The Art of Scientific Computing , edition=3rd , publisher=Cambridge University Press , publication-place=New York , isbn=978-0-521-88068-8 , chapter=Section 18.1. The Shooting Method , chapter-url=http://apps.nrbook.com/empanel/index.html#pg=959


External links


Brief Description of ODEPACK
''(at
Netlib Netlib is a repository of software for scientific computing maintained by AT&T, Bell Laboratories, the University of Tennessee and Oak Ridge National Laboratory. Netlib comprises many separate programs and libraries. Most of the code is written in ...
; contains LSODE)''
Shooting method of solving boundary value problems – Notes, PPT, Maple, Mathcad, Matlab, Mathematica
at ''Holistic Numerical Methods Institute'

Numerical differential equations Boundary value problems