all problems
solved Nov 19, 2026

Sophomore's Dream

problem

Prove the identity: \int_0^1 x^{-x} \, dx = \sum_{n=1}^{\infty}n^{-n}

This is a true identity, unlike the other one called the “freshman’s dream”, which is actually false.

Solution

Rewire x^{-x} as e^I{-x\ln x}, and expanding usin the Taylor series:

e^u = \sum_{k=0}^{\infty} \frac{u^k}{k!}

\begin{aligned} \int_0^1 \sum_{k=0}^{\infty} \frac{(-x\ln x)^k}{k!} \, dx \\ \sum_{k=0}^{\infty} \frac{(-1)^k}{k!}\int_0^1 x^k(\ln x)^k \, dx \\ \end{aligned}

Via repeated integration by parts:

\int_0^1 x^k(\ln x)^k \, dx = \frac{(-1)^k k!}{(k+1)^{k+1}}

The (-1)^k and k! terms cancel out, resulting in:

\sum_{k=0}^{\infty} \frac{1}{(k+1)^{k+1}} \\ = \sum_{n=1}^{\infty}n^{-n}