Variational methods Basic methods mathematics