Prove that $$\prod_{i=1}^nx_i^{x_i}\ge\prod_{i=1}^n{x_i^a}$$ for all $x_1,\dots,x_n\in\mathbb{R}^+$ where $a=\frac1n(x_1+\cdots+x_n)$.
Firstly, I've transformed the above inequality into the following form: $$x_1\ln x_1+\cdots+x_n\ln x_n\ge\frac1n(x_1+\cdots+x_n)(\ln x_1+\cdots+\ln x_n)$$ Now it is a bit hard to proceed. I've tried to apply mean inequlities $$Q_n\ge\cdots\ge Q_1\ge A\ge G\ge H$$ but none of them gave me useful result. After that I've tried Cauchy-Schwartz inequality, but the problem is because in that inequality square of product of sums is greater than square of sum of inner products, so I didn't find a way to apply it here. Any ideas?