ArticleslgStudy

mathematics

Shooting method

Shooting method is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Shooting method rather than just read about it. In short: 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.

Shooting method — main illustration
Shooting method — illustration

Key takeaways

  • Shooting method belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Shooting method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Shooting method from memory before moving on to harder problems.

Reference excerpt

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.

Mathematical description Suppose one wants to solve the boundary-value problemy″(t)=f(t,y(t),y′(t)),y(t0)=y0,y(t1)=y1.Let y(t;a) solve the initial-value problemy″(t)=f(t,y(t),y′(t)),y(t0)=y0,y′(t0)=a.If y(t1;a)=y1, 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(t1;a)−y1.To systematically vary the shooting parameter a and find the root, one can employ standard root-finding algorithms like the bisection method or Newton's method. 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′(t0), 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(t0)=y0, then vary the angle a=y′(t0) of the cannon, then fire the cannon until it hits the boundary value y(t1)=y1. 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(1)(t)+y1−y(1)(t1)y(2)(t1)y(2)(t) where y(1)(t) is the solution to the initial value problem: y(1)″(t)=p(t)y(1)′(t)+q(t)y(1)(t)+r(t),y(1)(t0)=y0,y(1)′(t0)=0, and y(2)(t) is the solution to the initial value problem: y(2)″(t)=p(t)y(2)′(t)+q(t)y(2)(t),y(2)(t0)=0,y(2)′(t0)=1. See the proof for the precise condition under which this result holds.

Examples

Standard boundary value problem A boundary value problem is given as follows by Stoer and Bulirsch (Section 7.3.1). w″(t)=32w2(t),w(0)=4,w(1)=1 The initial value problem w″(t)=32w2(t),w(0)=4,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 −12ψn″(x)+12x2ψn(x)=Enψn(x). In quantum mechanics, one seeks normalizable wave functions ψn(x) and their corresponding energies subject to the boundary conditions ψn(x→+∞)=ψn(x→−∞)=0.The problem can be solved analytically to find the energies En=n+1/2 for n=0,1,2,…, 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 ψn(x) is an eigenfunction, so is Cψn(x) for any nonzero constant C. The n-th excited state ψn(x) has n roots where ψn(x)=0. For even n, the n-th excited state ψn(x)=ψn(−x) is symmetric and nonzero at the origin. For odd n, the n-th excited state ψn(x)=−ψn(−x) is antisymmetric and thus zero at the origin. To find the n-th excited state ψn(x) and its energy En, the shooting method is then to:

Guess some energy En. Integrate the Schrödinger equation. For example, use the central finite difference−12ψni+1−2ψni+ψni−1Δx2+12(xi)2ψni=Enψni. If n is even, set ψ0 to some arbitrary number (say ψn0=1 — the wave function can be normalized after integration anyway) and use the symmetric property to find all remaining ψni. If n is odd, set ψn0=0 and ψn1 to some arbitrary number (say ψn1=1 — the wave function can be normalized after integration anyway) and find all remaining ψni. Count the roots of ψn and refine the guess for the energy En. 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, 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 Computation of radiowave attenuation in the atmosphere

Notes

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.

External links Brief Description of ODEPACK (at Netlib; contains LSODE) Shooting method of solving boundary value problems – Notes, PPT, Maple, Mathcad, Matlab, Mathematica at Holistic Numerical Methods Institute [1]

Illustrations

Shooting method: Figure 2. The function F(s) = w(1;s) − 1.
Figure 2. The function F(s) = w(1;s) − 1.
Shooting method: When searching for the ground state of the harmonic oscillator with energy E0=1/2, the shooting method produces wave functions that diverge to infinity. Here, the correct wave function should have zero roots and go to zero at infinity, so it lies somewhere between the orange and green lines. The energy is therefore between 0.495 and 0.500 (with numerical accuracy).
When searching for the ground state of the harmonic oscillator with energy E0=1/2, the shooting method produces wave functions that diverge to infinity. Here, the correct wave function should have zero roots and go to zero at infinity, so it lies somewhere between the orange and green lines. The energy is therefore between 0.495 and 0.500 (with numerical accuracy).

Worked examples

Example 1 — a first encounter with Shooting method

Start with the simplest possible case. Write down what Shooting method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Shooting method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Shooting method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Shooting method

In research
Shooting method appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Shooting method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Shooting method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Boundary value problems, Numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Shooting method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Shooting method” →

How to study Shooting method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Shooting method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Shooting method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Shooting method in simple terms?

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 condition…

Why does Shooting method matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Shooting method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Shooting method.

Tags

  • Boundary value problems
  • Numerical differential equations

Keep exploring