Variational nature of eigenvalue problems with a parameter