Summary
The function has no elementary antiderivatives, and yet its integral over the whole line has an exact value: . This lesson computes it without double integrals. The inequalities , raised to the power , trap the integral of between two Wallis integrals, and the order of magnitude of those integrals, proved in the unit on the definite integral, gives the value. To pass from one improper integral to another, the change of variable from the lesson on conditional convergence is first extended to both endpoints. The gamma function, defined by , converges exactly for , satisfies and extends the factorial to the positive reals: ; the Gaussian integral gives . Finally, two bounds for the logarithm obtained with integrals show that the sequence decreases toward a positive limit, and the formula for the values of the Wallis integrals identifies it: this is Stirling’s formula, , which makes the growth of the factorial precise, with an explicit bound for the error.
Learning objectives
- Extend the change of variable to integrals improper at both endpoints and use it, together with the Wallis integrals, to compute the Gaussian integral without double integrals.
- Define the gamma function, determine for which values its integral converges, and prove its functional equation and its values at the integers and at .
- Prove Stirling’s formula with an explicit bound for the relative error.
- Compute improper integrals and limits of sequences by reducing them to the gamma function, to the Gaussian integral or to Stirling’s formula.
The Gaussian integral
The lesson on the fundamental theorem of calculus observed that is an antiderivative of on the whole line, although none of its antiderivatives can be written with the elementary functions. Barrow’s rule therefore does not give the value of the integral over the whole line, which is an integral improper at both endpoints. To compute it, we shall compare it with other improper integrals by means of changes of variable. The lesson on conditional convergence of improper integrals proved the proposition on change of variable in an improper integral, for an improper right endpoint: if is continuous on and its integral converges, and is differentiable on , with continuous, values in and as , then . This lesson also uses it with both endpoints improper, and for increasing changes it suffices to split the integral and reflect the left half. We write and as in the definition of the improper integral in the lesson on improper integrals and convergence tests: or , and or .
Let , with real or and real or , and let be a continuous function on . Let , with real or and real or , and let be a strictly increasing function on , differentiable at every point, with continuous, with values in , and such that tends to as and to as (to or to if the endpoint is). If converges, then the integral on the left-hand side converges, and:
The right half is the proposition from the lesson on conditional convergence; the left half, the same proposition after reflecting both variables.
Proof
The integrand on the left-hand side, , is continuous on , by the theorem on the composition of continuous functions, from the lesson on limit and continuity, and therefore integrable on every closed interval contained in . Let be a point of and . By the proposition that the splitting point does not matter, from the lesson on improper integrals, and converge. Since is increasing, its values on lie in , and the proposition on change of variable in an improper integral, with and the interval , gives the right half.
For the left half, let on and on , where and are if or are . The function is increasing and differentiable, with continuous, by the chain rule; its values lie in , because those of on lie in , and it tends to as , because tends to as and : if is real, by the proposition on translation and reflection, from the lesson on one-sided limits, and if , because the condition in the definition of the limit at is the condition ; the change of sign of the values carries to , by the theorem on the limit of a linear combination, from the lesson on the algebra of limits, if is real, and by the definition of infinite limits if it is not. By the lemma on the reflection of an improper integral, from the lesson on improper integrals, converges and equals , and the proposition on change of variable, with and , gives the first equality; since , the same reflection lemma gives the second.
Both halves converge, and by the definition of the improper integral on an open interval, with the splitting point , the integral on the left-hand side converges, and its value is the sum.
If is also continuous at a real endpoint, for example on , the integral over is the same as over : by the proposition on consistency with the Riemann integral, the half is the definite integral, and additivity adds the two halves. The same holds for the integrand on the left-hand side. If is decreasing, the reflection lemma reduces the change to an increasing one, as in the solved problem “A factorial hidden in a logarithm”.
For every real we have:
and both equalities hold only at . They are the fundamental inequality of the exponential at and at .
Proof
The corollary on the fundamental inequality for every real number, from the lesson on the number e, states that for every real , with equality only at . With we obtain the first inequality, and with , the second, after taking reciprocals of two positive numbers and writing by the laws of real exponents, from the lesson on the exponential function.
In both cases equality requires , that is, .
Integrated as they stand, the bounds say little: the integral of over equals , and that of over the whole line, . Raised to the power , the three functions concentrate near , and the two bounds become Wallis integrals, from the lesson on techniques for definite integrals: .
The integral of over converges, and:
The integral of is the Gaussian integral divided by , and it lies between two Wallis integrals multiplied by , whose limits coincide. The figure shows the bell curve under ; the narrowed bell curve ; the region under inside the preceding one; the narrowed bell curve under ; and, in the variable with , the two bounds hugging the bell curve.
Proof
The function is continuous and positive on . By the proposition on the antiderivatives of the exponentials and of the trigonometric functions, from the lesson on antiderivatives and the indefinite integral, is an antiderivative of , and by Barrow’s rule for continuous functions, , which tends to by the corollary on monotonic functions at infinity, from the lesson on the limit at infinity. By the lemma on bounds for the bell curve and the comparison test, converges. The reflection lemma, with and , gives the left half, and the definition of the integral on an open interval, with the splitting point , the total.
Let be a natural number. The proposition on change of variable in an improper integral, from the lesson on conditional convergence, with on , whose integral is , and on , which has continuous derivative , values in , and limit as , gives the first equality, because . Linearity of improper integrals divides by .
For in , the lemma on the bounds gives , and multiplying inequalities between nonnegative numbers, . By the theorem on monotonicity of the integral, from the lesson on properties of the definite integral, and the solved problem “A Wallis integral in disguise”, from the lesson on techniques for definite integrals, which computed the first integral, we obtain the first inequality; the second, because by the theorem on integrals of nonnegative functions the improper integral is the supremum of the integrals over .
For , in the same way, . The integral on the right is computed with the same proposition, with on , continuous on , whose improper integral is the definite one by the proposition on consistency, and on , whose continuous derivative is , by the proposition on the derivatives of the inverse trigonometric functions, from the lesson on the derivative of the inverse function, with values in , and limit . With , we have and , and dividing the Pythagorean identity by , : the new integrand is . The proposition on reflection about the midpoint, from the lesson on techniques for definite integrals, and the equality carry the integral of the cosine to , and monotonicity of improper integrals gives the bound.
Multiplying by , for every natural number . The solved problem “A Wallis integral in disguise” proved that the left-hand side tends to . For , with , the corollary on the order of magnitude of the Wallis integrals, from the lesson on techniques for definite integrals, and the theorem on the subsequences of a sequence with a limit, from the lesson on subsequences, give ; and tends to , and its square root to , by the theorem stating that the limit theorems hold for sequences, from the lesson on sequences and their limit, with its clauses on algebra and on roots. By preservation of inequalities, from the same theorem, the constant lies between the two limits.
In the variable , the inequalities of the proof are , the first for and the second for every , and as grows the two bounds hug the bell curve, as the last frame of the figure shows. The best-known proof squares the integral, writes it as a double integral over the plane and computes it in polar coordinates; it belongs to Calculus III, and nothing in this lesson depends on it. The value obtained can also be read on the scale of : for , the same change of variable, with in place of , gives .
Loading the content…
Completed
Sign in to save your progress