Factorial: Difference between revisions
imported>Dmitrii Kouznetsov m (→Inverse function: misprint) |
imported>Dmitrii Kouznetsov m (→Related functions: misprint) |
||
Line 72: | Line 72: | ||
:<math> ... </math> | :<math> ... </math> | ||
==Related functions== | ==Related functions== | ||
In the | In the figure above, the two other functions are plotted. The first of them is | ||
: <math>\mathrm{ArcFactorial}(x)=\mathrm{factorial}^{-1}(x)</math> | : <math>\mathrm{ArcFactorial}(x)=\mathrm{factorial}^{-1}(x)</math> | ||
is the [[inverse function]]; | is the [[inverse function]]; |
Revision as of 07:38, 19 January 2009
In mathematics, the factorial is the meromorphic function with fast grow along the real axis. Frequently, the postfix notation is used for the factorial of number . For integer values of , the factorial, denoted with , gives the number of ways in which n labelled objects (for example the numbers from 1 to n) can be arranged in order. These are the permutations of the set of objects. In some programming languages, both n! and factorial(n) , or Factorial(n), are recognized as the factorial of the number .
Integer values of the argument
For integer values of the argument, the factorial can be defined by a recurrence relation. If n labelled objects have to be assigned to n places, then the n-th object can be placed in one of n places: the remaining n-1 objects then have to be placed in the remaining n-1 places, and this is the same problem for the smaller set. So we have
and it follows that
which we could derive directly by noting that the first element can be placed in n ways, the second in n-1 ways, and so on until the last element can be placed in only one remaining way.
Since zero objects can be arranged in just one way ("do nothing") it is conventional to put 0! = 1.
The factorial function is found in many combinatorial counting problems. For example, the binomial coefficients, which count the number of subsets size r drawn from a set of n objects, can be expressed as
The factorial function can be extended to arguments other than positive integers: this gives rise to the Gamma function.
Definitions
For complex values of the argument, the combinatoric definiton above should be extended. The factorial can be defined as unique meromorphic function , satisfying relations
for all complex except negative integer values. This definition is not constructive, and gives no straightforward way for the evaluation. Therefore, the integral representation is used as definition:
Such definition is similar to that of the Gamma function, and leads to the relation
for all complex except the negative integer values and zero.
The definition above agrees with the combinatoric definition for integer values of the argument; at integer , the integral can be expressed in terms of the elementary functions.
Also, the definition agrees with commonly used special values; and
, and , as it is seen in the fugure at the top. That figure shows the factorial in the complex plane with
lines of constant and
lines of constant .
The levels u = − 24, − 20, − 16, − 12, − 8, − 7, − 6, − 5, − 4, − 3, − 2, − 1,0,1,2,3,4,5,6,7,8,12,16,20,24 are drown with thick black lines.
Some of intermediate levels u = const are shown with thin blue lines for positive values and with thin red lines for negative values.
The levels v = − 24, − 20, − 16, − 12, − 8, − 7, − 6, − 5, − 4, − 3, − 2, − 1 are shown with thick red lines.
The level v = 0 is shown with thick pink lines.
The levels v = 1,2,3,4,5,6,7,8,12,16,20,24 are drown with thick blue lines. some of intermediate levels v = const are shown with thin green lines.
The dashed blue line shows the level and corresponds to the value of the principal local minimum of the factorial of the real argument.
The dashed red line shows the level and corresponds to the similar value of the negative local extremum of the factorial of the real argument.
Factorial of the real argument
The definition above was elaborated for factorial of complex argument. In particular, it can be used to evlauate the factorial of the real argument. In the figure at right, the is plotted versus real with red line. The function has simple poluses at negative integer .
At , the . Then, the factorial has local minimum at
marked in the picture with pink vertical line; at this point, the derivative of the factorial is zero:
The value of factorial in this point
The Tailor expansion of at the point can be writen ax follows:
The coefficients of this expansion can be approximated as follows:
Related functions
In the figure above, the two other functions are plotted. The first of them is
is the inverse function;
In the range of biholomorphism, the inverse relation is also valid; in particular,
Specific values of the inverse function:
- ,
- ,
- ,
- ,
- .
For comparison, in the figure at right, the function
is plotted with the blue curve. This function is entire, id est, it has no singularities, and can used for the approximation of factorial. The Tailor series for this function always converge (this function has has infinite radius of convergence).
Inverse function
Inverse function of factorial can be defined with equation
and condition that ArcFactorial is holomorphic in the comlex plane with cut along the part of the real axis, that begins at the minimum of factorial of the real argument and extends to . This function is shown with lines of constant real part and lines of constant imaginary part .
Levels are shown with thick black curves.
Levels are shown with thin blue curves.
Levels are shown with thick blue curves.
Level is shown with thick pink line.
Levels are shown with thick red curves.
The intermediate levels of constant are shown with thin dark green curves.
The ArcFactorial has the branch point ; the cut of the range of holomorphizm is shown with black dashed line.
The figure shows the mapping ot the complex plane with the factorial function. In particular, factorial maps the unity to unity; two is mapped to two, and 3 is mapped to 6.
Function
The inverse funciton of factorial, id est, from the previous section, sohuld not be confused with
shown in the figure at right.
The lines of constant and
the lines of constant are drawn.
The levels are shown with thick black lines.
The levels are shown with thick red lines.
The level is shown with thick pink line.
The levels are shown with thick blue lines.
Some of intermediate elvels const are shown with thin red lines for negative values and thin blue lines for the positive values.
Some of intermediate elvels const are shown with thin green lines.
The blue dashed curves represent the level and correspond to the positive local maximum of the inverse function of the real argument.
The ref dashed curves represent the level and correspond to the negative local maximum of the inverse function of the real argument.
is entire function that grows in the left hand side of the compelx plane and quickly decays to zero along the real axis.
Evaluation of the factorial
In principle, the integral representation from the definition above can be used for the evlauation of the factorial. However, such an implementation is not efficient, and is not suitable, when the factorial is used as a component in construction of other functions with complicated representations that involve many evaluations of the factorial. Therefore, the approximations with elementary functions are used.
Historically, one of the first approximations of the factorial with elementary funcitons was the Stirling formula below.
Stirling's formula
For large n there is an approximation due to Scottish mathematician James Stirling
References
- Ronald L. Graham; Donald E. Knuth, Oren Patashnik (1989). Concrete Mathematics. Addison Wesley, 111,332. ISBN 0-201-14236-8.