The Particle in a 1D Box: Setup and Boundary Conditions

Imagine an electron trapped between two impenetrable walls. It can slide back and forth but never escape. This is the particle in a box. It is the simplest nontrivial system in quantum mechanics. Yet it already contains the seed of every strange feature that separates quantum behavior from classical intuition. Confine a wave, and it can only fit certain shapes. Confine a particle described by a wave, and its energy comes out quantized. Nothing about classical Newtonian mechanics prepares you for that outcome. But a single differential equation, together with two boundary conditions, delivers it with complete rigor. This model matters because it is the cleanest possible illustration of a key idea. The Time-Independent Schrödinger Equation turns a free-particle problem into a quantized one. It does this purely through the requirement that the wavefunction behave sensibly at the edges of a confining region. Chemists reach for this model constantly. It is the zeroth-order picture for π-electrons delocalized along a conjugated chain. It also applies to electrons in quantum dots and nanowires. It fits any system where a particle is squeezed into a finite region of space. Long before you can discuss why β-carotene absorbs orange light, you need this machinery. The same is true for why a quantum dot's color depends on its size. The big picture is this: outside the box, the potential energy is infinite. So the particle can never be found there. The wavefunction must vanish identically in that region. Inside the box, the potential is zero. So the particle moves as a genuinely free particle. It is described by sines and cosines (or complex exponentials). These solve the Schrödinger equation for a flat potential. The entire physics of the problem is then decided by stitching these two solutions together at the walls. Continuity of the wavefunction forces the interior solution to vanish exactly at the boundaries. That single mathematical requirement — a boundary condition, not a force, not a classical constraint — is what produces quantization. This article builds the model from the ground up. It defines the infinite square well potential precisely. It writes down the Schrödinger equation piecewise. It solves the free-particle equation inside the well. Then it imposes the boundary conditions that eliminate all but a discrete family of allowed wavefunctions. We stop just short of extracting the energy formula and analyzing nodal structure. Those are the natural next steps built directly on this foundation. But every piece of algebra needed to obtain them is set up rigorously here.

Key takeaways
  • The infinite square well potential is zero inside a region of width LL and infinite outside it, forbidding the particle from ever existing outside.
  • Inside the well the time-independent Schrödinger equation reduces to that of a genuinely free particle, with general solution a combination of sin⁡(kx)\sin(kx) and cos⁡(kx)\cos(kx).
  • Outside the well the wavefunction must be identically zero, since infinite potential energy makes any nonzero amplitude there physically and mathematically forbidden.
  • Continuity of ψ(x)\psi(x) at both walls is the only physical requirement imposed; it eliminates the cosine term and restricts kk to a discrete set of values.
  • The boundary conditions ψ(0)=0\psi(0)=0 and ψ(L)=0\psi(L)=0 are the entire origin of quantization in this model — no extra postulate is needed.
  • This setup is the direct ancestor of quantized energy levels and of nodal wavefunction patterns, both built from exactly the boundary-value problem solved here.
  • Key idea: confining a wave to a finite region converts a continuum of free-particle solutions into a discrete, countable family, purely through the requirement that ψ\psi vanish at the boundaries.

Where this lives today

The boundary-value logic built here is the conceptual seed of quantum dot engineering, where semiconductor nanocrystals confine electrons in a finite region and the resulting size-dependent quantization (larger dot, smaller knk_n spacing, redder emitted light) is used commercially in quantum-dot displays and biological fluorescent labels. It underlies the free-electron model of conjugated polyene and cyanine dye spectroscopy pioneered by Kuhn, still taught as the fastest back-of-envelope way to estimate a π→π* transition energy in a dye molecule before running any real calculation. The same boundary-value structure — solve a free-particle-like equation, then impose vanishing conditions at the edges — reappears in the particle-in-a-ring model for aromatic ring currents, in nanowire and carbon-nanotube electronic structure calculations, and in the "quantum well" heterostructures at the heart of semiconductor laser diodes, where engineered confinement layers are literally infinite (or very deep finite) square wells realized in solid-state materials. Even scanning tunneling microscopy images of "electron standing waves" on metal surfaces, corralled by rings of adsorbed atoms, are direct experimental visualizations of the same node-and-antinode structure that boundary conditions force onto a confined wavefunction.

Ask the tutor: How does imposing these same two boundary conditions on ψn(x)=Asin⁡(nπx/L)\psi_n(x)=A\sin(n\pi x/L) lead directly to the quantized energy formula En=n2h2/8mL2E_n = n^2h^2/8mL^2?

The physical picture — thorough prose

Picture a particle of mass mm confined to a one-dimensional line segment of length LL. We set up the potential energy function V(x)V(x) so that it captures "trapped between infinitely rigid walls" in the most literal sense allowed by quantum mechanics:

V(x)={0,0<x<L∞,x≤0 or x≥LV(x) = \begin{cases} 0, & 0 < x < L \\ \infty, & x \le 0 \text{ or } x \ge L \end{cases}

This is the infinite square well, or "particle in a box." Nothing subtle is happening physically outside the box — the particle simply cannot be there, ever, at any energy, because it would require infinite potential energy to do so. Mathematically this translates into a clean, absolute statement: the probability density ∣ψ(x)∣2|\psi(x)|^2 must be exactly zero for x≤0x \le 0 and x≥Lx \ge L, and therefore ψ(x)=0\psi(x) = 0 in those regions. Inside the box, the story is completely different. There the potential is zero, so a particle placed there experiences no force at all — it is a free particle, exactly as if the walls did not exist, except that it happens to live only in the interval (0,L)(0, L). The time-independent Schrödinger equation for a free particle in one dimension is

−ℏ22md2ψ(x)dx2=E ψ(x),0<x<L,-\frac{\hbar^2}{2m}\frac{d^2\psi(x)}{dx^2} = E\,\psi(x), \qquad 0 < x < L,

where:

  • ℏ\hbar is the reduced Planck constant,
  • mm is the particle's mass,
  • EE is the total energy (here, purely kinetic, since V=0V=0 inside),
  • ψ(x)\psi(x) is the spatial wavefunction we are solving for.

This is a second-order linear ordinary differential equation with constant coefficients — one of the most familiar equations in physics, structurally identical to the classical equation for a mass on a spring or a vibrating string. Its general solution, for E>0E>0, is an oscillatory function characterized by a single real wavenumber kk, and it is exactly this oscillatory character — a wave that must complete an integer-related pattern of humps within a fixed span LL — that will produce quantization once we apply the walls. The crucial subtlety, and the entire content of this article, is how the interior wave "knows" about the exterior walls. It knows only through boundary conditions: physically acceptable wavefunctions must be continuous everywhere (a jump discontinuity in ψ\psi would make its derivative, and hence the kinetic energy, infinite in a way that is not sanctioned by the infinite-wall model). Continuity at x=0x=0 and x=Lx=L, combined with the fact that ψ=0\psi=0 strictly outside the box, forces

ψ(0)=0andψ(L)=0.\psi(0) = 0 \qquad \text{and} \qquad \psi(L) = 0.

These two conditions are not extra physical assumptions bolted onto the problem — they are the direct mathematical consequence of an infinitely repulsive wall meeting a continuous wavefunction. Everything that follows (quantized energies, standing-wave shapes with nodes) traces back to solving the free-particle equation subject to exactly these two constraints.

Figure
The infinite square well: potential energy profile and the forbidden/allowed regions
x V(x) V → ∞ V → ∞ V(x) = 0 inside ψ(x) = 0 ψ(x) = 0 L x = 0 x = L
Figure
Free-particle wave inside the box before boundary conditions are applied — a generic sine+cosine combination that does NOT yet vanish at both walls
x = 0 x = L A sin(kx) + B cos(kx) ψ(0) ≠ 0 ✗ ψ(L) ≠ 0 ✗ Rejected: fails the boundary conditions
Figure
After imposing both boundary conditions: only sine functions with an integer number of half-wavelengths survive
x = 0 x = L n = 1 n = 2 ψ(0) = ψ(L) = 0 satisfied exactly

The core ideas — the governing equations

Inside the well, with V=0V=0, the time-independent Schrödinger equation is rearranged into a standard oscillator-type form:

d2ψdx2=−k2ψ,k2≡2mEℏ2.\frac{d^2\psi}{dx^2} = -k^2 \psi, \qquad k^2 \equiv \frac{2mE}{\hbar^2}.

where:

  • kk is a real wavenumber (real because we require E>0E>0 for a physically sensible bound solution),
  • the equation is identical in form to that of a classical oscillator or a vibrating string fixed at both ends.

Reading: this equation says the curvature of ψ\psi is proportional to −ψ-\psi itself — the hallmark of oscillatory, not exponential, behavior. This is exactly why sines and cosines, not growing/decaying exponentials, are the correct interior solutions. The general solution is

ψ(x)=Asin⁡(kx)+Bcos⁡(kx),0<x<L,\psi(x) = A\sin(kx) + B\cos(kx), \qquad 0<x<L,

where:

  • A,BA, B are constants set by the boundary and normalization conditions,
  • kk is not yet restricted to any particular value — that restriction comes next.

Reading: this is the most general real linear combination of the two independent solutions of the differential equation; any acceptable wavefunction inside the box must have exactly this form, for some choice of AA, BB, and kk. Boundary condition at the left wall:

ψ(0)=Asin⁡(0)+Bcos⁡(0)=B=0.\psi(0) = A\sin(0) + B\cos(0) = B = 0.

where: the only way for ψ(0)\psi(0) to vanish, given the general form above, is for the cosine coefficient BB to vanish identically. So the wavefunction collapses to ψ(x)=Asin⁡(kx)\psi(x) = A\sin(kx).

Reading: the left wall alone eliminates half the degrees of freedom in the general solution — no cosine character survives. Boundary condition at the right wall:

ψ(L)=Asin⁡(kL)=0.\psi(L) = A\sin(kL) = 0.

where: since we cannot take A=0A=0 (that would make ψ\psi identically zero everywhere, describing no particle at all), the sine factor itself must vanish: sin⁡(kL)=0\sin(kL) = 0.

Reading: this is the quantization condition in embryonic form — it says kLkL must be an integer multiple of π\pi, and this single trigonometric requirement is the seed from which every quantized energy level and every nodal wavefunction pattern in the box eventually grows.

Derivation AFrom the free-particle equation to the discrete wavenumber condition

Goal. Starting only from the time-independent Schrödinger equation for V=0V=0 and the requirement ψ=0\psi=0 outside a box of width LL, derive the condition that restricts the wavenumber kk to a discrete set of values, without yet computing energies.

Step 1 — Write the Schrödinger equation inside the well. For 0<x<L0<x<L, V(x)=0V(x)=0, so

−ℏ22md2ψdx2=Eψ(x).-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi(x).

Rearranging,

d2ψdx2+2mEℏ2ψ=0.\frac{d^2\psi}{dx^2} + \frac{2mE}{\hbar^2}\psi = 0.

Define k2≡2mE/ℏ2k^2 \equiv 2mE/\hbar^2, so the equation becomes the familiar

ψ′′+k2ψ=0.\psi'' + k^2\psi = 0.

Step 2 — Write the general solution. This is a linear, constant-coefficient, second-order ODE whose characteristic equation r2+k2=0r^2 + k^2 = 0 has purely imaginary roots r=±ikr = \pm ik. The general real solution is therefore oscillatory:

ψ(x)=Asin⁡(kx)+Bcos⁡(kx).\psi(x) = A\sin(kx) + B\cos(kx).

This form contains two undetermined constants (AA, BB) and one undetermined parameter (kk, equivalently EE) — three unknowns in total, none yet fixed by physics.

Step 3 — Impose continuity with the exterior region at x=0x=0. Outside the box, ψ≡0\psi \equiv 0 because V→∞V\to\infty there forbids any probability density. Physical wavefunctions must be continuous (a discontinuity would make the kinetic energy operator produce a delta-function singularity not present in this potential), so

ψ(0−)=ψ(0+)⇒ψ(0)=0.\psi(0^-) = \psi(0^+) \quad\Rightarrow\quad \psi(0) = 0.

Substituting x=0x=0 into the general solution:

Asin⁡(0)+Bcos⁡(0)=0⇒B=1⋅B=0.A\sin(0) + B\cos(0) = 0 \quad\Rightarrow\quad B = 1\cdot B = 0.

So B=0B=0 identically, and the solution reduces to the single-term form

ψ(x)=Asin⁡(kx).\psi(x) = A\sin(kx).

Step 4 — Impose continuity at x=Lx=L. By the same argument, ψ(L)=0\psi(L)=0. Substituting into the reduced solution:

Asin⁡(kL)=0.A\sin(kL) = 0.

Since A=0A=0 would give the trivial (unphysical, "no particle") solution ψ≡0\psi \equiv 0 everywhere, we require instead

sin⁡(kL)=0.\sin(kL) = 0.

Step 5 — Solve the resulting trigonometric equation. The sine function vanishes exactly at integer multiples of π\pi:

kL=nπ,n=1,2,3,…kL = n\pi, \qquad n = 1, 2, 3, \dots

Negative integers give the same physical wavefunction up to an overall sign (which does not change ∣ψ∣2|\psi|^2), and n=0n=0 is excluded because it forces k=0k=0, hence ψ≡0\psi\equiv 0 — again the unphysical null state. Therefore the allowed wavenumbers form a discrete, countably infinite set:

kn=nπL,n=1,2,3,…k_n = \frac{n\pi}{L}, \qquad n=1,2,3,\dots

This is the direct output of the boundary-value problem: a continuum of possible kk (and hence EE) for a free particle has been reduced, by confinement alone, to a discrete ladder indexed by the positive integer nn. The corresponding wavefunctions, before normalization, are

ψn(x)=Asin⁡ ⁣(nπxL).\psi_n(x) = A\sin\!\left(\frac{n\pi x}{L}\right).

Everything about quantized energies (via En=ℏ2kn2/2mE_n = \hbar^2k_n^2/2m) and nodal counting follows directly from this knk_n — but that extraction is the natural next step beyond this derivation.

Go deeper · Derivation B · 2 minWhy the boundary conditions eliminate the cosine term but not the sine term — a symmetry-based cross-check
Derivation BWhy the boundary conditions eliminate the cosine term but not the sine term — a symmetry-based cross-check

Goal. Confirm, using an independent line of reasoning based on symmetry and matching of derivatives, that the elimination of the cosine term in Step 3 above was not an algebraic accident, and clarify exactly what continuity does and does not require at an infinite wall.

Step 1 — Recall what "infinite potential" allows us to relax. For a finite step or finite well, both ψ\psi and ψ′\psi' must be continuous everywhere, because the Schrödinger equation there is a genuine second-order equation with a finite potential term throughout. For the infinite well, however, VV itself is discontinuous (jumping to infinity at the walls), and this is precisely the case where matching of the derivative ψ′\psi' is not required at x=0x=0 and x=Lx=L — only ψ\psi itself must be continuous. This is consistent with the fact that ψn(x)=Asin⁡(knx)\psi_n(x) = A\sin(k_n x) has nonzero slope at the walls (checked explicitly below), yet remains a fully acceptable solution.

Step 2 — Recenter the box to expose the symmetry. Shift coordinates so the well runs from −L/2-L/2 to +L/2+L/2 instead of 00 to LL; this is purely a relabeling and changes no physics. The general solution in the new coordinate x′=x−L/2x'=x-L/2 is still

ψ(x′)=Asin⁡(kx′)+Bcos⁡(kx′).\psi(x') = A\sin(kx') + B\cos(kx').

In this centered frame, sin⁡(kx′)\sin(kx') is an odd function and cos⁡(kx′)\cos(kx') is an even function about the box's midpoint.

Step 3 — Apply both boundary conditions simultaneously in the centered frame. The two conditions are ψ(−L/2)=0\psi(-L/2)=0 and ψ(+L/2)=0\psi(+L/2)=0. Writing them out:

−Asin⁡(kL/2)+Bcos⁡(kL/2)=0,Asin⁡(kL/2)+Bcos⁡(kL/2)=0.-A\sin(kL/2) + B\cos(kL/2) = 0, \qquad A\sin(kL/2) + B\cos(kL/2) = 0.

Adding these two equations:

2Bcos⁡(kL/2)=0.2B\cos(kL/2) = 0.

Subtracting the first from the second:

2Asin⁡(kL/2)=0.2A\sin(kL/2) = 0.

Because AA and BB cannot both be zero (that is again the trivial null wavefunction), exactly one of cos⁡(kL/2)=0\cos(kL/2)=0 or sin⁡(kL/2)=0\sin(kL/2)=0 must hold — the well's boundary conditions naturally split the solutions into two disjoint families: even solutions (cosine, with cos⁡(kL/2)=0\cos(kL/2)=0) and odd solutions (sine, with sin⁡(kL/2)=0\sin(kL/2)=0), never a mixture of both in a single eigenstate.

Step 4 — Confirm both families reduce to the same original quantization when translated back. Solving cos⁡(kL/2)=0\cos(kL/2)=0 gives kL/2=π/2,3π/2,5π/2,…kL/2 = \pi/2, 3\pi/2, 5\pi/2,\dots, i.e., kL=π,3π,5π,…kL = \pi, 3\pi, 5\pi,\dots (odd multiples of π\pi) with even (cosine) spatial symmetry about the center. Solving sin⁡(kL/2)=0\sin(kL/2)=0 gives kL=2π,4π,6π,…kL = 2\pi, 4\pi, 6\pi,\dots (even multiples of π\pi) with odd (sine) spatial symmetry about the center. Together these two families reproduce, without gaps or overlaps, exactly the full set kL=nπkL = n\pi for n=1,2,3,…n=1,2,3,\dots found in the origin-anchored derivation — a direct algebraic cross-check that the earlier "cosine eliminated, sine survives" result was a coordinate artifact of placing the origin at the wall, not a loss of physical solutions. The physics (a discrete ladder of standing waves) is identical either way; only the trigonometric labels (sine vs. cosine) depend on where the coordinate origin is placed.

Worked examples

Example 1 (foundational): Verifying that a candidate wavefunction satisfies the boundary conditions. Consider a box of width L=2.50L = 2.50 Å and the candidate function ψ(x)=Asin⁡(kx)\psi(x) = A\sin(kx) with k=3πLk = \dfrac{3\pi}{L}. Confirm this satisfies both boundary conditions, and show explicitly why k=3π/Lk = 3\pi/L specifically corresponds to the n=3n=3 member of the family derived above. At x=0x=0:

ψ(0)=Asin⁡(0)=0✓\psi(0) = A\sin(0) = 0 \quad\checkmark

At x=Lx=L:

ψ(L)=Asin⁡ ⁣(3πL⋅L)=Asin⁡(3π)=A⋅0=0✓\psi(L) = A\sin\!\left(\frac{3\pi}{L}\cdot L\right) = A\sin(3\pi) = A\cdot 0 = 0 \quad\checkmark

Both conditions hold for any nonzero AA, confirming this is an acceptable member of the family. Comparing k=3π/Lk=3\pi/L to the general formula kn=nπ/Lk_n = n\pi/L derived above gives immediately n=3n=3. Note that a slightly perturbed wavenumber does not work — take k′=3.2π/Lk' = 3.2\pi/L as a deliberately non-round, asymmetric test value:

ψ(L)=Asin⁡(3.2π)=Asin⁡(576∘)=Asin⁡(216∘)=−Asin⁡(36∘)≈−0.588 A≠0.\psi(L) = A\sin(3.2\pi) = A\sin(576^\circ) = A\sin(216^\circ) = -A\sin(36^\circ) \approx -0.588\,A \ne 0.

This nonzero result for a generic, non-integer multiple of π\pi confirms that the quantization condition kL=nπkL=n\pi is not a loose approximate rule — it is an exact equality that fails for any kk not precisely equal to nπ/Ln\pi/L. As a limiting-case check: if we let L→∞L\to\infty (unconfined space), the spacing between allowed kk values, Δk=π/L\Delta k = \pi/L, shrinks to zero, and the discrete ladder smoothly recovers the continuous spectrum of a genuinely free particle — exactly as required, since removing the walls should remove quantization entirely.

Example 2 (applied): Setting up the boundary-value problem for a π-electron in a conjugated chain. Hexatriene, CH2_2=CH–CH=CH–CH=CH2_2, has a π-electron system frequently modeled as a particle in a box. Suppose we approximate the conjugated backbone (three C=C double bonds plus the bonds between them) as a one-dimensional box of length L=7.30L = 7.30 Å (a typical estimate including a bit of overhang beyond the terminal carbons on each side). Set up — do not yet solve for energies — the exact boundary-value problem for a single π-electron in this box, and identify the general form of the allowed wavefunctions. Inside the box, 0<x<7.300<x<7.30 Å, the electron obeys

−ℏ22med2ψdx2=Eψ,-\frac{\hbar^2}{2m_e}\frac{d^2\psi}{dx^2} = E\psi,

with me=9.109×10−31 kgm_e = 9.109\times10^{-31}\,\text{kg} the electron mass. This is structurally identical to the generic derivation above (only the mass and the box length are specific to this chemical system), so the boundary conditions

ψ(0)=0,ψ(7.30 A˚)=0\psi(0) = 0, \qquad \psi(7.30\text{ Å}) = 0

must be imposed exactly as before, giving allowed wavenumbers

kn=nπ7.30 A˚,n=1,2,3,…k_n = \frac{n\pi}{7.30\text{ Å}}, \qquad n=1,2,3,\dots

and allowed (unnormalized) wavefunctions

ψn(x)=Asin⁡ ⁣(nπx7.30 A˚).\psi_n(x) = A\sin\!\left(\frac{n\pi x}{7.30\text{ Å}}\right).

This is exactly the setup needed before assigning six π electrons to the lowest three levels (two electrons per level by the Pauli principle) and computing an absorption energy — the natural continuation of this model into spectroscopy, but the boundary-value problem itself is now completely and rigorously specified. As a sanity check on the setup, note that as n→1n\to 1 specifically (not a limiting case of a parameter, but the smallest allowed quantum number), the wavefunction sin⁡(πx/7.30 A˚)\sin(\pi x/7.30\text{ Å}) has no interior zero crossings between the walls — a single symmetric hump — consistent with it being the ground state of the confined electron.

Example 3 (exam/competition level): Boundary conditions for an asymmetric potential well with one hard wall and one wall of a different (still infinite) type — testing whether the boundary condition, not the coordinate label, controls the answer. Consider a box occupying the asymmetric interval −1.20 A˚<x<3.60 A˚-1.20\text{ Å} < x < 3.60\text{ Å} (width L=4.80L = 4.80 Å, but not symmetric about x=0x=0), with V=∞V=\infty outside this interval and V=0V=0 inside. Show that the resulting quantization condition on the wavenumber is identical in form to the origin-anchored case, and find the specific value of kk for the state with three interior antinodes (i.e., the third-lowest such state, generalizing the notion of "n=3n=3" to this shifted geometry). Let x′=x−(−1.20 A˚)=x+1.20 A˚x' = x - (-1.20\text{ Å}) = x + 1.20\text{ Å} be a shifted coordinate that places the left wall at x′=0x'=0. This is purely a relabeling, exactly analogous to the shift used in the second derivation above, and changes none of the physics. In terms of x′x', the problem is identical to the canonical setup: V=0V=0 for 0<x′<4.80 A˚0<x'<4.80\text{ Å}, V=∞V=\infty outside. The general solution is

ψ(x′)=Asin⁡(kx′)+Bcos⁡(kx′),\psi(x') = A\sin(kx') + B\cos(kx'),

and the boundary conditions ψ(x′=0)=0\psi(x'=0)=0, ψ(x′=4.80 A˚)=0\psi(x'=4.80\text{ Å})=0 give, by exactly the same algebra as Step 3–5 of the first derivation,

B=0,kn=nπ4.80 A˚,n=1,2,3,…B=0, \qquad k_n = \frac{n\pi}{4.80\text{ Å}}, \qquad n=1,2,3,\dots

This confirms explicitly that the location of the box on the xx-axis is physically irrelevant — only its width L=4.80L=4.80 Å enters the quantization condition, because the boundary conditions are defined relative to the walls, not relative to an arbitrary global coordinate origin. This is a genuinely useful exam-level check: a student might worry that an "off-center" or "shifted" box changes the mathematics, but the derivation shows the boundary-value problem depends only on LL. For the requested state, the number of interior antinodes (interior maxima or minima of ∣ψ∣|\psi|, excluding the endpoints which are always nodes) of sin⁡(nπx′/L)\sin(n\pi x'/L) equals nn itself for the case nn (each half-wavelength segment contains exactly one antinode). Three interior antinodes therefore corresponds to n=3n=3, giving

k3=3π4.80 A˚=0.625π A˚−1≈1.963 A˚−1.k_3 = \frac{3\pi}{4.80\text{ Å}} = 0.625\pi\ \text{Å}^{-1} \approx 1.963\ \text{Å}^{-1}.

Converting back to the original coordinate, the wavefunction is ψ3(x)=Asin⁡ ⁣(k3 (x+1.20 A˚))\psi_3(x) = A\sin\!\big(k_3\,(x+1.20\text{ Å})\big) for −1.20 A˚<x<3.60 A˚-1.20\text{ Å}<x<3.60\text{ Å}, vanishing exactly at both physical walls — which can be checked directly: at x=−1.20x=-1.20 Å, the argument is k3⋅0=0k_3\cdot 0 = 0, so sin⁡(0)=0\sin(0)=0; at x=3.60x=3.60 Å, the argument is k3⋅4.80 A˚=3πk_3\cdot 4.80\text{ Å} = 3\pi, so sin⁡(3π)=0\sin(3\pi)=0. Both boundary conditions are satisfied exactly, confirming the shifted-coordinate approach reproduces a fully consistent solution.

Limiting cases, scope & common traps

Regime / questionWhat the boundary-value setup says
L→∞L \to \inftySpacing Δk=π/L→0\Delta k = \pi/L \to 0; discrete ladder merges into the continuous free-particle spectrum
L→0L \to 0Allowed kn=nπ/Lk_n = n\pi/L diverge for all nn; confinement becomes infinitely costly, consistent with extreme quantum confinement
n=0n = 0Excluded exactly: it forces ψ≡0\psi\equiv 0 everywhere, the unphysical "no particle" state, not a legitimate ground state
Coordinate origin shiftedQuantization condition depends only on box width LL, never on where the origin is placed (Example 3)
Finite (not infinite) wallsψ\psi and ψ′\psi' both must be continuous, and ψ\psi does not vanish exactly at the walls — a materially different boundary-value problem (tunneling becomes possible)
Does the model fix energies here?No — this setup produces only the quantization of kk; converting knk_n into EnE_n is the very next step, built directly on this foundation

The chemist behind it

The particle-in-a-box model as a tool for real chemistry is most closely associated with the German physical chemist Hans Kuhn, who in the 1940s applied the free-electron model to cyanine dyes and conjugated polyenes, using exactly the boundary-value setup derived here to rationalize their electronic absorption spectra with startling quantitative success for such a simple picture. The deeper mathematical framework, however, traces back to the founders of wave mechanics itself: Erwin Schrödinger's 1926 equation made the boundary-value problem meaningful in the first place, and the particle-in-a-box became one of the very first "textbook" solved systems used to teach the new quantum theory to a generation of chemists in the following decades.

Origins · 1 minErwin Schrödinger and how this was discovered
ES
Erwin Schrödinger
1887–1961 · Vienna, Zurich, Berlin, Dublin

Schrödinger developed wave mechanics in 1926, proposing that matter possesses an associated wavefunction obeying a linear partial differential equation now bearing his name. He shared the 1933 Nobel Prize in Physics with Paul Dirac. Though Schrödinger himself worked on far more elaborate systems (the hydrogen atom, the harmonic oscillator), the particle-in-a-box is the pedagogical proving ground where his equation's boundary-value structure — and the quantization it produces from confinement alone — is seen in its purest, most transparent form.

History
- 1926 — Schrödinger publishes the time-independent wave equation, providing the mathematical machinery this model relies on.
- 1928 — Early quantum textbooks begin using the "particle in a box" as the first fully solvable illustration of quantization from boundary conditions.
- 1949 — Hans Kuhn applies the free-electron (particle-in-a-box) model to cyanine dyes, launching its long career in organic photochemistry.
- 1960s — The model becomes a standard fixture of physical chemistry curricula worldwide, exactly in the form derived here.
- 1990s–present — Quantum dots and nanowires are engineered as real, three-dimensional physical realizations of confinement quantization, with the 1D box as the essential conceptual entry point.
Why does the particle-in-a-box model use an infinite potential instead of a large but finite one?

An infinite wall is a deliberate idealization that makes the boundary-value problem exactly solvable in closed form: it guarantees ψ=0\psi=0 identically outside the box, with no possibility of the wavefunction leaking through (tunneling) into the classically forbidden region. A finite wall is physically more realistic — real molecular and nanoscale confinement is never truly infinite — but it requires matching both ψ\psi and ψ′\psi' across a wall of finite height, producing transcendental equations that must generally be solved numerically. The infinite well is the cleanest teaching case precisely because the algebra stays exact and tractable while still producing genuine quantization.

Is it correct to say the particle "bounces off" the walls like a classical ball?

Only loosely, and the analogy can mislead. Classically, a ball reverses momentum instantaneously upon collision with a rigid wall, and this is a useful cartoon for building intuition. Quantum mechanically, however, there is no trajectory at all — the stationary states are standing waves with fixed, time-independent probability densities ∣ψn(x)∣2|\psi_n(x)|^2, not particles executing back-and-forth motion. The correct statement is that the wavefunction is forced to vanish at the walls, producing standing-wave patterns, not that a localized particle physically ricochets.

Why is n = 0 excluded from the allowed states?

Setting n=0n=0 in kn=nπ/Lk_n = n\pi/L gives k=0k=0, and substituting back into ψn(x)=Asin⁡(knx)\psi_n(x)=A\sin(k_n x) gives ψ≡0\psi \equiv 0 everywhere inside the box. A wavefunction that is identically zero cannot be normalized (its integrated probability is zero, not one) and describes no particle at all — it is the mathematically trivial solution of the differential equation, not a physical state. Every genuine bound state therefore requires n≥1n \ge 1, and this exclusion is exactly what produces a strictly positive minimum (zero-point) energy in the continuation of this model.

Does the shape or position of the box on the x-axis affect the physics?

No. As shown explicitly by recentering or shifting the coordinate origin, the quantization condition depends only on the box's width LL, never on where an arbitrary coordinate origin is placed. Shifting coordinates changes whether the eigenfunctions look like pure sines (origin at a wall) or a mix of sines and cosines split into even/odd families (origin at the center), but the physically measurable content — the discrete ladder of allowed wavenumbers and the nodal count of each state — is completely unaffected by this choice.

What physical assumption is really doing the work — the infinite potential or the boundary conditions?

Both are needed, but they play different roles. The infinite potential is what makes ψ=0\psi=0 outside the box exact rather than approximate, since any competing amplitude there would require infinite energy. The boundary conditions — continuity of ψ\psi at x=0x=0 and x=Lx=L — are what transmit that exterior information into the interior solution, forcing the otherwise-continuous parameter kk to take only discrete values. Removing either ingredient breaks the model: without the infinite wall, tunneling into the exterior becomes possible; without imposing continuity, any kk would remain allowed and there would be no quantization at all.

Can this same boundary-value approach be used for boxes of more than one dimension?

Yes, and the extension is direct: in two or three dimensions the analogous infinite well requires ψ=0\psi=0 on the entire boundary surface (or perimeter), and if the potential separates additively along orthogonal directions, the multidimensional Schrödinger equation separates into independent one-dimensional problems, each solved by exactly the boundary-value method derived here. The resulting wavefunction is a product of one-dimensional sine functions, one per dimension, and the allowed energies become sums of the one-dimensional quantized energies — a natural generalization built entirely on the single-dimension machinery established in this setup.

Why is this considered the simplest possible quantum-mechanical model?

Because every other exactly solvable bound-state problem (the harmonic oscillator, the hydrogen atom, the particle on a ring) requires either a nontrivial potential energy function or curved/periodic boundary geometry, while the box requires only the flattest possible interior potential (V=0V=0) paired with the simplest possible boundary condition (a hard, vanishing wavefunction at two points). All of the conceptual machinery of quantization — differential equation, general solution, boundary conditions, discrete eigenvalues — appears here in its most stripped-down, fully transparent form, which is exactly why it is always taught first.

Where this leads