Perturbation Theory for the Generalized Eigenvalue Problem