Skip to content

The transfer matrix method is a compact way to solve one-dimensional scattering problems made from constant-potential regions. Instead of writing a large system of matching equations from scratch, one stores right-moving and left-moving amplitudes in a vector and multiplies matrices for interfaces and propagation through layers.

This page gives a practical wave-mechanics convention. Full scattering theory introduces related SS-matrix and Green-function methods, but the transfer matrix is often the quickest way to handle finite stacks of steps, wells, and barriers.

Helpful background. Potential Step to match open and evanescent scattering channels.

In a region where the potential is constant,

V(x)=Vj,V(x)=V_j,

the stationary Schrödinger equation has plane-wave solutions when E>VjE\gt V_j:

ψj(x)=Ajeikjx+Bje−ikjx,kj=2m(E−Vj)ℏ.\psi_j(x) = A_je^{ik_jx} + B_je^{-ik_jx}, \qquad k_j=\frac{\sqrt{2m(E-V_j)}}{\hbar}.

The amplitude vector is

vj=(AjBj).\mathbf v_j = \begin{pmatrix} A_j\\ B_j \end{pmatrix}.

Here AjA_j multiplies the right-moving component and BjB_j multiplies the left-moving component. For matrix composition, measure position from a local reference point x∗x_* in each region: ψ(x)=A(x∗)eikj(x−x∗)+B(x∗)e−ikj(x−x∗)\psi(x)=A(x_*)e^{ik_j(x-x_*)}+B(x_*)e^{-ik_j(x-x_*)}. Global coefficients are constant within a region; the local coefficients change when the reference point moves.

If E<VjE\lt V_j, then kj=iκjk_j=i\kappa_j with

κj=2m(Vj−E)ℏ.\kappa_j=\frac{\sqrt{2m(V_j-E)}}{\hbar}.

The same algebra works, but the two exponentials become growing and decaying evanescent terms. This is useful analytically and potentially dangerous numerically.

Across a constant-potential segment of length aa, the amplitudes acquire phases:

vj(x+a)=Pj(a)vj(x),\mathbf v_j(x+a) = P_j(a)\mathbf v_j(x),

where

Pj(a)=(eikja00e−ikja).P_j(a) = \begin{pmatrix} e^{ik_ja} & 0\\ 0 & e^{-ik_ja} \end{pmatrix}.

For an evanescent region with kj=iκjk_j=i\kappa_j,

Pj(a)=(e−κja00eκja).P_j(a) = \begin{pmatrix} e^{-\kappa_ja} & 0\\ 0 & e^{\kappa_ja} \end{pmatrix}.

The second entry grows with aa. That growth does not mean the physical wavefunction diverges; it means this amplitude basis is tracking a component that must cancel appropriately when matched to neighboring regions.

At a finite potential jump, both ψ\psi and dψ/dxd\psi/dx are continuous. Put the interface at x=0x=0, with wavenumber kLk_L on the left and kRk_R on the right. Then

ψL=AL+BL,ψR=AR+BR,\psi_L=A_L+B_L, \qquad \psi_R=A_R+B_R,

and

kL(AL−BL)=kR(AR−BR).k_L(A_L-B_L)=k_R(A_R-B_R).

Solving for the right-side amplitudes in terms of the left-side amplitudes gives

vR=IR←LvL,\mathbf v_R = I_{R\leftarrow L}\mathbf v_L,

with

IR←L=12(1+kLkR1−kLkR1−kLkR1+kLkR).I_{R\leftarrow L} = \frac12 \begin{pmatrix} 1+\frac{k_L}{k_R} & 1-\frac{k_L}{k_R}\\ 1-\frac{k_L}{k_R} & 1+\frac{k_L}{k_R} \end{pmatrix}.

The mass is constant throughout, and the interface has no delta term. At an exact threshold kR=0k_R=0, the traveling-wave basis becomes singular. Use the regular endpoint data (ψ,ψ′)(\psi,\psi^\prime) and the zero-wavenumber solutions 1,x1,x, or take a controlled limit.

For a stack of layers, multiply the matrices in the order encountered from left to right. For example, suppose the wave crosses an interface from region 00 to region 11, propagates across region 11 for length aa, and then crosses into region 22. With the convention above,

v2=I2←1P1(a)I1←0v0.\mathbf v_2 = I_{2\leftarrow1}P_1(a)I_{1\leftarrow0}\mathbf v_0.

The total transfer matrix is

M=I2←1P1(a)I1←0,v2=Mv0.M=I_{2\leftarrow1}P_1(a)I_{1\leftarrow0}, \qquad \mathbf v_2=M\mathbf v_0.

Longer stacks are handled by inserting more propagation and interface matrices.

For left incidence, set the incoming amplitude on the far left to 11:

vL=(1r).\mathbf v_L = \begin{pmatrix} 1\\ r \end{pmatrix}.

If there is no incoming wave from the far right, then on the far right

vR=(t0).\mathbf v_R = \begin{pmatrix} t\\ 0 \end{pmatrix}.

Let

vR=MvL,M=(M11M12M21M22).\mathbf v_R = M\mathbf v_L, \qquad M= \begin{pmatrix} M_{11} & M_{12}\\ M_{21} & M_{22} \end{pmatrix}.

Then

0=M21+M22r,0=M_{21}+M_{22}r,

so

r=−M21M22.r=-\frac{M_{21}}{M_{22}}.

The transmitted amplitude is

t=M11+M12r.t=M_{11}+M_{12}r.

Equivalently,

t=det⁡MM22.t=\frac{\det M}{M_{22}}.

If the left and right asymptotic wavenumbers differ, the transmission probability includes the velocity factor:

T=kRkL∣t∣2.T=\frac{k_R}{k_L}\lvert t\rvert^2.

Here kL,kRk_L,k_R must be positive real open-channel wavenumbers. The transmitted coefficient is referenced to the right endpoint: if that point is at x=dx=d and the left reference is zero, the global convention ψ=tglobaleikRx\psi=t_{\mathrm{global}}e^{ik_Rx} has tglobal=te−ikRdt_{\mathrm{global}}=t e^{-ik_Rd}. Keep this phase when comparing different derivations or packet delays.

Since det⁡IR←L=kL/kR\det I_{R\leftarrow L}=k_L/k_R and det⁡P=1\det P=1, a full stack has det⁡M=kL/kR\det M=k_L/k_R; equal exterior wavenumbers give determinant one.

The reflection probability is

R=∣r∣2R=\lvert r\rvert^2

for the standard one-channel left-incident setup.

For one interface, M=IR←LM=I_{R\leftarrow L}. The no-incoming-from-right condition gives

r=kL−kRkL+kR,r=\frac{k_L-k_R}{k_L+k_R},

and

t=2kLkL+kR.t=\frac{2k_L}{k_L+k_R}.

These are exactly the amplitudes found in the Potential Step calculation. The transfer matrix therefore reproduces the elementary result before being trusted on more complicated stacks.

For a double barrier, the total matrix has the schematic form

M=Iout←bPb(a)Ib←wPw(L)Iw←bPb(a)Ib←in,M= I_{\mathrm{out}\leftarrow b} P_b(a) I_{b\leftarrow w} P_w(L) I_{w\leftarrow b} P_b(a) I_{b\leftarrow \mathrm{in}},

where bb denotes barrier regions and ww denotes the intermediate well region. The transmission probability can show sharp peaks when the phase accumulated in the well makes multiple reflected amplitudes interfere constructively. This is the transfer-matrix route to Resonant Transmission.

Transfer matrices can be poorly conditioned for thick barriers or long stacks. Evanescent propagation contains factors such as

eκa,e^{\kappa a},

which may become enormous even when the physical transmission is tiny. Multiplying many such matrices can produce overflow, underflow, or severe cancellation.

For robust numerical work, one often uses:

  • scattering matrices instead of transfer matrices;
  • logarithmic derivatives;
  • stable recursive algorithms;
  • rescaling after each layer;
  • arbitrary-precision arithmetic only after the formulation is checked.

A stable result should be checked against current conservation when the potential is real and the scattering is one-channel:

R+T=1.R+T=1.

Failure of this check can signal physical absorption, but in a nominally conservative calculation it usually signals a numerical or convention error. Passing it does not certify the relative accuracy of a tiny TT: replacing T=10−17T=10^{-17} by zero is invisible to a conservation test with an absolute tolerance of 10−1210^{-12}. Compare TT, or log⁡T\log T for very opaque barriers, with a stable formulation and with increased precision.

Use the known analytic determinant det⁡M=kL/kR\det M=k_L/k_R when extracting tt; computing it by subtracting products of large entries introduces avoidable cancellation. This helps for a single barrier but does not make arbitrary long transfer-matrix products stable. Scattering-matrix composition instead joins the incoming and outgoing amplitudes of smaller pieces. Yin and Tao (2008) discuss the growing evanescent factors and stabilized alternatives. Exercise 3 makes the loss of transmission explicit; Conditioning and Stability explains why a small residual alone is insufficient.

  • Multiplying matrices in the wrong order.
  • Mixing amplitude conventions from different texts.
  • Forgetting the velocity factor in TT when asymptotic wavenumbers differ.
  • Treating evanescent growth in the transfer basis as a physical divergence.
  • Trusting raw transfer-matrix multiplication through very opaque barriers.
  • Comparing R+TR+T before checking whether the model includes absorption or extra channels.
  1. Derive the interface matrix IR←LI_{R\leftarrow L} from continuity of ψ\psi and dψ/dxd\psi/dx at x=0x=0.
Solution

Continuity gives

AR+BR=AL+BL,A_R+B_R=A_L+B_L,

and derivative continuity gives

kR(AR−BR)=kL(AL−BL).k_R(A_R-B_R)=k_L(A_L-B_L).

Thus

AR+BR=AL+BL,AR−BR=kLkR(AL−BL).A_R+B_R=A_L+B_L, \qquad A_R-B_R=\frac{k_L}{k_R}(A_L-B_L).

Adding and subtracting these equations yields

AR=12[(1+kLkR)AL+(1−kLkR)BL],A_R = \frac12 \left[ \left(1+\frac{k_L}{k_R}\right)A_L + \left(1-\frac{k_L}{k_R}\right)B_L \right],

and

BR=12[(1−kLkR)AL+(1+kLkR)BL].B_R = \frac12 \left[ \left(1-\frac{k_L}{k_R}\right)A_L + \left(1+\frac{k_L}{k_R}\right)B_L \right].

This is exactly the stated matrix.

  1. Use the single-step transfer matrix to recover r=(kL−kR)/(kL+kR)r=(k_L-k_R)/(k_L+k_R).
Solution

For left incidence,

vL=(1r),vR=(t0).\mathbf v_L= \begin{pmatrix} 1\\ r \end{pmatrix}, \qquad \mathbf v_R= \begin{pmatrix} t\\ 0 \end{pmatrix}.

The lower component of vR=IR←LvL\mathbf v_R=I_{R\leftarrow L}\mathbf v_L gives

0=12[(1−kLkR)+(1+kLkR)r].0= \frac12 \left[ \left(1-\frac{k_L}{k_R}\right) + \left(1+\frac{k_L}{k_R}\right)r \right].

Solving,

r=kL−kRkL+kR.r = \frac{k_L-k_R}{k_L+k_R}.
  1. Consider one rectangular barrier with equal exterior potentials, E=V0/2E=V_0/2, and s=κa>0s=\kappa a>0. Then the exterior wavenumber is k=κk=\kappa. Derive its transfer matrix in the local endpoint convention, find RR and TT, and explain how an opaque barrier can pass R+T=1R+T=1 numerically while its computed transmission is completely wrong. Give a formula for log⁡T\log T that avoids growing exponentials.
Solution

Multiplying the two interface matrices and the intervening propagation matrix gives

M=(cosh⁡s−isinh⁡sisinh⁡scosh⁡s),det⁡M=1.M= \begin{pmatrix} \cosh s&-i\sinh s\\ i\sinh s&\cosh s \end{pmatrix}, \qquad \det M=1.

Thus

r=−itanh⁡s,t=sech⁡s,R=tanh⁡2s,T=sech⁡2s.r=-i\tanh s, \qquad t=\operatorname{sech}s, \qquad R=\tanh^2s, \qquad T=\operatorname{sech}^2s.

The global transmitted coefficient is tglobal=e−ikasech⁡st_{\mathrm{global}}=e^{-ika}\operatorname{sech}s; the endpoint phase does not affect TT. Both evanescent components remain necessary inside the finite barrier.

The matrix is Hermitian and positive, with eigenvalues es,e−se^s,e^{-s}. Its Euclidean condition number is therefore e2se^{2s}. At s=20s=20, it is about 2.35×10172.35\times10^{17}, while the exact transmission is

T=sech⁡220≈1.69934×10−17.T=\operatorname{sech}^2 20\approx1.69934\times10^{-17}.

In double precision, cosh⁡s\cosh s and sinh⁡s\sinh s can round to the same value. Evaluating det⁡M=cosh⁡2s−sinh⁡2s\det M=\cosh^2s-\sinh^2s then gives zero, so the determinant formula returns t=0t=0. Yet RR rounds to one, and the computed R+TR+T is also one. The transmission has a 100%100\% relative error despite this perfect conservation residual.

For this barrier, using the exact determinant gives t=1/M22t=1/M_{22}. An expression that also avoids overflow in cosh⁡s\cosh s is

log⁡T=2log⁡2−2s−2log⁡(1+e−2s).\log T=2\log2-2s-2\log(1+e^{-2s}).

Evaluate the last term with a numerical log1p⁡\operatorname{log1p} function when available. The logarithm remains useful even when TT itself is too small to represent. The exponential ill conditioning of the transfer representation does not prevent this directly evaluated transmission from being accurate.

  • D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed., Cambridge University Press, 2018.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  • J. R. Taylor, Scattering Theory: The Quantum Theory of Nonrelativistic Collisions, Dover, 2006.
  • P. Yeh, Optical Waves in Layered Media, Wiley, 1988.
  • H. Yin and R. Tao, “Improved transfer matrix method without numerical instability,” EPL 84, 57006 (2008), doi:10.1209/0295-5075/84/57006, arXiv:0709.3681.