# Eigenstates of the Quantum Harmonic Oscillator Using Spectral Methods

Eigenstates of the Quantum Harmonic Oscillator Using Spectral Methods

Consider Schrödinger's differential equation, , where . This problem describes the quantum harmonic oscillator (i.e., the quantum-mechanical analog of the classical harmonic oscillator). Values of the eigenvalues can be determined analytically and are when . The corresponding eigenfunctions are given by (x), where are the Hermite polynomials associated with the eigenvalue . This Demonstration approximates values of the eigenvalues numerically using spectral methods. When the number of grid points is large, the numerical values match their analytical counterparts perfectly. In addition, the first five eigenfunctions (analytical solutions in blue and numerical solution in red dots) are plotted for the choice of 100 grid points.

-u''+1/4u=λu

2

x

u≠0

λ

n+1/2

n=0,1,2,3,…

-4

2

x

e

H

n

H

n

n+1/2