



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The recurrence relations satisfied by various special functions in mathematical physics and statistics, including Bessel functions, associated Legendre functions, regular and irregular Coulomb wave functions, and other miscellaneous functions. The document also explores the difficulty of calculating minimal solutions to these recurrence relations and provides methods for computing them.
Typology: Study notes
1 / 59
This page cannot be seen from the preview
Don't miss anything!




















































SIAM REVIEW Vol. 9, No. 1, January, 1967
recursive techniques, at one time or another. The widespread use of recurrence relations can be ascribed to their intrinsic constructive quality, and the great
most recursive processes, recurrence relations are susceptible to error growth. Each cycle ot a recursive process not only generates its own rounding errors, but also inherits the rounding errors committed in all the previous cycles. If con-
ence equations arising in the numerical solution of ordinary and partial dif- ferential equations. In the seemingly much simpler context of a single linear
and the miscellaneous recurrence relations one encounters when constructing
equations. We believe, therefore, that a systematic review of some of the compu- tational problems attending recurrence relations might be of value. In the follow-
of three-term recurrence relations. The kind of instability we are concerned with, may be described as follows. Consider a^ three-term^ recurrence relation of the form (0.1) y,+l q-^ a,y,, q-.^ b,y,_ O, n^ 1, 2, 3, ...,
solutions. We are interested in the^ special case where there^ exists such a pair
-00 g
Serious problems then arise if one attempts to compute the solution (^) f or any constant multiple of (^) f.
(0.3) lira f^0 y
for any solution y not proportional to (^) f. Such a solution, indeed, is represent- able in the form y, af, (^) + bg, with b 0, and therefore
lira lim
y b (^) + a(f/g)
If we now generate (^) f by (0.1), using only approximate initial values yo f0, y (^) f (due to rounding, for example), but recurring with infinite precision, we obtain a solution y (^) which, in general, is linearly independent of (^) f. Therefore, by (^) (0.3), we will have
as
.e., the relative^ error^ of^ ,^ the^ intended^ approximation^ to^ ,^ becomes^ arbitrarily large. Therefore, this^ srahtforward method^ of^ computing^ is^ uterly^ in- effective. Observe that the set of all solutions (^) f. of (^) (0.1) having the property indicated in (0.3) forms^ a^ one-dimensional^ subspce^ of^ the^ spce^ of^ all^ solutions.^ (There cn (^) be no two linearly dependent solutions (^) f, (^) f enjoyg this property, (^) since, otherwise, f/f,’ and^ f/f,^ would^ both^ have^ the^ limit^ zero, as^ n^ ,^ which^ is
minimal. A^ nonminimal^ solution^ will^ be^ referred^ to^ as^ dominant.^ Euch^ dominant solution is^ asymptotically proportional^ to^ g.^ Note^ thut, in^ contrast^ to^ dominant
lem of generating Bessel^ functions^ of^ the^ first^ kind, J,(x), for^ fixed^ x, and^ n 0, 1, 2, ....^ As^ is^ well-known, these functions^ (of n)^ obey^ the^ three-term^ re- currence relation
2n (0.4) y+ y^ + y.-^ 0.
J(1) on^ digital^ computer^ by^ straightforward^ recursion,^ we^ obtain^ the^ results
The notion of a minimal solution ppears to have first been^ introduced^ by^ Pincherle^ in connection with his generalization of continued frctions [44]. Pincherle^ called^ it^ "dis- tinguished" solution (soluione distint). In the^ theory of^ linear^ differential^ equations^ the term "principal" solution is also in^ use [24]. The minimal^ solution^ can^ often^ be^ identified with a solution "of type II" in terminology of^ Schfke^ [51]. This example is well known, and^ has^ received^ considerable attention^ in^ the^ literature.
regarded as (^) iust a "trick of the trade," our presentation will show that it derives naturally from rather elegant results of classical analysis. In 4 two alternate
algorithm. The remaining paragraphs discuss a number of applications, mostly to the computation of higher transcendental functions such as Bessel functions
(7), and other miscellaneous functions (^) (8-10). 11 contains an application
The extent to which our algorithms are affected by rounding errors will not be
tion of (^) terms. The rigorous analysis of error propagation is an interesting, though
y0 (^) f0, y (^) =f
al (^1) Yl
of (^) equations
(^0) aN--
cedure requires two^ values, (^) f0 and f, of^ the desired solution to^ be^ known in advance. Either^ one may be^ difficult, or time-consuming, to obtain. The problem of computing minimal solutions is^ clearly^ not peculiar to three-
tional equations, such^ as^ linear homogeneous difference and^ differential^ equa-
of all solutions is the direct sum S $1^ @ S. of two subspaces $1^ and^ S, and every solution s S dominates, in some appropriate sense, over^ every solu- tion s. $2, we may consider S as the set of^ minimal^ solutions^ with^ respect^ to
The author is indebted to Dr. M. E. Rose for pointing this out.
effective computational methods^ may exist^ also in^ this^ more^ general^ context.
every continued fraction^ we^ may in^ fact^ associate^ a^ three-term^ recurrence relation, namely the^ fundamental^ recurrence^ formula^ for^ the^ numerators^ and denominators. Vice^ versa, every^ three-term^ recurrence^ relation^ may^ be^ inter-
first (^) point of view is useful for computing continued (^) fractions, the second for
calculating a continued fraction.
1.1 al^ a^ aa bl b. (^) -t- b-t-
numbers. Denote^ its^ nth^ numerator^ and^ nth^ denominator^ by^ Am and^ B,,^ re- spectively, so^ that
bl-f- b-+- b Bn"
limn..o A,/B,.^ The^ quantities^ An,^ Bn^ satisfy^ the^ fundamental^ recurrence^ formulas
(1.3)
n 1, 2, 3, ...,
where (1.4) A_^ 1, A0 0;^ B_t^ 0,^ B0 1. This shows that^ am An-1 and^ fin B-1 constitute^ a^ pair^ of^ linearly^ independ-
(1.5) (^) Yn+ bnYn anyn--1^ 0,^ n^ 1,^ 2,^ 3,^ ....
A first^ method^ of^ computation^ flows^ directly^ from^ these^ fundamental^ recur-
(1.3) and^ (1.4), and^ concurrently^ the^ ratios^ An/Bn,^ until^ the^ latter^ converge within the^ required^ tolerance.^ As^ An and^ B are^ likely^ to^ grow^ rapidly^ with^ n,
A second method, which^ avoids^ the^ necessity^ of^ scaling,^ consists^ in^ evaluating
30 VALTER GAUTSCItI
bl"
here.
term recursion (^) (1.5). Suppose (^) now, conversely, that we are given a three-term recurrence relation
(1.11) y+l -t- any^ -t- by_^ O, bn 0, n^ 1, 2, 3, ....
Define (^) an, n to be the special solutions of (^) (1.11) with initial values
(1.12) a0 1, al 0; fl0 0, fl 1.
Then, evidently,^ A (^) On+l and^ B (^) +1 are^ the^ numerators^ and^ denominators, respectively, of the continued fraction
which is equivalent to the continued fraction
(1.14) bl^ b^ b^ ....
Yn+l
Yn
r+a+
rn-- from which
rn-
rn
n 0,1,2, ....
(1.15) (^) r-
y --b^ b^ b Y0 al--^ a2--
THREE-TERM RECURRENCE RELATIONS 31
tion the ratios are to be formed. These matters are clarified by the following theorem. THEOREM 1.1 (Pincherle [45]). The continued (^) fraction (1.14) converges (^) "if and only (^) if the recurrence relation (1.11) possesses a minimal solution (^) f with (^) fo O. In case (^) of convergence, moreover, one has
f-i^ an--^ an+l-- an+2--
provided (^) f O (^) for n 0,1,2, .... Proof. (a)^ Assume^ the^ continued^ fraction^ in^ (1.14)^ converges.^ Then^ so^ does
C
(1.17) (^) f a- (^) c. Take any other solution of (1.11), say y aa (^) + b. Then^ ac^ + b^ 0, and
lim f^ =lim a-c^ lim (a/)^ -c =0. y (^) n aa (^) + b, (^) a(a./) (^) + b This shows^ that^ the^ solution^ f defined^ in^ (1.17) is^ a^ minimal^ solution^ of^ (1.11). Moreover, (^) f0 a0 0. (b) Assume^ now^ that^ (1.11) possesses a^ minimal^ solution, (^) f say,^ for^ which f0 0.^ Then
We note^ that^ @ is^ not^ a^ constant^ multiple^ of^ f, since^ f0 0.^ Therefore, (^) f
lira (^) ,f^ f0 lira a+f 0,
and so
lirn a^ _f f0"
in (^) (1.14), and also proves (^) (1.16) for n 1. To prove (^) (1.16) for general n (^) > 1, we need only observe that (^) zm f+m-1, considered as a function of (^) m, is a minimal solution of
z,+ na^ an+z,^ -P bn+m_lZm^ O,^ n^ 1,^ 2,^ 3,
in the form
() 1 () () V (a+v+^ v+.;. bn+l
Since we already established (^) (1.21) for n <_- (^) 1, it now follows by induction
n, ,.^ Theorem^ 1.2^ is^ proved. We note that relation (^) (1.21), for (^) > n, can also be obtained from the known fact (^) (el. [43, vol. (^) I, p. (^) 3]) that (^) /-z()^ nd ()re the numerators nd
where
b’-i
am b’ b
result that "multipliers" of^ a^ linear^ difference^ equation^ satisfy^ the^ adjoint
given solution^ of^ a^ three-term^ recurrence^ relation^ to^ be^ minimal^ than^ to^ establish
classicM results^ from^ the^ asymptotic theory^ of^ derence^ equations,^ notably^ by^ a
for the special case^ of^ a^ second-order^ difference^ equation
(2.1) y+^ ay^ by_^ 0, n^ 1, 2, 3, ....
(2.2) b0, n=^ 1,2,3, ....
limits
(2.3) a a, b b,^ n^ ,
not (^) excluding that b 0. One then calls (^) (2.1) a Poincar$^ difference equation, and calls
(2.4) (t) (^) + at^ + b
the characteristic^ polynomial of^ (2.1). As^ may^ be^ expected,^ the^ solutions^ of (2.1) behave silarly, for^ large^ n, to^ the^ solutions^ of^ the^ difference^ equation (2.1) with^ cstant^ coefficients^ a a, b b.^ This^ is^ borne^ out^ by^ the^ following two theorems.
34 WALTER GAUTSCHI
TtIEOREM 2.1 (^) (Poincar [46]). (^) If the characteristic (^) polynomial (2.4) (^) of (2.1) has zeros (^) tl t2 (^) of distinct (^) moduli,
(2.5) (^) It1 > It2 !,
then for every nontrivial (^) solution y, (^) of (2.1) we (^) have
(2.6) lim Y+-----^ tr, r^ 1, or^ r^ 2. Yn THEOREM 2.2 (^) (Perron [41]). Under the assumption (^) of Theorem 2.1 there exist two (^) linearly independent solutions y, and y,2 (^) of (2.1) such that
n--> Yn,r Theorem 2.2 (^) implies that
f
for n sufficiently large,
Yn+l, (^) <
and
Y,I This (^) shows that
/ \n--no
from which the assertion (^) follows.
any other^ solution.
(2.8) a,-an", b,bn^ ,^ ab^ 0; a, real; n-.
The (^) asymptotic structure of the solutions now (^) depends on the (^) Newton-Puiseux
line (^) PoPP if (^) P is above the (^) straight line (^) joining P0 with (^) P2" otherwise it
(3.5)
Similarly, we have
the recurrence relation
(3.1) (^) Yn+I a,y (^) bnYn-1 O, n 1, 2, 3,’’’, has a nonvanishing minimal (^) solution, (^) fn. We wish to (^) calculate (^) f for n (^) 0, 1, 2, N. In order to (^) specify (^) f uniquely, we (^) can impose one (^) condition, for example prescribe the value of (^) f0 For later (^) applications, we consider the more general normalization
m
We do not exclude that (^) X 0 for 11 m (^) > 0, in which cse (^) (3.2) mounts (^) to prescribing (^) f In (^) sense, (3.2) represents the most general linear condition that (^) my be im-
_f+ 1 (3.3) (^) rn (^) f .% (^). Xf.
(3.4) r- n 1, 2, 3, .-..
Hence, we^ can^ generate the^ ratios^ r for 0 N n (^) < as in (1.6)-(1.8) by
rn-1 u, u^ 1,^ ...,^ 1. an rn
so that
( )
m=n-t--
(3.6) (^) 8n--1 rn--l()n (^) 21- 8n), ,^ ,^ 1,’’’, l.
Hence, also^ the^ quantities s for^0 -<_^ n (^) < ,^ and^ thus^ in particular so, can be ob-
The assumption of (^) f to be nonvanishing is no serious restriction from the (^) practical point of view. This is further discussed at the end of this paragraph.
.. Xf,^
(s (^) ,ofo)
and so
8 X0 (^) + So
now be obtained immediately from
fn rn-’n-1,^ n^ 1,^ 2,-..,^ N.
(3.7) (^) r () O, r ()n-^ --bn^ bn+^ b 1 _-<n-<v, an-- (^) an+l-- a
(3.8) s ()
() (^) Xrn()r (^) ()n+ r()- (^0) m----n+l =<^ n^ <^.
One then^ verifies readily that^ the formulas (3.5), (3.6) continue to hold if (^) rn is replaced by (^) rn (), and^ s by sn ()^ throughout. Hence the following set^ of recursions arises naturally,
r
() O rn- an (^) + rn ()^ n v, v 1,..., 1, () (^) r() ()
() O, sn- n-l(M (^) + sn ),
fo(V)
8 fn(v) (v) rn-lan-l 1,^ 2,^ ", N. ho (^) + So () While our initial procedure gave us the^ exact values (^) fn of^ the^ minimal solution, the quantities (^) fn (’)^ now^ derived^ are^ at^ best^ approximations to^ fn. It^ remains^ to successively improve (^) fn (’)^ by repeating (3.9) for^ a^ sequence of^ increasing values^ of
. (^) The complete algorithm for (^) computing the minimal solution (^) may thus be de- fined (^) as follows: Step 1:^ Select an^ integer (^) => N, and^ let^ n ()
Step 2:^ Calculate (^) fn (), n 0, 1, N, according to^ the^ formulas^ in (3.9). Step 3: If the N^ + 1 values of^ fn ()^ obtained^ in Step 2 do^ not^ agree with^ the current values of (^) Cn (’)^ to within the^ desired accuracy, then^ redefine^ (’) by n (’) fn (’),^ n^ 0,^ 1,^ N,^ increase^ by^ some^ fixed^ integer,^ say^ 5,^ and^ repeat Step 2; otherwise accept (^) fn ()^ as the final approximations to fn, n 0, 1, N. We note that in the^ special case k0 1, (^) k X 0, all sn (’)^ vanish, so
_ in (3.9) may be omitted. Moreover, s f0, and there-
THREE-TERM RECURRENCE RELATIONS 39
ties (^) v() grow rapidly as (^) increases, and my cause "overflow" on digital com- purer. In contrast (^) to this, the (^) quantity (^) r ()^ in (3.9) converges to a finite limit as ,
--
, (^) and (^) so does (^) s ()^ if the (^) algorithm converges at all. We now use (3.12) to discuss convergence s ,
--
gt Clearly, () a^ ()f (^) + b ()^ gn
for some constants a (), b ().^ By (3.11) we must have
The first of these relations gives b ()^ (f+z/gz)a (), so that
() a () (f
f+l ) --
g+g
f(l
f+ g) (3.15) f() g+
1-! (^2) xf f+^ Xgm
that (^) lim f(’) (^) f if^ and^ only^ if
(3.16) lira^ f+^ hg 0.
solution, (^) f for which^ (3.2) holds.^ Let^ g^ be^ any^ other^ solution^ of (3.1). Then^ the
if and^ only^ if (3.16)^ is^ satisfied.
g+l (^) ___> (^) tl f+l g,
Itl >^ Itl,^ t,,.^ <^.
It is useful to observe that (^) convergence of the (^) algorithm (3.9), in the sense of
--
,
directly from (^) (3.4) and (3.7). The second follows by induction on n. (^) Indeed, if n (^) 0, we (^) have from (^) the third line in (3.9), () () s^00 s^ 0f So
-- f
So,
--
.
S-I, we^ get from^ the^ second^ line^ in^ (3.9), and^ from^ (3.6), that 8() ,) rn-1 rn- In case of convergence of the algorithm (3.9), we may obtain^ from^ (3.15) the
f() (^) f 1 Xmfm -t-^ f+__L (^) Xm gm f+---2 g--
It is interesting to examine what effect the^ modification (3.10) of^ algorithm (3.9) will have upon the relative error (3.18). We^ assume that
() =A
8g+l m=O
see that the modification (3.10) reduces the^ relative^ error^ of^ f(’)^ effectively^ by^ a factor of ,^ I, or (^) w I, whichever is^ lurger. Hence, our statement^ made^ earlier^ that the convergence of (^) f ()^ to (^) f is^ fster^ the better p approximates r, and^ ,^ approx- imates s, is clearly vindicated.
(3.19) F c,f,,^ c,^ 0, to exert influence upon the convergence criteria (3.14) and^ (3.16). We^ note, how- ever, that^ these^ criteria^ are^ invariant^ with^ respect^ to^ any^ linear^ substitution^ of the form (3.19).
42 WALTER GAUTSCHI
that the presence, or proximity, of such zeros need be^ of no great concern. Suppose, indeed, that (^) f-i is very small in modulus, compared to (^) f. For definiteness, let n (^) > 1. Then, by (3.3), rn_l is very large, and so is r (^) n- I, when , (^) is sufficiently large. From the first line in (3.9) it follows that (^) an (^) + rn()[ must be very small compared to (^) b (^) I. Since neither (^) an nor (^) r ()^ will normally be small, this means that many digits will cancel when the sum (^) a (^) + r ()^ is formed, and so () r_ is not only very large, but also very inaccurate in terms of significant digits. Consequently, (^) r-() will be very small, and also inaccurate. However, r_
_
on, in the formation of the final results,()^ r()^ ()
_ -_ will come out very small and inaccurate, as one must expect. The really questionable point is the computa- tion of ()^ r () (^) #) ()
() (^) b n--1 rn--2 (^) In--2 ’n--1 (^) () a.. 1/r^ () () (^) () which shows that the lrgeness of (^) rn- SVeS (^) fn from becoming (^) inaccurate, even though ()^ ()^ ()
(^0) () s^ this would ffect 11 subsequent ().^ It could indeed occur that (^0) + s0 is smll in comparison with 0 , so that mny digits cncel when (^0) + s0 ()^ is formed. The resulting vlue of ()^ would then be quite inaccurate. The sme difficulty might 0 rise if 0 0. Suppose, indeed, that (p (^) > 0) is the first nonvnishing co-
X O,^ X^ O,^0 m^ <^ p, nd that () Ik + s^ hppens^ to^ be^ very^ smll^ compared^ to^ lX.^ Then^ s_^ is necessarily inaccurate, nd this in.ccuracy will be transmitted to all subsequent () () (^) () () 8n--i nd^ finally^ to^0 (),^ in^ view^ of^ the^ relations^ s- r-s n^ p^1 p (^) 2, 1, nd (^) f0 ()^ S/So (). Now for large ,,^ and p 0, we have 1 f (^) =+
s
so that (^) I(X (^) + s())/X is small if (^) ls/(Xf,)] is small. (^) Hence, dangerous cancel- lation occurs when s is small in absolute value compared to the (^) first nonvanishing
be (^) repeated with increasing values of ,, until sufficient agreement is obtained between successive results (^) fn (’), for all n (^) 0, 1, N. This (^) disadvantage can
(^0) =< n (^) < N, and hence also (^) fn for 0 __< n (^) N N, once (^) rn, s are known. In the fol- lowing we derive a method for calculating (^) r, sN reeursively. If (^) f0 is (^) known, the
(4.1) -b+l^ bN+^ b+ r aN+l aN+2-- ar+a--
by either the first, or third method described in (^) 1. In the first case we have
(4.2) (^) r lim A
where
A_t (^) 1, A0 0; B_ (^) 0,
(4.3) (^) A ar+A_ (^) br+A
_
B ar+B_ br+B_, In the second case w6 have
(4.4) r lim^ w,,
ul 1 vl Wl aar+l 1 (4.5) u+--^ 1- (^) (bv++/ar+av++)u’
v+ v(u+^ 1), 1,2,3, ....
where (^) s (’)^ is defined by (3.8). The quantities s (), N, may be^ obtained re-
’
that
(4.7) (^) v (’)s^ ()^ Xv,, (") m----N+