18. More Special Functions#
Here we consider some functions not included in [Arfken et al., 2013].
Airy Function#
The Airy functions \(\Ai(x)\) and \(\Bi(x)\) for real arguments \(x\) can be defined as
Do It! Show that these converge.
Hint: Consider this as an alternating series of half-periods of decreasing width. Show that the magnitude of each term decreases, hence the series converges (conditionally). This is an application of Dirichlet’s test.
This function arises from the quantum mechanics of a particle falling in a constant gravitational field:
In appropriate units, the solution can be expressed as
where the Airy functions \(y=\Ai(x)\) and \(y=\Bi(x)\) above, which satisfy:
Do It! Find the appropriate units where this works.
Dimensionally,
so we can choose units \(\hbar = 2m = g/2 = 1\) so that
In these units, the time-independent Schrödinger equation has the form
as stated.
Do It! Solve \(y'' - xy = 0\).
Hint: try to find a solution of the form
over some appropriate contour \(C\).
Solution
The trick is to notice that
if we choose a contour \(C\) where the boundary term vanishes. Then,
hence, we must find \(v(z)\) such that
A viable solution is to choose \(v(z)\) such that \(z^2v(z) + v'(z) = 0\). This is separable
Hence, up to an overall factor (not specified by the differential equation),
To ensure that the boundary term vanishes, we can choose \(C\) so that \(v(z) \rightarrow 0\) at the boundaries – i.e., going to infinity in regions where \(\Re z^3\) is positive. One way to do this is as the contour integral
which turns out to be the Airy function as defined above:
Do It! Show that \(\Ai(x)\) as defined above satisfies this equation.
Noting that
we have
It remains to show that the other piece is zero, which we can do by changing variables to \(\theta = t^3/3 + xt\):
We can ensure this vanishes by keeping a slight imaginary part to \(t\).
Asymptotic Properties#
The asymptotic properties of \(\Ai(x)\) can be found by using the Saddle-point Approximation from the representation given in the solution above
where \(f(z) = xz - z^3/3\). Notice that the contour integral is along the imaginary axis, so if \(\abs{x} \gg 1\) is large, then the phase \(xz\) oscillates rapidly, and the integral will be dominated by stationary regions where \(f'(z) \approx 0\).
To simplify some formula, we follow [Vallée and Soares, 2010] and define \(\xi = \tfrac{2}{3}x^{2/3}\).
If \(x>0\), then the contour naturally goes through the negative root \(z_0 = -\sqrt{x}\), and we have
I have not derive the form for \(\Bi(x)\) yet, but this is correct. If \(x<0\), then the two roots move to the imaginary axis, and we should consider the sum of both contributions \(z_0 = \pm \I \sqrt{-x}\):
Note that the \(\pi/4\) phase shift comes from the factor of \(\sqrt{\I} = e^{\pm \I \pi / 4}\). There is some ambiguity in the signs of the various pieces that need to be checked carefully. The form given is correct, and with the phase choice, shows the simple relationship between \(\Ai(x)\) and \(\Bi(x)\) We verify this form numerically below:
Complete Expansion (incomplete and incorrect)
A complete expansion can be obtained by changing variables:
\(z = \sqrt{x} + \I w\),
A complete expansion can be obtained by changing variables \(z = \sqrt{x} + \I \sqrt{w\sqrt{x}}\), $
Green’s Function#
We can also find the Green’s function [Vallée and Soares, 2010]:
This gives, for example, the steady state solution \(G(z,0)\) for a continuous atom laser with particles continually being injected at \(z'=0\).
For \(z<0\), the qualitative form can be deduced from the WKB approximation:
Once properly normalized, this gives a very good approximation except very close to the injection site which is a classical turning point and the WKB approximation breaks down.
Atom Laser
An atom laser can be produced by “out-coupling” a trapped state (the source) to the falling state with the following two-component Hamiltonian
The idea of an atom laser is that a large reservoir of the lower component is held in the trapping potential \(V(z)\). The off-diagonal coupling converts this lower component to the upper component, which falls in the gravitational field. If the off-diagonal coupling is small, the one can treat the trapped component as a constant, and we have the following coupled equation (essentially neglecting the lower-left block):
After some time, the states become quasi-stationary, and we can write:
The bottom equation was simplified by setting \(mgz_0 = \hbar \omega - E_b\), which we can redefine as the zero of our coordinate system \(z \rightarrow z - z_0\). Doing this, and switching to our natural units, we have:
Hence, our solution can be expressed in terms of the Green’s function:
The Green’s function is quite sharply peaked about \(\abs{z-z'} \lesssim 2\), so the laser out-couples atoms from a fairly narrow region about
the location of which can be tuned by adjust the drive frequency \(\omega\).
Atom Interferometry#
An application of the atom laser is to image differential potentials (see e.g. .) In this application, we have two streams of particles, which experience slightly different potentials
The corresponding actions are (see eg:FallingParticles):
For a falling particle with, we can set \(z_0 = 0\), \(E=0\), and \(V_0(z) = mgz\). An interferometer allows us to recover the relative phase difference, so by differentiating, we can directly extract \(V(z)\):
If \(V(z)\) is small, we can expand:
The experiment is slightly more complicated in that the differential potential is pulsed on for a short period of time:
To deal with this, we define the trajectory \(z(t, z_f)\) for the particle ending up at \(z(t_f, z_f) = z_f\) at imaging time \(t_f\). We can then use the same formalism with the potential, but now with a potential that depends on \(z_f\). Assuming again that \(z_0=0\), \(E=0\), and that the particle is falling, we have
The derivative is slightly more complicated now because of the addition \(z_f\) dependence in the momentum:
This gives:
In a typical experiment, the differential potential is turned off at the imaging time, so \(p_{a}(z_f;z_f) = p_{b}(z_f;z_f)\), so the first term – which gives the dominant contribution above – vanishes, leaving the following difference in the action:
t_1 = 1.0
t_2 = 2.0
t_f = 3.0
g = 1.0
m = 1.0
z_f = -g*t_f**2/2
z_V = -1.0
sigma = 0.1
dV = 1.0
@np.vectorize
def V(z, t):
return m*g*z + dV * np.exp(-(z-z_V)**2/2/sigma**2)*np.where(t_1 < t < t_2, 1, 0)
@np.vectorize
def Vzf(z, z_f):
# How long the particle takes to get to z
dt = np.sqrt(-2*z/g)
# How long the particle takes to get to z_f dtf = (t_f-t_0)
dtf = np.sqrt(-2*z_f/g)
t_0 = t_f - dtf
t = t_0 + dt
return V(z=z, t=t)
t, z = np.meshgrid(np.linspace(0, t_f, 200),
np.linspace(z_f, 0, 201),
indexing='ij', sparse=True)
fig, axs = plt.subplots(1, 2)
ax = axs[0]
ax.pcolormesh(t.ravel(), z.ravel(), V(z, t).T, shading='auto')
ax = axs[1]
zf = z.T
ax.pcolormesh(zf.ravel(), z.ravel(), Vzf(z, zf).T, shading='auto')
ax.set(xlabel="z_f", ylabel="z", aspect=1);
(Old Stuff)#
from ipywidgets import interact
from scipy.special import airy
hbar = 1
m = 0.5
g = 2.0
Omega = 0.1
sigma = 1.0
z = np.linspace(-100, 2, 500)
Ai0, dAi0, Bi0, dBi0 = airy(0)
Aiz, dAiz, Biz, dBiz = airy(z)
def G(x, xx=0):
Aix, dAix, Bix, dBix = airy(x)
Ai0, dAi0, Bi0, dBi0 = airy(xx)
return (
- np.pi * np.where(x < xx, Ai0 * (Bix + 1j * Aix), Aix * (Bi0 + 1j * Ai0))
)
@interact(sigma=(0.01, 10.0))
def go(sigma=1.0):
def psi_b(z):
return np.exp(-(z/sigma)**2/2)
zz = np.linspace(-4*sigma, 4*sigma, 200)
psi_a = Omega*G(z[:, None], zz[None, :]) @ psi_b(zz)
n_a = abs(psi_a)**2
n_b = abs(psi_b(z))**2
fig, ax = plt.subplots()
ax.plot(z, n_a, 'C0', label='$n_a(z)$')
ax.twinx()plot(z, n_b, 'C1', label='$n_b(z)$')
ax.set(xlabel='$z$', ylabel="$n_a$")
ax.grid(True)
ax.legend();
Cell In[5], line 33
ax.twinx()plot(z, n_b, 'C1', label='$n_b(z)$')
^
SyntaxError: invalid syntax
def psi_b(z):
return np.exp(-(z/sigma)**2/2)
zz = np.linspace(-2*sigma, 2*sigma, 100)
psi_a = G(z[:, None], zz[None, :]) @ psi_b(zz[None, :])
plt.plot(z, abs(G(z, 2.0))**2)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[6], line 5
2 return np.exp(-(z/sigma)**2/2)
4 zz = np.linspace(-2*sigma, 2*sigma, 100)
----> 5 psi_a = G(z[:, None], zz[None, :]) @ psi_b(zz[None, :])
7 plt.plot(z, abs(G(z, 2.0))**2)
Cell In[3], line 12, in G(x, y)
9 Aix, dAix, Bix, dBix = airy(x)
10 Aiy, dAiy, Biy, dBiy = airy(y)
11 return (
---> 12 - np.pi * np.where(x < y, Aiy * (Bix + 1j * Aix), Aix * (Biy + 1j * Aiy))
13 )
ValueError: operands could not be broadcast together with shapes (1,1,201) (1,100)
Gz = G(z)
@interact(ar=(-2,2,0.001), ai=(-2,2,0.001))
def go(ar=-np.sqrt(3)/4/np.pi/Ai0**2, ai=1/4/np.pi/Ai0**2):
a = ar + ai*1j
alpha = 1/a/Ai0 + np.pi * (np.sqrt(3) + 1j)*Ai0
psi = Gz + alpha * Aiz
n = abs(psi)**2
n_wkb = 1/m/np.sqrt(-2*g*z)
n_wkb *= n[0]/n_wkb[0]
j = (-1j * hbar * np.gradient(psi, z) * psi.conj()).real
fig, ax = plt.subplots()
ax.plot(z, n, label='$n(z)$')
ax.plot(z, j, ls='--', label='$j(z)=n(z)v(z)$')
ylim = ax.get_ylim()
ax.plot(z, n_wkb, ls=':', label='$n_{WKB}(z)$')
ax.set(xlabel='$z$', ylabel="$n$, $j$", ylim=ylim)
ax.grid(True)
ax.legend();
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[7], line 3
1 Gz = G(z)
----> 3 @interact(ar=(-2,2,0.001), ai=(-2,2,0.001))
4 def go(ar=-np.sqrt(3)/4/np.pi/Ai0**2, ai=1/4/np.pi/Ai0**2):
5 a = ar + ai*1j
6 alpha = 1/a/Ai0 + np.pi * (np.sqrt(3) + 1j)*Ai0
NameError: name 'interact' is not defined
Old Discussion: Potential Source
Note that we can add to \(G(z, z')\) any solution of the homogeneous equation, so we can write:
This is the steady state solution with \(E=0\) to the time-independent Schrödinger equation with a delta-function potential of strength \(a = 1/\psi(0)\). If this has an imaginary part, then we have a particle source of sink. Inverting, we have:
In the region \(z < 0\) the solution will have the form:
From this it is clear that \(a \propto -\sqrt{3} + \I \propto e^{5\I\pi/6}\) is required for a smooth solution (no oscillations). I.e. in addition to the source term, we need an attractive \(\delta(z)\) potential to ensure that the phase remains coherent without any interference effects.