
Quantum core · institution-dependent · Interactive lesson
Piecewise potentials and matching
Almost every solvable one-dimensional problem is built the same way: chop the axis wherever V jumps, write down the only two solutions a constant potential allows, then let continuity at the joins do the physics. Learn the bookkeeping once and the well, the step and the barrier all become the same calculation.
UPIV-07.01 · Lesson 1 of 9 in this unit. Position is not a completion score.Quantum core · institution-dependent. Departments differ in how much quantum mechanics they include in Physics IV or teach in a dedicated course. Follow your university’s required mathematical depth and assessment; these numbered units are not automatically optional.
Build the model
Constant V turns Schrödinger into three ODEs you already know.
The key idea
A piecewise-constant potential is flat inside each of a few regions and jumps between them, so the Schrödinger equation is solved separately in every region and the pieces are joined by demanding that ψ and ψ′ agree at each boundary.
Example. For an electron ħ²/2m = 0.0381 eV nm², so 1.0 eV above a flat floor gives k = √(1.0/0.0381) = 5.12 nm⁻¹ and λ = 1.23 nm, while 1.0 eV below it gives κ = 5.12 nm⁻¹ and the wave dies to 1/e in 0.195 nm.
The complete physical model and assumptions
A piecewise-constant potential is a deliberate caricature: replace whatever V(x) really does by a staircase of flat treads, and inside each tread the time-independent Schrödinger equation collapses to ψ″ = (2m/ħ²)(V − E)ψ with a constant coefficient — an equation you met in first-year calculus. Where E lies above the tread the coefficient is negative and ψ oscillates with wavenumber k = √(2m(E − V))/ħ; where E lies below it the coefficient is positive and ψ is a sum of real exponentials with decay constant κ = √(2m(V − E))/ħ. All the physics has been pushed into the joins. Integrating the equation across a step shows that ψ and ψ′ are both continuous whenever V is finite, and those two conditions per boundary are what stitch the local solutions into one global state — and, by refusing to be satisfied at most energies, are what quantise the spectrum. The cost is honest: a real step is smooth over a finite length, the model is one-dimensional, static and single-particle, and the matching rules themselves break exactly where V stops being finite.
1Constant V collapses the equation
Start from −(ħ²/2m)ψ″ + V(x)ψ = Eψ and move everything to one side: ψ″ = (2m/ħ²)(V − E)ψ. Nothing is approximate yet. Now suppose V is constant across some interval. The bracket is a fixed number and the equation is a linear ODE with constant coefficients, with three cases. If E > V, write (2m/ħ²)(V − E) = −k², so ψ″ = −k²ψ and ψ = A e(ikx) + B e(−ikx), or equivalently A′ sin kx + B′ cos kx. If E < V, write it as +κ², so ψ″ = +κ²ψ and ψ = C e(κx) + D e(−κx); the sines are gone. If E = V exactly, ψ″ = 0 and ψ is a straight line, A + Bx. Which pair you write is bookkeeping, not physics: e(±ikx) for waves arriving and leaving, sin and cos for a standing wave, and cosh and sinh in place of e(±κx) when a region is closed on both sides. Two constants per region, always — and that count is the currency the rest of the method spends.
2The sign of ψ″/ψ is the whole picture
Rearranged once more, ψ″/ψ = (2m/ħ²)(V − E): the curvature of ψ measured relative to ψ itself is fixed by how far E sits from the local floor. Where E > V the ratio is negative, so ψ curves back towards the axis — which is what oscillation is. Where E < V it is positive, so ψ curves away from the axis: a positive ψ that is falling either flattens and turns back up or crosses the axis and runs away below it, and only one exact slope lets it sink smoothly towards zero as a pure decaying exponential. That is why nothing wiggles in a classically forbidden region, and why you can never write a sine there. The same expression gives the local wavelength λ = 2πħ/√(2m(E − V)): as the floor rises towards E the wave stretches out, and at a turning point where E = V the curvature vanishes and ψ has an inflection. Sketch the solution before computing it and most sign errors die on the page. A companion rule from the semiclassical limit runs the other way for amplitude — a slower particle lingers, so |ψ|² tends to be larger where E − V is smaller.
3Where the two matching conditions come from
The rules are derived, not assumed. Integrate ψ″ = (2m/ħ²)(V − E)ψ from x₀ − ε to x₀ + ε. The left side gives ψ′(x₀ + ε) − ψ′(x₀ − ε); the right side is a bounded function integrated over an interval of width 2ε. If V is finite — however big the jump — the right side vanishes as ε → 0, so ψ′ is continuous. Continuity of ψ itself follows one step earlier: if ψ jumped, ψ′ would contain a delta and ψ″ the derivative of a δ, and no finite (V − E)ψ could match that. So the ordinary rules are ψ continuous everywhere, ψ′ continuous wherever V is bounded. The derivation also tells you when they fail. Against an infinite wall the bound is gone and only ψ = 0 survives, with ψ′ unconstrained. Across V = −α δ(x) the right-hand integral does not vanish; it leaves ψ′(0⁺) − ψ′(0⁻) = −(2mα/ħ²)ψ(0), a fixed kink whose size is the strength of the δ.
4Divide, don't solve twice
Each boundary hands you two homogeneous equations in the region constants. Solving them as a pair drags the overall normalisation through the algebra for no reason, so divide one by the other and match the logarithmic derivative ψ′/ψ instead. It has dimension 1/length, it is unchanged if you rescale ψ, and it turns two equations into one condition plus a leftover amplitude ratio you can fix at the end. Take an infinite wall at x = 0, a flat floor of width a, and a step of height V₀ beyond it. Then ψI = A sin kx and ψII = B e(−κ(x−a)) are already continuous once B = A sin ka, and equating ψ′/ψ at x = a gives k cot ka = −κ, one transcendental equation in E with no amplitudes in sight. Symmetry buys the same saving twice over: if V(−x) = V(x), every non-degenerate eigenstate is even or odd, so you solve on half the axis and match at one boundary instead of two.
5Count the constants and you know whether E is free
With N regions you have 2N constants plus one unknown energy. Each of the N − 1 internal boundaries supplies two equations, so 2(N − 1) in all. For a bound state the two outer regions run to infinity and normalisability kills the growing exponential in each, removing two constants and leaving 2N − 2 unknown coefficients against 2N − 2 homogeneous equations. A homogeneous system has only the trivial solution unless its determinant vanishes, and that determinant depends on E: the discrete spectrum is exactly the set of energies where it does, and the one remaining freedom is fixed by normalisation. A scattering state is counted differently. On one side you set the incoming amplitude by hand — you choose how intense the incident beam is — so no eigenvalue condition survives and E is continuous. A three-region barrier has N = 3: six constants, four matching equations, one incoming amplitude set to 1 and no wave arriving from the right, leaving exactly four unknowns for four equations at every E.
6What the staircase costs
The model is a caricature, and it is worth naming the price. Real potentials are smooth: the image-charge barrier at a metal surface, or the band edge at a semiconductor heterojunction, changes over a length d of a few tenths of a nanometre rather than jumping. Treating it as a sharp step is safe only when d is small compared with the local de Broglie wavelength; for a 1 eV electron λ = 1.23 nm, so d = 0.3 nm is already marginal and the true reflection comes out smaller than the step formula predicts. Push the other way — V varying slowly over many wavelengths — and reflection becomes exponentially weak, which is the WKB limit. The remaining assumptions are structural: one dimension, one particle, a static V with no explicit time dependence, no spin, and non-relativistic kinematics. One rule genuinely changes in a solid. Where the effective mass differs across the junction, matching ψ′ is wrong; continuity of (1/m*)ψ′ is what conserves probability flux.
Key equations
Read the units, assumptions and limits before substituting.
The equation inside one region
ψ″ = (2m/ħ²)(V − E) ψ, V constant
The sign of V − E, not its size, decides whether ψ wiggles or grows.
x in m, V and E in J, ψ in m(−1/2); the bracket is one fixed number in the regionClassically allowed region, E > V
ψ = A e(ikx) + B e(−ikx), k = √(2m(E − V))/ħ
Two travelling waves, right and left; the real sin/cos pair is the same solution and is handier for bound states.
k in m⁻¹, λ = 2π/k. Electron 1.0 eV above the floor: k = 5.12 nm⁻¹, λ = 1.23 nm.Classically forbidden region, E < V
ψ = C e(κx) + D e(−κx), κ = √(2m(V − E))/ħ
Keep both terms unless the region runs to infinity; only then does one of them fail to be normalisable.
κ in m⁻¹, 1/κ is the penetration depth. Electron 1.0 eV below: 1/κ = 0.195 nm.Matching at a finite step
ψ(x₀⁻) = ψ(x₀⁺) and ψ′(x₀⁻) = ψ′(x₀⁺)
True for any finite jump in V, however large — the height of the step enters only through k and κ.
Two equations per boundary, complex in general, in the units of ψ and of ψ per metreThe logarithmic derivative
(ψ′/ψ)|₋ = (ψ′/ψ)|₊, both sides in m⁻¹
Divides out the unknown amplitude, turning two equations into one condition on E alone.
The ratio of the two matching equations; invariant under rescaling ψWhere ψ′ is allowed to jump
ψ′(0⁺) − ψ′(0⁻) = −(2mα/ħ²) ψ(0)
The jump is 2m/ħ² times the integral of Vψ across the point, and vanishes unless V is unbounded there.
For V = −α δ(x) with α in J m; at an infinite wall ψ = 0 and ψ′ is not matched at allInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Hold V₀ at 6.0 eV and walk E up from 0.40 eV: the two slope arrows scissor together and the ψ′ mismatch passes through zero near E = 1.10 eV — the ground state; a second level near 4.25 eV lies beyond the slider. Past 1.5 eV, ψ crosses zero before the step and the decaying tail flips sign.
Live results
- k (E > V region)
- 7.24 nm⁻¹
- κ (E < V₀ region)
- 10.25 nm⁻¹
- ψ′ MISMATCH AT STEP
- -11.16 nm⁻¹
- PENETRATION 1/κ
- 0.098 nm
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Energy E: 2.00 eV; Step height V₀: 6.0 eV
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
That ψ′ must be continuous is not an axiom; it is a consequence of V being finite. Integrate ψ″ = (2m/ħ²)(V − E)ψ from x₀ − ε to x₀ + ε and the right-hand side is a bounded function over a vanishing interval, so the jump in ψ′ goes to zero with ε. Remove the bound and the argument dies with it. At an infinite wall ψ is driven to zero but ψ′ is never matched: the infinite-well ground state arrives at the wall with slope √(2/L)(π/L), plainly discontinuous with the zero outside. At a delta well the integral survives and leaves a fixed kink, ψ′(0⁺) − ψ′(0⁻) = −(2mα/ħ²)ψ(0). ψ itself stays continuous in both cases: the worst either one puts into ψ″ is a δ, which makes ψ′ jump but leaves ψ whole.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
An electron moves through a region where V = 0 with energy 2.0 eV, then meets a flat region where V = 5.0 eV that extends to infinity. Write the form of ψ in each region, and give the wavelength on the left and the penetration depth on the right. Use ħ²/2m = 0.0381 eV nm².
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Region I has E − V = 2.0 eV > 0, so ψ″ = −k²ψ and the solution oscillates: ψI = A e(ikx) + B e(−ikx).
- k = √((E − V)/0.0381) nm⁻¹ = √52.5 = 7.24 nm⁻¹, so λ = 2π/k = 6.283/7.244 = 0.867 nm.
- Region II has V − E = 3.0 eV > 0, so ψ″ = +κ²ψ and the solution is a pair of real exponentials, ψII = C e(κx) + D e(−κx).
- κ = √(3.0/0.0381) = √78.7 = 8.87 nm⁻¹. This region runs to infinity, so C = 0 or the state cannot be normalised, and the penetration depth is 1/κ = 0.113 nm.
- The two pieces still have to meet: continuity of ψ and of ψ′ at the step fixes D and the ratio B/A. The height 5.0 eV enters nowhere else — only through κ.
Answer. ψI = A e(ikx) + B e(−ikx) with k = 7.24 nm⁻¹ and λ = 0.867 nm; ψII = D e(−κx) with κ = 8.87 nm⁻¹, falling to 1/e of its edge value in 0.113 nm.
MediumExample 2
The same electron, now at E = 3.0 eV, arrives from the left at a step up to V₀ = 8.0 eV located at x = 0. Write ψI = e(ikx) + r e(−ikx) and ψII = t e(−κx), impose the matching conditions, and find |r|² and |t|².
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- k = √(3.0/0.0381) = 8.87 nm⁻¹ and κ = √(5.0/0.0381) = 11.46 nm⁻¹. Note k² + κ² = V₀/0.0381 = 210 nm⁻², a fixed number for this step.
- Continuity of ψ at x = 0: 1 + r = t.
- Continuity of ψ′ at x = 0: ik(1 − r) = −κt.
- Substitute t = 1 + r: ik − ikr = −κ − κr, so r(ik − κ) = ik + κ and r = (κ + ik)/(ik − κ).
- Numerator and denominator have the same modulus √(k² + κ²), so |r|² = 1 — everything is reflected, as it must be when no flux can escape into a region where ψ merely decays.
- t = 1 + r = 2ik/(ik − κ), so |t|² = 4k²/(k² + κ²) = 4E/V₀ = 4(3.0)/8.0 = 1.50.
Answer. |r|² = 1 and |t|² = 4E/V₀ = 1.50. The probability density at the wall is half again the incident value, yet the reflected flux is total; the wave leaks 1/κ = 0.087 nm into the step and carries no current there.
HardExample 3
An electron is confined between infinite walls at x = 0 and x = 0.80 nm. Inside, V = 0 for 0 < x < 0.40 nm and V = 5.0 eV for 0.40 nm < x < 0.80 nm. Find the ground-state energy to three significant figures and check it against the two rigid-box limits.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Set a = 0.40 nm. The walls force ψ(0) = ψ(2a) = 0, so ψI = A sin kx with k = √(E/0.0381) nm⁻¹, and ψII = B sinh(κ(2a − x)) with κ = √((5.0 − E)/0.0381) nm⁻¹ — the sinh is the combination of e(±κx) that vanishes at the far wall.
- Match at x = a. Continuity gives A sin ka = B sinh κa; the derivatives give A k cos ka = −B κ cosh κa. Divide to kill both amplitudes: k cot ka = −κ coth κa.
- Bracket the root. At E = 1.00 eV: k = 5.12 nm⁻¹, ka = 2.049, left side −2.66; κ = 10.25 nm⁻¹, right side −10.25, so the left side is the larger. At E = 2.00 eV: ka = 2.898, left side −29.2; right side −8.89, so the ordering has flipped and a root lies between.
- Bisect to E = 1.550 eV: k = 6.378 nm⁻¹, ka = 2.5513 rad, cot ka = −1.4926, left side −9.520. κ = 9.516 nm⁻¹, κa = 3.806, coth κa = 1.0010, right side −9.525. Matched to about 0.05%.
- Sanity-check the limits. A rigid box of the full 0.80 nm gives E₁ = 0.0381 π²/0.64 = 0.588 eV; one of only 0.40 nm gives 2.35 eV. The answer sits between them: the 5.0 eV step is high enough to push the electron mostly into the left half, yet κa = 3.8 still lets it leak about 1/κ = 0.105 nm past the step.
Answer. E₁ ≈ 1.55 eV, bracketed by the 0.588 eV of an 0.80 nm rigid box and the 2.35 eV of a 0.40 nm one. Only matched energies exist; at any other E the two pieces meet with a kink and cannot be an eigenstate.
Quick check
Select an answer and explain it before checking.
Review & continue
A piecewise-constant potential is flat inside each of a few regions and jumps between them, so the Schrödinger equation is solved separately in every region and the pieces are joined by demanding that ψ and ψ′ agree at each boundary.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.