Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 38 · Particle in a Box and Barriers

The Finite Square Well

Solve the finite square well: matching conditions, the transcendental equations for bound states, evanescent tails, and a root-finding script in Python.

Real walls are never infinitely high. An electron in a semiconductor quantum well, a nucleon in a nucleus and an atom in an optical trap all feel a potential of finite depth. The finite square well is the next model to study, and it brings in a new feature: the wavefunction leaks into the walls, so there is a nonzero probability of finding the particle where classical physics says it cannot be.

You will see that the energy levels can no longer be written as a simple formula. Instead they are the solutions of an equation you solve numerically. That is typical of real quantum problems, and a short Python script will do the job.

Setting up the problem

Center the well on x = 0, with width 2a and depth V₀:

Text
V(x) = 0     for |x| < a
V(x) = V₀    for |x| > a

We look for bound states, with energy 0 < E < V₀. Inside the well the equation is the same as before, with oscillating solutions:

Text
ψ'' = -k² ψ,   k = √(2mE) / ħ

Outside, the energy is below the potential, so the equation becomes

Text
ψ'' = +κ² ψ,   κ = √(2m(V₀ - E)) / ħ

whose solutions are real exponentials. We keep only the decaying one, e^{-κ|x|}, because a growing exponential could not be normalized. This decaying tail is called an evanescent wave. The distance over which it falls to 1/e of its value is 1/κ, the penetration depth.

Matching conditions

Where the potential is finite, both ψ and its derivative ψ' must be continuous. (With a finite jump in V, the second derivative has a jump but the first derivative does not.) The potential is symmetric, so solutions are either even or odd.

Even states: ψ = A cos(kx) inside, ψ = C e^{-κ|x|} outside. Matching ψ'/ψ at x = a gives

Text
k tan(ka) = κ

Odd states: ψ = A sin(kx) inside, giving

Text
-k cot(ka) = κ

To compare problems of any size, use dimensionless variables z = ka and z₀ = (a/ħ) √(2mV₀). Because k² + κ² = 2mV₀/ħ², we have (κa)² = z₀² - z², and the conditions become

Text
even:  tan z  = √(z₀²/z² - 1)
odd:  -cot z  = √(z₀²/z² - 1)

These are transcendental equations: you cannot solve them with algebra, but you can see the answers as crossings of curves, or find them with a root finder.

How many bound states?

The number of solutions depends only on z₀. Each time z passes a multiple of π/2 another state can appear. The count is

Text
N = ⌈ 2 z₀ / π ⌉

(the ceiling means "round up"). Two important consequences:

  • There is always at least one bound state in one dimension, however shallow the well (since z₀ > 0 gives N ≥ 1). The ground state is always even.
  • A deeper or wider well, or a heavier particle, increases z₀ and holds more states.

As V₀ → ∞ the levels approach the infinite well values E_n = n²π²ħ² / (2m (2a)²) from below: the finite well always has lower energies than the infinite well of the same width, because the wavefunction can spread out into the walls, a longer effective wavelength.

Spreading into the walls lowers the curvature of ψ, and the kinetic energy is proportional to that curvature. A rough rule: the finite well behaves like an infinite well that is slightly wider than 2a, by about 1/κ on each side.

Solving numerically

The script below finds all bound states for an electron in a well of depth 10 eV and width 1 nm (a = 0.5 nm). It uses scipy.optimize.brentq on the function f(z) = k tan(ka) - κ written in a form that avoids the poles of tan. For each state it prints the energy and compares it to the infinite well with the same width.

Python Bound-state energies of a finite well

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

You should see that every finite-well energy sits below the corresponding infinite-well value, and the gap widens for higher n as the state gets closer to the top of the well.

The tails: probability outside the well

For the ground state, how much probability is outside the well? Using the same approach, the next editor builds the even ground state, normalizes it numerically and integrates the tails. The smaller the well depth V₀, the longer the tails.

Python Ground state and its evanescent tails

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

What the leakage means

The particle is "inside a classically forbidden region" with kinetic energy E - V₀ < 0. That does not mean negative kinetic energy is ever measured: if you try to locate the particle there with a measurement precise enough to resolve the tail, you disturb it by an amount that supplies the missing energy. The tail is a property of the wavefunction, not of a classical trajectory. The tails also give a way for particles to escape or to move between wells, which leads directly to tunneling, the subject of the next two lessons.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which statement about the bound states of a one-dimensional finite square well is correct?

    In one dimension, any attractive well, however shallow, has at least one bound state (the even ground state). The number grows as the dimensionless quantity z₀ grows.
  2. 2. Compared with an infinite well of the same width, the ground-state energy of the finite well is

    The wavefunction extends into the walls, which lengthens its wavelength and lowers the kinetic energy.
  3. 3. Outside the well (E < V₀) the wavefunction is

    The Schrödinger equation there is ψ'' = κ²ψ. The decaying exponential is the only normalizable solution.
  4. 4. What must be continuous at the edge of a finite square well?

    For a finite jump in the potential, both ψ and its first derivative are continuous; the second derivative jumps.

Summary

  • A finite well of depth V₀ and width 2a has bound states with 0 < E < V₀.
  • Inside, ψ oscillates with k = √(2mE)/ħ; outside, it decays as e^{-κ|x|} with κ = √(2m(V₀ - E))/ħ.
  • Matching ψ and ψ' gives k tan(ka) = κ (even) and -k cot(ka) = κ (odd); these are solved numerically.
  • The number of bound states is ⌈2z₀/π⌉ with z₀ = (a/ħ)√(2mV₀), and there is always at least one.
  • Energies are lower than in the infinite well because the wavefunction leaks into the walls.

Next: The Potential Step