The ABC of hyper recursions

Similar documents
New series expansions of the Gauss hypergeometric function

The Gauss hypergeometric function F (a, b; c; z) for large c

arxiv: v1 [math.ca] 17 Sep 2015

Centrum voor Wiskunde en Informatica

arxiv:math/ v1 [math.ca] 7 May 2002

Additional material: Linear Differential Equations

COMPUTATION OF BESSEL AND AIRY FUNCTIONS AND OF RELATED GAUSSIAN QUADRATURE FORMULAE

Some Summation Theorems for Generalized Hypergeometric Functions

Centrum voor Wiskunde en Informatica

POLYNOMIAL SERIES EXPANSIONS FOR CONFLUENT AND GAUSSIAN HYPERGEOMETRIC FUNCTIONS

On the Chebyshev quadrature rule of finite part integrals

Quadratic Transformations of Hypergeometric Function and Series with Harmonic Numbers

The Expansion of the Confluent Hypergeometric Function on the Positive Real Axis

SPECIAL FUNCTIONS AN INTRODUCTION TO THE CLASSICAL FUNCTIONS OF MATHEMATICAL PHYSICS

Some Analytical and Numerical Consequences of Sturm Theorems

1. Introduction The incomplete beta function I(a, b, x) is defined by [1, p.269, Eq and p.944, Eq ]

arxiv: v1 [cs.ms] 14 Aug 2016

International Journal of Pure and Applied Sciences and Technology

Centrum voor Wiskunde en Informatica

NUMERICALLY SATISFACTORY SOLUTIONS OF HYPERGEOMETRIC RECURSIONS

Barnes integral representation

Fractional integral and generalized Stieltjes transforms for hypergeometric functions as transmutation operators

(x 1, y 1 ) = (x 2, y 2 ) if and only if x 1 = x 2 and y 1 = y 2.

Journal of Computational and Applied Mathematics

MATH 543: FUCHSIAN DIFFERENTIAL EQUATIONS HYPERGEOMETRIC FUNCTION

Computing the real zeros of hypergeometric functions

Research Article Extensions of Certain Classical Summation Theorems for the Series 2 F 1, 3 F 2, and 4 F 3 with Applications in Ramanujan s Summations

The Hardy-Littlewood Function: An Exercise in Slowly Convergent Series

On the remainder term of Gauss Radau quadratures for analytic functions

Transformation formulas for the generalized hypergeometric function with integral parameter differences

Interpolation of Rational Functions on a Geometric Mesh

ASYMPTOTIC EXPANSIONS

Contents. I Basic Methods 13

MATH1050 Basic results on complex numbers beyond school mathematics

AN ADDITIVE PROBLEM IN FINITE FIELDS WITH POWERS OF ELEMENTS OF LARGE MULTIPLICATIVE ORDER

Asymptotics of a Gauss hypergeometric function with large parameters, IV: A uniform expansion arxiv: v1 [math.

MOMENTS OF HYPERGEOMETRIC HURWITZ ZETA FUNCTIONS

MATH COMPLEX ANALYSIS. Contents

Journal of Mathematical Analysis and Applications

Physics 6303 Lecture 11 September 24, LAST TIME: Cylindrical coordinates, spherical coordinates, and Legendre s equation

arxiv:math/ v1 [math.ca] 8 Nov 2003

1. The positive zero of y = x 2 + 2x 3/5 is, to the nearest tenth, equal to

Accumulation constants of iterated function systems with Bloch target domains

arxiv:math/ v1 [math.ca] 15 Jul 2004

Applicable Analysis and Discrete Mathematics available online at

The evaluation of integrals of Bessel functions via G-function identities

A NOTE ON THE ASYMPTOTIC BEHAVIOUR OF A PERIODIC MULTITYPE GALTON-WATSON BRANCHING PROCESS. M. González, R. Martínez, M. Mota

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p

FRACTIONAL HYPERGEOMETRIC ZETA FUNCTIONS

Computation of asymptotic expansions of turning point problems via Cauchy s integral formula

ON GENERATING FUNCTIONS OF THE JACOBI POLYNOMIALS

Certain Generating Functions Involving Generalized Mittag-Leffler Function

IYGB. Special Paper U. Time: 3 hours 30 minutes. Created by T. Madas. Created by T. Madas

CESÁRO TYPE OPERATORS ON SPACES OF ANALYTIC FUNCTIONS. S. Naik

Bessel s and legendre s equations

CHAPTER 3 POTENTIALS 10/13/2016. Outlines. 1. Laplace s equation. 2. The Method of Images. 3. Separation of Variables. 4. Multipole Expansion

LECTURE-13 : GENERALIZED CAUCHY S THEOREM

A Note on the 2 F 1 Hypergeometric Function

SMOOTHNESS PROPERTIES OF SOLUTIONS OF CAPUTO- TYPE FRACTIONAL DIFFERENTIAL EQUATIONS. Kai Diethelm. Abstract

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial.

Index. for Ɣ(a, z), 39. convergent asymptotic representation, 46 converging factor, 40 exponentially improved, 39

MA30056: Complex Analysis. Revision: Checklist & Previous Exam Questions I

Intrinsic products and factorizations of matrices

Oberwolfach Preprints

ON POLYNOMIAL REPRESENTATION FUNCTIONS FOR MULTILINEAR FORMS. 1. Introduction

On Bank-Laine functions

A shorter proof of Thomassen s theorem on Tutte paths in plane graphs

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX

Die Grundlehren der mathematischen Wissenschaften

On critical Fujita exponents for the porous medium equation with a nonlinear boundary condition

arxiv: v2 [math.ca] 2 Sep 2017

REPORTRAPPORT. Centrum voor Wiskunde en Informatica. Asymptotics of zeros of incomplete gamma functions. N.M. Temme

When does a planar bipartite framework admit a continuous deformation?

THE ZERO-DISTRIBUTION AND THE ASYMPTOTIC BEHAVIOR OF A FOURIER INTEGRAL. Haseo Ki and Young One Kim

Part IB. Further Analysis. Year

CertainFractionalDerivativeFormulaeInvolvingtheProductofaGeneralClassofPolynomialsandtheMultivariableGimelFunction

A NICE DIOPHANTINE EQUATION. 1. Introduction

Limits for BC Jacobi polynomials

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 22, Time Allowed: 150 Minutes Maximum Marks: 30

Introduction to Real Analysis Alternative Chapter 1

Asymptotics of Integrals of. Hermite Polynomials

On Turán s inequality for Legendre polynomials

NATIONAL UNIVERSITY OF SINGAPORE Department of Mathematics MA4247 Complex Analysis II Lecture Notes Part II

Introduction to Complex Analysis

EE731 Lecture Notes: Matrix Computations for Signal Processing

Note on the Schwarz Triangle functions

RECENT PROGRESSES IN THE CALABI-YAU PROBLEM FOR MINIMAL SURFACES. Antonio Alarcón

Geometric Series and the Ratio and Root Test

Problem Solving 3: Calculating the Electric Field of Highly Symmetric Distributions of Charge Using Gauss s Law

MULTICENTRIC CALCULUS AND THE RIESZ PROJECTION

The infinite square well in a reformulation of quantum mechanics without potential function

ON A NESTED BOUNDARY-LAYER PROBLEM. X. Liang. R. Wong. Dedicated to Professor Philippe G. Ciarlet on the occasion of his 70th birthday

Relative Densities of Ramified Primes 1 in Q( pq)

Math Homework 2

The Singapore Copyright Act applies to the use of this document.

R.2 Number Line and Interval Notation

A derivative-free nonmonotone line search and its application to the spectral residual method

The restarted QR-algorithm for eigenvalue computation of structured matrices

A mathematical model for a copolymer in an emulsion

Packing Congruent Bricks into a Cube

Transcription:

Journal of Computational and Applied Mathematics 90 2006 270 286 www.elsevier.com/locate/cam The ABC of hyper recursions Amparo Gil a, Javier Segura a,, Nico M. Temme b a Departamento de Matemáticas, Estadística y Computación, Univ. Cantabria, 39005-Santander, Spain b CWI, P.O. Box 94079, 090 GB Amsterdam, The Netherlands Received 30 September 2004 Dedicated to Roderick Wong on the occasion of his 60th birthday Abstract Each member of the family of Gauss hypergeometric functions f n = a + ε n, b + ε 2 n; c + ε 3 n;, where,c and do not depend on n, and ε j = 0, ± not all ε j equal to ero satisfies a second order linear difference equation of the form A n f n + B n f n + C n f n+ = 0. Because of symmetry relations and functional relations for the Gauss functions, the set of 26 cases for different ε j values can be reduced to a set of 5 basic forms of difference equations. In this paper the coefficients A n, B n and C n of these basic forms are given. In addition, domains in the complex -plane are given where a pair of minimal and dominant solutions of the difference equation have to be identified. The determination of such a pair asks for a detailed study of the asymptotic properties of the Gauss functions f n for large values of n, and of other Gauss functions outside this group. This will be done in a later paper. 2005 Elsevier B.V. All rights reserved. MSC: 33C05; 39A; 65D20 Keywords: Gauss hypergeometric functions; Recursion relations; Difference equations; Stability of recursion relations; Numerical evaluation of special functions Corresponding author. E-mail addresses: amparo.gil@unican.es A. Gil, javier.segura@unican.es J. Segura, nicot@cwi.nl N.M. Temme. 0377-0427/$ - see front matter 2005 Elsevier B.V. All rights reserved. doi:0.06/j.cam.2005.0.04

. Introduction A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 27 The Gauss hypergeometric functions a + ε n, b + ε f n = 2 F 2 n ;. c + ε 3 n where ε j are integers,,c and do not depend on n, and c ; a = n b n c n n! n, <.2 n=0 satisfy a second order linear difference equation also called a three-term recurrence relation of the form A n f n + B n f n + C n f n+ = 0..3 For example, we have a,b c a ; c a +,b + a ; c + 2a + c a b c ; = 0,.4 in which we can replace a with a + n. Other examples are given in [, p. 558]. In this paper we consider the 26 recursion relations with respect to n for the cases ε j = 0, ±, j =, 2, 3, ε 2 + ε2 2 + ε2 3 = 0,.5 and by using symmetry relations and functional relations for the Gauss functions we assign a set of 5 basic forms from which the remaining 2 cases can be obtained. A solution f n of the recurrence relation.3 is said to be minimal if there exists a linearly independent solution g n, of the same recurrence relation such that f n /g n 0asn. In that case g n is called a dominant solution. When a recurrence admits a minimal solution unique up to a constant factor, this solution should be included in any numerically satisfactory pair of solutions of the recurrence. Given a solution of the recurrence relation, it is crucial to know the character of the solution minimal, dominant or none of them in order to apply the recurrence relation in a numerically stable way. Indeed, if f n is minimal as n +, forward recurrence increasing n is an ill conditioned process because small initial errors will generally dominate the recursive solution by introducing an initially small component of a dominant solution; backward recurrence is well conditioned in this case. The opposite situation takes place for dominant solutions. For each basic form we give the coefficients A n, B n and C n, and after computing limits of the ratios β = lim n A n /C n and α = lim n B n /C n we determine the eros t and t 2 of the characteristic polynomial t 2 + αt + β, and we give curves in the -plane where t = t 2. These curves enclose domains where a pair {f n,g n } of minimal and dominant solutions of the difference equation has to be identified. For each basic form, and for each domain in the -plane defined by the boundary curves belonging to that form, we give a number of candidates of minimal and dominant solutions. The selection of a suitable pair {f n,g n } of minimal and dominant solutions can be done after a detailed study of the asymptotic

272 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 behaviour of the Gauss functions a + ε n, b + ε 2 n; c + ε 3 n; for large values of n, with afixed complex number, and of other Gauss functions outside this group. This will be done in a second paper. We conclude with a numerical example that shows the efficiency of using a particular difference equation. 2. Basic recursion relations and their solutions There are 26 recursion relations for these functions for all choices of ε j. However, we can use several functional relations in order to reduce our study to few basic recursions equations. First, we have the symmetry relation b, a c ; = c ;. 2. In addition, the following relations can be used: c ; = a a,c b ; c c ; = b c 2 F ; c c ; = c a b c a,c b c, 2.2, 2.3 ;. 2.4 See [, p. 559]. These relations show that a great number of the 26 cases are equivalent or follow from each other. In fact we can find 5 basic forms that need to be studied, while the remaining cases follow from the relations in 2. 2.4. When c = 0,, 2,...the Gauss hypergeometric function in.2 is not defined. Also, when a or b assume non-positive integer values, the series in.2 terminates. In the following we will not distinguish about these special cases and the general cases, and we assume that all representations of the functions to be given are well defined, and we will not specify that special values of the parameters should be excluded in the results. In Table we give an overview of all possible recursions, and indicate the five basic forms. Observe that we take recursion in positive direction equivalent with recursion in negative direction, however we will need to distinguish between both directions when studying the asymptotic behavior of the solutions; see also Section 7.Apart from the notation in Table, we will also use the notation signε signε 2 signε 3 when ε j. For example, the case k = 4 will be also denoted by + 0 +. This means that we consider the recursion relation for the function a + n, b f n = c + n ;. 2.5 By using 2.3 we can write this as f n = b c c + n ; ζ, ζ =. 2.6

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 273 Table Only five basic forms remain k ε ε 2 ε 3 Type Comments 3 Use 2.4 2 0 Basic form 3 Basic form 4 0 3 Use 2.3 5 0 0 Basic form 6 0 Basic form 7 6 Use 2.3 8 0 2 Use 2.2 9 6 Use 2.2 0 0 3 Use 2.2 0 0 5 Use 2. 2 0 6 Use 2. 3 0 0 Basic form 4 0 0 0 Void 5 0 0 3 Change sign in 3 6 0 2 Change signs in 2 7 0 0 Use 2.2 8 0 5 Use 2.2 9 7 Use 2. 20 0 8 Use2. 2 9 Use 2. 22 0 6 Use 2. 23 0 0 7 Use 2. 24 0 8 Use 2. 25 3 Change signs in 3 26 0 2 Use 2.4 27 5 Use 2.4 If we have a pair {F n,g n } of minimal and dominant solutions of recursion relation related with the basic form k = 3, we can use relation 2.3 to obtain a pair {f n,g n } for the recursion relation related with k = 4. In the next section we give other functional relations between the Gauss hypergeometric functions, in which always one Gauss function is expressed in terms of two other ones. These relations are important for finding the second solution of the linear difference equations, and in many cases they are important for obtaining asymptotic information. They will not be used for reducing further the 5 basic forms. 3. Selecting a second solution Once we have reduced the number of basic recursions to be studied to 5, we will give for each basic form the coefficients A n,b n and C n of the recursion relation.3 and we have to study the character of

274 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 f n as a solution of the corresponding recurrence relation. For this, we will need to find a second solution of the relation which forms a satisfactory pair of solutions together with f n i.e. a pair which includes the minimal solution when it exists. This second solution can be chosen from several connection formulas between the hypergeometric functions. For example, the functions c ; and c a c +,b c + ; 2 c both satisfy the differential equation see [7, p. 2] d2 w + c a + b + dw abw = 0. 3.2 d2 d Both functions in 3. also satisfy the same difference equation, when a suitable normaliation for the second function is chosen. To obtain this normaliation we use the relation c ; ΓcΓc a b = Γc aγc b 2F a + b c + ; ΓcΓa + b c + c a b c a,c b 2 ΓaΓb F c a b + ;, 3.3 where phase < π see [, Eq. 5.3.6] or [7, p. 3]. By replacing by and a + b c + by c we can write this in the form c ; = P a + b c + ; Q c a c +,b c + ;, 3.4 2 c where phase < π and P = 3. Γa + cγb + c Γc Γa + cγb + c, Q=. 3.5 Γa + b c + Γ c ΓaΓbΓ c For example, for the recursion in.4 we may consider as a second solution the second term in 3.4, replacing a by a + n, and deleting the factors that do not depend on n. This gives the two solutions of.4 a + n, b f n = ;, c Γa + n + c a + n c +,b c + g n = 2 Γa + n F ;. 3.6 2 c

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 275 The principal questions now are:. Are these two functions linear independent solutions of.4? 2. Do they constitute a numerically satisfactory pair? That is, is one member dominant with respect to the other one for large n? 3. If these two questions are answered affirmatively, in which domains of the -plane hold these properties? Considering the fact that both f n and g n are of type + 00, and that in this choice of g n no other factors occur that significantly influence the asymptotic behaviour of g n, we cannot expect that the first two questions are answered affirmatively. Taking the first term in 3.4, again deleting in P the nonrelevant gamma functions, we obtain the pair a + n, b f n = ;, c Γa + n + c g n = Γa + n + b c + 2F a + n, b a + n + b c + ;, 3.7 in which the Gauss function for g n is now of type + 0 +, which seems to be a better choice. By using 2.3, however, we obtain Γa + n + c g n = Γa + n + b c + b 2 F b c +,b a + n + b c + ;, 3.8 where phase < π. The asymptotics of this g n easily follows from the power series in.2. The Gauss function is + O/n for large values n. Asymptotic properties of f n are needed to conclude if the pair in 3.7 constitute a satisfactory pair, and if so, in which domains of the -plane. Another connection formula to be used is c ; = Γ aγb c + Γ cγb a + a c c a b a,c a b a + ; Γc Γb c + Γ a c c a b 2 ΓbΓc aγ c F a, b ; 2 c, 3.9 where phase < π. This relation follows from see [, Eq. 5.3.7] c ; ΓcΓb a a, c + a = ΓbΓc a a b + a ; ΓcΓa b b, c + b + ΓaΓc b b a + b ;, 3.0 after we change / and use the result 2.4.

276 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 By taking the second term of 3.9, deleting the factors that are constant in the recursion, we obtain as a second solution for the + 00 case the function n Γ a n a n, b g n = Γc a n 2F ;. 3. 2 c The gamma functions of the form Γα n, with integer n, can be replaced by using the relation see [7, p. 74] This gives Γα n = n π sinπαγn + α. 3.2 n Γa + n + c g n = 2 Γa + n F and, by using 2.3, it follows that we can also take n Γa + n + c g n = 2 Γa + n F a n, b ; 2 c c + a + n, b ; 2 c, 3.3 3.4 in which the final Gauss function is of type + 00, just as f n in 3.6. But this Gauss function has a different -argument, and this g n has a factor n in its representation. Again, more asymptotic properties of f n are needed to conclude if this g n is a proper companion to form a satisfactory pair with f n. Other connection forms to be used for obtaining the second solution are see [, p. 559] or [7, p. 3] c ; ΓcΓb a a,c b = ΓbΓc a a b + a ; + where phase < π, and c ; = ΓcΓa b ΓaΓc b b ΓcΓc a b Γc aγc b a + b, c a a + b ; a, c + a a + b c + ; ΓcΓa + b c a c c a b 2 ΓaΓb F, 3.5 c a, a c a b + ;, 3.6 where phase < π and phase < π. From the connection formulas given in this section new forms can be derived, for example by replacing / by in 3.5 or / by in 3.6 and by using 2.2 2.4. Each term in the connection formulas satisfies the hypergeometric differential equation 3.2, and all these manipulations give Kummer s 24 solutions of the differential equation. For the complete collection, see [, p. 563]. All these 24 functions, properly normalied with fractions of gamma functions, can also be used to construct for a certain domain of the -plane a pair of minimal and dominant solutions of a given basic recurrence relation.

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 277 4. Coefficients for the basic forms We give the coefficients A n, B n and C n of the basic recursions. In each case we give the solution f n and a possible candidate g n for constructing a pair of minimal and dominant solutions. However, neither f n nor g n may play a role in identifying minimal and dominant solutions. In a later paper we give full details about this. In the next section we will obtain the regions of existence of minimal solutions by means of Perron s theorem. 4.. Basic form k = 2 The + +0 recursion relation reads A 2 a + n, b + ny n + B 2 a + n, b + ny n + C 2 a + n, b + ny n+ = 0, 4. where A 2 a, b = c ac bc a b, B 2 a, b = c a b{ca + b c + c 2ab + [a + bc a b + 2ab + c]}, C 2 a, b = abc a b + 2, 4.2 with solutions given by a + n, b + n f n = ;, c g n = Γa + n + cγb + n + c 2 Γa + b + 2n c + F a + n, b + n a + b + 2n c + ;. 4.3 The second solution is taken from the first term in Eq. 3.4. As we will later show, when 0 the recurrence has no minimal solutions, whereas in compact domains that do not contain points of, 0], a pair of minimal and dominant solutions exists. This case has applications for Jacobi polynomials. We have P n α,β n + α + x n n, x = n 2 2 F β n ;, = x α + x +. 4.4 A representation with +n at the a and b places follows from applying 2.4. In the interval of orthogonality x, we have 0, and if x [, ] the recursion relation of the Jacobi polynomials can be used for computing these functions in forward direction. Only the usual rounding errors should be taken into account. 4.2. Basic form k = 3 The + + recursion relation reads A 3 a + n, b + n, c ny n + B 3 a + n, b + n, c ny n + C 3 a + n, b + n, c ny n+ = 0, 4.5

278 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 where A 3,c= a ca c b cb cu, B 3,c= c[c U + c 2 V + c 3 UV], c = b cb [a + b c ], c 2 = bb + c a + b c + 2, c 3 = c 2b a b, C 3,c= abcc 3 V, U = a + b c + a + b c + 2 + ab, V = a b + ab + a + b c a + b c 2, 4.6 with solutions given by a + n, b + n f n = ;, c n Γa + c + 2nΓb + c + 2n g n = Γa + b c + + 3nΓ c + n 2F a + n, b + n a + b c + + 3n ;, 4.7 where we have used the first term in Eq. 3.4. 4.3. Basic form k = 5 The + 00 recursion relation reads where A 5 a + ny n + B 5 a + ny n + C 5 a + ny n+ = 0, 4.8 A 5 a = c a, B 5 a = 2a c a b C 5 = a, 4.9 with solutions given by a + n, b f n = ;, c n Γa + n + c a n, b g n = 2 Γa + n F ;, 4.0 2 c where we have used the first term in the right-hand side of 3.9.

4.4. Basic form k = 6 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 279 The + 0 recursion relation reads where A 6 a + n, c ny n + B 6 a + n, c ny n + C 6 a + n, c ny n+ = 0, 4. A 6 a, c = a ca c b c[a + b + c], B 6 a, c = c[aa c + aa a + 3b 4c + 2 + b cb + c4a c 2 a bb cb + c 3 ], C 6 a, c = acc [a + b c] 2, 4.2 with solutions given by a + n, b f n = c n ;, Γa + c + 2nΓb + c + n g n = Γa + b c + + 2nΓ c + n 2F a + n, b a + b c + + 2n ;, 4.3 where g n is selected from the first term of Eq. 3.4. 4.5. Basic form k = 3 The 00+ recursion relation reads where A 3 c + ny n + B 3 c + ny n + C 3 c + ny n+ = 0, 4.4 A 3 c = cc, B 3 c = c[c 2c a b ], C 3 c = c ac b, 4.5 with solutions given by f n = c + n ;, g n = n n Γc + n c a + n, c b + n Γc a b + + n 2F c a b + + n ;, 4.6 where we have used the second term in the right-hand side of 3.3.

280 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 5. Domains for minimal and dominant solutions Perron s theorem see [9, Appendix B] gives in the case of finite limits the following results. Given a difference.3 we define B n A n α := lim, β := lim. 5. n C n n C n Let t and t 2 denote the eros of the characteristic polynomial t 2 + αt + β = 0. Then, if t = t 2 the difference equation has two linear independent solutions f n and g n with the properties f n+ t, f n If t = t 2, then g n+ g n t 2. 5.2 lim sup y n /n = t 5.3 n for any nontrivial solution y n of.3. In the following subsections, we give for the five basic forms the domains in the -plane where t = t 2. In these domains there is a true distinction between the two solutions of.3. If t > t 2 then the solution f n that satisfies the relation in 5.2 is a maximal solution and g n is the minimal solution. On the curves where t = t 2 the two solutions are neither dominant nor minimal, and recursion in forward or backward direction is not unstable. For all five basic forms the ratios A n /C n and B n /C n of the difference equation.3 tend to finite limits as n. Interestingly, in all cases these limits are functions of, and they are not dependent on the parameters a, b or c. 5.. The domains for basic form k = 2 The limits α and β of 4. are 2 + α = 2, β = 2. 5.4 The eros of the characteristic polynomial are t = 2, t 2 = 2. 5.5 + The equation t = t 2 holds when 0, otherwise t > t 2. 5.2. The domains for basic form k = 3 The limits α and β of 4.5 are α = 82 + 20 3, β = 6 3. 5.6

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 28 0. 8-0. -0. Fig.. The curve t = t 2 for the basic form k = 3. The eros of the characteristic polynomial are t = 20 82 + 8 + 3/2 2 3, t 2 = 20 82 8 + 3/2 2 3. 5.7 We write this in the form t = 27 8w2 w 4 + 8w 3 32 + w 6 3 = 3 + w 3, t 2 = 27 8w2 w 4 8w 3 32 w 6 3 = 3 w 3, 5.8 where w = 8 +. To find the curve in the w-plane defined by t = t 2, we write w = re iθ. This gives the curve described by r = 9 + 6 3 cos θ, 6 π θ 6π and Iw = 0. 5.9 In Fig. we show the curve together with the half-line 8 the curve we have t > t 2. in the -plane. In the domain interior to 5.3. The domains for basic form k = 5 The limits α and β of 4.8 are α = 2, β =. 5.0 The eros of the characteristic polynomial are t =, t 2 =. 5.

282 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 5.0 2.5-2.5 -.0 2.5 5.0-2.5-5.0 Fig. 2. The curve t = t 2 for the basic form k = 6. The equation t = t 2 holds when =, which defines a circle with centre = and radius. Inside the circle we have t 2 > t. 5.4. The domains for basic form k = 6 The limits α and β of 4. are α = 2 6 + 2, β = 4 2. 5.2 The eros of the characteristic polynomial are t =, t 2 = 4 2. 5.3 To find the curve defined by t = t 2, we write = re iθ. This gives the curve described by r = 2 + cos θ ± cos 2 θ + 4 cos θ + 3, π θ π. 5.4 Both signs give a closed loop with common point. In Fig. 2 we show this curve in the -plane. In the domain interior to the inner curve we have t > t 2 ; between the inner curve and the outer curve we have t < t 2, and outside the outer curve t > t 2.

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 283 5.5. The domains for basic form k = 3 The limits α and β of 4.4 are α = 2, β =. 5.5 The eros of the characteristic polynomial are t =, t 2 =. 5.6 The equation t = t 2 holds when R = 2. When R> 2 we have t > t 2. In this case we can easily identify pairs of minimal and dominant solutions. From the power series of the Gauss function we find for f n of 4.6 the estimate f n = + O/n for all. Forg n of 4.6 we apply 2.4, and obtain g n = n n c Γc + n Γc a b + + n 2F b, a c a b + + n ;, 5.7 and again, the Gauss function is + O/n for all. We conclude that in compact domains of R< 2, f n is the minimal solution and g n is a dominant solution. In compact domains of R> 2 the roles of f n and g n are interchanged. 6. Asymptotics for minimal and dominant solutions In some cases we simply use the power series in.2, which provides an asymptotic expansion for large c. In some other cases we can use connection formulas for transforming the Gauss function to the case for large c. In a later paper we give details for the non-trivial cases, for example by using results from [8]. This paper gives the asymptotic expansion of any hypergeometric function of type 2F a + ε λ,b+ ε 2 λ; c + ε 3 λ;, where ε j = 0, ± with of course all ε j = 0 excluded for large complex values of λ and fixed complex,c and. Watson also treats the form a + λ,b+ 2 F λ ;. 6. c + 2λ Certain forms of g n mentioned in the previous section are of different type, see for example 4.7, and for these cases we need to develop new asymptotic expansions. 7. The cases k = 5,k= 6,k= 25 The cases k = 5, 6, 25 in Table are special because we refer to these as change signs in other cases, and we do not consider them as basic forms. The recursion relations for the cases k = 5, 6, 25 are the same as those for k = 3, 2, 3, respectively, when we recur backwards, that is to. The eros t and t 2 of the characteristic polynomial do not change when we change the recursion direction. In our second paper we investigate the cases k = 5, 6, 25, separately.

284 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 8. Numerical examples The power series.2 is very useful for numerical computations for properly inside the unit disk. Transformations and connection formulas as in 2.2, 2.3, 3.3, 3.0, 3.5, and 3.6 can be used to cover large parts of the complex -plane. We see that for the computation of the Gauss function we can use power series with powers of,,,,,. 8. For numerical computations we need convergence conditions like < ρ, < ρ, < ρ, < ρ, < ρ, < ρ, 8.2 with 0 < ρ <. Not all points in the -plane satisfy one of these inequalities for a given number ρ.infig. 3 we take ρ= 3 4. In the dark area at least one of the above inequalities is satisfied. In the light areas, around the points e ±πi/3, none of these inequalities is satisfied. By choosing ρ closer to unity these light domains become smaller. In [2] power series expansions of the Gauss function are derived, which enable computations near these special points. For certain combinations of the parameters and c, the connection formulas become numerically unstable. For example, if c =a +b, the relation in 3.3 is well-defined, although two gamma functions are infinite. By using a limiting procedure the value of a, b; a + b; can be found. For c close to a + b numerical instabilities occur when using 3.3. See [3] for many examples and details. Other instabilities in the evaluation of the power series.2 may arise for large values of a and b. 2 ρ = 0.75-3 -2-0 2 3 4 - -2 Fig. 3. In the light domains around the points e ±πi/3 none of the inequalities of 8.2 is satisfied.

A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 285 In [9, p. 7] an example is given of how to compute a Gauss function with argument = e πi/3, the point that is excluded from the convergence domains shown in Fig. 3. Wimp considers the computation of 23 2 F, 4 ; e πi/3 = 2πeπi/6 Γ 3 3 9[Γ 2, 8.3 3 ]2 by using a Miller algorithm for the hypergeometric functions n + a,n + b f n = ;, n= 0,, 2,... 8.4 2n + c This recursion type was not initially included in the group of 26 discussed in the present paper. However as, discussed in Section 4., this recurrence can be related to the case k =2 to conclude that f n is minimal. Therefore, Miller s algorithm can be applied when a sum rule is provided, as done in [9, p. 7]. We can also use the basic form k = 3, with pure c-recursion. From Section 5.5 it follows that for the point =e πi/3 = 2 + 2 i 3 the solutions of the recursion relation 4.4 are neither dominant nor minimal. We use backward recursion for a, b; c + n; with two starting values for n = 29 and n = 30. With these large values of c + n the power series converge fast. In 5D arithmetic we have computed the value of 8.3 with a relative error 2 0 4. The exact value is 0.8833937542724...+ 0.50998467909064...i. With recursion we obtain 0.883393754279 + 0.50998467909039i. In [9, p. 72] another example of the Miller algorithm is discussed for the basic form k = 3 pure c-recursion. Several algorithms based on recursion relations for special cases of the Gauss functions have been published, in particular for computing Legendre functions. For recent papers, see [4 6]. Acknowledgements A. Gil acknowledges financial support from Ministerio de Ciencia y Tecnología programa Ramón y Cajal. J. Segura acknowledges financial support from project BFM2003-06335-C03-02. N.M. Temme acknowledges financial support from Ministerio de Educación y Ciencia Programa de Sabáticos from project SAB2003-03. The authors thank the referees for their valuable comments on the first version of the paper. References [] M. Abramowit, I.A. Stegun, Handbook of Mathematical Functions With Formulas, Graphs, and Mathematical Tables, National Bureau of StandardsApplied Mathematics Series, vol. 55, Superintendent of Documents, U.S. Government Printing Office, Washington, DC, 964, for sale. [2] W. Bühring, An analytic continuation of the hypergeometric series, SIAM J. Math. Anal. 8 3 987 884 889. [3] R.C. Forrey, Computing the hypergeometric function, J. Comput. Phys. 37 997 79 00.

286 A. Gil et al. / Journal of Computational and Applied Mathematics 90 2006 270 286 [4] A. Gil, J. Segura, Evaluation of Legendre functions of argument greater than one, Comput. Phys. Comm. 05 2 3 997 273 283. [5] A. Gil, J. Segura, N.M. Temme, Computing toroidal functions for wide ranges of the parameters, J. Comput. Phys. 6 2000 204 27. [6] J. Segura, A. Gil, Evaluation of associated Legendre functions off the cut and parabolic cylinder functions, Electron. Trans. Numer. Anal. 9 999 37 46 electronic. Orthogonal polynomials: numerical and symbolic algorithms, Leganés, 998. [7] N.M. Temme, Special Functions. An Introduction to the Classical Functions of Mathematical Physics, Wiley-Interscience, New York, 996. [8] G.N. Watson, Asymptotic expansions of hypergeometric functions, Trans. Cambridge Philos. Soc. 22 98 277 308. [9] J. Wimp, Computation with Recurrence Relations. Applicable Mathematics Series. Pitman Advanced Publishing Program, Boston, MA, 984.