Scientia sine finibus

Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.7

Units and Topics

Unit 9. The Mathematics of Quantum Mechanics

9.7 Continuous Bases and the Fourier Transform

A basis of Cⁿ has n kets, and the sine functions of Topic 9.5 are a basis with one function for each whole number. Position and momentum need a basis with one ket for each real number. This topic introduces these continuous bases, the delta function that takes the place of the Kronecker delta, and the Fourier transform, which is the change of basis from position to momentum.

You need Topics 4.6, 8.4, 9.2, 9.5, and 9.6 for this topic.

1. The Position Basis

Topic 9.5 described a function as a vector with one component for each point x. Dirac notation makes this exact. For each real number x there is a ket |x⟩, which stands for a particle that is exactly at the point x. The wave function is the list of the components of the state |ψ⟩ along these kets.

ψ(x) = ⟨x|ψ⟩

The kets |x⟩ form a basis with a continuous label. The rules for a basis keep their form, with an integral in the place of each sum.

Basis with a whole number labelBasis with a continuous label
Component ci = ⟨i|ψ⟩Wave function ψ(x) = ⟨x|ψ⟩
Σi |i⟩⟨i| = I∫ |x⟩⟨x| dx = I
⟨i|j⟩ = δij⟨x|y⟩ = δ(x − y)
|ci|² is a probability|ψ(x)|² is a probability density

Inserting the identity of the second row into a bracket gives the inner product of Topic 9.5.

⟨φ|ψ⟩ = ∫ ⟨φ|x⟩⟨x|ψ⟩ dxinsert the identity ∫ |x⟩⟨x| dx⟨φ|ψ⟩ = ∫ φ(x)* ψ(x) dxthe brackets are the wave functions

The third row contains a new object, δ(x − y). Part 2 explains it.

2. The Delta Function

Insert the identity into the wave function itself, with the name y for the variable of the integral.

ψ(x) = ⟨x|ψ⟩the wave functionψ(x) = ∫ ⟨x|y⟩ ⟨y|ψ⟩ dyinsert the identity ∫ |y⟩⟨y| dyψ(x) = ∫ ⟨x|y⟩ ψ(y) dythe bracket ⟨y|ψ⟩ is ψ(y)

The bracket ⟨x|y⟩ must select the single value ψ(x) from the integral over all values ψ(y). This is the defining property of the delta function of Dirac.

∫ δ(x − a) f(x) dx = f(a)

The delta function δ(x − a) is zero at each point except x = a, and its integral is 1. No ordinary function has both properties. The delta function is the limit of a sequence of bumps around the point a that become narrower and taller while the area under each bump stays 1. In an integral with a function f, such a bump selects the value of f near a.

For example:

∫ δ(x − 2)(x² + 1) dx = 2² + 1the delta function selects the value at x = 2= 5

The delta function answers the question of Topic 9.6 about the eigenfunctions of X. The wave function of the ket |a⟩ is ⟨x|a⟩ = δ(x − a), and x δ(x − a) = a δ(x − a), so X|a⟩ = a|a⟩. The kets |x⟩ are the eigenkets of the position operator.

The bracket ⟨x|x⟩ = δ(0) is not a finite number, so a ket |x⟩ cannot be given the length 1. It is not a possible state of a particle. The kets |x⟩ are a tool for calculations: each possible state is an integral of them, weighted with a wave function.

3. The Momentum Basis

Topic 9.6 found the eigenfunctions of the momentum operator: eikx has the momentum ħk. This topic labels the momentum eigenkets with the number k, which is called the wave number, so that ħ does not appear in the formulas. With the factor 1/√2π, these kets satisfy the same rules as the position kets.

⟨x|k⟩ = eikx/√2π ⟨k|q⟩ = δ(k − q) ∫ |k⟩⟨k| dk = I

The absolute value of eikx is 1 at each point x. A particle with an exact momentum has the same probability density at each point of the line, so its position is completely unknown. Like |x⟩, the ket |k⟩ cannot be given the length 1.

4. The Fourier Transform

The components of a state along the momentum kets form a second wave function, c(k) = ⟨k|ψ⟩. It has one value for each wave number k, as the components ci = ⟨i|ψ⟩ have one value for each index i. Inserting the identity of the position basis gives it from ψ(x). The bracket ⟨k|x⟩ is the conjugate of ⟨x|k⟩.

c(k) = ⟨k|ψ⟩the component along the momentum ketc(k) = ∫ ⟨k|x⟩⟨x|ψ⟩ dxinsert the identity of the position basisc(k) = 1/√2π ∫ e−ikx ψ(x) dxwith ⟨k|x⟩ = e−ikx/√2π

This integral is called the Fourier transform of ψ. Inserting the identity of the momentum basis into ⟨x|ψ⟩ gives the way back.

ψ(x) = 1/√2π ∫ eikx c(k) dk

The second formula writes the wave function as a combination of the waves eikx, with the weight c(k) for the wave number k. The Fourier transform is a change of basis, as in Topics 4.6 and 9.2. The numbers ⟨k|x⟩ are the entries of its matrix, with continuous labels for the rows and the columns.

PropertyStatement
The length is kept∫ |c(k)|² dk = ∫ |ψ(x)|² dx, so the transform is unitary
Probability of a momentum|c(k)|² is the probability density of the wave number k, which means the momentum ħk
DerivativeThe transform of dψ/dx is ik c(k)
Momentum operatorP = −iħ d/dx becomes multiplication by ħk

The last two rows follow from the derivative of eikx, which is ik eikx. In the position basis, X multiplies by x and P is a derivative. In the momentum basis, P multiplies by ħk. Each of the two operators is diagonal in the basis of its own eigenkets. No basis makes both diagonal, because they do not commute.

5. A Gaussian Wave Function

The Gaussian function below is normalized. Its probability density |ψ(x)|² is the bell curve of statistics with the standard deviation σ, so the spread of the position is Δx = σ.

ψ(x) = (2πσ²)−1/4 e−x²/(4σ²)

Its Fourier transform is again a Gaussian function.

c(k) = (2σ²/π)1/4 e−σ²k²

The density |c(k)|² is a bell curve with the standard deviation 1/(2σ), so the spread of the wave number is Δk = 1/(2σ).

Δx Δk = 1/2 and Δx Δp = ħ/2

A narrow wave function in position is a wide wave function in momentum, and a wide one in position is narrow in momentum. The product of the two spreads does not depend on σ. Topic 9.10 proves that no wave function has a smaller product.

Multiplying ψ(x) by eiqx moves the transform from k = 0 to k = q without changing its shape. The probability density |ψ(x)|² stays the same, and the average momentum becomes ħq.

Try it: a wave function in position and in momentum

The left graph shows the probability density |ψ(x)|² of the Gaussian wave function of Part 5, multiplied by eiqx. The right graph shows the probability density |c(k)|² of its Fourier transform. The sliders set σ and q. The shaded bands show one spread on each side of the average.

6. The Discrete Fourier Transform

On a grid of N points, the Fourier transform becomes an N by N matrix F. Its entry in row j and column k, with the rows and columns counted from 0, is

Fjk = e−2πijk/N/√N

Each entry is a number on the unit circle of Topic 8.1, divided by √N. The columns of F are orthonormal, so F is a unitary matrix, and it keeps the length of each vector. For N = 2 the matrix is

F = 1/√2 111−1

Its columns are the kets |+⟩ and |−⟩. Computers calculate the product of F with a vector by a method called the fast Fourier transform, which is used in the processing of sound and images.

Common Mistakes

  • Treating δ(x − a) as an ordinary function with a value at x = a. It has a meaning only inside an integral.
  • Treating |x⟩ or |k⟩ as a possible state of a particle. These kets cannot be given the length 1.
  • Leaving out the minus sign in the exponent of the Fourier transform. The transform contains e−ikx, the conjugate of eikx.
  • Confusing the wave number k with the momentum. The momentum is ħk.
  • Expecting a wave function that is narrow in position and narrow in momentum.

Summary

IdeaStatement
Wave functionψ(x) = ⟨x|ψ⟩
Completeness∫ |x⟩⟨x| dx = I and ∫ |k⟩⟨k| dk = I
Delta function∫ δ(x − a) f(x) dx = f(a), and ⟨x|y⟩ = δ(x − y)
Momentum eigenket⟨x|k⟩ = eikx/√2π, with the momentum ħk
Fourier transformc(k) = ⟨k|ψ⟩ = (1/√2π) ∫ e−ikx ψ(x) dx, a unitary change of basis
Gaussian wave functionΔx = σ and Δk = 1/(2σ), so Δx Δk = 1/2

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Calculate ∫ δ(x − 3)(2x + 1) dx.

The delta function selects the value at x = 3: 2(3) + 1 = 7.

2. Calculate ∫ δ(x − π) eix dx.

The value of eix at x = π is eiπ = −1.

3. A particle is in the momentum eigenket with k = 2. Write its wave function, and find its probability density.

ψ(x) = ⟨x|k⟩ = e2ix/√2π.

The probability density is |ψ(x)|² = 1/(2π), the same number at each point.

4. A Gaussian wave function has the spread Δx = 0.10 nanometers. Find Δk and Δp.

Δk = 1/2Δx = 5.0 per nanometerwhich is 5.0 × 10⁹ per meterΔp = ħΔk = (1.055 × 10⁻³⁴)(5.0 × 10⁹)multiply by ħΔp = 5.3 × 10⁻²⁵ kg m/s

5. The Fourier transform of ψ(x) is c(k). Find the Fourier transform of the second derivative of ψ.

Each derivative multiplies the transform by ik.

The transform of the second derivative is (ik)² c(k) = −k² c(k).

6. Check that the matrix F for N = 2 is unitary.

F is real and symmetric, so F† = F.

F†F = 1/2 111−1 111−1the two factors 1/√2 give 1/2F†F = 1/2 2002 = I

Python Practice

Step 1. A narrow bump as a delta function

The code below places 20001 points on the interval from −5 to 5 and builds a narrow bump around the point a = 2. The bump is a bell curve with the width 0.01 and the area 1. The code prints the area of the bump, and then the integral of the bump times the function x² + 1.

Python

The area is 1, and the integral is 5.0001. The bump selects the value of x² + 1 at the point 2, which is 5, as the delta function of Part 2 does. Now move the bump to the point a = 3. The integral should be close to 10.

Python

Step 2. A Fourier transform as a sum

The code below builds the Gaussian wave function of Part 5 with σ = 1 and calculates its Fourier transform at the wave number k = 0.5. The integral of Part 4 becomes a sum over the grid points. The last line prints the value of the formula of Part 5.

Python

Both results are 0.695659. The sum gives a complex number with the imaginary part 0. Now change the wave number to k = 1. Both results should be 0.328606.

Python

Step 3. The two spreads

The code below calculates the Fourier transform at 401 wave numbers at once. The expression np.outer(ks, x) builds a table of all products kx, and the @ sign does the sum over x for each k. The code then calculates the spread of the position and the spread of the wave number. Both averages are 0, so each spread is the square root of the average of the square.

Python

The first result is 1: the Fourier transform has the same length as the wave function. The spreads are 1 and 0.5, and their product is 0.5. Now change σ to 0.5. The spreads should change to 0.5 and 1, and the product should stay 0.5.

Python

Step 4. The matrix of the discrete Fourier transform

The code below builds the matrix F of Part 6 for N = 8. The instruction np.arange(N) makes the list 0, 1, …, 7, and np.outer(j, j) builds the table of the products jk. The code tests whether F is unitary, and then compares the squared length of a vector with the squared length of its transform.

Python

The test gives True, and both squared lengths are 204. Now change N to 2 and print the matrix, to compare it with Part 6.

Python

Step 5. The fast Fourier transform

NumPy contains the fast Fourier transform as the instruction np.fft.fft. It leaves out the factor 1/√N, so the code below divides its result by √N. The result is the same as the product of the matrix F with the vector.

Python

The result is True. The matrix product needs about N² multiplications. The fast Fourier transform needs far fewer for a large N, which makes it practical for a sound recording with millions of values.

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Calculate the integral of δ(x − 2) x³ over the whole line.

2. What is the bracket ⟨x|ψ⟩ of a position ket with a state?

3. A Gaussian wave function has the spread Δx = 0.25 in position. Find the spread Δk of the wave number.

4. What kind of operation is the Fourier transform?

5. How does the momentum operator P act on the wave function in the momentum basis?

Next: Topic 9.8, Time Evolution