The exponential series gives . Since on , the Weierstrass M-test proves uniform absolute convergence, using the summable bounds . Therefore one can integrate the series term by term over this finite interval. Using part i,This is the alternating identity in sophomore's dream. The same estimate also proves absolute convergence of the integrated series; no cancellation is needed to justify the interchange.
Put . Thenwhere the second substitution is and the final integral is the given gamma function value. The formula also holds for , with value .
For , the exponential function expansion givesEvery term is nonnegative. By the monotone convergence theorem, integration can be interchanged with summation, and henceThis identity is one form of Sophomore's dream.
Expand . The absolute values of all terms have total integralThe series converges, for instance because for . Part (b) applied to the absolute values, followed by subtraction of positive and negative parts, therefore justifies termwise integration. It gives the other Sophomore's dream identity:Equivalently, the partial sums are dominated by , so the dominated convergence theorem gives the same justification.