Chapter 5: Problem 13
Quantum uncertainty in the harmonic oscillator In units where all the constants are 1 , the wavefunction of the \(n\)th energy level of the one-dimensional quantum harmonic oscillator-i.e., a spinless point particle in a quadratic potential well-is given by $$ \psi_{n}(x)=\frac{1}{\sqrt{2^{11} n ! \sqrt{\pi}}} \mathrm{e}^{-x^{2} / 2} H_{n}(x), $$ for \(n=0 \ldots \infty\), where \(H_{n}(x)\) is the \(n\)th Hermite polynomial. Hermite polynomials satisfy a relation somewhat similar to that for the Fibonacci numbers, although more complex: $$ H_{n+1}(x)=2 x H_{n}(x)-2 n H_{n-1}(x) . $$ The first two Hermite polynomials are \(H_{0}(x)=1\) and \(H_{1}(x)=2 x\). a) Write a user-defined function \(\mathrm{H}(\mathrm{n}, \mathrm{x})\) that calculates \(H_{n}(x)\) for given \(x\) and any integer \(n \geq 0\). Use your function to make a plot that shows the harmonic oscillator wavefunctions for \(n=0,1,2\), and 3, all on the same graph, in the range \(x=-4\) to \(x=4\). Hint: There is a function factorial in the ath package that calculates the factorial of an integer. b) Make a separate plot of the wavefunction for \(n=30\) from \(x=-10\) to \(x=10\). Hint If your program takes too long to run in this case, then you're doing the calculation wrong-the program should take only a second or so to run. c) The quantum uncertainty in the position of a particle in the \(n\)th level of a harmonic oscillator can be quantified by its root-mean-square position \(\sqrt{\left\langle x^{2}\right\rangle}\), where $$ \left\langle x^{2}\right\rangle=\int_{-\infty}^{\infty} x^{2}\left|\psi_{n}(x)\right|^{2} \mathrm{~d} x . $$ Write a program that evaluates this integral using Gaussian quadrature on 100 points, then calculates the uncertainty (i.e., the root-mean-square position of the particle) for a given value of \(n\). Use your program to calculate the uncertainty for \(n=5\). You should get an answer in the vicinity of \(\sqrt{\left\langle x^{2}\right\rangle}=2.3 .\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.