Jump to content

Shooting method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hersle (talk | contribs) at 09:01, 24 June 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In numerical analysis, the shooting method is a method for solving a boundary value problem by reducing it to an initial value problem. 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. The following exposition may be clarified by this illustration of the shooting method.

Mathematical description

Suppose one wants to solve the boundary-value problemLet solve the initial-value problemIf , then is also a solution of the boundary-value problem.

The shooting method is the process of solving the inital value problem for many different values of until one finds the solution that satisfies the desired boundary condtions. Typically, one does so numerically. The solution(s) correspond to root(s) of To systematically vary the shooting parameter and find the root, one can employ standard root-finding algorithms like the bisection method or Newton's method.

Roots of and solutions to the boundary value problem are equivalent. If is a root of , then is a solution of the boundary value problem. Conversely, if the boundary value problem has a solution , it is also the unique solution of the initial value problem where , so is a root of .

Origin of the term

The term 'shooting method' has its origin in artillery. When firing a cannon towards a target, the first shot is fired in the general direction of the target. If the cannon ball hits too far to the right, the cannon is pointed a little to the left for the second shot, and vice versa. This way, the cannon balls will hit ever closer to the target.

Linear shooting method

The boundary value problem is linear if f has the form

In this case, the solution to the boundary value problem is usually given by:

where is the solution to the initial value problem:

and is the solution to the initial value problem:

See the proof for the precise condition under which this result holds.

Example

A boundary value problem is given as follows by Stoer and Bulirsch[1] (Section 7.3.1).

The initial value problem

was solved for s = −1, −2, −3, ..., −100, and F(s) = w(1;s) − 1 plotted in the first figure. 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 second figure.

Stoer and Bulirsch[1] 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).

The function F(s) = w(1;s) − 1.
Trajectories w(t;s) for s = w'(0) equal to −7, −8, −10, −36, and −40. The point (1,1) is marked with a circle.

See also

Notes

  1. ^ a b Stoer, J. and Bulirsch, R. Introduction to Numerical Analysis. New York: Springer-Verlag, 1980.

References

  • Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007). "Section 18.1. The Shooting Method". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8.