I was playing with desmos. Then I found a pair of interesting graphs, namely $f(x)=x^x$(the purple one) and $f(x)=x^{-x}$.(the green one)
They both have their global maximum/minimum at a point about $x=0.368$, which I found out is very close to $\frac1e$. Is there some kind of explanation about why this is happening?
You are most welcome to add relevant tags.
$$f_1(x)=\frac 1 {f_2(x)}$$ so you should expect that where one achieves its minimum, the other one achieves its maximum.
A closer inspection shows that $$\ln f_1(x)=x\ln x=-f_2(x)$$ and $$\frac{\partial (\ln f_1)}{\partial x}(x)=\ln(x)-1$$ So the minimum/maximum are indeed achieved exactly at $\frac 1 e$.