Let $F: \mathbb{R}^n \times \mathbb{R} \times \mathbb{R}^n \to \mathbb{R}$ be the Lagrangian. We say that $f \in X$ is a local minimizer of the variational integral if for all compact sets $C \subset \mathbb{R}^n$ we have $$\int_C F(x,f(x),\nabla f(x))dx = \inf\bigg\{\int_C F(x,u(x),\nabla u(x))dx \colon u \in X \bigg\} $$ where $X$ is some function space ($C^2$ or a Sobolev space, etc.)
Unlike the classical variational integral that takes place on a bounded set, here I am interested in functions defined in all of the space, since the integral of $\int_{\mathbb{R}^n} F(x,u(x),\nabla u(x))dx$ might be infinite, I think it's appropiate to try to find a local minimizer.
Some questions I have in mind for this problem are when there exists local minimizers, when they are unique and regularity but I haven't been able to find any references for this kind of problem or related problems. I appreciate any reference about this or related problems.