In numerical analysis, the shooting method is a method for solving a boundary value problem by reducing it to the system of an initial value problem. Roughly speaking, we 'shoot' out trajectories in different directions until we find a trajectory that has the desired boundary value. The following exposition may be clarified by this illustration of the shooting method. For a boundary value problem of a second-order ordinary differential equation, the method is stated as follows. Let be the boundary value problem. Let y denote the solution of the initial value problem Define the function F as the difference between y and the specified boundary value y1. If F has a roota then the solution y of the corresponding initial value problem is also a solution of the boundary value problem. Conversely, if the boundary value problem has a solution y, then y is also the unique solution y of the initial value problem where a = y', thus a is a root of F. The usual methods for findingroots may be employed here, such as the bisection method or Newton's method.
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.
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 for the precise condition under which this result holds.
Example
A boundary value problem is given as follows by Stoer and Burlisch. The initial value problem was solved for s = −1, −2, −3,..., −100, and F = w − 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 are shown in the second figure. Stoer and Burlisch state that there are two solutions, which can be found by algebraic methods. These correspond to the initial conditionsw′ = −8 and w′ = −35.9.