Properties and Computation of the Gamma Function, Study notes of Mathematics

An introduction to the gamma function, a continuous extension of the factorial function. It covers the definition, recursive property, and evaluation of the gamma function for various values. The document also discusses methods for approximating the gamma function using linear and quadratic interpolation.

Typology: Study notes

2019/2020

Uploaded on 08/29/2020

unknown user
unknown user 🇮🇳

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Properties of the Gamma function
The purpose of this paper is to become familiar with the gamma function, a very important function in
mathematics and statistics. The gamma function is a continuous extension to the factorial function,
which is only defined for the nonnegative integers. While there are other continuous extensions to the
factorial function, the gamma function is the only one that is convex for positive real numbers.
The gamma function, Γ(α), for α > 0, is defined as
Γ(α) = Z
0
xα1exdx, where α > 0.(1)
The gamma function satisfies the recursive property
Γ(α) = (α1)Γ(α1),(2)
which can be proved using intgration by parts and L’Hˆopital’s Rule. Note that the recursive
relationship in (2) can be used to extend the definition of the gamma function to all real numbers
except the nonpositive integers.
When α=nand nis a positive integer, then the gamma function is related to the factorial function:
Γ(n)=(n1)! (3)
For specific values of α, exact values of Γ(α), exist. For the positive integers, Γ(n) is defined by (3).
The gamma function evalated at α=1
2is
Γ1
2=π. (4)
The recursive relationship in (2) can be used to compute the value of the gamma function of all real
numbers (except the nonpositive integers) by knowing only the value of the gamma function between 1
and 2. Table 2 contains the gamma function for arguments between 1 and 1.99. To illustrate, the
following three examples show how to evaluate the gamma function for positive integers, fractional
positive numbers and a negative noninteger values. First, suppose that αis the positive integer five.
Then it follows that
Γ(5) = 4Γ(4) = 4 ·3Γ(3) = 4 ·3·2·1·Γ(1) = 4! = 24.
Next, suppose that α=23
3, a positive fraction. It follows that
Γ23
3=20
3Γ20
3=20
317
3Γ17
3
=20
317
314
311
38
35
3Γ5
3
=2094400
729 Γ5
3
.
=2094400
729 Γ (1.67)
=2094400
729 (.90330)
= 2595.1598.
pf3
pf4

Partial preview of the text

Download Properties and Computation of the Gamma Function and more Study notes Mathematics in PDF only on Docsity!

Properties of the Gamma function

The purpose of this paper is to become familiar with the gamma function, a very important function in mathematics and statistics. The gamma function is a continuous extension to the factorial function, which is only defined for the nonnegative integers. While there are other continuous extensions to the factorial function, the gamma function is the only one that is convex for positive real numbers.

The gamma function, Γ(α), for α > 0, is defined as

Γ(α) =

0

xα−^1 e−xdx, where α > 0. (1)

The gamma function satisfies the recursive property

Γ(α) = (α − 1)Γ(α − 1), (2)

which can be proved using intgration by parts and L’Hˆopital’s Rule. Note that the recursive relationship in (2) can be used to extend the definition of the gamma function to all real numbers except the nonpositive integers.

When α = n and n is a positive integer, then the gamma function is related to the factorial function:

Γ(n) = (n − 1)! (3)

For specific values of α, exact values of Γ(α), exist. For the positive integers, Γ(n) is defined by (3). The gamma function evalated at α = 12 is

Γ

π. (4)

The recursive relationship in (2) can be used to compute the value of the gamma function of all real numbers (except the nonpositive integers) by knowing only the value of the gamma function between 1 and 2. Table 2 contains the gamma function for arguments between 1 and 1.99. To illustrate, the following three examples show how to evaluate the gamma function for positive integers, fractional positive numbers and a negative noninteger values. First, suppose that α is the positive integer five. Then it follows that

Γ(5) = 4Γ(4) = 4 · 3Γ(3) = 4 · 3 · 2 · 1 · Γ(1) = 4! = 24.

Next, suppose that α = 233 , a positive fraction. It follows that

Γ

=^2094400

=^.^2094400

The actual answer (to 8 decimal places) for Γ

3

is 2593.56617499. The discrepancy between the actual answer and the approximation is quite large since we approximated Γ

3

with Γ (1.67). A better approach would use interpolation of some kind. (Linear or quadratic interpolation would work well). For example, you can approximate y for a given x, when you have the table values (x 1 , y 1 ) and (x 2 , y 2 ). Using the point slope formula for a line, the approximate value for y given x can be derived as follows:

y = y 1 + m (x − x 1 ) = y 1 + y 2 − y 1 x 2 − x 1 (x − x 1 )

= y 1 + (y 2 − y 1 ) x^ −^ x^1 x 2 − x 1

The approximate value for Γ

3

is therefore

5 3 −^1.^66

  1. 67 − 1. 66

=. 90275666667

Using this value, a better approximation of Γ

3

is 2593.59885, which is quite close.

Next, the gamma function can be computed for negative, noninteger arguments. Suppose that α = − 56. Subsitituting α + 1 for α in equation (2) yields

Γ (α + 1) = αΓ (α) (5)

Solving (5) for Γ (α) yields

Γ (α) = Γ (α + 1) α (6)

Therefore, by (6), Γ

is

6

1 6

Using linear interpolation between 1.16 and 1.17 yields Γ

6

= .927733333333. Hence Γ

= − 6 .67968, which is close to the more exact answer of − 6 .679579.

Using quadratic interpolation instead of linear interpolation gives a better approximation. It uses three points instead of two. How to implement quadratic interpolation is left to the reader; however, a comparison of the results for linear and quadratic interpolation are summariezed in Table 1.

α Exact Linear Approx Linear Error Quadratic Approx Quadratic Error 5 3 .902745292951^ .90275666667^1.^137 ×^10

− 5 .90274777777 2. 485 × 10 − 6

7 6 .927719333629^ .92773333333^1.^400 ×^10

− 5 .92771777777 1. 556 × 10 − 6

Table 1: Comparison of Linear and Quadratic interpolation to the exact answer

Gamma Function Γ(α)

α .00 .01 .02 .03 .04 .05 .06 .07 .08.

1.0 1.00000 0.99433 0.98884 0.98355 0.97844 0.97350 0.96874 0.96415 0.95973 0.

1.1 0.95135 0.94740 0.94359 0.93993 0.93642 0.93304 0.92980 0.92670 0.92373 0.

1.2 0.91817 0.91558 0.91311 0.91075 0.90852 0.90640 0.90440 0.90250 0.90072 0.

1.3 0.89747 0.89600 0.89464 0.89338 0.89222 0.89115 0.89018 0.88931 0.88854 0.

1.4 0.88726 0.88676 0.88636 0.88604 0.88581 0.88566 0.88560 0.88563 0.88575 0.

1.5 0.88623 0.88659 0.88704 0.88757 0.88818 0.88887 0.88964 0.89049 0.89142 0.

1.6 0.89352 0.89468 0.89592 0.89724 0.89864 0.90012 0.90167 0.90330 0.90500 0.

1.7 0.90864 0.91057 0.91258 0.91467 0.91683 0.91906 0.92137 0.92376 0.92623 0.

1.8 0.93138 0.93408 0.93685 0.93969 0.94261 0.94561 0.94869 0.95184 0.95507 0.

1.9 0.96177 0.96523 0.96877 0.97240 0.97610 0.97988 0.98374 0.98768 0.99171 0.

Table 2: Gamma function, Γ(α) =

0

xα−^1 e−xdx