I need to find a function $f(x)$ that maximizes a functional: $$ J(f)= \int\limits_{-\infty}^{+\infty} e^{-x^2/2}f(x) \,dx$$
Where $$f(x)>0 \ \text{ and} \int\limits_{-\infty}^{+\infty} f(x) \,dx = 1$$ Euler-Langrange equation will simply be:
$$ e^{-x^2/2}=0$$
So does it mean that there are no stationary points for this functional? But how do I search for a maxima/minima then?
Thank you!
The maximum cannot be attained. You're trying to maximize integrating a positive $f$ of mass 1 against $e^{-x^2/2}$, so this means you want to put as much of the mass of $f$ as possible on the large values of $e^{-x^2/2}$; of course this function is strictly maximized at $x = 0$. But then this means you can construct a sequence of functions $f_n(x)$ of increasing sharper peaks about $x = 0$ so that $J(f_n)$ is increasing towards 1; without obsessing over rigor, you can think of this sequence as weakly approaching the Dirac delta function, and one can observe that the upper bound for your functional is 1, which cannot be attained.