Sophomore's dream explained

In mathematics, the sophomore's dream is the pair of identities (especially the first)

\begin & \int_0^1 x^\,dx &&= \sum_^\infty n^ \\ & \int_0^1 x^x \,dx &&= \sum_^\infty (-1)^n^ = - \sum_^\infty (-n)^\enddiscovered in 1697 by Johann Bernoulli.

The numerical values of these constants are approximately 1.291285997... and 0.7834305107..., respectively.

The name "sophomore's dream"[1] is in contrast to the name "freshman's dream" which is given to the incorrect[2] identity The sophomore's dream has a similar too-good-to-be-true feel, but is true.

Proof

The proofs of the two identities are completely analogous, so only the proof of the second is presented here.The key ingredients of the proof are:

In details, can be expanded as

x^x = \exp(x \log x) = \sum_^\infty \frac.

Therefore,

\int_0^1 x^x\,dx = \int_0^1 \sum_^\infty \frac \,dx.

By uniform convergence of the power series, one may interchange summation and integration to yield

\int_0^1 x^x\,dx = \sum_^\infty \int_0^1 \frac \,dx.

To evaluate the above integrals, one may change the variable in the integral via the substitution x=\exp(-\frac). With this substitution, the bounds of integration are transformed to

0<u<infty,

giving the identity\int_0^1 x^n(\log x)^n\,dx = (-1)^n (n+1)^ \int_0^\infty u^n e^\,du.By Euler's integral identity for the Gamma function, one has \int_0^\infty u^n e^\,du=n!,so that\int_0^1 \frac\,dx= (-1)^n (n+1)^.

Summing these (and changing indexing so it starts at instead of) yields the formula.

Historical proof

The original proof, given in Bernoulli, and presented in modernized form in Dunham, differs from the one above in how the termwise integral \int_0^1 x^n(\log x)^n\,dx is computed, but is otherwise the same, omitting technical details to justify steps (such as termwise integration). Rather than integrating by substitution, yielding the Gamma function (which was not yet known), Bernoulli used integration by parts to iteratively compute these terms.

+C

both because this was done historically, and because it drops out when computing the definite integral.

Integrating \int x^m (\log x)^n\,dx by substituting u = (\log x)^n and dv=x^m\,dx yields:

\begin\int x^m (\log x)^n\,dx& = \frac - \frac\int x^ \frac\,dx \qquad\textm\neq -1\text\\& = \frac(\log x)^n - \frac\int x^m (\log x)^\,dx \qquad\textm\neq -1\text\end

(also in the list of integrals of logarithmic functions). This reduces the power on the logarithm in the integrand by 1 (from

n

to

n-1

) and thus one can compute the integral inductively, as\int x^m (\log x)^n\,dx= \frac \cdot \sum_^n (-1)^i \frac (\log x)^

where (n)_i denotes the falling factorial; there is a finite sum because the induction stops at 0, since is an integer.

In this case m=n, and they are integers, so

\int x^n (\log x)^n\,dx= \frac \cdot \sum_^n (-1)^i \frac (\log x)^.

Integrating from 0 to 1, all the terms vanish except the last term at 1,[3] which yields:

\int_0^1 \frac\,dx= \frac\frac (-1)^n \frac = (-1)^n (n+1)^.

This is equivalent to computing Euler's integral identity

\Gamma(n+1)=n!

for the Gamma function on a different domain (corresponding to changing variables by substitution), as Euler's identity itself can also be computed via an analogous integration by parts.

See also

References

Formula

Function

Footnotes

Notes and References

  1. It appears in .
  2. Incorrect in general, but correct when one is working in a commutative ring of prime characteristic with being a power of . The correct result in a general commutative context is given by the binomial theorem.
  3. All the terms vanish at 0 because \lim_ x^m (\log x)^n = 0 by l'Hôpital's rule (Bernoulli omitted this technicality), and all but the last term vanish at 1 since .