---
title: The Schrödinger equation
heading: The wave equation for electrons, and what the wave means
eyebrow: B9 · Lesson 3 · The Schrödinger equation
xp: 40
---

::: hook
Lesson 1 found an electron's energy levels in a box by fitting whole half-waves between the walls, the way a guitar string fits its harmonics. That trick works for a box with hard walls. For anything else, a well with walls of finite height, an atom or a transistor's channel, you need the equation the electron's wave obeys. Schrödinger wrote it down in 1926, and every calculation of energy levels, tunneling currents and band structures since has come from it.
:::

::: play
- An electron in a box of width $L$ with hard walls. The solid curve is its wave ψ in state $n$; the dashed curve is $|\psi|^2$, the probability of finding it at each place.
- In the ground state the electron is most likely in the middle. In higher states the probability splits into $n$ humps, with places in between where it's never found.
- The effective mass slider stands in for a semiconductor, where electrons act lighter than in free space (lesson 17). Lighter particles in the same box have higher energies.
:::
:::

```sim plot
view: graph
x: x = 0..1
y: psi = -1.6..2.2
slider: n = 1..6 step 1 = 1
slider: L = 1..20 step 0.5 = 5 nm
slider: ms = 0.05..1 step 0.01 = 1
slider: a = 0..1 step 0.01 = 0.33
plot: sqrt(2)*sin(n*pi*x) | label: ψ | samples: 600
plot: 2*sin(n*pi*x)^2 | label: |ψ|² | dashed | color: ch2 | samples: 600
marker: x = a | label: a
readout: energy, meV = 1000*n^2*0.37608/(ms*L^2) | digits: 4
readout: chance of being left of a = a - sin(2*pi*n*a)/(2*pi*n) | digits: 3
```

::: predict
## An electron is in the ground state of a box. What is the chance of finding it in the middle third?

- [ ] Exactly one third
- [x] About 0.61
- [ ] About 0.9
- [ ] Zero, since it's a wave

::: reveal
About 0.61. The probability density $2\sin^2(\pi x/L)/L$ peaks in the middle, so the middle third holds more than its share: integrating gives $\frac13 + \frac{\sqrt3}{2\pi} = 0.61$. A classical particle bouncing back and forth would spend exactly a third of its time there.
:::
:::

::: nameit
## The equation

A particle of mass $m$ with potential energy $V(x)$ has a **wavefunction** ψ(x) for each allowed energy $E$, satisfying the time-independent Schrödinger equation:

$$-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} + V(x)\psi = E\psi$$

Read it as kinetic plus potential energy equals total energy, with the kinetic energy measured by how sharply the wave curves. Where $E > V$, ψ oscillates with wave number $k = \frac{\sqrt{2m(E - V)}}{\hbar}$, which is the de Broglie wavelength of lesson 2. Where $E < V$, it decays or grows exponentially with $\kappa = \frac{\sqrt{2m(V - E)}}{\hbar}$.

## What ψ means

$|\psi(x)|^2\,dx$ is the probability of finding the particle between $x$ and $x + dx$, so the wavefunction is **normalized**: $\int|\psi|^2dx = 1$. For the box of width $L$ with hard walls,

$$\psi_n = \sqrt{\frac2L}\sin\frac{n\pi x}{L} \qquad E_n = \frac{n^2h^2}{8mL^2}$$

and the probability of finding it between 0 and $a$ is $\frac aL - \frac{1}{2\pi n}\sin\frac{2\pi na}{L}$.

## Finite walls

Real wells have walls of finite height $V_0$. The wave leaks into the walls, decaying over a length $1/\kappa$, so it acts as if the box were a little wider and every level sits a little lower than the hard-wall formula says. Only a limited number of states are bound:

$$N = \text{the smallest whole number above } \frac{L\sqrt{8mV_0}}{h}$$

and there's always at least one. States above $V_0$ aren't trapped at all.

## Other shapes

Each potential has its own levels. A **harmonic** potential, $V = \frac12m\omega^2x^2$, gives evenly spaced levels $E_n = \left(n + \frac12\right)\hbar\omega$: molecules vibrate this way and absorb infrared light at the spacing. In a crystal the potential repeats, and the solutions form the bands of lesson 9.
:::

::: example
## A gallium arsenide layer 10 nm thick traps electrons, which move in it with an effective mass of 0.067 times the free mass. Treating the walls as hard, what is the ground-state energy?

::: solution
1. **Ground-state energy.** Use the box formula with the effective mass:
   $$\begin{aligned} E_1 &= \frac{h^2}{8m^*L^2} \\ &= \frac{(6.626 \times 10^{-34})^2}{8(0.067)(9.109 \times 10^{-31})(10^{-8})^2} \\ &= 9.0 \times 10^{-21}\ \text{J} \end{aligned}$$
2. **In meV.** That's 56 meV, about twice $kT$ at room temperature.
3. **Where it's used.** That's a quantum well, the heart of most laser diodes (lesson 8).

**Answer:** the ground state is 56 meV ($9.0 \times 10^{-21}$ J), about twice $kT$ at room temperature.
:::
:::

::: example
## How far does the wave of an electron 1 eV below the top of a barrier reach into it?

::: solution
1. **Momentum scale.** With $V - E = 1$ eV $= 1.602 \times 10^{-19}$ J,
   $$\begin{aligned} &(\hbar\kappa)^2 = 2m(V - E) \\ &= 2(9.109 \times 10^{-31})(1.602 \times 10^{-19}) \\ &= 2.919 \times 10^{-49}\ \text{kg}^2\,\text{m}^2/\text{s}^2 \end{aligned}$$
   so $\hbar\kappa = 5.40 \times 10^{-25}$ kg m/s.
2. **Decay length.**
   $$\begin{aligned} \frac1\kappa &= \frac{\hbar}{\hbar\kappa} \\ &= \frac{1.055 \times 10^{-34}}{5.40 \times 10^{-25}}\ \text{m} \\ &= 0.195\ \text{nm} \end{aligned}$$
3. **What it means.** Barriers a few times that thick let a measurable fraction through, which is tunneling (lesson 7).

**Answer:** about 0.195 nm.
:::
:::

::: example
## An electron is in the second state of a box. What is the chance of finding it in the middle third?

::: solution
1. **Set up the integral.**
   $$P = \int_{L/3}^{2L/3}\frac2L\sin^2\frac{2\pi x}{L}dx$$
2. **Integrate.**
   $$\begin{aligned} P &= \frac13 - \frac{\sin\frac{8\pi}{3} - \sin\frac{4\pi}{3}}{4\pi} \\ &= \frac13 - \frac{\sqrt3}{4\pi} \\ &= 0.196 \end{aligned}$$
3. **Compare with the ground state.** In the ground state it was 0.609.
4. **Why it's smaller.** The second state has a node in the middle, so it puts most of its probability near a third and two thirds of the way across, and much less in the center.

**Answer:** 0.196, against 0.609 in the ground state.
:::
:::

::: check
given: n = 2 | 3 | 4; L = 5 | 10; ms = 0.067 | 0.19
answer: 1000*n^2*(6.626e-34)^2/(8*ms*9.109e-31*(L*1e-9)^2)/1.602e-19
unit: meV
tolerance: 0.5%

## An electron with effective mass {ms} times the free mass is in a hard-walled well {L} nm wide. What is the energy of state {n}?

::: right
Right. $\frac{n^2h^2}{8m^*L^2}$ = {answer}.
:::

::: misses
- [1000*n^2*(6.626e-34)^2/(8*9.109e-31*(L*1e-9)^2)/1.602e-19] Use the effective mass.
- [1000*n*(6.626e-34)^2/(8*ms*9.109e-31*(L*1e-9)^2)/1.602e-19] Energy goes as $n^2$.
- [any] Not yet. $E_n = n^2h^2/8m^*L^2$.
:::
:::

::: check
given: n = 1 | 2 | 3; a = 0.1 | 0.4
answer: a - sin(2*pi*n*a)/(2*pi*n)
tolerance: 0.5%

## An electron in state {n} of a box of width $L$. What is the chance of finding it between the left wall and {a}$L$?

::: right
Right. $\frac aL - \frac{\sin(2\pi na/L)}{2\pi n}$ = {answer}.
:::

::: misses
- [any] Not yet. Integrate $\frac2L\sin^2\frac{n\pi x}{L}$ from 0 to $a$.
:::
:::

::: check
given: dV = 0.05 | 0.5 | 3
answer: 1.0546e-34/sqrt(2*9.109e-31*dV*1.602e-19)*1e9
unit: nm
tolerance: 0.5%

## An electron is {dV} eV below the top of a barrier. Over what distance does its wave fall by a factor of $e$ inside the barrier?

::: right
Right. $\frac{\hbar}{\sqrt{2m(V - E)}}$ = {answer}.
:::

::: misses
- [6.626e-34/sqrt(2*9.109e-31*dV*1.602e-19)*1e9] Use $\hbar$, not $h$.
- [any] Not yet. $1/\kappa$ with $\kappa = \sqrt{2m(V - E)}/\hbar$.
:::
:::

::: check
given: V = 0.2 | 1; L = 1 | 4 | 10
answer: floor(sqrt(8*9.109e-31*V*1.602e-19)*L*1e-9/6.626e-34) + 1
tolerance: 0.1%

## A well {L} nm wide is {V} eV deep. How many bound states does an electron have in it?

::: right
Right. The next whole number above $\frac{L\sqrt{8mV_0}}{h}$: {answer}.
:::

::: misses
- [any] Not yet. Compute $L\sqrt{8mV_0}/h$ and round up.
:::
:::

::: check
given: f = 20 | 60 | 90
answer: 6.626e-34*f*1e12/1.602e-19*1000
unit: meV
tolerance: 0.5%

## A molecule vibrates at {f} THz. How far apart are its vibrational energy levels?

::: right
Right. $\hbar\omega = hf$ = {answer}.
:::

::: misses
- [1.0546e-34*f*1e12/1.602e-19*1000] $\hbar\omega = hf$: with frequency in hertz, use $h$.
- [any] Not yet. The spacing is $\hbar\omega$.
:::
:::

::: check
given: L = 0.5 | 2 | 8
answer: sqrt(2/L)
tolerance: 0.5%

## What amplitude $A$ normalizes $\psi = A\sin(\pi x/L)$ in a box of width {L} nm, with $x$ in nanometers?

::: right
Right. $\sqrt{2/L}$ = {answer}.
:::

::: misses
- [1/sqrt(L)] The average of $\sin^2$ is $\frac12$, so $A^2L/2 = 1$.
- [any] Not yet. Make $\int_0^L A^2\sin^2(\pi x/L)\,dx = 1$.
:::
:::

::: check
kind: parts
given: U = 0.5 | 1 | 3; m = 1 | 0.067

## An electron with effective mass {m} times the free mass sits {U} eV below the top of a barrier.

::: part
answer: 1.0546e-34/sqrt(2*m*9.109e-31*U*1.602e-19)*1e9
unit: nm
tolerance: 0.5%

### How far into the barrier does its wave reach before falling by e?

::: misses
- [any] $\delta = \frac{\hbar}{\sqrt{2m(V - E)}}$.
:::
:::

::: part
answer: exp(-2*1/(1.0546e-34/sqrt(2*m*9.109e-31*U*1.602e-19)*1e9))
tolerance: 0.5%

### By what factor has the probability density fallen 1 nm in?

::: misses
- [exp(-1/(1.0546e-34/sqrt(2*m*9.109e-31*U*1.602e-19)*1e9))] The density is $|\psi|^2$: it falls twice as fast as ψ.
- [any] $e^{-2d/\delta}$.
:::
:::
:::

::: check
kind: derivation
vars: m = 0.00000000000000000000000000000005..0.000000000000000000000000000001, U = 0.00000000000000000001..0.000000000000000001

## A particle of mass m with energy U below the top of a barrier.

::: step
answer: sqrt(2*m*U)/1.0546e-34

### What is the decay constant κ of its wave inside the barrier?
:::

::: step
answer: 1.0546e-34/sqrt(2*m*U)

### How far does it reach before falling by a factor e?
:::

::: right
Right. A lighter particle, or one closer to the top, reaches deeper into the barrier.
:::
:::

::: explain
## Why do the energy levels in a well with finite walls sit lower than in a box with hard walls of the same width?

::: model
With hard walls the wave must drop to zero exactly at each wall. With finite walls it doesn't stop there: it leaks a short way into each wall and decays, so the wave spreads over a somewhat wider region. A wave that fits a wider space can curve more gently, and gentler curvature means less kinetic energy. Each level therefore settles below the hard-wall value, and the effect is largest for the highest states, which are closest to the top of the walls and leak the farthest.
:::
:::

::: practice

::: check
given: L = 1 | 2 | 5
answer: 0.37608/L^2*1000
unit: meV
tolerance: 0.5%

## What is a free electron's ground-state energy in a hard-walled box {L} nm wide?

::: misses
- [any] $h^2/8mL^2$, or 376 meV/$L^2$ with $L$ in nm.
:::
:::

::: check
given: n = 2 | 3 | 5
answer: n^2
tolerance: 0.5%

## How many times the ground-state energy is state {n} in a box?

::: misses
- [any] $E_n \propto n^2$.
:::
:::

::: check
given: dV = 0.1 | 1; d = 0.5 | 1
answer: exp(-2*d*1e-9*sqrt(2*9.109e-31*dV*1.602e-19)/1.0546e-34)
tolerance: 1%

## About what fraction of electrons {dV} eV below a barrier's top get through a barrier {d} nm thick, using $T \approx e^{-2\kappa d}$?

::: misses
- [any] $e^{-2\kappa d}$.
:::
:::
:::
