BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

The shooting method

Bound states can be found numerically by fixing ψ and ψ′ at a starting point, guessing an energy and integrating outwards. At a wrong energy the solution blows up, upwards or downwards; a bound-state energy lies wherever the direction of the blow-up flips, and narrowing that interval pins it down.

You need this first

Full reading path (157 pages)
  1. Vectors (8.01)
  2. Position and velocity in one dimension (8.01)
  3. Acceleration in one dimension (8.01)
  4. Motion in two dimensions and projectiles (8.01)
  5. Newton's laws of motion (8.01)
  6. Momentum and impulse (8.01)
  7. Conservation of momentum (8.01)
  8. Centre of mass and its motion (8.01)
  9. Relative velocity and recoil (8.01)
  10. Symmetry and Galilean invariance (8.033)
  11. The universal law of gravitation (8.01)
  12. Contact forces: the normal force and friction (8.01)
  13. Tension in ropes and the spring force (8.01)
  14. The derivative: slope of the tangent line and rate of change (18.01)
  15. Limits and continuity (18.01)
  16. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  17. The chain rule and higher derivatives (18.01)
  18. Implicit differentiation and the derivatives of inverse functions (18.01)
  19. Exponentials and logarithms: the number e and its derivatives (18.01)
  20. Linear and quadratic approximations (18.01)
  21. Curve sketching with the first and second derivative (18.01)
  22. Sketching strategy and maximum–minimum problems (18.01)
  23. More max–min, and related rates (18.01)
  24. A ring on a string, and Newton's method (18.01)
  25. The mean value theorem and inequalities (18.01)
  26. Differentials and antiderivatives (18.01)
  27. Kinetic energy and work in one dimension (8.01)
  28. Work and kinetic energy in two and three dimensions (8.01)
  29. Conservative and non-conservative forces (8.01)
  30. Potential energy (8.01)
  31. Circular motion: polar coordinates, position and velocity (8.01)
  32. Uniform circular motion: centripetal acceleration, period and frequency (8.01)
  33. Circular motion: tangential acceleration and angular acceleration (8.01)
  34. Newton's second law and circular motion: banked turns and orbits (8.01)
  35. Circular motion dynamics: worked problems (8.01)
  36. Mechanical energy and energy conservation (8.01)
  37. Definite integrals and Riemann sums (18.01)
  38. The first fundamental theorem of calculus (18.01)
  39. Potential energy diagrams (8.01)
  40. Differential equations and separation of variables (18.01)
  41. Direction fields, isoclines and integral curves (18.03)
  42. Euler's method and better numerical methods (18.03)
  43. First-order linear equations and integrating factors (18.03)
  44. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  45. Autonomous equations, critical points and stability (18.03)
  46. Complex numbers and complex exponentials (18.03)
  47. Indeterminate forms and L'Hôpital's rule (18.01)
  48. The second fundamental theorem of calculus (18.01)
  49. Improper integrals (18.01)
  50. Infinite series and convergence tests (18.01)
  51. Stacking blocks and Taylor series (18.01)
  52. The harmonic oscillator (8.03)
  53. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  54. Combining sine and cosine; models for first-order linear equations (18.03)
  55. Second-order linear equations with constant coefficients (18.03)
  56. Complex characteristic roots and damped oscillations (18.03)
  57. Damped free oscillators (8.03)
  58. Linear operators, the Wronskian and normalized solutions (18.03)
  59. Inhomogeneous equations, particular solutions and stability (18.03)
  60. Driven oscillators and resonance (8.03)
  61. Vectors and the dot product (18.02)
  62. Determinants and the cross product (18.02)
  63. Planes through three points, and matrices (18.02)
  64. Equations of planes and square systems (18.02)
  65. The geometry of linear equations (18.06)
  66. Elimination with matrices (18.06)
  67. Matrix multiplication and inverse matrices (18.06)
  68. Factorization into A = LU (18.06)
  69. Transposes, permutations and vector spaces (18.06)
  70. Properties of determinants (18.06)
  71. Determinant formulas and cofactors (18.06)
  72. Cramer's rule, the inverse matrix and volume (18.06)
  73. Column space and nullspace (18.06)
  74. Eigenvalues and eigenvectors (18.06)
  75. Coupled oscillators and normal modes (8.03)
  76. Coupled pendulums and beats (8.03)
  77. Driven coupled oscillators and symmetry (8.03)
  78. Symmetry and infinitely many oscillators (8.03)
  79. The beaded string and the wave equation (8.03)
  80. Particular solutions: the exponential input theorem (18.03)
  81. Resonance and beats (18.03)
  82. Introduction to Fourier series (18.03)
  83. Normal modes of a string and Fourier series (8.03)
  84. Travelling waves, energy and reflection (8.03)
  85. Sound waves (8.03)
  86. Parametric equations of lines and the cycloid (18.02)
  87. Velocity, acceleration and Kepler's second law (18.02)
  88. Functions of two variables and partial derivatives (18.02)
  89. Tangent planes, critical points and least squares (18.02)
  90. The second derivative test (18.02)
  91. Differentials and the chain rule (18.02)
  92. The gradient and directional derivatives (18.02)
  93. Lagrange multipliers (18.02)
  94. Non-independent variables (18.02)
  95. Double integrals (18.02)
  96. Double integrals in polar coordinates, and their uses (18.02)
  97. Change of variables in double integrals (18.02)
  98. Vector fields and line integrals (18.02)
  99. Fields: scalar, vector, gravitational and electric (8.02)
  100. Field lines, charging and electric dipoles (8.02)
  101. Electric fields of continuous charge distributions (8.02)
  102. Electric potential and potential energy (8.02)
  103. Gradient fields and path independence (18.02)
  104. Testing for gradient fields, potentials and curl (18.02)
  105. Green's theorem (18.02)
  106. Flux and the normal form of Green's theorem (18.02)
  107. Simply connected regions (18.02)
  108. Triple integrals and cylindrical coordinates (18.02)
  109. Spherical coordinates and gravitational attraction (18.02)
  110. Vector fields in space and flux through surfaces (18.02)
  111. Flux through graphs and the divergence theorem (18.02)
  112. Gauss's law (8.02)
  113. Conductors, capacitors and stored energy (8.02)
  114. Shielding, combining capacitors and dielectrics (8.02)
  115. Current, resistance and DC circuits (8.02)
  116. Rigid bodies and rotational kinematics (8.01)
  117. Moment of inertia (8.01)
  118. Torque and the cross product (8.01)
  119. Magnetic fields and the force on moving charges (8.02)
  120. Forces on currents and the Biot–Savart law (8.02)
  121. Magnetic dipoles: torque, energy and force (8.02)
  122. Levitation and Ampère's law (8.02)
  123. The divergence theorem, its proof and the diffusion equation (18.02)
  124. Line integrals, gradient fields and curl in space (18.02)
  125. Stokes' theorem (18.02)
  126. Stokes' theorem, path independence and div curl = 0 (18.02)
  127. Div and curl in physics: torque and Maxwell's equations (18.02)
  128. Faraday's law of induction (8.02)
  129. Eddy currents, transformers and magnetic materials (8.02)
  130. Measuring circuits and RC circuits (8.02)
  131. Self-inductance, LR circuits and magnetic energy (8.02)
  132. LC oscillations and damped RLC circuits (8.02)
  133. AC circuits, phasors and resonance (8.02)
  134. Displacement current, Maxwell's equations and light (8.02)
  135. Electromagnetic waves (8.03)
  136. The speed of light and the Michelson–Morley experiment (8.033)
  137. Deriving the Lorentz transformation (8.033)
  138. Time dilation, length contraction and the interval (8.033)
  139. Four-vectors, the Doppler effect and aberration (8.033)
  140. Doppler effect, aberration and the twin paradox (8.033)
  141. Geodesics and the calculus of variations (8.033)
  142. The brachistochrone and the hanging chain (8.033)
  143. Relativistic momentum and energy, and why the Sun shines (8.033)
  144. Force, acceleration, accelerators and interstellar travel (8.033)
  145. Atoms, photons and nuclei (8.033)
  146. Key features of quantum mechanics (8.04)
  147. The Mach–Zehnder interferometer and the Elitzur–Vaidman bombs (8.04)
  148. The photoelectric effect, Compton scattering and matter waves (8.04)
  149. Matter waves under a change of frame, and group velocity (8.04)
  150. Momentum and position operators and the Schrödinger equation (8.04)
  151. Normalization, Hermitian operators and the probability current (8.04)
  152. Wave packets, uncertainty and the spreading of a free packet (8.04)
  153. Momentum space and expectation values (8.04)
  154. Observables, the measurement postulate and uncertainty (8.04)
  155. Stationary states, boundary conditions and a particle on a circle (8.04)
  156. The infinite and finite square wells (8.04)
  157. General properties of bound states and the shape of wavefunctions (8.04)
On this page · 4 sections
  1. Setting up the shot
  2. Aiming
  3. Shooting into a square well
  4. Summary

Few potentials can be solved in closed form. The shooting method finds bound states of any one-dimensional potential numerically, using nothing more than the behaviour seen on the previous page: at the wrong energy, the solution runs away (notes pp. 11–12). (MIT's material for this lecture is the last section of Zwiebach's lecture notes, Chapter 12; this page follows it in its own words and adds its own example, a finite square well whose shooting can be followed exactly in a graph. The notes' figure is not reproduced.)

Setting up the shot#

The equation to integrate is (notes p. 11)

The equation to integrate
d2ψdx2+2mℏ2(E−V(x))ψ=0\frac{d^2\psi}{dx^2} + \frac{2m}{\hbar^2}\left(E - V(x)\right)\psi = 0
In words

d squared psi over d x squared plus 2 m over h bar squared, times the quantity capital E minus V(x), psi equals 0

A second-order equation needs two starting values. (The notes describe the even case first, then the search over energies, and only then the odd case and hard walls; this page gathers all the starting values first.) The method is simplest for an even potential, whose bound states are even or odd, integrating from x=0x = 0 outwards (notes p. 11).

Even states. The equation does not fix the normalization, so choose ψ(0)=1\psi(0) = 1. The slope must vanish, since an even function with a nonzero slope at the origin would have a kink there (notes p. 11):

Starting values for even states
ψ(0)=1,ψ′(0)=0\psi(0) = 1, \qquad \psi'(0) = 0
In words

psi (0) equals 1, psi prime (0) equals 0

Odd states. An odd function must pass through zero, and the slope is then free up to normalization (notes p. 12):

Starting values for odd states
ψ(0)=0,ψ′(0)=1\psi(0) = 0, \qquad \psi'(0) = 1
In words

psi (0) equals 0, psi prime (0) equals 1

Hard walls (notes p. 12). For a potential that is not even but has a hard wall, start at the wall with ψ=0\psi = 0 and ψ′=1\psi' = 1. With two hard walls, start at one and require the solution to reach exactly zero at the other.

Aiming#

Now pick an energy E0E_0 and integrate (notes p. 11). An arbitrary energy is not a bound-state energy, and what typically goes wrong is that the solution cannot be normalized: beyond some point it diverges, say towards +∞+\infty. Try other energies until one, E1E_1, gives a divergence towards −∞-\infty. Somewhere between E0E_0 and E1E_1 the divergence must switch direction, and there the solution neither rises nor falls but decays: a normalizable bound state. Narrow the interval, keeping one end diverging up and the other down. The divergences then set in farther and farther out, and the interval closes in on the bound-state energy (notes pp. 11–12).

A practical note (notes p. 12). Before a computer can integrate, the units must be cleaned out of the equation: replace xx by a unit-free variable uu, with x=bux = bu and bb a length built from the constants of the problem (the page's own example below uses the half-width of the well).

Shooting into a square well#

The page's own example: the finite square well of half-width aa and strength z02=2mV0a2/ℏ2=10.5z_0^2 = 2mV_0a^2/\hbar^2 = 10.5 (close to the 10 eV electron well on the square-well page). With u=x/au = x/a and ξ=ka\xi = ka, η=κa\eta = \kappa a as in the Lecture 11 notes (Chapter 11, pp. 7–8, eqs. (2.26)–(2.27)), the equation is d2ψ/du2=−ξ2ψd^2\psi/du^2 = -\xi^2\psi inside (u<1u < 1) and d2ψ/du2=η2ψd^2\psi/du^2 = \eta^2\psi outside, with η2=10.5−ξ2\eta^2 = 10.5 - \xi^2; choosing the energy means choosing ξ\xi. Shooting for even states from ψ(0)=1\psi(0) = 1, ψ′(0)=0\psi'(0) = 0 gives cos⁡ξu\cos\xi u inside. Outside, the solution that joins it smoothly at u=1u = 1 is

The shot outside the well
ψ(u)=Beη(u−1)+Ce−η(u−1),B=12(cos⁡ξ−ξηsin⁡ξ),C=12(cos⁡ξ+ξηsin⁡ξ)\psi(u) = Be^{\eta(u - 1)} + Ce^{-\eta(u - 1)}, \qquad B = \frac12\left(\cos\xi - \frac{\xi}{\eta}\sin\xi\right), \quad C = \frac12\left(\cos\xi + \frac{\xi}{\eta}\sin\xi\right)
In words

psi (u) equals capital B e to the power eta the quantity u minus 1, end of power, plus C e to the power minus eta the quantity u minus 1, end of power, capital B equals one half the quantity cos xi minus xi over eta, times sine xi, C equals one half the quantity cos xi plus xi over eta, times sine xi

Source: MIT 8.04 Lecture 11: The Infinite Square Well and the Finite Square Well (lecture notes, Chapter 11), pp. 7–8, eqs. (2.26)–(2.36): ξ, η, z₀ and the matching conditions, p. 8, eq. (2.32): the matching conditions; the growing term and the coefficients B and C are worked out here

(found by matching ψ\psi and ψ′\psi' at the wall, as in the square-well lecture, but keeping the growing exponential that a bound state must lose; this extension is the page's own). The growing term Beη(u−1)Be^{\eta(u - 1)} is the runaway. When B>0B > 0 the shot goes up, when B<0B < 0 it goes down, and B=0B = 0 is exactly the bound-state condition η=ξtan⁡ξ\eta = \xi\tan\xi (Chapter 11, eq. (2.34)).

The page's own example, computed exactly from the formula above: an even shot into a square well with z02=10.5z_0^2 = 10.5 (the wall is at u=1u = 1). Below ξ≈1.19\xi \approx 1.19 the shot runs off upwards, above it downwards; the closer ξ\xi gets to 1.1936, the farther out the runaway starts, and at that value the shot decays: the ground state. The curve stops where it leaves the frame.
Worked example

Bracketing the ground state

For the well above, (a) evaluate BB for ξ=1.15\xi = 1.15 and ξ=1.25\xi = 1.25 and say which way each shot runs. (b) Narrowing the bracket converges to ξ≈1.1936\xi \approx 1.1936; find the energy as a fraction of the depth. (c) What would the first odd shot need instead?

(a) Up and down

For ξ=1.15\xi = 1.15, η=10.5−1.3225≈3.029\eta = \sqrt{10.5 - 1.3225} \approx 3.029 and B=12(cos⁡1.15−1.153.029sin⁡1.15)≈+0.031B = \frac12\left(\cos 1.15 - \frac{1.15}{3.029}\sin 1.15\right) \approx +0.031: the shot runs up. For ξ=1.25\xi = 1.25, B≈−0.041B \approx -0.041: it runs down. A bound state lies in between.

(b) The energy

∣E∣/V0=η2/z02=(10.5−1.19362)/10.5≈0.864|E|/V_0 = \eta^2/z_0^2 = (10.5 - 1.1936^2)/10.5 \approx 0.864: the ground state sits 86.4% of the way down the well, matching the square-well page's −8.64-8.64 eV for a 10 eV well.

(c) Odd shots

Start from ψ(0)=0\psi(0) = 0, ψ′(0)=1\psi'(0) = 1, so ψ=sin⁡(ξu)/ξ\psi = \sin(\xi u)/\xi inside; the runaway changes sign where η=−ξcot⁡ξ\eta = -\xi\cot\xi, at ξ≈2.336\xi \approx 2.336, the first excited state.

Summary#

  • Shooting: fix ψ\psi and ψ′\psi' at a starting point, choose an energy, integrate outwards.
  • Even states start from ψ(0)=1\psi(0) = 1, ψ′(0)=0\psi'(0) = 0; odd states from ψ(0)=0\psi(0) = 0, ψ′(0)=1\psi'(0) = 1; at a hard wall, ψ=0\psi = 0 and ψ′=1\psi' = 1.
  • At wrong energies the solution diverges up or down; a bound state lies where the direction flips, and narrowing the bracket finds it.
  • Clean the units out first, writing x=bux = bu with a natural length bb.

Symbols on this page

Show the 30 symbols used here
κ\kappa kappa.
The decay rate outside the well. Unit: 1/m. Say it: “kappa”.
ξ\xi xi.
The unit-free wavenumber ka inside the well; choosing it chooses the energy. Say it: “xi” (sounds like “ksee or zye”).
ψ\psi psi.
The trial solution being integrated (a bound state when the energy is right). Say it: “psi” (sounds like “sigh”).
ℏ\hbar h-bar.
The reduced Planck constant, ħ = h/2π ≈ 1.055 × 10⁻³⁴ J·s. Unit: J·s. Say it: “h bar”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
cot⁡\cot cotangent.
Cotangent of an angle, cos/sin. Say it: “cot”.
aa a.
The half-width of the square well. Unit: m. Say it: “a”.
kk k.
The wavenumber inside the well. Unit: 1/m. Say it: “k”.
xx x.
Position. Unit: m. Say it: “x”.
dd d.
The d of a derivative. Say it: “d”.
ee e.
Euler's number. Say it: “e”.
mm m.
The particle's mass. Unit: kg. Say it: “m”.
BB B.
The coefficient of the growing exponential outside the well: its sign says which way the shot runs. Say it: “capital B”.
CC C.
The coefficient of the decaying exponential outside the well. Say it: “C”.
bb b.
A length built from the problem's constants, used to make x unit-free. Unit: m. Say it: “b”.
uu u.
The unit-free position x/b (in the example, x/a). Say it: “u”.
EE E.
The trial energy. Unit: J. Say it: “capital E”.
z0z_{0} z nought.
The strength of the well, z₀² = 2mV₀a²/ħ² (no units). Say it: “z nought”.
VV V.
The potential energy V(x). Unit: J (here eV). Say it: “V”.
ψ′\psi' psi prime.
The slope of ψ (with respect to x, or to u in the example). Say it: “psi prime”.
E0E_{0} E nought.
A first trial energy. Unit: J. Say it: “capital E nought”.
η\eta eta.
The unit-free decay rate κa outside the well, η² = z₀² − ξ². Say it: “eta”.
E1E_{1} E one.
A second trial energy, at which the divergence goes the other way. Unit: J. Say it: “capital E one”.
V0V_{0} V nought.
The depth of the square well. Unit: J. Say it: “V nought”.
EaE_{a} E a.
A trial energy at which the shot runs off upwards. Unit: J. Say it: “capital E sub a”.
EbE_{b} E b.
A trial energy at which the shot runs off downwards. Unit: J. Say it: “capital E sub b”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 21 words used here

New here

shooting method.
A numerical way to find allowed energies: start at one end, step across, and adjust the energy until the solution behaves at the other end.

Also used

bound state.
A state in which a particle stays trapped near a potential, such as an electron held in an atom. Explained in The infinite and finite square wells.
energy.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
square well.
A potential energy that is lower by a fixed amount inside an interval and constant outside it, shaped like a box with straight walls. Explained in The infinite and finite square wells.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
even function.
A function with the same value at x and −x, such as x² or cos x; its graph is mirror-symmetric about the vertical axis.
kink.
A sharp bend or corner in a line or curve. Explained in The liquid–gas transition of the van der Waals gas.
odd function.
A function that changes sign when x does, f(−x) = −f(x), such as x³ or sin x. Explained in Fourier series: even and odd functions, convergence and other periods.
diverge.
To fail to settle on a finite value: a series or integral diverges when its partial results grow without limit or never settle. Explained in Improper integrals.
divergence.
Growing without limit: a quantity that becomes infinite, for example at very long or very short wavelengths.
normalizable.
Of a function, usually a wavefunction: having a finite total of |Ψ|² over all space, so it can be scaled to give total probability one. Explained in Normalization, Hermitian operators and the probability current.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
Eq..
Equation: followed by its number in the source, as in Eq. 3.12; Eqs. means equations.
converge.
To settle towards a definite finite value: an integral, series or sequence converges when its partial results approach a limit. Explained in Improper integrals.
ground state.
The state of a system with the lowest possible energy. Explained in The Bohr atom and spectral lines.
excited state.
Any state of a system with more energy than its lowest state. Explained in The Bohr atom and spectral lines.

Academic

numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

1 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. To shoot for an even bound state of an even potential, which starting values are used at x=0x = 0?
  2. Integrating outwards at energy EaE_a, the solution blows up towards +∞+\infty; at EbE_b it blows up towards −∞-\infty. What follows?
  3. Why can ψ(0)=ψ′(0)=0\psi(0) = \psi'(0) = 0 never be used as a starting point?
0 of 3 answered

Flashcards

1 / 2