1 Introduction

Besides the works which have used the Hill determinant method to obtain numerical energy levels for the Schrodinger equation there also exist many critical works which have examined the validity and range of applicability of the method [1,2,3,4,5,6,7,8,9,10]. Several of these works have claimed to expose serious defects of the method. The main defects imputed to the method are:

  1. (1)

    that it does not work for polynomial potentials which include an x6 term

  2. (2)

    that it cannot give accurate information about the wavefunction

  3. (3)

    that it can converge to the wrong energy

In the present work we effectively disarm these criticisms by developing a Hill method which gives accurate energies and expectation values for several complicated problems which involve a sextic potential. Section 1 describes some modern modifications to the Hill determinant method and summarizes the main criticisms which have been made of the method. Section 2 sets out the mathematical algorithm which are used in the calculations of the present work and Sects. 3 and 4 present a range of numerical results, often for the problems for which the method has been claimed to fail. The problems treated in Sect. 3 are mainly double well ones. Section 4 treats some subtle phenomena which can arise for triple well problems and which clearly demonstrate the effectiveness of the Hill method of the present work. A combination of the Hill method with hypervirial perturbation theory (HVPT) is shown to be particularly effective in identifying particular states. Section 5 gives a brief conclusion.

2 The criticisms of the hill determinant method

We shall treat in turn the three points listed in Sect. 1.

2.1 The case of a sextic potential

The standard Hill determinant approach to the Schrodinger equation

$$ - \alpha {\text{D}}^{2} \uppsi + \varSigma {\text{V}}\left( {\text{M}} \right){\text{x}}^{\text{M}} \uppsi = {\text{E}}\uppsi $$
(1)

is to write the wavefunction as a product of an exponential term and a series

$$ \uppsi \left( {\text{x}} \right) = { \exp }\left( { - {\text{F}}\left( {\text{x}} \right)} \right) \, \varSigma {\text{A}}\left( {\text{N}} \right){\text{x}}^{\text{N}} $$
(2)

Inspection of the works which claim that the method will not work correctly for a sextic potential term [7,8,9,10] shows that they deliberately present a very specialized version of the method, with the function F(x) chosen specifically in the form ax2 + bx4 and (more importantly) with the parameters chosen to give the wavefunction exactly the correct asymptotic form to fit to the sextic term in the potential. Inserting this choice into the Schrodinger equation (1) then produces a recurrence relation for the A coefficients which can be represented as a matrix eigenvalue equation for a tridiagonal matrix, the Hill determinant for this case. It is by studying the zeros of this determinant that some authors claim to find deficiencies in the Hill determinant approach. However (unsurprisingly) with a different form of F(x) the resulting modified Hill determinant is not restricted to tridiagonal form and gives satisfactory numerical results even for sextic potentials [11,12,13].

2.2 Lack of information about the wavefunction

In fact many Hill determinant calculations in the literature have not attempted to use an exact asymptotic exponential factor in the wavefunction and have not treated the problem of finding the A coefficients as a banded matrix eigenproblem. They have made the simple universal choice F(x) = βx2/2 in the exponential factor, varying β to optimize the results. They have also adopted a point of view more appropriate to the construction of a power series solution to the Schrodinger equation, thus avoiding an explicit study of the associated Hill determinant (which would in any case not have the tridiagonal form used by critical authors). In early calculations the series appearing in Eq. (2) was actually summed for each trial energy by some authors [14,15,16]. However,it was discovered that summing the series is not necessary. Having derived the recurrence relation satisfied by the A(N) it suffices to use the criterion A(N, E) = 0 for a sufficiently high N in order to find an eigenvalue E, thus studying the individual coefficients rather than the full sum of the series. This result was initially observed empirically [2, 17, 18] but Killingbeck explained it theoretically [19, 20] and also demonstrated it computationally [21], producing a “Hill-series method” by incorporating the Hill determinant method in a simple power series method. The Dirichlet boundary condition ψ(x) = 0 can then be imposed at any chosen finite distance x = X0, with the Hill determinant result being obtained when X0 tends to infinity. With this Hill-series method it becomes possible to locate accurately the nodes of the wavefunction for any given state [22] and also to calculate expectation values directly without quadrature,so that in this generalized form the Hill determinant approach CAN give useful information about the wavefunction.

2.3 Convergence to the “wrong” energy

By varying the parameter β it has been found possible to find energy levels for two different potentials (differing only in the sign of one potential coefficient) within the same calculation [23,24,25]. An apparently reasonable choice of β can thus give what appears to be a wrong eigenvalue (since it belongs to the other potential); we suspect that this might be the origin of the claim about convergence to the “wrong” energy. This feature was discovered in the 1980s but this early work has perhaps been overlooked in some recent studies of the number of low lying states of a sextic potential which have a wavefunction representable by a finite series times an exponential factor [26]. For a quartic potential such solutions had earlier been found in [27] to be possible for a set of specific V4 values in the potential x2 + V4x4. Leach [28] cited some early work on this problem of quasi-exact solubility for the sextic potential but a modern detailed treatment of the problem was given by Handy and coworkers using their highly effective new development of the Hill determinant method, the orthogonal polynomial projection quantization method (OPPQ) [29, 30]. In the present work we shall use only the particular case of infinite X0 in our Hill-series method [21] and thus treat only the standard Hill determinant approach which has been subjected to criticism in the literature. Because we do not construct the Hill determinant associated with our recurrence relation we shall usually refer to the technique simply as the Hill method. Section 7 gives more details about this feature.

3 A summary of the recurrence relation approach to the theory

In the calculations of the present work we study the particular case of the bound states arising from a Schrodinger equation with an even parity polynomial potential

$$ - \alpha {\text{D}}^{2} \uppsi + \, \left( {\varSigma {\text{V}}\left( {\text{M}} \right){\text{x}}^{{2{\text{M}}}} } \right)\uppsi \, = {\text{E}}\uppsi $$
(3)

and take the wavefunction in the form

$$ \varPsi \left( x \right) \, = { \exp } \left( { - \beta {\text{x}}^{2} /2} \right) \, \varSigma {\text{ A}}\left( {\text{N}} \right){\text{x}}^{{ 2 {\text{N + P}}}} $$
(4)

Inserting this postulated wavefunction into (3) gives the recurrence relation for the A(N);

$$ \begin{aligned} \left( {2{\text{N}} + {\text{P}} + 1} \right)\left( {2{\text{N}} + {\text{P}} + 2} \right)\alpha {\text{A}}\left( {{\text{N}} + 1} \right) \, & = \, \left[ {\left( {4{\text{N}} + 2{\text{P}} + 1} \right)\alpha \beta {-}{\text{E}}} \right]{\text{A}}\left( {\text{N}} \right) {-} \, \alpha \, \beta^{2} {\text{A}}\left( {{\text{N}} - 1} \right) \, \\ & \quad + \, \varSigma {\text{V}}\left( {\text{M}} \right){\text{A}}\left( {\text{N}-\text{M}} \right) \\ \end{aligned} $$
(5)

The integer P is the parity indicator (0 for even parity, 1 for odd parity). To initiate the recurrence relation we set A(0) = 1 and use a trial E value, seeking to adjust E so as to render A(N) zero for some sufficiently high N value. It is clear from Eq. (5) that the A(N) will decrease rapidly in magnitude as N increases, so that A(N) for a high N might be beyond computer underflow. However, this can be avoided by introducing the two new coefficients AE(N) and AV(N), which are the derivatives of A(N) with respect to E and to V(1), respectively. If we write Eq. (5) for brevity in the condensed form

$$ {\text{C}}\left( {{\text{N}} + 1} \right){\text{A}}\left( {{\text{N}} + 1} \right) \, = {\text{ C}}\left( {{\text{N}},{\text{E}}} \right){\text{A}}\left( {\text{N}} \right) \, {-} \, \alpha \, \beta^{2} {\text{A}}\left( {{\text{N}} - 1} \right) \, + \, \varSigma {\text{V}}\left( {\text{M}} \right){\text{A}}\left( {{\text{N}} - {\text{M}}} \right) $$
(6)

then inspection of (5) shows that the AE(N) and AV(N) satisfy the equations

$$ \begin{aligned} {\text{C}}\left( {{\text{N}} + 1} \right){\text{AE}}\left( {{\text{N}} + 1} \right) & = {\text{C}}\left( {{\text{N}},{\text{E}}} \right){\text{AE}}\left( {\text{N}} \right) \, {-} \, \alpha \, \beta^{2} {\text{AE}}\left( {{\text{N}} - 1} \right) \, \\ & \quad + \, \varSigma {\text{V}}\left( {\text{M}} \right){\text{AE}}\left( {{\text{N}} - {\text{M}}} \right){-}{\text{ A}}\left( {\text{N}} \right) \\ \end{aligned} $$
(7)
$$ \begin{aligned} {\text{C}}\left( {{\text{N}} + 1} \right){\text{AV}}\left( {{\text{N}} + 1} \right) & = {\text{ C}}\left( {{\text{N}},{\text{E}}} \right){\text{AV}}\left( {\text{N}} \right) \, {-} \, \alpha \, \beta^{2} {\text{AV}}\left( {{\text{N}} - 1} \right) \, \\ & \quad + \, \varSigma {\text{V}}\left( {\text{M}} \right){\text{AV}}\left( {{\text{N}} - {\text{M}}} \right) \, + {\text{ A}}\left( {{\text{N}} - 1} \right) \\ \end{aligned} $$
(8)

The initial values of AE(0) and AV(0) are both zero, along with the value A(0) = 1. Since all three recurrence relations use the same coefficients they can be used simultaneously. At a high N value we correct the trial E value by the Newton’s rule formula

$$ {\text{E }} \to {\text{ E }} + {\text{ DE }} \quad {\text{with DE }} = - {\text{A}}\left( {\text{N}} \right)/{\text{AE}}\left( {\text{N}} \right) $$
(9)

and find the expectation value X2 of x2 from the Eq. [30]

$$ {\text{X}}2 = - {\text{ AV}}\left( {\text{N}} \right)/{\text{AE}}\left( {\text{N}} \right) $$
(10)

Since all the calculated quantities depend only on the ratios of coefficients, we can avoid any overflow or underflow problems by dividing all the current coefficients by| A(N)| at each step, thus leaving unchanged the ratios which are needed in Eqs. (9) and (10). There is a further drastic simplification which can be made and which is relevant to the comments of several critical authors who compare the N value needed to obtain accurate eigenvalues by the Hill method with the dimension of the matrix needed by other approaches (we note again that this criticism is adopting the approach via the actual Hill determinant). The storage array dimension needed for our approach is typically 5, whatever the value of N. Suppose, for example, that we have only non-zero coefficients V(1),V(2) and V(3) in the potential (sufficient to give a sextic potential). Then it is clear from (5) that we calculate A(N + 1) from the previous terms A(N) down to A(N−3),so that at each step only 5 terms are involved. We introduce numerical labels which omit the N, so that A(N + 1) down to A(N−3) are now denoted by A(1) down to A(−3),with a similar change for the AE and AV coefficients. We can then use only 5 storage spaces for each of the A, AE and AV coefficients, simply moving along the numerical values at each step while using the scaling factor 1/|A(1)| simultaneously for all the coefficients. At a chosen high N value we then use the values of A(1),AE(1) and AV(1) in Eqs. (9) and (10). To ensure that the initial E value is near to an energy eigenvalue in our calculations we have used two different approaches. Within the Hill method itself a preliminary scan over a selected range of E values can be made, picking out the E values at which F(E) = A(1) changes sign for some high N value and so providing a starting list of approximate eigenvalues to be used in the full calculation. Alternatively, for the case of a system involving several potential wells a preliminary HVPT calculation can often be performed, similarly giving a list of approximate energy eigenvalues. We combine these two approaches in our specimen calculations.

4 Numerical results for double well systems

The program which implements the algorithm described in the previous section is very simple and permits the calculation both of the energy levels of a polynomial potential and of the expectation value of any even power of x which appears in the potential. To find 〈x4〉, for example, we use A(N−2) instead of A(N−1) as the last term in Eq. (8). Except when a different α value is stated we used the value α = 1 in all the reported calculations. To check the method we carried out a test calculation for the potential x2 + x4 and found that the virial relation E = 2 〈x2〉 + 3 〈x4〉 was obeyed accurately by the three calculated quantities. We then tested the method on examples from several previously published works on polynomial potentials, improving the accuracy of most of the published results; Chhajlany and Malnev [27] gave a useful set of exact reference eigenvalues for the sextic perturbed oscillator. In particular we applied the method described here to the sextic potential examples used in some of the papers cited earlier which criticized the Hill determinant approach and which proposed “improved” versions of it. In all cases our method extended to double precision the results, often of lower accuracy, presented as illustrations of those improved methods. The results given for several sextic double well potentials using the efficient orthogonal polynomial projection method in [29] can also be reproduced using our version of the standard Hill method. An analysis of the results of the Rayleigh–Ritz matrix calculations of [31] for a double well problem with α = ½ and the potential \( {\text{V}}\left( {\text{x}} \right)\, = \, - 17.5\sqrt 2 {\text{x}}^{2} \, + \,{\text{x}}^{6} \) revealed several interesting results not noted in [31], which used only an even parity basis and calculated the ground state energy and the 〈x2〉 and 〈x6〉 values (but not 〈x4〉). The ground state energy which was obtained by a matrix calculation in [31] was E = −40.52625282343567, with 〈x2〉 = 2.72643167389269 These results agree with ours but we also calculated 〈x4〉 for this state to be 7.836655839176 and the energy of the lowest odd parity state to be − 40.52625279631701. This reveals the small energy level splitting. It also shows the localisation of the ground state wavefunction in the potential wells, since 〈x22 is only five percent less than 〈x4〉. We note that the use of the virial theorem would have permitted the calculation of 〈x6〉 directly from E and 〈x2〉 in [31].

As a new and more challenging test of our Hill method we have applied it some deep double well potential of the form V(x) = x6−Vx2. Table 1 shows some specimen energies and expectation values for the case V = 45. Since the method treats states of each parity separately it can give the very small level splittings between even and odd partner states and show how it increases with increasing state number. The results also show that the expectation value 〈x2〉 is slightly larger for the odd partner state, since the odd wavefunction has to be zero at the origin and so is pushed out a little more towards the well bottom. For the ground state the 〈x2〉 value and the small percentage difference between 〈x22 and 〈x4〉 shows that the wavefunction is concentrated near the bottom of the potential wells. For this double well problems with small splittings it was not difficult to find the approximate trial energy to use to locate each state, since HVPT with origin at the bottom of the right hand well gives both the state number and the average of the even and odd level energies for each pair, with an accuracy of between five and ten decimal digits. In [32] the authors asserted that the Hill determinant method does not converge for the cases V = 8 and V = 4. The Hill method of this work gives double precision energies for the first ten states for both these V values with the simple fixed choice of β = 5 and dimension N = 200. For the triple well problems treated in the next section there can exist two states of the same parity with a very small energy difference, so that special procedures are needed to find the two energies separately.

Table 1 E, 〈x2〉 and 〈x4〉 for the potential −45x2 + x6, using N = 2000 and β = 10

5 Two triple well problems

We have pointed out that critics of the Hill determinant method have often specifically used a function of the form F(x) = ax2 + bx4 in the exponential factor of Eq. (4). Although we do not use this factor in our postulated wavefunction we can use it for the different purpose of constructing an interesting test potential for our method. By making the special choice F(x) = x2/2 + Bx4/4 we find that the wavefunction ψ = exp (−F(x)) satisfies the Schrodinger equation

$$ - {\text{ D}}^{2} \uppsi + \left[ { \, \left( {1 \, {-} \, 3{\text{B}}} \right){\text{x}}^{2} + \, 2{\text{Bx}}^{4 } + {\text{ B}}^{2} {\text{x}}^{6} } \right]\uppsi = \uppsi $$
(11)

with eigenvalue 1, regardless of the value of B. This invariance of the eigenvalue has been pointed out previously [33, 34]. The Hill method of this work does indeed give the lowest eigenvalue 1 for several trial positive B values. Inspection of Eq. (11) shows that if we take the terms involving B as a perturbation of the x2 potential, then the energy perturbation series in powers of B should sum to 1 plus zero. It is only possible to calculate a few terms of the perturbation series to sufficiently high precision but they do indeed show this zero energy shift. The first order terms in B can be seen to be zero by using the two oscillator groundstate expectation values 〈x2〉 = ½ and 〈x4〉 = ¾, so that 2B 〈x4〉 −3B 〈x2〉 = 0. Supersymmetry theory [35] predicts that by changing the coefficient of x2 in Eq. (11) from 1−3B to 1 + 3B (with B a positive number) we should obtain a partner potential for which the nth energy eigenvalue is 2 less than the (n + 1)th eigenvalue of the potential in Eq. (11). The Hill method of this work confirms this prediction to double precision accuracy. It is clear that if B is negative then the energy perturbation series will still give the perturbed groundstate energy to be 1 for the potential in Eq. (11). However, for a negative B our postulated wavefunction exp [−F(x)] diverges at infinity and so cannot give a normalised wavefunction, even though the potential in Eq. (11) becomes a triple well potential which actually will have properly normalised bound state wavefunctions. The accurate Hill method of this work shows that there is a very small extra term which makes the energy slightly greater than 1 for the groundstate and which represents a non-analytic correction term to be added to the sum of the perturbation series. Table 2 shows how this term varies with the value of B. By a numerical analysis of the energy shift ε = E−1 we find that its variation with B is well described by the non-analytic function A exp(−0.5/B), with a roughly optimized A value of 0.82. Thus halving B roughly squares the value of E−1, as can be seen from the table. The existence of the small non-analytic energy term was predicted theoretically in [36],which ascribed the existence of this term to a very small tunnelling effect between the outer and inner potential wells. Although the energy acquires an extra non-analytic term for negative B values our results showed that 〈x2〉 for the ground state varies smoothly across B = 0 and has the perturbation series with the three leading terms 〈x2〉 = 0.5−0.75B + 3B2. This is possible because, although the potential develops an outer pair of extra potential wells when B is negative, the groundstate wavefunction remains concentrated in the inner well, which varies smoothly as B varies through zero. The triple well potential which arises for negative B value displays yet more subtle properties when we look at the excited states. To give a particularly clear example of this behaviour we take the value B = −0.01. For this value the non-analytic groundstate energy term is so small that it is invisible to a double precision calculation of the energy but the triple well structure has an outer well so deep that it can contain several bound states. In such a situation we have a degenerate triple well potential

Table 2 The ground state energy shift E−1 and 〈x2〉 for the potential (1−3B)x2 + 2Bx4 + B2x6 with B < 0, using β = 5 and N = 1200
$$ {\text{V}}_{1} \left( {\text{x}} \right) = 1.03{\text{x}}^{2} - \, 0.02{\text{x}}^{4 } + \, 0.0001{\text{x}}^{6} $$
(12)

which gives a severe test for the Hill method. Quoting to only 2 decimal places, the symmetric potential V1(x) has maxima of 15.84 at |x| = 5.90 and outer well minima of 2.98 at |x| = 9.92. To obtain a preliminary view of the bound states which exist for this triple well system we have done two HVPT calculations, one based on x = 0 and the other based on the bottom of the right hand outer well. Table 3 includes the results of the two HVPT calculations and shows that for this degenerate triple well potential some of the energies are indeed the same for both inner and outer wells. A large number of digits in an HVPT energy indicates a highly localized wavefunction for the energy level concerned. We might thus anticipate some kind of resonance effect for these levels, leading to a splitting when the full space region is studied. A Hill method scan with a very small energy increment was then carried out and revealed the existence of close triplets of energy levels associated with the triple energies arising in the HVPT calculation. There are also some low energy single levels which arise naturally from a small perturbation of the central well oscillator potential 1.03x2. The results of the scan are shown in Table 3 along with the HVPT results which gave the information about the narrow regions to be scanned. To deal with very close energy values the Newton’s method equation of Eq. (9) is provided with a shift limiting procedure. A small maximum allowed shift DEM is chosen and then the normally calculated shift DE is divided by 1 + |R|, where R = DE/DEM. This preserves the sign of the calculated DE but limits its magnitude to be less than DEM. This is necessary because of a defect in Newton’s method; if by chance the current E estimate is near a maximum of A(N, E) then the calculated DE will be very large and the calculation might jump to a distant root of the function. The scan is started just above and then just below the closely spaced pair in order to find first one level of the pair and then the other. The results of the scan are shown in Table 4 and reveal that some levels have associated wavefunctions which are strongly concentrated in the outer wells, since the intervening potential maximum inhibits tunnelling effects for low energy states. The subtle effects arising for this system are clearly shown by the Hill method of the present work.

Table 3 Results of the HVPT calculations and the Hill method scan process for the triple well system with B = −0.01
Table 4 Hill method energy levels and 〈x2〉 values for the triple well system with B = −0.01

A simple matrix diagonalisation model can be used to describe our results for this triple well system. Denoting the localised wavefunctions of a given energy A in the left (L), centre(C) and right(R) wells by |L〉, |C〉 and |R〉 we can set up a 3 × 3 Hamiltonian matrix with diagonal matrix elements all equal to A and with small off diagonal elements 〈C|H|L〉 and 〈C|H|L〉 both equal to a small number B representing tunnelling effects between inner and outer wells. 〈L|H|R〉 and all the overlap matrix elements can be taken to be effectively zero. It is then easy to find three energy eigenfunctions; (1,0,−1)T has the energy A, (1, \( \sqrt 2 \), 1)T has the energy A + B\( \sqrt 2 \) and (1, \( - \sqrt 2 \), 1)T has the energy A−B\( \sqrt 2 \). The Hill method results show this evenly spaced structure and could even yield a value for the tunnelling parameter B in the simple matrix model. We note that [37] gives a useful set of numerical results for several triple well potentials which have a sextic potential term. We checked that our Hill method can not only give the small energy level splittings for the potentials in [37] but can also give extra expectation values results which indicate the localisation of the wavefunctions.

6 Conclusion

The efficient version of the Hill determinant method presented here permits calculation of both energies and expectation values and can deal with the sextic potential terms which various critics have said that it cannot handle. It uses a simple exponential factor exp (−βx2/2) in the wavefunction, rather than the more complicated form which the critics have imputed to it in their comments. Critics have also demanded that a very small dimension of Hill determinant (typically 20) should be required to prove that the method gives converged results. We have pointed out in this work that there is no difficulty in using a very large apparent dimension in order to ensure double precision convergence, since the actual array dimension used is typically 5. We note that even with N = 2000 each calculation takes about 3 s on a laptop computer. The numerical results presented here for subtle triple well problems should have served to disarm much of the criticism of the Hill determinant method which has appeared in the literature and also to make more widely known a useful extension of the method. The approach which we adopt here shows that by imposing the simple condition A(N, E) = 0 on the coefficients of the power series we can obtain accurate information about energies and expectation values (and thus implicitly about the wavefunction). We have chosen the value of β empirically but some authors have attempted to find approximate formulae to give a suitable β value for given potential parameters [38, 39]. Our main purpose has been to show that, despite previous criticisms, the Hill method works well for complicated bound state calculations involving sextic potential terms. In the present work we have tested the Hill method by exploring several interesting phenomena associated with double and triple well bound states in one dimension. However, several extensions of the Hill method described here are possible. By setting P = L + 1 and subtracting a term L(L + 1)α from the coefficient of A(N + 1) in Eq. (5) we can deal with states of angular momentum L. By using complex A and AE coefficients and a complex β in the three recurrence relations of the present Hill method we have elsewhere shown that it is possible to calculate the complex energies of resonant states for a potential such as x2−λx4 [40].

7 Note added in revision (may 2018)

The referees have asked the authors to explain further how the present method overcomes the problems raised by the critical works [1,2,3,4,5,6,7,8,9,10]. As we have already indicated, the opponents of the Hill determinant method set up what in rhetoric would be called a “straw man” target FIRST by giving the wavefunction an exponential factor containing x2 and x4 terms which are specifically chosen to give the exact asymptotic form to fit to the x6 term in a sextic potential and SECOND by then explicitly evaluating the associated Hill determinant numerically and searching for its zeros to find energy levels. The essential central claim made by the critical works is that the calculation does not produce a correctly square integrable wavefunction associated with each energy level. We thank one of the referees for stressing that this defect of the method has ONLY been established for the very special “exact” exponential factor case described above. Even within the Hill determinant calculation the problem can be cured by using a different exponential factor. Thus when some authors refer to “the well-known convergence difficulties of THE Hill determinant method” they are falsely extending to ALL possible exponential factors a phenomenon which has ONLY been shown to be relevant for ONE particular choice of parameters.

However,the method of the present work uses a quite different approach which DOES NOT EVEN USE any of the procedures criticized in [1,2,3,4,5,6,7,8,9,10] To calculate expectation values directly the method does NOT need to use a quadrature or any procedure requiring the explicit presence of a normalised wavefunction; instead it uses an implicit differentiation process which essentially defines an expectation value as a perturbation response coefficient. Because the present author had already previously generalised the method to such an extent that it can be used to calculate energy levels and expectation values for the case of Dirichlet boundary conditions imposed at ANY finite x value, it is clear that within that generalised method the boundary value of infinite x is the appropriate one to use in order to simulate the calculations made in the various works which have previously dealt with the simple Hill determinant method, which DOES NOT have that flexibility in its boundary conditions. That infinite boundary condition method is the one described and applied throughout this work. Since the method given here does NOT evaluate the Hill determinant it would be inappropriate to call it a Hill determinant method and so it has been called the Hill method, because it DOES use the typical Hill wavefunction form involving an exponential factor multiplied by a series. In choosing the parameter β in the simple exponential factor exp(-βx2/2) in the wavefunction it is,of course,possible to undertake a sequence of calculations in which β is varied until the dimension N needed is made as small as possible. Clearly this optimised β would vary as the potential varies, thus requiring a sequence of optimisations. In actual calculations it is found that even a simple value such as β = 5 or 10 works for many different problems if N is made sufficiently large; using N = 2000 is very much more than sufficient to give speedy and accurate results in normal double precision (with an average calculation time of 3 s). In some trial calculations we found that the rules suggested in [38, 39] can often reduce the required N value to several hundred. However, to avoid an extra preliminary calculation we find that use of a sufficiently high N is a much more simple approach, since it renders the choice of β much less critical. As explained in Sect. 2, the storage arrays used in the calculations of this work are actually ONLY of dimension 5, with the 5 elements being overwritten as the calculation proceeds up to the chosen N.