One of the more complicated-looking Schrödinger wavefunctions arises from a scattering (i.e., positive energy) problem involving an Eckart potential. These wavefunctions are expressed in terms of Gauss hypergeometric functions and as part of some numerical work I was doing using Maple software I wanted to see how easy or difficult it would be to write a Maple procedure that would compute and plot these objects. It turned out to be not too difficult and I want to record this Maple code in the present note. The following diagram illustrates the basic setup for scattering from an Eckart potential that will be considered here.

The Eckart potential was first introduced in 1930 (Eckart, C, 1930, The penetration of a potential barrier by electrons, Phys Rev 35, Issue 11, pp. 1303-1309) and has the form
where is the height of the potential at the origin and
is its width. We assume that a travelling wave of predetermined amplitude
is moving from left to right towards the origin, corresponding to a free particle of mass
and energy
, where
. The particle is scattered in the region around the origin where the potential is nonzero, being reflected with probability
and transmitted (by quantum tunnelling, since
) with probability
. Usually, the main focus in scattering problems is on the calculation of
(called the reflection coefficient) and
(called the transmission coefficient) for different energy levels.
The time-independent Schrödinger equation for scattering from an Eckart potential of this form can be written as
To rescale this for numerical work we can divide through by to get
where
and
To obtain explicitly, we observe that far away from the origin the potential is zero, so the above equation reduces to
This is a second-order linear ordinary differential equation with a travelling wave solution of the general form
where is the wavenumber. We are free to assign any positive value we like to the wavenumber
in scattering problems. This choice of
will then determine
and
. To begin with, we will set
here, which implies
.
To obtain explicitly, we note that we are able to assign any value we like to
and
so, to begin with, we will choose
and
to give us the rescaled potential
which is of unit height and width. This is the setup shown in the diagram above. Therefore the scattering equation we will be implementing to begin with is
This quantum system can be solved exactly in terms of Gauss hypergeometric functions of the form , i.e., with two upper parameters,
and
, and one lower parameter,
. (For details, see ter Haar, D, 1975, Problems in quantum mechanics, London: Pion, Chapter 1, Problem 14, Chapter 2, Problem 8, and also Blinder, S, 2011, Scattering by a Symmetrical Eckart Potential, Wolfram Demonstrations Project). Here we will focus on adapting the (rather complicated) exact solution to the case specified above. Given the four parameters
,
,
and
, let
Then the exact solution of the general time-independent Schrödinger equation for this problem is the wavefunction
The exact solution for our particular specifications is then obtained by setting ,
,
and
in this wavefunction. This solution has both real and imaginary parts which are plotted together in the diagram below.

The reflection and transmission coefficients for this scattering problem are given by the formulas
Evaluating these with ,
,
,
and
we get a probability of reflection
and a probability of transmission
.
I produced the above wavefunction plot, and calculated the corresponding reflection and transmission probabilities, using the following Maple code:

Wavefunction plots and reflection and transmission probabilities for different Eckart scattering parameters can now easily be obtained by simply varying the parameters ,
,
and
in the above code.

The expression for wave function is a little bit incorrect. In the second addendum a multiplier with cosh should be exponentiation -2*lambda
Hi Boris. Thank you for pointing out this typo. I have added the missing exponent to cosh in the second term of the wave function. (Luckily, I did not miss out this exponent when later implementing the wave function in MAPLE).