Minimization of Energy Functionals Applied to Some Inverse Problems