Variational Problems in Infinite Dimensional Spaces