A factorization theorem for matrices

It is shown that a nonscalar invertible square matrix can be written as a product of two square matrices with prescribed eigenvalues subject only to the obvious determinant condition. As corollaries, we give short proofs of some known results such as Ballantine's characterization of products of four or five positive definite matrices, the commutator theorem of Shoda-Thompson for fields with sufficiently many elements and other results.