Finite-difference methods for eigenvalues