Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.5
Unit 9. The Mathematics of Quantum Mechanics
The state of a particle that moves along a line is a function ψ(x), and not a column of numbers. This topic shows that functions are vectors. Functions can be added and multiplied by numbers, they have an inner product, and they have orthonormal bases. The sums of the earlier units become integrals.
You need Topics 4.1, 6.2, 8.2, and 9.1 for this topic. The topic uses integrals from basic calculus.
Two functions on the same interval are added by adding their values at each point, and a function is multiplied by a number by multiplying each of its values.
(f + g)(x) = f(x) + g(x) (cf)(x) = c f(x)These two operations follow all of the rules of Topic 4.1, so the functions on an interval form a vector space. The zero vector is the function that is 0 at each point. The functions in this topic can have complex values.
Choose n points x₁, x₂, …, xₙ in the interval, with the same distance Δx between neighbors. The values of a function at these points form a column with n entries.
f becomes (f(x₁), f(x₂), …, f(xₙ))A larger n gives a better description of the function. In the limit, the function is a vector with one component for each point x. The index i of a column has become the continuous variable x, and the component vi has become the value f(x).
The dot product of two such columns is the sum of the products f(xi)g(xi). This sum grows with n. Multiplying it by Δx gives a sum that approaches an integral.
f(x₁)g(x₁)Δx + f(x₂)g(x₂)Δx + … + f(xₙ)g(xₙ)Δx approaches ∫ f(x)g(x) dxThe inner product of two functions on the interval from a to b is an integral. As in Topic 8.2, the first function is conjugated.
⟨f|g⟩ = ∫ab f(x)* g(x) dxThis inner product has the properties of the bracket of Topic 9.1: ⟨g|f⟩ = ⟨f|g⟩*, and ⟨f|f⟩ is the integral of |f(x)|², which is not negative. The length of a function is √⟨f|f⟩. Two functions are orthogonal when ⟨f|g⟩ = 0.
| Functions | Integral | Result |
|---|---|---|
| f(x) = 1 and g(x) = x | ∫ x dx | ⟨f|g⟩ = 1/2 |
| g(x) = x with itself | ∫ x² dx | ⟨g|g⟩ = 1/3, so the length of g is 1/√3 |
| f(x) = 1 and h(x) = x − 1/2 | ∫ (x − 1/2) dx | ⟨f|h⟩ = 1/2 − 1/2 = 0, so f and h are orthogonal |
Orthogonal functions do not meet at a right angle in a drawing. The word means only that the inner product is zero. In the third example, the positive part and the negative part of the product cancel in the integral.
On the interval from 0 to L, the sine functions that are zero at both ends are orthogonal to each other. With the factor √2/L, each one has the length 1.
φₙ(x) = √2/L sin(nπx/L) for n = 1, 2, 3, … ⟨φm|φn⟩ = δmnThe length follows from the fact that the average of sin² over a whole number of half waves is 1/2, so the integral of sin²(nπx/L) from 0 to L is L/2. For two different indexes, the product of the two sines is a difference of two cosines, and each cosine has the integral 0 over the interval.
This set has one function for each positive whole number, so it has infinitely many members. A space of functions has infinite dimension.
From Topics 6.2 and 9.1, the component of a vector along a vector of an orthonormal basis is an inner product. The same formula holds for functions.
f(x) = c₁φ₁(x) + c₂φ₂(x) + c₃φ₃(x) + … with cₙ = ⟨φₙ|f⟩ = ∫ φₙ(x)* f(x) dxWith the sine functions of Part 4, this sum is called the Fourier sine series of f. The sine functions are a basis for the functions on the interval that are zero at both ends: the sum approaches f as more terms are included.
Let L = 1 and f(x) = x(1 − x). Two integrations by parts give
cₙ = √2 ∫ x(1 − x) sin(nπx) dx = 4√2/(nπ)³ for odd n, and cₙ = 0 for even nThe first three coefficients that are not zero are c₁ = 0.1825, c₃ = 0.0068, and c₅ = 0.0015. The first term alone, c₁φ₁(x) = (8/π³) sin(πx), has the value 0.2580 at x = 1/2, where f is 0.25.
The sum of the first N terms is the projection of f onto the subspace that the first N basis functions span. From Topic 6.1, the projection is the closest vector of the subspace. So a Fourier sum with N terms is the best approximation of f that these N sines can make, measured with the length of this topic. This is the least squares idea of Topic 6.4.
The squared length is the sum of the squared components, as for columns. For this example, ⟨f|f⟩ = 1/30, and the squared coefficients add up to the same number.
⟨f|f⟩ = |c₁|² + |c₂|² + |c₃|² + …Try it: a sum of sine functions
The purple curve is a function f on the interval from 0 to 1. The green curve is the sum of the first N terms of its Fourier sine series. The menu chooses the function, and the slider sets N.
The Gram-Schmidt process of Topic 6.2 works for functions without any change, because it uses only inner products. Start with the functions 1, x, and x² on the interval from −1 to 1.
The functions 1, x, and x² − 1/3 are orthogonal on this interval. Apart from constant factors, they are the first three Legendre polynomials, which appear in the quantum mechanics of atoms.
The state of a particle on a line is a function ψ(x) with complex values. It is called the wave function. The rules of Topic 9.3 apply with integrals in the place of sums.
| For a column | For a wave function |
|---|---|
| The state has the length 1: the sum of |ci|² is 1 | ∫ |ψ(x)|² dx = 1 |
| |ci|² is the probability of the result i | |ψ(x)|² dx is the probability of finding the particle between x and x + dx |
| The probability of a set of results is a sum | The probability of finding the particle between a and b is ∫ab |ψ(x)|² dx |
The function |ψ(x)|² is called a probability density. A wave function that satisfies the first row is called normalized. The functions whose squared length is a finite number form the state space of the particle. It is a vector space of infinite dimension with an inner product, and it is called a Hilbert space.
For a particle between two walls at 0 and L, the function φ₁(x) = √2/L sin(πx/L) is a normalized wave function. The probability of finding the particle in the middle half of the interval is
∫ 2/L sin²(πx/L) dx from L/4 to 3L/4 = 1/2 + 1/π = 0.818The particle is found in the middle half in about 82 percent of the measurements, although the middle half is only 50 percent of the interval.
| Idea | Statement |
|---|---|
| Vector | A function f(x), with one component for each point x |
| Inner product | ⟨f|g⟩ = ∫ f(x)* g(x) dx over the interval |
| Orthonormal sines | φₙ(x) = √2/L sin(nπx/L) on the interval from 0 to L |
| Component | cₙ = ⟨φₙ|f⟩ |
| Squared length | ⟨f|f⟩ = |c₁|² + |c₂|² + … |
| Wave function | ∫ |ψ(x)|² dx = 1, and |ψ(x)|² is the probability density |
Work each problem on paper first. Then open the answer to check your work.
⟨f|g⟩ = ∫ x³ dx = 1/4.
|f(x)|² = e−ixeix = 1 at each point, so ⟨f|f⟩ = 2π.
The length is √2π.
The first function is conjugated.
⟨f|g⟩ = ∫ e−ixe2ix dx = ∫ eix dxadd the exponents⟨f|g⟩ = (e2πi − 1)/i = 0because e2πi = 1
⟨ψ|ψ⟩ = 1/3the integral of x² from 0 to 1ψ(x) = √3 xthe normalized wave functionprobability = ∫ 3x² dx = 1/2³ = 1/8the integral from 0 to 1/2
c₁ = √2 ∫ sin(πx) dxthe inner product with the first basis functionc₁ = √2 2/π = 2√2/π ≈ 0.900
⟨1|x⟩ = 1/2⟨1|1⟩ = 1orthogonal function = x − 1/2subtract the projection onto 1squared length = ∫ (x − 1/2)² dx = 1/12function with the length 1 = √12 (x − 1/2)
Python stores a function as its values at many points, as in Part 2. The first line below divides the interval from 0 to 1 into 1000 equal pieces and places one point in the middle of each piece. The distance between two neighboring points is dx. An inner product is then a sum of products, multiplied by dx. The code calculates ⟨f|g⟩ for f(x) = x and g(x) = x².
Python
The result is 0.25 to six decimal places, as in Practice Problem 1. Now calculate the inner product of the function 1 and the function x − 1/2 of Part 3. The function that is 1 at each point is typed as np.ones(1000). The result should be 0.
Python
For complex functions, the first function is conjugated with np.conj. The code below uses the interval from 0 to 2π and calculates the inner product of eix and e2ix.
Python
The result is 0, so the two functions are orthogonal, as in Practice Problem 3. Now calculate ⟨f|f⟩, the squared length of the first function. The result should be 2π, which is about 6.2832.
Python
The code below builds the first two sine functions of Part 4 for L = 1 and calculates three inner products.
Python
Each function has the squared length 1, and the inner product of the two functions is 0. The function p3 in the next box should be the third sine function, but its factor √2 is missing. Correct it, so that its squared length n3 is 1.
Python
The loop below builds the sum of the first N terms of the Fourier sine series of f(x) = x(1 − x). For each n it builds the sine function, calculates the coefficient c as an inner product, and adds c times the sine function to the sum. The last line prints the largest distance between the sum and the function f.
Python
With one term, the largest distance is about 0.011. Now change N to 9. The largest distance should be less than 0.001.
Python
The code below builds the wave function φ₁ of Part 7 for L = 1. The probability of finding the particle in a part of the interval is the sum of |ψ|² dx over the points of that part. The expression psi[250:750] takes the values at the points number 250 to 749, which are the points between x = 0.25 and x = 0.75.
Python
The first result is 1, so the wave function is normalized. The probability of the middle half is 0.818, as in Part 7. Now calculate the probability of finding the particle in the left quarter, between x = 0 and x = 0.25. The result should be about 0.0908.
Python
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. On the interval from 0 to 1, find the inner product ⟨f|g⟩ of f(x) = x and g(x) = x.
The inner product is the integral of x² from 0 to 1, which is 1/3.
2. When are two functions f and g orthogonal on an interval?
Orthogonal means that the inner product is zero, and the inner product of two functions is the integral of f(x)* g(x) over the interval.
3. The wave function ψ(x) = Nx on the interval from 0 to 1 is normalized, and N is positive. Find N.
∫ N²x² dx = N²/3the integral from 0 to 1N²/3 = 1the wave function has the length 1N = √3
4. φ₁, φ₂, … is an orthonormal basis of functions. Which expression is the component of a function f along φₙ?
The component along a vector of an orthonormal basis is the inner product with the basis vector in the first place: cₙ = ⟨φₙ|f⟩, which is the integral of φₙ(x)* f(x).
5. A particle has the wave function ψ(x) = √2 sin(πx) on the interval from 0 to 1. Find the probability of finding it between x = 0 and x = 1/2.
The probability density 2 sin²(πx) is symmetric about x = 1/2, and its integral over the whole interval is 1. So one half of the probability lies in the left half.