Quadratic complex endpoint descent path (source code)

= Quadratic complex endpoint descent path
{title2=$z(s)^2=b^2+s$}

For $e^{-\lambda z^2}$ with $\lambda>0$, the <saddle point> descent is the real axis and ascent is the imaginary axis. Let the endpoint $b$ have $\operatorname{Re}b\ne0$. Its outward <steepest descent contour> satisfies
$$
z(s)^2=b^2+s,\qquad s\ge0,\qquad z(0)=b,
$$
with the continuous square-root branch from $b$. The imaginary part of $z^2$ stays fixed and its real part increases, so the exponential decays. The path tends to positive or negative real infinity according to the sign of $\operatorname{Re}b$.

Since $dz=ds/(2z(s))$, the endpoint <Laplace integral> is
$$
\int_{C_b}e^{-\lambda z^2}dz
=e^{-\lambda b^2}\int_0^\infty\frac{e^{-\lambda s}}{2z(s)}ds
\sim\frac{e^{-\lambda b^2}}{2\lambda b}.
$$
Reversing the contour changes the sign. A purely imaginary nonzero $b$ is a special case: $b^2+s$ reaches zero, so the path passes through the saddle and cannot be treated as one regular endpoint path without specifying how it continues.