Unfortunately, I am no longer a sophomore, but the sophomore's dream is anyone's dream! Find out why down below.
The sophomore's dream is a pair of identities discovered in 1697 by Johann Bernoulli. $$\begin{aligned} \int_0^1{x^{-x}} &=\sum_{n=1}^{\infty}{n^{-n}} \\ \int_0^1{x^{x}} &= -\sum_{n=1}^{\infty}{(-n)^{-n}} \end{aligned}$$ The two sums converge to an approximate numerical value of $1.291285997$ and $0.7834305107$, respectively.
Note:If you had guessed that a freshman's dream might exist, then you would be correct... except in that case, it really is just a dream. Freshman's dream refers to the erroneous identity, $(x+y)^n=x^n+y^n$. Ah, how good it would be if that were true!
Before we begin, however, we will differentiate $x^x$ instead of integrating (which is always harder than differentiation). The initial technique we use will be sort of similar.
To find $\frac{d}{dx}x^x$, we will use logarithmic differentiation. $$\begin{aligned} \text{Let } y&=x^x \\ \ln{y}&=\ln{x^x} \\ &=x\ln{x} \end{aligned}$$ Implicitly differentiate both sides: $$\begin{aligned} \\ (\ln{y})' &= (x\ln{x})' \\ \frac1y \cdot y' &= x'\ln{x}+x(\ln{x})' \\ \frac {y'}{y} &=\ln{x}+x\cdot \frac{1}{x} \\ y' &= y(\ln{x}+1) \\ y' &= x^x(\ln{x}+1) \end{aligned}$$ This was just a simple demonstration of logarithmic differentiation. By taking the natural logarithm of this complicated expression and using the log rules to simplify from an exponentiation to a multiplication, we were able to use the product rule to implicitly differentiate. When integrating $x^x$, we will do something sort of similar.
Now, we are ready to tackle the Sophomore's Dream! We begin by expressing $x^x$ as a sum: $$ \begin{aligned} x^x&=e^{\ln{x^x}}=e^{x\ln{x}} \\ &= \sum_{n=0}^{\infty}\frac{(x\ln{x})^n}{n!} \\ &=\sum_{n=0}^{\infty}\frac{x^n(\ln{x})^n}{n!} \end{aligned} $$ ,using the Maclaurin series expansion for $e^x$. Let's now integrate: $$ \begin{aligned} \int_0^1{x^x}&=\int_0^1{\sum_{n=0}^{\infty}\frac{x^n(\ln{x})^n}{n!}}dx \\&={\sum_{n=0}^{\infty}\int_0^1\frac{x^n(\ln{x})^n}{n!}}dx \\&={\sum_{n=0}^{\infty}\frac{1}{n!} \int_0^1{x^n(\ln{x})^n}dx} \end{aligned} $$ Now, we introduce a u-substitution, $u=\ln(x)$ $$\begin{aligned} du&=\frac{1}{x}dx \\ &=\frac{1}{e^u}dx \\e^u du&=dx \end{aligned} $$ Now we want to find the new limits of integration in terms of $u$ by substituting the existing limits in terms of $x$:
When Bernoulli discovered this identity, the gamma function was not yet known. Therefore, instead of using substitutions to manipulate the integral in to the gamma function, he used integration by parts to integrate term by term. I will not show it here, because it is just heavy computation, but if you want to learn more about it, click on the Wikipedia page right below!
I took all of this information from this Wikipedia page. On the article, it says to take the substitution $x=e^{-\frac{u}{n+1}}$ which results in $u=-\ln{x}(n+1)$. This is exactly what I did above, except I separated it into two substitutions that actually made sense!
In this post, I wanted to share about this fascinating identity and offer a more detailed explanation of the proofs, as I found that the proofs on the Wikipedia page were quite difficult to understand for the average high school sophomore!
Nicely done!