Matching Conditions and Wavefunction Continuity
Every one-dimensional problem you have solved so far ran on the same quiet machinery. The Infinite Square Well pinned to zero at hard walls. The Finite Square Well glued an interior cosine to decaying tails and got a transcendental equation. The Delta-Function Potential Well kinked the slope by a prescribed amount. The Potential Step and the Rectangular Barrier stitched travelling waves across sudden edges. Five problems, five apparently ad-hoc boundary rules — continuous here, jumping there, vanishing somewhere else. This article is where the rules stop being ad-hoc. All of them follow from one source: the Schrödinger equation itself, integrated across the joint. Where the potential is finite, both and must be continuous — not by decree, but because a broken wavefunction would demand an infinite term the equation does not contain. Where the potential holds a delta spike, the same integral delivers a finite, prescribed slope jump. Where the potential goes infinite over a region, the wave is expelled and only survives at the wall. One theorem, three regimes, zero exceptions. The payoff is more than tidiness. Matching is the engine of one-dimensional quantum mechanics: counting equations against unknowns tells you — before solving anything — why bound spectra come out discrete while scattering happens at every energy. And packaging the matching algebra into a transfer matrix turns chains of wells and barriers into simple matrix multiplication, the working method behind every quantum-well laser, superlattice and multilayer mirror ever designed.
- The time-independent Schrödinger equation is second-order: wherever is finite, both and are continuous — integrate the equation across the joint and the jump terms vanish with the window.
- A delta potential is the loophole: the same integral leaves a finite kick, — sign included, attractive or repulsive.
- An infinite wall replaces matching by expulsion: at the wall, and the slope condition is dropped because there is nothing on the far side to match to.
- Equation-counting decides spectra: bound problems have one condition too many, forcing a transcendental equation with discrete roots; scattering problems balance exactly, so every works and only amplitudes are determined.
- The transfer matrix industrializes matching: each interface and each stretch of free propagation is a matrix, structures compose by multiplication, and across any structure that starts and ends at the same potential.
- Key idea: boundary behaviour is not postulated — it is read off the Schrödinger equation by integrating across the boundary, and the singularity strength of decides how much smoothness survives.
Integrating across a joint shows that and stay continuous wherever is finite, that jumps by exactly where carries a delta of strength , and that itself must vanish where becomes infinite — the complete grammar of piecewise quantum mechanics.
Where this lives today
Matching conditions are the daily bread of device engineering. Every quantum-well laser, resonant-tunnelling diode and quantum-cascade structure is designed by transfer-matrix codes multiplying exactly the factors of equation (3) — with one refinement: in a heterostructure the effective mass changes between layers, and the honest junction condition becomes continuity of and (BenDaniel–Duke), so that probability current, not bare slope, crosses the interface. The same matrices, with replaced by refractive index, design anti-reflection coatings and dielectric mirrors. And for smooth potentials the philosophy survives as the shooting method — quantization by matching, executed by computer.
The physical picture
Read the Schrödinger equation as a curvature budget: . The wavefunction is a flexible string whose bending is bought by the local value of . A kink — a sudden slope change — is infinite curvature at a point, and the budget can pay for it only if the potential supplies something infinite there. A finite step, however tall, buys a finite curvature change: the string bends sharply, never creases. A delta spike supplies exactly one unit of concentrated infinity: one crease, of prescribed angle. An infinite wall supplies unbounded expulsion: the string is pressed flat against zero.
The second half of the picture is bookkeeping, and it decides each problem's fate before any algebra. Each interface contributes two equations ( and continuous, or the delta variant). Now count unknowns. In a bound-state problem, normalizability kills the growing exponentials and the overall scale of is unphysical — the coefficient count comes up one short of the equation count, and the leftover condition must constrain the energy itself: that is the transcendental equation, its isolated roots the discrete spectrum. In a scattering problem the incident amplitude is fixed at 1 and both travelling directions are allowed, so the books balance at every energy: nothing constrains , and matching delivers and instead. Discrete versus continuous spectra is not deep mystery — it is linear algebra counting.
The theorem: integrate across the joint
Everything hangs on one manoeuvre, so we do it honestly. Write the equation in curvature form, isolating what the boundary sees:
where: the right side is the curvature price list — finite wherever is finite. The question "how smooth is at ?" becomes "how big is the integral of the right side over a shrinking window around ?", and that is a question with a clean answer for each class of potential.
We prove the complete boundary grammar: (i) is continuous wherever is bounded, (ii) is continuous even more robustly, (iii) a delta contribution in produces the jump , and (iv) an infinite wall forces with no slope condition. The strategy is to integrate equation (1) over and watch which terms survive . The one point of care: keep track of which function's jump each integral controls — integrating once controls , and the boundedness of then controls .
Step 1. Integrate (1) once across the window:
Step 2. Let be bounded near , say there. Then the integrand is bounded by and the integral by , which dies linearly as :
Why even a huge finite step changes nothing: can be a billion electron-volts — the window still shrinks faster than the integrand can pay. Only a potential that grows as the window shrinks can leave a residue.
Step 3. itself is continuous under even weaker assumptions: exists and is bounded on both sides (it solves a second-order ODE with locally integrable coefficients), and a function with bounded derivative cannot jump. Each integration smooths by one degree: may contain a delta, then a step at worst, then a kink at worst — never a break.
Step 4. Now let . The smooth part vanishes from the Step-1 integral as before, but the delta pays its fixed toll regardless of :
Why the sign convention matters: with (attractive) the slopes are pulled together — the cusp of the Delta-Function Potential Well and Bound State, ; with (repulsive) they are pushed apart — the scattering kink of Delta-Function Barrier and Scattering. One formula, both signs, and it is worth checking each time that your jump has the sign your potential demands.
Step 5. The infinite wall is the limit the Finite Square Well rehearsed: the exterior tail has as , so the exterior wave is squeezed to nothing and ; with the far side dead, no second condition remains — the slope is whatever the interior needs. That is why the Infinite Square Well imposed one condition per wall, not two. Two consistency checks are worth noting: numerically, the exact step-junction solution satisfies both continuity conditions to machine precision while the shrinking-window bound on falls linearly with ; symbolically, decaying tails satisfy the delta jump only at for the attractive sign (the known bound state) and never for the repulsive sign.
Matching at work: quantization or amplitudes
With the grammar proven, the counting argument from the physical picture becomes a working method. Consider its two canonical outcomes side by side.
Bound states: one equation too many. The Finite Square Well is the archetype, its solve — done in full there — pure matching: interior or , exterior , continuity of both at the edge. Dividing the two matching equations eliminates the amplitudes and leaves conditions on the energy alone,
where: packages the interior phase and the well strength, exactly as defined there. The structural point: the amplitudes dropped out. Two homogeneous conditions on one free ratio can only be satisfied if the energy conspires — matching converts smoothness into quantization. For (that article's worked well) there are exactly four roots, alternating even/odd, the lowest at ; the count obeys .
Scattering: exact balance. Send in a wave from the left instead. Both directions are now allowed in the outer regions, the incident amplitude is fixed at 1, and each interface's two equations exactly consume the remaining unknowns. Nothing is left to constrain — every positive energy scatters — and matching instead yields and , whose honest probability interpretation (current ratios, velocity factors, ) is the doctrine of Transmission and Reflection Coefficients. The Potential Step and Reflection is the one-interface instance; the Rectangular Barrier and Quantum Tunnelling the two-interface one.
The transfer matrix: matching, industrialized
Solving four matching equations for the barrier was tolerable. A quantum-cascade laser stacks dozens of interfaces; eliminating hundreds of coupled equations is not a method, it is a punishment. The fix: make matching local and composable. In any region of constant potential, is fixed by the coefficient pair . Every junction is then a linear map from the pair on one side to the pair on the other, and every stretch of free flight just advances phases. Two primitive matrices generate everything:
where: is just the two continuity equations at one interface, solved once and for all; carries the pair across a distance of constant potential. A structure is the ordered product of its parts — first element rightmost, because matrices act in sequence:
where: the readout follows from imposing scattering boundary conditions — no incoming wave from the right — on the composite. Two structural facts make the method trustworthy: exactly, and — each interface's determinant carries precisely the velocity factor of Transmission and Reflection Coefficients, so factors telescope to whenever the ends sit at the same potential. Unit determinant is current conservation wearing matrix clothes; the deep reason — Wronskian constancy, proven in that article — guarantees it for any real potential.
Go deeper · Derivation B · 2 minComposing a two-interface structure and checking it against the direct solve
We assemble the transfer matrix for the simplest composite — a region of different potential, width , between identical outer regions — and verify it three ways: the composite determinant must be exactly 1, the matrix transmission must equal a direct solve of all four matching equations, and for the barrier case it must reproduce the formula of Rectangular Barrier and Quantum Tunnelling. The strategy is pure assembly: write the three factors, multiply in the correct order, impose scattering boundary conditions. The care point is ordering — matrices act rightmost first — and remembering , not 1: only full round trips return to unit determinant.
Step 1. Assemble. Reading the structure left to right — enter the inner region, cross it, exit — the composite is
Why this order: the incident pair is acted on first by the entry interface, so that matrix stands rightmost; composition then proceeds leftward, one physical element per factor.
Step 2. Determinant bookkeeping. : the two interfaces' velocity factors cancel because the structure returns to its starting potential. Any chain that ends where it began — however many layers — telescopes the same way.
Step 3. Impose scattering conditions. With and , the second row of gives , so , and the first row then yields . Hence — equation (4)'s readout, derived rather than decreed.
Step 4. Numerical verification, three ways. Electron at eV crossing a eV, nm region (over-the-barrier, all wavenumbers real): matrix composition ; direct four-equation solve (agreement ); closed form the same digits. to . Why a numerical check belongs here: the matrix earns its keep on structures too big for hand algebra, so the honest test is agreement with an independent method on one small enough to do both. *As a consistency check: , , and the composite determinant equals to ; matrix, direct, and analytic transmission values agree to or better at the quoted energies, including the staircase example below.*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| bounded at (any finite step) | both continuous | the workhorse junction: two equations per interface |
| continuous; | one crease, sign follows : attractive pulls slopes together, repulsive pushes apart | |
| over a region (hard wall) | at the wall; no slope condition | expulsion replaces matching; the ISW rule as a limit of FSW tails |
| bound problem (decay both ends) | conditions outnumber coefficients by one | leftover condition quantizes : discrete spectrum |
| scattering problem (travelling ends) | conditions and coefficients balance | every allowed; matching returns instead |
| structure with equal end potentials | current conservation in matrix form; interface factors telescope away |
Worked examples
Example 1 — one junction, by the general recipe (confidence builder). An electron of energy eV crosses a single potential step of height eV (the Potential Step and Reflection setup — here re-solved as an instance of the general grammar, to see the machinery run). Find the amplitudes and check the bookkeeping.
Step 1. Wavenumbers. ; beyond the step .
Step 2. Two conditions at one interface, two unknowns — exact balance: scattering, no quantization. Continuity: ; slope: . Solve: , .
Step 3. Read the red flag: . An amplitude above 1 is legal — the transmitted wave is taller — but it screams that is no probability. The honest currents (Transmission and Reflection Coefficients doctrine) give , , summing to 1.000 to twelve digits in the verification script. Matching hands you amplitudes; currents turn them into probabilities.
Example 2 — a two-interface staircase by matrix assembly (exam level). An electron at eV crosses a "speed bump": the potential rises to eV for a stretch of nm, then returns to zero. Find by transfer matrix and check current conservation.
Step 1. Wavenumbers: outside, inside.
Step 2. Assemble and multiply numerically. Determinant check first: — the and factors have telescoped, so no current leaks in the algebra.
Step 3. Read off the transmission: . The direct four-equation solve agrees to . So a 2 eV bump that a classical 5 eV electron would cross without slowing reflects 1.4% of the flux — abrupt potential changes scatter waves even when energy is plentiful, the same lesson the barrier taught above its top.
Step 4. Scale the lesson: a 40-layer quantum-cascade stack is just 40 more multiplications, where direct elimination would mean an 82-equation system re-solved at every trial energy. This is why band-structure and multilayer-optics codes speak transfer matrices.
The matcher of Leipzig
Origins · 1 minFelix Bloch and how this was discovered
Bloch turned matching conditions into the theory of solids. His 1928 thesis under Heisenberg asked what the Schrödinger equation does in a periodic potential — a wavefunction matched consistently across every cell wall of an infinite crystal — and found plane waves modulated by lattice-periodic functions, the matching consistency condition carving the energy axis into allowed bands and forbidden gaps. Kronig and Penney made the mechanism transparent three years later with exactly this chapter's tools: a periodic array of deltas, one jump condition per site. Bloch went on to co-invent NMR (Nobel Prize, 1952) and serve as CERN's first director-general — but every band diagram in every semiconductor datasheet still runs on his boundary conditions.
Going further
References. Griffiths, Introduction to Quantum Mechanics, 3rd ed., §2.5–2.6 (delta function and finite square well) · Shankar, Principles of Quantum Mechanics, 2nd ed., Ch. 5 · Cohen-Tannoudji, Diu & Laloë, Quantum Mechanics, Vol. I, Complement H_I · Sakurai & Napolitano, Modern Quantum Mechanics, 2nd ed., Ch. 2 · Townsend, A Modern Approach to Quantum Mechanics, 2nd ed., Ch. 6 Key results collected here for reference: the delta-potential slope jump and bound-state energy ; the finite-well transcendental conditions and ; the infinite-well energies ; and probability-current continuity requiring . Numerical checks confirm: the shrinking-window integral, both delta-jump signs, the root count and lowest root , all transfer-matrix determinants, and the matrix-vs-direct-vs-analytic transmission agreements quoted in the derivation and worked examples.
Builds on: Time-Independent Schrödinger Equation in One Dimension · Free Particle and Plane Waves · Bound States versus Scattering States · Delta-Function Potential Well and Bound State · Finite Square Well
Leads to: Transmission and Reflection Coefficients · Resonant Transmission and Tunnelling Resonances · Infinite Square Well · Wave Packets and Their Construction
Why exactly can't ψ itself ever jump, even at an infinite wall?
Two ways. Mathematically: stays bounded near every junction on this menu, and a function with bounded derivative cannot jump — a break in would need a delta derivative in the potential. Physically: the probability current of Probability Current in One Dimension would be undefined at the break, creating or destroying probability at the joint. Even at the infinite wall doesn't jump — it reaches zero continuously and stays zero beyond.
Is ψ″ also continuous?
No — and that is fine. From , curvature inherits every discontinuity of : at a finite step jumps by while and stay smooth. Any finite-well eigenfunction shows it — bending-toward-axis flips to bending-away exactly at the well edge, a break in curvature but not in slope. Smoothness stops at first order because the equation is second-order.
Where does the infinite wall's ψ = 0 rule actually come from? It looks like a decree.
It is a limit the Finite Square Well already contains. Outside a finite well the wave leaks as ; crank and the leak depth shrinks to zero, so continuity forces , while the slope condition dies with the dead exterior — no constraint on the interior slope survives. The check is quantitative: FSW levels converge to ISW levels as grows, exactly as that article's deep-well limit showed.
What if the potential has a finite step AND a delta spike at the same point?
Superpose the grammars — the integral treats each term of separately. The step contributes nothing to the jump integral (bounded); the delta pays its full toll: continuous, , the step's only role being different wavenumbers on the two sides. The hybrid is real — a heterojunction with an interface charge sheet is exactly a step-plus-delta.
Do these conditions survive in real semiconductor devices?
With one honest amendment. In a heterostructure the effective mass differs between materials, and blind continuity would let probability current pile up at the interface. The repaired condition — continuity of and (BenDaniel–Duke) — makes the current cross smoothly. The lesson: the fundamental matched quantity is the current; slope continuity is its constant-mass special case.
Why bother with transfer matrices when I can just solve the linear system directly?
For one barrier, don't bother. The matrix wins on scaling and reuse: layers means globally coupled equations, but only ever matrices locally — and the same factors are reused at every trial energy when scanning , which device design does thousands of times per structure. It also wins conceptually: makes current conservation automatic, and resonances announce themselves as near-zeros of — the language of Resonant Transmission and Tunnelling Resonances.
My potential is smooth — there are no interfaces anywhere. Is this article useless to me?
The theorem still speaks: for smooth there is nothing to match — which licenses the shooting method: integrate numerically from both ends and tune until value and slope agree at a meeting point. That agreement is a matching condition at an interface you invented for convenience. The semiclassical cousin — joining oscillatory to exponential behaviour across a smooth turning point — is the connection-formula problem of The WKB Approximation, previewed by Bohr–Sommerfeld and Semiclassical Quantization in 1D.