Text this: Approximation of eigenvalues using variational principles