Does gaussian elimination always work?

418 Views Asked by At

If so, why don't we use that to get from any square matrix to a triangular matrix - from which can be deduced eigenvalues, determinant (product of eigenvalues) and diagonal matrix (since the diagonal elements are the eigenvalues) - rather than using the characteristic polynomial, eigenvectors and $D = P^{-1}AP$ ?