A new method for solving eigenvalue problems