Stirling Formula: Definition and Derivation

Collegedunia Team logo

Collegedunia Team

Content Curator

Stirling’s formula, also known as Stirling's approximation formula, is an approximation of relatively large numbers. Stirling formula is generally used to determine the approximate value of a factorial function (n!). There has been evidence of the Stirling formula being used for Gamma functions as well. Apart from that, it is also apparently used in applied mathematics for determining factorials of large numbers. In simple words, 

Also Read: Application of Integrals

Key Takeaways: Stirling Formula, Stirling approximations, Integers, Factorials, Formula


What is Stirling’s Formula?

[Click Here for Sample Questions]

Before understanding what Stirling's Formula is, we need to understand the meaning of a factorial. A factorial is a continuous chain of multiplication of a given positive integer with the numbers coming below it. For example, the quantity of three factorials can be determined by the following way: (3!) = 3 X 2 X 1 = 6. The symbol that helps identify factorials is “n!”, wherein ‘n’ is the known integer.

As much as there is a factorial of small numbers, there is more of larger numbers too. The issue with larger numbers is their factorial can give an extremely lengthy answer, which is what makes it unlikely to be determined. As we reach 11!, the numbers hike and consequently give results in millions, making it difficult for an individual to determine its value by mere multiplication. 

However, the issue of determining factorials of large numbers was minimized when James Stirling, a Scottish Mathematician, first introduced his now popular approximate formula. Stirling’s approximation formula gave a roughly accurate idea of the size of n!, with an error margin close to minimal. Stirling’s formula is now widely used by many to establish the factorial value of a positive integer without having to find the product by continuous multiplication.

Also Check: Permutations and Combinations


Determine Stirling’s Approximation Formula

[Click Here for Sample Questions]

Stirling’s formula or Stirling approximation is usually used to determine the approximate value of a factorial of a positive integer. Stirling’s formula came into effect after James Stirling found out that it took larger effort to determine the factorial value of comparatively bigger numbers, like for instance, “74!”.

Stirling's approximation formula helps establish the factorial of a number extremely close to the actual value. Usually, Stirling’s formula gives an error of roughly 2%, or even less oftentimes, based on the number given to determine.

Stirling’s approximation formula can be determined by the following equation: 

Stirling’s formula = n! ≈ √2πn ( n/e)n (wherein ~ denotes that the ratio of two quantities moves to 1 as n →∞) or ln n! ≈ n ln n-n (wherein ln is the natural logarithm of the equation)

Different cases use different variations of Stirling’s formula. One of the derivations of Stirling’s approximation formula uses probability distribution function which in turn establishes normal distribution for larger numbers.

Read More: Probability


Things to Remember

  1. A factorial is the product of a positive integer, multiplied with the numbers coming after it. For instance, the factorial of the number 4! is 4 * 3 * 2 * 1, the product of which is typically equal to 24.
  2. The symbol that helps identify factorials is “n!”, wherein ‘n’ is the known integer.
  3. James Stirling, a Scottish Mathematician, first introduced the famous approximate formula after he found that determining the average value of a factorial, especially if it is a large number, becomes tedious. 
  4. Stirling’s approximation formula gave a roughly accurate idea of the size of n!, with an error margin close to 2%, or even minimal. 
  5. Stirling’s approximation formula can be determined by the following equation: Stirling’s formula = n! ≈ √2πn ( n/e)n or ln n! ≈ n ln n-n (wherein ln is the natural logarithm of the equation)

Sample Questions

Ques. Determine the factorial of 11 by following the approximation formula of Stirling’s formula. (3 marks)

Ans: The factorial of 11 can be determined by the approximation equation of Stirling’s formula: n! = √(2 × π × n) (n/e)n
Therefore, by using the formula, it can be said,
11! ≈ √2π 11 11 + ½ * e −11
Hence, 11! = √(2 × π × 11) (11/e)11
= 39615625.05
Thus, the approximate factorial value of 11 is 39615625.05.
Ques. Determine the factorial value of 5 by using the following equation of Stirling approximation formula. (2 marks)
Ans: The factorial value of 5 can be determined by the approximation equation of Stirling’s formula, which is given by: n! = √(2 × π × n) (n/e)n
5 factorial, or 5! = √(2 × π × 5) (5/e)5
= 118.019
Thus, the approximate factorial value of 5 is 118.019, with a margin error of about 1.66 per cent.

Ques. Determine the factorial value of 8 by using Stirling’s formula. (3 marks)

Ans: The factorial value associated to 8 can be determined by Stirling’s approximation formula, given usually by: n! ≈ √2π nn+½ e−n [or, √(2 × π × n) (n/e)n]
Thus, the values of (√(2 × π × n) (n/e)n) can substituted with real value by,
8! = √(2 × π × 8) (8/e)8
= 39902.40
Hence, the approximate value of 8! is 39902.40.
It has a margin error of roughly about 1.05 per cent.

Ques. What is the approximate value of 6!. What is its margin of error? (3 marks)

Ans: The factorial value associated with 6 can be determined by Stirling’s approximation formula, given usually by: Stirling's formula = n! ≈ √2πn ( n/e)n
After substituting the values, we get,
solution
The equation claims:
Thus, 6! = √(2 × π × 6) (6/e)6
6! = 710.08
The margin of error of 6! is 2.81%.
Hence, the approximate value of 6! Is 710.08.

Ques. What is the factorial value of 13!? Determine the value by using Stirling’s Formula. (2 marks)

Ans: The factorial value of 13 can be determined by Stirling’s approximation formula, which can be determined by: Stirling's formula = n! ≈ √2πn ( n/e)n
After substituting the values, we get,
Thus, 13! = √(2 × π × 13) (13/e)13
13! = 6187239475.19
Hence, the approximate factorial value of 13! is roughly about 6187239475.19.

Ques. Determine Stirling’s Interpolation Formula. (4 marks)

Ans: We can determine Stirling’s Interpolation Formula by the following step by step procedure,

answer

Wherein, as per what was determined prior, answer 2
The above equation has been derived from Gauss’ first and second interpolation formulae.

Ques. Derive the factorial value of 10!. Determine using Stirling’s formula. (3 marks)

Ans: The factorial value of 10 can be determined by using Stirling’s Formula, which is n! ≈ √2π nn+½ e−n [or, √(2 × π × n) (n/e)n]
Thus, by replacing the values, we get,
10! = √(2 × π × n) (n/e)n
10! = √(2 × π × 10) (10/e)10
10! = 3598695.62
It has a margin error of roughly about 0.84 per cent.

Ques. Derive the factorial value of 7! By using the equation of Stirling’s formula. (3 marks)

Ans: The factorial value of 7! can be determined by using the equation of Stirling’s approximation Formula.
Stirling’s Formula = n! ≈ √2π nn+½ e−n [or, √(2 × π × n) (n/e)n]
Thus, by replacing the values, we get,
Thus, by replacing the values, we get,
7! = √(2 × π × n) (n/e)n
7! = √(2 × π × 7) (7/e)7
7! = 4980.39583
It has a margin error of roughly about 1.20 per cent.

Also Read: 

CBSE CLASS XII Related Questions

  • 1.
    Find: \[ \int \frac{x^2}{(x^2-1)(x^2+4)}\,dx \]


      • 2.
        Using integration, find the area of the region bounded by the curve \( y = x|x| \), the x-axis, and the vertical lines \( x = -2 \) and \( x = 2 \).


          • 3.
            Find the vector and cartesian equations of the line passing through the point of intersection of the lines \( \vec{r} = (\hat{i} + \hat{j} - \hat{k}) + \lambda(3\hat{i} - \hat{j}) \) and \( \vec{r} = (4\hat{i} - \hat{k}) + \mu(2\hat{i} + 3\hat{k}) \) and parallel to the line \( \frac{x - 1}{-2} = \frac{7 - y}{-3} = z \).


              • 4.
                Find:

                The shortest distance between the lines: \[ \vec{r}=(4+\lambda)\hat{i}+(2\lambda-1)\hat{j}-3\lambda\hat{k} \] and \[ \vec{r}=(1+2\mu)\hat{i}+(4\mu-1)\hat{j}+(2-5\mu)\hat{k} \]


                  • 5.
                    Differentiate \( \tan^{-1}\left( \frac{\sqrt{1 + x^2} + \sqrt{1 - x^2}}{\sqrt{1 + x^2} - \sqrt{1 - x^2}} \right) \) with respect to \( \cos^{-1}(x^2) \).


                      • 6.
                        Find:

                        The principal value of \[ \sec^{-1}(\sqrt{2})+2\csc^{-1}(-2) \] is:

                          • \(-\frac{\pi}{2}\)
                          • \(-\frac{\pi}{4}\)
                          • \(\frac{\pi}{4}\)
                          • \(\frac{\pi}{2}\)
                        CBSE CLASS XII Previous Year Papers

                        Comments


                        No Comments To Show