17.1 Solution of systems using diagonalization