---
title: Heterojunctions
heading: Band offsets, quantum wells and lattice matching
eyebrow: S1 · Lesson 16 · Heterojunctions
xp: 50
---

::: hook
Every junction so far joined two dopings of the same crystal. Joining two different semiconductors, GaAs and AlGaAs or Si and SiGe, adds a new design tool: the band edges themselves jump at the interface. Those jumps can block holes but not electrons (the HBT), trap electrons in a sheet at a clean interface (the HEMT), or confine both carriers in a thin layer where they recombine and emit light (the quantum-well laser). This lesson works out the offsets, the confined energy levels and the strain that limits which crystals can be grown together.
:::

::: play
- The band edges of GaAs (left) against $\text{Al}_x\text{Ga}_{1-x}\text{As}$ (right). The gap widens by 1.247x eV, about 65% of it in the conduction band and 35% in the valence band.
- Raise x: both steps grow. Electrons on the GaAs side face a wall at the interface; holes face a smaller one.
- A thin GaAs layer between two AlGaAs layers is a quantum well: both carriers are trapped in it.
:::

```sim plot
view: graph
x: z = -50..50 nm
y: E = -0.6..2.2 eV
slider: a = 0..0.45 step 0.05 = 0.3
plot: 1.424 + 0.65*1.247*a*step(z) | label: conduction band
plot: -0.35*1.247*a*step(z) | label: valence band
readout: conduction offset, eV = 0.65*1.247*a | digits: 3
readout: valence offset, eV = 0.35*1.247*a | digits: 3
```

::: predict
## Electrons are confined in a 10 nm GaAs layer between AlGaAs barriers. Treating the walls as infinite, where is their lowest level above the band edge ($m^*$ = 0.067 m₀)?

- [ ] About 0.5 meV
- [ ] About 5 meV
- [x] About 56 meV
- [ ] About 560 meV

::: reveal
$E_1 = \hbar^2\pi^2/(2m^*L^2) = 56$ meV. Real barriers (0.24 eV for x = 0.3) let the wave function leak out, which lowers the level to about 33 meV. Either way, confinement shifts the emission of a quantum-well laser to a shorter wavelength than bulk GaAs's, and the well's width tunes it.
:::
:::

::: nameit
## Offsets

Anderson's rule lines up the two materials' vacuum levels, so the conduction-band offset is the difference of the electron affinities, $\Delta E_c = \chi_1 - \chi_2$, and $\Delta E_v = \Delta E_g - \Delta E_c$. Interface dipoles make it only a rough guide; measured splits are used in practice, such as 65:35 for AlGaAs/GaAs.

- **Type I (straddling):** the narrow gap sits inside the wide one, trapping both carriers: lasers, LEDs.
- **Type II (staggered):** electrons collect on one side and holes on the other: some detectors and solar cells.
- **Type III (broken gap):** one material's conduction band lies below the other's valence band.

## Quantum wells

A layer thinner than the carriers' wavelength quantizes their motion. For infinitely high walls,
$$E_n = \frac{n^2\hbar^2\pi^2}{2m^*L^2}$$
Finite barriers lower the levels, and only as many states fit as the barrier allows.

## Lattice matching

Crystals of different lattice constant strain when grown on each other. Thin layers stretch to fit (pseudomorphic growth, as in strained SiGe and InGaAs channels); beyond a critical thickness, misfit dislocations form and ruin devices. AlAs and GaAs differ by only 0.14%, which is why AlGaAs/GaAs was the first great heterostructure.
:::

::: example
## What are the band offsets of $\text{Al}_{0.3}\text{Ga}_{0.7}\text{As}$ on GaAs?

::: solution
1. **Gap difference.**
   $$\begin{aligned} \Delta E_g &= 1.247 \times 0.3 \\ &= 0.374\ \text{eV} \end{aligned}$$
2. **Conduction-band offset.**
   $$\begin{aligned} \Delta E_c &= 0.65 \times 0.374 \\ &= 0.243\ \text{eV} \end{aligned}$$
3. **Valence-band offset.** The rest of the gap difference is $\Delta E_v$ = 0.131 eV.
4. **Confinement.** The 0.243 eV conduction step is about nine kT, enough to confine electrons firmly at room temperature.

**Answer:** $\Delta E_c$ = 0.243 eV and $\Delta E_v$ = 0.131 eV.
:::
:::

::: example
## In the infinite-well model, how far apart are the first two levels of the 10 nm well, and what if the well is 5 nm?

::: solution
1. **The first two levels.** $E_n \propto n^2$, so with $E_1$ = 56 meV,
   $$\begin{aligned} E_2 &= 4E_1 \\ &= 225\ \text{meV} \end{aligned}$$
2. **Spacing.**
   $$\begin{aligned} E_2 - E_1 &= 3E_1 \\ &= 168\ \text{meV} \end{aligned}$$
3. **A 5 nm well.** Everything scales by $1/L^2$, four times higher: the ground state alone is 225 meV, near the top of a 0.24 eV barrier.
4. **What that means.** A narrow well may hold only one level.

**Answer:** the 10 nm well's first two levels, 56 and 225 meV, are 168 meV apart. In a 5 nm well the ground state alone is 225 meV, so it may hold only one level.
:::
:::

::: example
## $\text{In}_{0.2}\text{Ga}_{0.8}\text{As}$ is grown on GaAs. By Vegard's law, how mismatched are the lattices ($a_{InAs}$ = 6.058 Å, $a_{GaAs}$ = 5.653 Å)?

::: solution
1. **Lattice constant.** By Vegard's law,
   $$\begin{aligned} a &= 5.653 + 0.2 \times 0.405 \\ &= 5.734\ \text{Å} \end{aligned}$$
   1.43% larger than GaAs.
2. **Why it matters.** Layers this mismatched survive only a few nanometers to tens of nanometers before relaxing, which is why strained InGaAs wells in lasers and HEMTs are kept thin.

**Answer:** the InGaAs lattice constant is 5.734 Å, 1.43% larger than GaAs.
:::
:::

::: check
kind: parts
given: x = 0.15 | 0.3 | 0.45; f = 0.6 | 0.65 | 0.7

## $\text{Al}_x\text{Ga}_{1-x}\text{As}$ with x = {x} meets GaAs; the gap grows 1.247x eV, a fraction {f} of it in the conduction band.

::: part
answer: f*1.247*x
unit: eV
tolerance: 0.5%

### What is the conduction-band offset?

::: misses
- [any] $f\Delta E_g$.
:::
:::

::: part
answer: (1 - f)*1.247*x
unit: eV
tolerance: 0.5%

### And the valence-band offset?

::: misses
- [any] The rest of the gap difference.
:::
:::
:::

::: check
kind: parts
given: L = 5 | 8 | 15; m = 0.067 | 0.1; n = 1 | 2 | 3

## An infinite well {L} nm wide holds carriers of effective mass {m} m₀.

::: part
answer: n^2*(1.0546e-34)^2*pi^2/(2*m*9.109e-31*(L*1e-9)^2)/1.602e-19*1000
unit: meV
tolerance: 0.5%

### Where is level {n}?

::: misses
- [any] $n^2\hbar^2\pi^2/(2m^*L^2)$.
:::
:::

::: part
answer: 1240/(1424 + (1.0546e-34)^2*pi^2/(2*m*9.109e-31*(L*1e-9)^2)/1.602e-19*1000)
unit: µm
tolerance: 0.5%

### If the ground state's confinement energy were added to GaAs's 1.424 eV gap (ignoring the holes'), what wavelength would it emit?

::: misses
- [any] 1.24/(gap + E₁) µm.
:::
:::
:::

::: check
kind: parts
given: x = 0.1 | 0.2 | 0.3

## $\text{In}_x\text{Ga}_{1-x}\text{As}$ is grown on GaAs, with $a_{InAs}$ = 6.058 Å and $a_{GaAs}$ = 5.653 Å.

::: part
answer: 5.653 + x*0.405
unit: Å
tolerance: 0.01%

### What is its natural lattice constant?

::: misses
- [any] Vegard: linear in x.
:::
:::

::: part
answer: x*0.405/5.653*100
unit: %
tolerance: 0.5%

### How mismatched is it?

::: misses
- [any] Difference ÷ substrate.
:::
:::
:::

::: check
kind: parts
given: c1 = 4.07 | 4.05; c2 = 3.74 | 3.5; g1 = 1.424 | 1.12; g2 = 1.8 | 2.2

## Material 1 has electron affinity {c1} eV and gap {g1} eV; material 2 has {c2} eV and {g2} eV. Use Anderson's rule.

::: part
answer: c1 - c2
unit: eV
tolerance: 0.5%

### What is the conduction-band offset?

::: misses
- [any] $\chi_1 - \chi_2$.
:::
:::

::: part
answer: (g2 - g1) - (c1 - c2)
unit: eV
tolerance: 0.5%

### What is the valence-band offset?

::: misses
- [any] $\Delta E_g - \Delta E_c$.
:::
:::
:::

::: check
kind: match

## Match each heterostructure to what its band alignment does.

- AlGaAs/GaAs/AlGaAs quantum well :: traps electrons and holes together, for light emission
- n-AlGaAs on undoped GaAs :: collects electrons in a sheet at the interface, away from their donors
- Wide-gap emitter on a narrow-gap base :: blocks holes from flowing back into the emitter
- [extra] Two identical crystals with different doping

::: misses
- [any] Type I wells trap both carriers; modulation doping separates electrons from donors; the HBT's emitter blocks holes.
:::
:::

::: check
kind: derivation
vars: m = 1e-32..1e-30, L = 2e-9..3e-8, n = 1..4

## A carrier of mass m sits in an infinite well of width L. Use $\hbar$ = 1.0546 × 10⁻³⁴.

::: step
answer: (1.0546e-34)^2*pi^2/(2*m*L^2)

### What is the ground-state energy?
:::

::: step
answer: n^2*(1.0546e-34)^2*pi^2/(2*m*L^2)

### What is level n?
:::

::: step
answer: 3*(1.0546e-34)^2*pi^2/(2*m*L^2)

### How far apart are levels 1 and 2?
:::

::: right
Right. Levels spread as $n^2$ and as $1/L^2$, so thin wells push states apart and up.
:::
:::

::: check
kind: python

## Write `well_levels(L_nm, m_eff, V0, nmax=5)`: the bound even-and-odd state energies (eV) of a finite well of width L (nm) and depth V0 (eV), same mass inside and out. Solve $k\tan(kL/2) = K$ (even) and $-k\cot(kL/2) = K$ (odd), with $k = \sqrt{2mE}/\hbar$ and $K = \sqrt{2m(V_0 - E)}/\hbar$, by bisection between the asymptotes; return the sorted list of up to nmax levels.

```python starter
import math

def well_levels(L_nm, m_eff, V0, nmax=5):
    return []
```

```python solution
import math

HBAR, M0, Q = 1.0546e-34, 9.109e-31, 1.602e-19

def well_levels(L_nm, m_eff, V0, nmax=5):
    m, L, V = m_eff * M0, L_nm * 1e-9, V0 * Q
    k_of = lambda E: math.sqrt(2 * m * E) / HBAR
    K_of = lambda E: math.sqrt(2 * m * (V - E)) / HBAR
    levels = []
    j = 0
    while True:
        lo_k, hi_k = j * math.pi / L, (j + 1) * math.pi / L
        lo_E = (HBAR * lo_k) ** 2 / (2 * m) * (1 + 1e-12) + 1e-30
        hi_E = min((HBAR * hi_k) ** 2 / (2 * m) * (1 - 1e-12), V * (1 - 1e-12))
        if lo_E >= V:
            break
        even = j % 2 == 0
        def f(E):
            k, K = k_of(E), K_of(E)
            return k * math.tan(k * L / 2) - K if even else -k / math.tan(k * L / 2) - K
        if f(lo_E) < 0 < f(hi_E):
            a, b = lo_E, hi_E
            for _ in range(200):
                mid = (a + b) / 2
                if f(mid) > 0:
                    b = mid
                else:
                    a = mid
            levels.append(mid / Q)
        j += 1
        if len(levels) >= nmax:
            break
    return sorted(levels)[:nmax]
```

```python tests
lv = well_levels(10, 0.067, 0.243)
assert abs(lv[0] - 0.0325) < 5e-4, "Ground state of the 10 nm GaAs well: about 33 meV."
assert len(lv) == 3, "A 0.243 eV barrier holds three levels."
inf1 = (1.0546e-34 * math.pi / 10e-9) ** 2 / (2 * 0.067 * 9.109e-31) / 1.602e-19
assert lv[0] < inf1, "Finite walls lower the level below the infinite-well value."
assert abs(well_levels(10, 0.067, 100)[0] - inf1) / inf1 < 0.05, "A very deep well approaches the infinite one (within a few percent: the wave still leaks a little)."
```

::: right
Right. Bisecting between the tangent's asymptotes finds each state in turn, and the count tells you how many the barrier can hold.
:::
:::

::: explain
## Why does a heterojunction bipolar transistor allow a heavily doped base without losing current gain?

::: model
A transistor's gain is set by how many electrons the emitter injects into the base for each hole the base injects back into the emitter. In a homojunction that ratio is roughly the emitter doping over the base doping, so a heavily doped, low-resistance base ruins the gain. In an HBT the emitter has a wider bandgap, and most of the extra gap appears as a step in the valence band that holes must climb to get into the emitter. That step suppresses back-injection by a factor of $e^{\Delta E_v/kT}$, so the base can be doped far more heavily than the emitter and the gain stays high, while the low base resistance and thin base make the transistor much faster.
:::
:::

::: practice
::: check
given: x = 0.1 | 0.15 | 0.2 | 0.25 | 0.3 | 0.35 | 0.4
answer: 0.65*1.247*x
unit: eV
tolerance: 0.5%

## Conduction offset of Al{x}GaAs on GaAs (65% split)?

::: misses
- [any] $0.65 \times 1.247x$.
:::
:::

::: check
given: L = 6 | 12; n = 1 | 2
answer: n^2*(1.0546e-34)^2*pi^2/(2*0.067*9.109e-31*(L*1e-9)^2)/1.602e-19*1000
unit: meV
tolerance: 0.5%

## Level {n} of an infinite {L} nm GaAs well?

::: misses
- [any] $n^2\hbar^2\pi^2/(2m^*L^2)$.
:::
:::

::: check
given: x = 0.05 | 0.1 | 0.15 | 0.2 | 0.25 | 0.3
answer: x*0.405/5.653*100
unit: %
tolerance: 0.5%

## Mismatch of In{x}GaAs on GaAs?

::: misses
- [any] Vegard's law.
:::
:::
:::
