using Plots, LinearAlgebra,SpecialFunctions, Optim
Green's function for scattering problem¶
\begin{aligned} G_E^{\pm} (x) &= \int \frac{d^3 q}{(2 \pi)^3} \, e^{i \vec{q} \cdot \vec{x}} \, \frac{1}{E- \frac{q^2}{2 m_R} \pm i \delta} \\ &= \frac{1}{2 \pi^2 r} \, \int_0^\infty dq \, \sin(qr) \, \frac{q}{E- \frac{q^2}{2 m_R} \pm i \delta} \\ &= -2 m_R \times \frac{1}{4 \pi r} \, e^{\pm i p r}. \end{aligned}
with $E = \frac{p^2}{2 m_R}$.
Again, it can be regarded as an analytic continuation of the known result
\begin{aligned} \frac{1}{4 \pi r} \, e^{- \sqrt{m^2} \, r} &= \int \frac{d^3 q}{(2 \pi)^3} \, e^{i \vec{q} \cdot \vec{x}} \, \frac{1}{q^2+m^2}, \end{aligned}
with the replacement
$m^2 \rightarrow - p^2 \mp i \delta.$ The Complex Contour integral method is also possible.
Scattering Problem in Quantum Mechanics (3D)¶
Literature¶
- E. Merzbacher, Quantum Mechanics
- F. Calogero, Variable Phase Approach to Potential Scattering
Formulation¶
Consider the Schrödinger equation for a particle moving in a central potential $V(r)$, in units of $\hbar=1$:
$$ \left[-\frac{\nabla^2}{2m_R}+V(r)\right]\psi(\mathbf r) =E\psi(\mathbf r), $$
where $m_R$ is the reduced mass and $E=q^2/(2m_R)$ is the scattering energy.
In spherical coordinates, the Laplacian can be expressed as
$$ -\nabla^2 = -\frac{1}{r}\frac{\partial^2}{\partial r^2}r +\frac{\hat L^2}{r^2}, $$
where $\hat L^2$ is the squared angular momentum operator,
$$ \hat L^2 = -\left[ \frac{1}{\sin\theta} \frac{\partial}{\partial\theta} \left(\sin\theta\frac{\partial}{\partial\theta}\right) + \frac{1}{\sin^2\theta} \frac{\partial^2}{\partial\phi^2} \right]. $$
The spherical harmonics $Y_{\ell m}(\theta,\phi)$ are eigenfunctions of $\hat L^2$:
$$ \hat L^2Y_{\ell m} = \ell(\ell+1)Y_{\ell m}. $$
For a given $\ell$, the magnetic quantum number takes the values $m=-\ell,\ldots,\ell$, giving $2\ell+1$ degenerate states. This degeneracy follows from rotational symmetry.
For scattering by a central potential, choosing the incident momentum along the $z$-axis makes the scattering wavefunction independent of $\phi$. We may therefore use the $m=0$ spherical harmonics, which are proportional to the Legendre polynomials:
$$ Y_{\ell 0}(\theta,\phi) = \sqrt{\frac{2\ell+1}{4\pi}}P_\ell(\cos\theta) $$
with the orthogonality condition
$$ \int_{-1}^{1}dz\,P_\ell(z)P_{\ell'}(z) =\frac{2}{2\ell+1}\delta_{\ell\ell'}. $$
We separate the radial and angular dependence by writing
$$ \psi_\ell(r,\theta) = \frac{u_\ell(r)}{r}P_\ell(\cos\theta). $$
Substituting into the Schrödinger equation gives the radial equation
$$ \frac{d^2u_\ell}{dr^2} = \left[ -q^2+\frac{\ell(\ell+1)}{r^2} +2m_RV(r) \right]u_\ell. $$
Equivalently,
$$ \left[ -\frac{1}{2m_R}\frac{d^2}{dr^2} +V_{\mathrm{eff}}(r) \right]u_\ell(r) = Eu_\ell(r), $$
with the effective potential
$$ V_{\mathrm{eff}}(r) = V(r)+\frac{\ell(\ell+1)}{2m_Rr^2}. $$
Thus, the 3D scattering problem reduces to a set of independent 1D radial equations on the half-line $r\in(0,\infty)$, one for each partial wave $\ell$. The additional term is the centrifugal barrier.
Boundary Conditions and Phase Shifts¶
The radial Schrödinger equation is
$$ u_\ell''(r) = \left[ -q^2+\frac{\ell(\ell+1)}{r^2} +2m_RV(r) \right]u_\ell(r). $$
For a potential that is regular near the origin, the physical solution behaves as
$$ u_\ell(r)\propto r^{\ell+1}, \qquad r\rightarrow0. $$
For a short-range potential, $V(r)\rightarrow0$ sufficiently rapidly at large distances. The radial equation reduces to
$$ u_\ell''(r) + \left[q^2-\frac{\ell(\ell+1)}{r^2}\right] u_\ell(r)=0. $$
The two independent solutions are the spherical Bessel and Neumann functions, $j_\ell(qr)$ and $n_\ell(qr)$. The general free radial solution is
$$ u_\ell(r) = qr\left[ A_\ell j_\ell(qr)+B_\ell n_\ell(qr) \right]. $$
Their asymptotic forms are
$$ \begin{aligned} j_\ell(qr) &\xrightarrow{r\rightarrow\infty} \frac{\sin(qr-\ell\pi/2)}{qr},\\ n_\ell(qr) &\xrightarrow{r\rightarrow\infty} -\frac{\cos(qr-\ell\pi/2)}{qr}. \end{aligned} $$
Consequently,
$$ u_\ell(r) \xrightarrow{r\rightarrow\infty} A_\ell\sin\left(qr-\frac{\ell\pi}{2}\right) - B_\ell\cos\left(qr-\frac{\ell\pi}{2}\right). $$
The interaction changes the relative coefficients of the two solutions. We introduce the phase shift $\delta_\ell$ through
$$ u_\ell(r) \xrightarrow{r\rightarrow\infty} C_\ell\sin\left(qr-\frac{\ell\pi}{2}+\delta_\ell\right). $$
Comparing the two expressions gives
$$ \tan\delta_\ell=-\frac{B_\ell}{A_\ell}. $$
Thus, the phase shift measures the change in the asymptotic radial wavefunction caused by the interaction. For a vanishing potential, the regular solution is proportional to $qrj_\ell(qr)$ and $\delta_\ell=0$.
numerical spherical Bessel functions¶
function legendre(x, n::Int)
if n == 0
return 1.0
elseif n == 1
return x
else
# recursion
return ((2.0 * n - 1.0) / n) * x * legendre(x, n - 1) -
((n - 1.0) / n) * legendre(x, n - 2)
end
end
let
# simple test of formula
function f(x, z)
# sum first 10 terms in the PW expansion
ret = 0
for ll = 0:10
ret += (2 * ll + 1) * legendre(z, ll) * im^ll * sphericalbesselj(ll, x)
end
return ret
end
zval = -1 + 2 * rand()
krval = 2 * rand()
test1 = [exp(im * krval * zval), f(krval, zval)]
# value test
println(test1)
x_arr = range(1E-3, 20.0, length = 50)
p1 = plot(x_arr, x -> x * sphericalbesselj(0, x), label = "x j(0,x)", legend=:bottomright)
plot!(x_arr, x -> x * sphericalbessely(0, x), label = "x n(0,x)")
scatter!(x_arr, x -> sin(x), label = "sin(x-L*pi/2) L=0")
scatter!(x_arr, x -> -cos(x), label = "-cos(x-L*pi/2) L=0", ylim = (-1.5, 1.5))
p2 = plot(x_arr, x -> x * sphericalbesselj(1, x), label = "x j(1,x)", legend=:bottomright)
plot!(x_arr, x -> x * sphericalbessely(1, x), label = "x n(1,x)")
scatter!(x_arr, x -> sin(x - pi / 2), label = "sin(x-L*pi/2) L=1")
scatter!(x_arr, x -> -cos(x - pi / 2), label = "-cos(x-L*pi/2) L=1", ylim = (-1.5, 1.5))
plot(p1, p2, layout=(2,1))
end
ComplexF64[0.9948404733327509 + 0.10145162699073869im, 0.9948404733327517 + 0.10145162699073876im]
Useful Formulae for Scattering Problems¶
Partial-wave expansion¶
Consider the scattering of a particle with momentum $q$ by a spherically symmetric potential. The incident plane wave admits the partial-wave expansion
$$ e^{iqr\cos\theta} = \sum_{\ell=0}^{\infty} (2\ell+1)\,i^\ell\,j_\ell(qr)\,P_\ell(\cos\theta), $$
where $j_\ell$ is the spherical Bessel function and $P_\ell$ is the Legendre polynomial.
The asymptotic forms of the spherical Bessel and Neumann functions are
$$ \begin{aligned} j_\ell(qr) &\xrightarrow{r\to\infty} \frac{\sin(qr-\ell\pi/2)}{qr},\\ n_\ell(qr) &\xrightarrow{r\to\infty} -\frac{\cos(qr-\ell\pi/2)}{qr}. \end{aligned} $$
Consequently, the incident plane wave has the asymptotic partial-wave representation
$$ e^{iqr\cos\theta} \sim \sum_{\ell=0}^{\infty} (2\ell+1)P_\ell(\cos\theta) \frac{e^{iqr}-(-1)^\ell e^{-iqr}}{2iqr}. $$
This separates the outgoing and incoming spherical-wave components of each partial wave. The asymptotic expression is understood term by term in the partial-wave expansion.
Scattering amplitude and the S-matrix¶
At large distances, the scattering wavefunction takes the form
$$ \psi(\mathbf r) \sim e^{iqr\cos\theta} + f(\theta)\frac{e^{iqr}}{r}, $$
where the scattering amplitude is expanded as
$$ f(\theta) = \sum_{\ell=0}^{\infty} (2\ell+1)P_\ell(\cos\theta)\,f_\ell. $$
Combining these expressions gives
$$ \begin{aligned} \psi(\mathbf r) \sim \sum_{\ell=0}^{\infty} (2\ell+1)P_\ell(\cos\theta) \frac{ \left(1+2iqf_\ell\right)e^{iqr} - (-1)^\ell e^{-iqr} }{2iqr}. \end{aligned} $$
The interaction modifies the coefficient of the outgoing wave while leaving the incoming-wave coefficient unchanged. This motivates the identification
$$ S_\ell=1+2iqf_\ell. $$
For elastic scattering, conservation of probability requires
$$ |S_\ell|^2=1. $$
We can therefore introduce a real phase shift $\delta_\ell$ through
$$ S_\ell=e^{2i\delta_\ell}. $$
The partial-wave scattering amplitude becomes
$$ \begin{aligned} f_\ell &=\frac{S_\ell-1}{2iq}\\ &=\frac{e^{2i\delta_\ell}-1}{2iq}\\ &=\frac{1}{q}e^{i\delta_\ell}\sin\delta_\ell. \end{aligned} $$
The phase shift thus completely determines the elastic scattering amplitude in each partial wave.
Unitarity and the optical theorem¶
Using $S_\ell=1+2iqf_\ell$, the unitarity condition gives
$$ \begin{aligned} |S_\ell|^2 &=(1+2iqf_\ell)(1-2iqf_\ell^*)\\ &=1-4q\,\operatorname{Im}f_\ell +4q^2|f_\ell|^2=1. \end{aligned} $$
Hence,
$$ \operatorname{Im}f_\ell=q|f_\ell|^2 =\frac{\sin^2\delta_\ell}{q}. $$
This is the partial-wave unitarity relation.
The differential cross section is
$$ \frac{d\sigma}{d\Omega}=|f(\theta)|^2. $$
Integrating over the solid angle and using the orthogonality of Legendre polynomials gives
$$ \begin{aligned} \sigma_{\mathrm{el}} &=\int d\Omega\,|f(\theta)|^2\\ &=4\pi\sum_{\ell=0}^{\infty}(2\ell+1)|f_\ell|^2\\ &=\frac{4\pi}{q^2} \sum_{\ell=0}^{\infty} (2\ell+1)\sin^2\delta_\ell. \end{aligned} $$
On the other hand, the forward scattering amplitude is
$$ f(0)=\sum_{\ell=0}^{\infty}(2\ell+1)f_\ell, $$
since $P_\ell(1)=1$. Applying the partial-wave unitarity relation, we obtain
$$ \begin{aligned} \operatorname{Im}f(0) &=\sum_{\ell=0}^{\infty} (2\ell+1)\operatorname{Im}f_\ell\\ &=q\sum_{\ell=0}^{\infty} (2\ell+1)|f_\ell|^2\\ &=\frac{q}{4\pi}\sigma_{\mathrm{el}}. \end{aligned} $$
Therefore,
$$ \sigma_{\mathrm{tot}} = \frac{4\pi}{q}\operatorname{Im}f(0). $$
This is the optical theorem. For purely elastic scattering, $\sigma_{\mathrm{tot}}=\sigma_{\mathrm{el}}$.
Inelastic scattering¶
When inelastic channels are present, the partial-wave S-matrix can be parametrized as
$$ S_\ell=\eta_\ell e^{2i\delta_\ell}, \qquad 0\leq\eta_\ell\leq1, $$
where $\eta_\ell$ is the inelasticity parameter.
Using $S_\ell=1+2iqf_\ell$, we obtain
$$ \operatorname{Im}f_\ell = q|f_\ell|^2 + \frac{1-\eta_\ell^2}{4q}. $$
The first term describes elastic scattering, while the second accounts for the loss of flux into inelastic channels.
The corresponding partial-wave cross sections are
$$ \begin{aligned} \sigma_\ell^{\mathrm{el}} &=\frac{\pi}{q^2}(2\ell+1)|S_\ell-1|^2,\\ \sigma_\ell^{\mathrm{inel}} &=\frac{\pi}{q^2}(2\ell+1)(1-\eta_\ell^2),\\ \sigma_\ell^{\mathrm{tot}} &=\frac{2\pi}{q^2}(2\ell+1) (1-\eta_\ell\cos 2\delta_\ell). \end{aligned} $$
They satisfy
$$ \sigma_\ell^{\mathrm{tot}} = \sigma_\ell^{\mathrm{el}} + \sigma_\ell^{\mathrm{inel}}. $$
Thus, the optical theorem is a direct consequence of S-matrix unitarity, and remains valid when inelastic channels are included.
Numerical Scattering Problem¶
For numerical calculations, we integrate the radial equation outward from a small radius $r_{\min}>0$, using the regular boundary conditions
$$ \begin{aligned} u_\ell(r_{\min}) &= r_{\min}^{\ell+1},\\ u_\ell'(r_{\min}) &= (\ell+1)r_{\min}^{\ell}. \end{aligned} $$
These are leading-order initial conditions for a potential regular at the origin.
After integrating to a sufficiently large radius $R$, where the potential is negligible, we extract the phase shift by matching the numerical solution to its asymptotic form.
Defining
$$ L_\ell(R)=\frac{u_\ell'(R)}{u_\ell(R)}, $$
and using the leading asymptotic expression, we find
$$ L_\ell(R) \simeq q\cot\left(qR-\frac{\ell\pi}{2}+\delta_\ell\right). $$
Hence,
$$ \delta_\ell \simeq \operatorname{atan2}\left(q,L_\ell(R)\right) -qR+\frac{\ell\pi}{2}, $$
where the phase is determined modulo $\pi$. For numerical work, matching to the exact spherical Bessel functions at finite $R$ is more accurate, especially for higher partial waves.
The scattering matrix and partial-wave amplitude follow from
$$ S_\ell=e^{2i\delta_\ell}, \qquad f_\ell=\frac{S_\ell-1}{2iq}. $$
Thus, solving a second-order radial differential equation is sufficient to determine the elastic scattering amplitude.
Phase Shift and Wavefunction¶
The radial scattering wavefunction can be expressed as a linear combination of spherical Bessel and Neumann functions:
$$ \psi_\ell(r)=\frac{u_\ell(r)}{r} \propto c(r)\,j_\ell(qr)-s(r)\,n_\ell(qr). $$
For a short-range potential, the coefficients approach constants outside the interaction region:
$$ c(r)\rightarrow c_\infty, \qquad s(r)\rightarrow s_\infty. $$
Using the asymptotic forms of the spherical Bessel functions, we obtain
$$ \begin{aligned} \psi_\ell(r) &\xrightarrow{r\rightarrow\infty} c_\infty\frac{\sin(qr-\ell\pi/2)}{qr} + s_\infty\frac{\cos(qr-\ell\pi/2)}{qr}\\ &= \frac{ (c_\infty+is_\infty)e^{iqr} - (-1)^\ell(c_\infty-is_\infty)e^{-iqr} }{2iqr}. \end{aligned} $$
The scattering matrix is the ratio of the outgoing and incoming wave coefficients:
$$ S_\ell = \frac{c_\infty+is_\infty}{c_\infty-is_\infty} = e^{2i\delta_\ell}. $$
Consequently,
$$ \tan\delta_\ell=\frac{s_\infty}{c_\infty}. $$
Equivalently, the asymptotic radial wavefunction takes the form
$$ u_\ell(r) \xrightarrow{r\rightarrow\infty} A_\ell\sin\left(qr-\frac{\ell\pi}{2}+\delta_\ell\right). $$
This suggests two numerical approaches to calculating the phase shift.
Method 1: Direct Solution¶
Solve the radial Schrödinger equation
$$ u_\ell''(r) = \left[ -q^2+\frac{\ell(\ell+1)}{r^2} +2m_RV(r) \right]u_\ell(r) $$
with regular boundary conditions at the origin.
After integrating to a radius where the potential is negligible, match the numerical solution to the free spherical waves and extract $\delta_\ell$.
Method 2: Variable Phase Approach (VPA)¶
Instead of solving directly for $u_\ell(r)$, introduce two radial functions $c(r)$ and $s(r)$ through
$$ u_\ell(r) = c(r)\,qrj_\ell(qr) - s(r)\,qrn_\ell(qr). $$
Define a radius-dependent phase shift by
$$ \delta_\ell(r) = \operatorname{atan2}(s(r),c(r)). $$
The physical phase shift is obtained from
$$ \delta_\ell = \lim_{r\rightarrow\infty}\delta_\ell(r). $$
The variable phase approach converts the second-order radial Schrödinger equation into a first-order evolution equation for the phase shift. This allows us to follow how different radial regions of the potential contribute to scattering.
function direct(pot, Enow; wf = false, mred = 1.0, orbital_L = 0.0, L = 10.0, dx = 0.1)
# direct solution to the Schroedinger Eqn.
qnow = sqrt(2 * mred * Enow)
function upot(x)
return 2 * mred * pot(x) + orbital_L * (orbital_L + 1) / x^2
end
# L = maximum([L, 10/qnow])
x_arr = range(1E-3, L, step = dx)
u_arr = similar(x_arr)
du_arr = similar(x_arr)
# shooting
u_arr[1] = 0.0
du_arr[1] = 0.25
# useful construction: vector form
_f(x, uu) = [uu[2], (-qnow^2 + upot(x)) * uu[1]]
for i1 = 1:length(x_arr)-1
xnow = x_arr[i1]
# vector form
u1 = [u_arr[i1], du_arr[i1]]
# RK4 won't disappoint
F1 = dx * _f(xnow, u1)
F2 = dx * _f(xnow + dx / 2, u1 + F1 / 2)
F3 = dx * _f(xnow + dx / 2, u1 + F2 / 2)
F4 = dx * _f(xnow + dx, u1 + F3)
u2 = u1 + (F1 + 2 * F2 + 2 * F3 + F4) / 6
u_arr[i1+1], du_arr[i1+1] = u2
end
# u_arr VS sin(qr - Lpi/2 + ps)
N = length(u_arr)
Ninit = div(N, 2)
# normalization
u_arr = u_arr / maximum(u_arr[Ninit:N])
du_arr = du_arr / maximum(du_arr[Ninit:N]) * qnow
jl_hat(x) = x * sphericalbesselj(orbital_L, x)
nl_hat(x) = x * sphericalbessely(orbital_L, x)
djl_hat(x) = imag(jl_hat(x + im * 0.01) / 0.01)
dnl_hat(x) = imag(nl_hat(x + im * 0.01) / 0.01)
function _test(ps)
ret = 0.0
for i1 = Ninit:N
qr = qnow * x_arr[i1]
tmp = jl_hat(qr) * cos(ps) - nl_hat(qr) * sin(ps)
ret += (u_arr[i1] - tmp)^2
end
return ret
end
# ps by best fit the wavefunction
ps = optimize(_test, -pi, pi).minimizer
#=
# failed attempts
model(x, p) = @. sin(qnow * x - orbital_L*pi/2 + p[1])
xdata = x_arr[div(N,2):N]
ydata = u_arr[div(N,2):N]
p0 = [0.0]
fit = curve_fit(model, xdata, ydata, p0)
ps = fit.param[1]
=#
# not so good approaches
# ps = find_zero(_test, 1.0)
# results are jumping, not really a root finding problem
# direct matching, very narrow range, 2pi ambiguity
# ps_arr = range(-pi, pi, step = 0.01)
# ps = ps_arr[argmin(abs.(_test.(ps_arr)))]
if wf
return x_arr, u_arr, ps
else
return ps
end
end
direct (generic function with 1 method)
repulsive barrier¶
let
# repulsive barrier
pot(x) = x < 0.6 ? 50.0 : 0.0
Enow = 2.6
mred = 1.0
qnow = sqrt(2 * mred * Enow)
ll = 0.0
x_arr, u_arr, ps = direct(pot, Enow, wf = true, L = 12, dx = 0.1)
plot(x_arr, u_arr, label = "direct")
plot!(
x_arr,
x -> sin(qnow * x),
label = "sin(x) (unshifted)",
color = "gray",
line = (dash = :dash),
)
scatter!(
range(0, x_arr[end], step = 0.2),
x -> sin(qnow * x - ll * pi / 2 + ps),
label = "sin(x+ps)",
xlabel = " r ",
ylabel = " u(r) ",
title = "ps = $ps",
)
# scatter!(x_arr, asin.(u_arr)-qnow*x_arr)
end
attractive well¶
let
# attractive well
pot(x) = x < 1.3 ? -4.0 : 0.0
Enow = 2.6
mred = 1.0
qnow = sqrt(2 * mred * Enow)
x_arr, u_arr, ps = direct(pot, Enow, wf = true, L = 12, dx = 0.1)
plot(x_arr, u_arr, label = "direct")
plot!(
x_arr,
x -> sin(qnow * x),
label = "sin(x) (unshifted)",
color = "gray",
line = (dash = :dash),
)
scatter!(
range(0, x_arr[end], step = 0.2),
x -> sin(qnow * x + ps),
label = "sin(x+ps)",
xlabel = " r ",
ylabel = " u(r) ",
title = "ps = $ps",
)
end