solve small symmetric triadiagonal eigenvalue problem symbolically

38 Views Asked by At

I have a bunch of small ($n<20$) symmetric tridiagonal eigen problems, $$ A x = \lambda x $$ with $A = \text{diag}(b_i, a_i, b_i)$, $i\in\{1,\dots,n\}$, which I need to solve symbolically for eigenvalues and eigenvectors. Any hints on how to best approach this task?