Inhomogeneous media, i.e., media with variable index of refraction or potential, also have eigenfunctions, although the calculation of these functions is more difficult than for the stepwise homogeneous case considered in the previous section. Analytical solutions can be found only for very special cases; thus, in general, one must employ numerical techniques such as the shooting method described by Ian Johnston elsewhere in this series. An approximation, the Wentzel-Kramer-Brillouin (WKB) method, can often be employed when the properties of the medium vary slowly on a scale comparable to the wavelength. This approximation can be used for both the classical wave and Schrödinger equations and is a very useful guide for estimating solutions to these equations. It is based upon the idea that we can estimate the wavelength based upon the properties of the medium. The wavelength in the classical-wave or Schrödinger equations will be shorter if the medium is optically more dense or the kinetic energy is larger, respectively.
WKB wavefunctions can be obtained by assuming that the wavefunctions are
oscillatory--- these are, after all, hyperbolic PDEs--- and that the total
phase
of the oscillations in a medium with fixed (periodic) boundaries must be
half-integer (integer) multiples of
.
Since the wavenumber,
, gives
the number of radians per meter at x, we require that a medium with
fixed boundaries at a, b satisfy
The unnormalized WKB wavefunction is
Clearly, the function
will be zero when x=a, since the integral
is zero, and again
when x=b, since the integral will be
by the
previous condition, eq:WKBMode.
![]()
that requires the evaluation of a single indefinite integral.
Once the values of
are known, the WKB wavefunctions can be calculated using equation eq:WKBFun.
![]()
Since the parser adds its values to the values already existing in the medium,
the actual index of refraction will be
. Select mode 32 and run the program.
Notice that the antinodes do not have the same amplitude and are not uniformly spaced.
Are the overtones harmonics?
![]()
and each eigenvalue is substituted into eq:WKBFun to obtain the wavefunction.
![]()
and then select an initial condition of mode 6. Notice that WKB eigenfunctions are very similar to the WKB solutions of the classical wave equation from the previous exercise.
![]()
and study the time evolution of the following WKB eigenfunctions,
. For what modes is the WKB approximation appropriate?
Why is there a spike in the wavefunction for mode 3?