Earlier today I saw this cool differential equation question which was closed because the asker didn't show any effort in solving it: $$f^{(n)}(x)=f(x)^n$$ But I still wanted to know the answer, you know? It looks like a super cool equation. But I had no clue where to start, since it didn't look separable or anything, so I just looked through cases for very low $n$. $$f(x)=f'(x)$$ Oh, that's easy. Just any function of the form $f(x)=Ae^{x}$. So, how hard can $n=2$ be? $$f''(x)=f(x)^2$$ .... Uh oh. My first thought was perhaps a monomial of some sort. Something of the form $Ax^n$. I plugged in and got $$A(n)(n-1)x^{n-2}=A^2x^{2n}$$ so clearly, $n$ has to satisfy both $n-2=2n$ and $(n)(n-1)=A$. $n=-2$, which means $A=-6$. But is that the only solution? $6x^{-2}$? Seems oddly isolated. So, I looked to Mathematica for help finding a general solution.
... oh my god. What the hell is the "Weierstrass elliptic function"???
It gave me this nightmarish form: $$\sqrt[3]{6}\,\wp\!\left(\frac{x+c_1}{\sqrt[3]{6}},0,c_2\right)$$ Looking up the function on Wikipedia, I was able to rewrite that as $$\sqrt[3]{6}\left(\frac{6^{\frac{2}{3}}}{(x+c_1)^2}+\sum_{k=1}^{\infty} \frac{1}{\left(\frac{x+c_1}{\sqrt[3]{6}}-c_2k\right)^2}-\frac{1}{c_2^2k^2}+\sum_{k=1}^{\infty} \frac{1}{\left(\frac{x+c_1}{\sqrt[3]{6}}+c_2k\right)^2}-\frac{1}{c_2^2k^2}\right)$$ That spooked me. So, I tried looking up $f^{(3)}(x)=f(x)^3$, and it gave... nothing. No searches coming up on ApproachZero either. Maybe it's an issue with odd $n$s? But nope, $n=4$ gives the same problem. So, I tried myself, first to prove that the Weierstrass elliptic function actually satisfies this, and if I could modify it to somehow fit with $f'''(x)=f(x)^3$ and beyond.
Can I even prove that the Weierstrass function actually works? I took $c_1=0$, because it was fairly unnecessary, and renamed $c_2=C$. $$\frac{6}{x^2}+\sum_{k=1}^{\infty} \frac{\sqrt[3]{6}}{\left(\frac{x}{\sqrt[3]{6}}-Ck\right)^2}-\frac{\sqrt[3]{6}}{C^2k^2}+\sum_{k=1}^{\infty} \frac{\sqrt[3]{6}}{\left(\frac{x}{\sqrt[3]{6}}+Ck\right)^2}-\frac{\sqrt[3]{6}}{C^2k^2}$$ Uh oh. So, I took the derivative twice. And that gave me $$\frac{36}{x^4}+\sum_{k=1}^{\infty} \frac{36}{\left(\frac{x}{\sqrt[3]{6}}-Ck\right)^4}+\sum_{k=1}^{\infty} \frac{36}{\left(\frac{x}{\sqrt[3]{6}}+Ck\right)^4}$$ Off to a fine-ish start. But then I remembered I had to square $f(x)$. How do you deal with the square of an infinite sum?? And I gave up.
@Gonçalo's comment showing me that there was an easy particular solution I missed for $n=2$ remotivated me to look for general solutions. So I tried... $$A(k)(k-1)\cdots (k-n+1)x^{k-n}=A^nx^{kn}$$ which implies $k-n=kn \Rightarrow k=\frac{n}{1-n}$ and
$$A=\left((\frac{n}{1-n})(\frac{n}{1-n}-1)\cdots (\frac{n}{1-n}-n+1)\right)^{\frac{1}{n-1}}$$
That's fine for even $n$, but the expression under $\frac{1}{n-1}$ is negative for odd $n$, which screws things up a bit. But, there's still definitely a real solution for odd $n$, as shown by the numerical approximations. So what's up with those? And can we get a general solution for even ones?
Update on question 3: I tried to solve this for $n=-2$. So, we have... $$f(x)^2\iint f(x)\ dx = 1$$ I tried differentiating both sides, which gave me $$\int f(x)\ dx = -2f(x)^{-3}f'(x)$$ and then differentiated again, which gave $$f(x)=6f(x)^{-4}f'(x)^2-2f(x)^{-3}f''(x)$$ or $$f(x)^5=6f'(x)^2-2f(x)f''(x)$$ Eh... I'm not feeling it. What if we tried plugging in another solution of the form $Ax^k$? $$A\int \left(\int x^k \ dx\right) \ dx=\frac{1}{A^2}x^{2k}$$ $$\frac{A}{(k+1)(k+2)}x^{k+2}=\frac{1}{A^2}x^{2k}$$ So $k+2=2k$, which implies $k=2$. That means $$\frac{A}{12}=\frac{1}{A^2} \Rightarrow A=\sqrt[3]{12}$$ I'm pretty convinced at this point that $\sqrt[3]{12}x^2$ is not the only solution, and also that $n=-3$ will be a little more complex. Any ideas about it?
Has this equation been studied? Where can I find references on it?
Is there even a power series solution to $n=3$, let alone beyond? (And, if not, could you please show that the solution for $n=2$ is correct?)
Bonus question: is this even solvable for negative $n$, which would give an equation of the form $$\underbrace{\int \cdots \int}_{\text{$k$ integrals}}f(x)\ dx = \frac{1}{f(x)^k}$$ The solution for $k=1$ ($n=-1$) can be written as $$\int f(x)\ dx = \frac{1}{f(x)} \Rightarrow g(x)g'(x)=1 \Rightarrow g(x)=\pm \sqrt{2x+C} \Rightarrow f(x)=g'(x)=\pm\frac{1}{\sqrt{2x+C}}$$ which seemingly has no relation to the solution for $n=1$. What about $n=-2$ ($k=2$)? What if we use fractional derivatives? etc.