The sophomore's dream: ∫₀¹ x^(−x) dx = 1.29128599706

An integral with no elementary antiderivative that equals a series of one over n to the n.

Calculus · Level: Classic result · Updated on 2026-11-10

Integrate x raised to the power x, with the sign of the exponent flipped, from 0 to 1: the first link's panel prints 1.29128599706. Its partner, on the second link, is ∫₀¹ x^x dx = 0.783430510711. Neither has an antiderivative expressible in elementary functions, and yet both equal a series so plain that Bernoulli wrote it down in 1697: expand e^(−x ln x) as a power series, integrate x^k(ln x)^k term by term, and the answer is 1 + 1/4 + 1/27 + 1/256 + 1/3125 + ⋯, one term per n^(−n). The third link adds the first three of those and lands on 1.287037037037; the fourth is 4⁴ = 256, one of the denominators, and everything after the 5⁵ term is under 0.00003 in total.

The single computation that does all the work is ∫₀¹ x^k(ln x)^k dx = (−1)^k·k!/(k+1)^(k+1), which is the gamma function after the substitution u = (k + 1)(−ln x) — and the factorial in the numerator cancels the k! from the exponential series, which is why the surviving denominators are (k+1)^(k+1) and nothing more complicated. That cancellation is the whole dream, and it is why the two integrals are so tidy: 0.783430510711 and 1.29128599706 are each a series of rational numbers with no closed form in π, e or radicals. Bernoulli published it in 1697; the name it now carries is four centuries younger, and is a joke about the other impossible algebraic identity students believe in, the one that survives only in characteristic p.

Answer

1.29128599706

How to read it

The panel's integral of x^(−x) over 0 to 1. The second link is its partner x^x, the third three terms of the series, the fourth a denominator inside it.

Source

Johann Bernoulli, 1697, on ∫x^(−x)dx and ∫x^x dx; the nickname 'sophomore's dream' is from Borwein, Bradley and Crandall's 2004 article, in parody of the freshman's dream (a + b)^n = a^n + b^n

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.