A cyclic vector gives a companion matrix, whose characteristic relation annihilates its generator and hence every iterate. If there is no cyclic vector spanning the whole space, a nonzero proper cyclic subspace is invariant. Induction annihilates the restriction and the quotient; the quotient polynomial first sends the whole space into the invariant subspace, and the restriction polynomial then kills it. The block-triangular characteristic polynomial is the product of these two polynomials.
The spanning vectors form a basis. Write
In this cyclic basis the matrix is the companion matrix
Expanding along its last column gives
For example, the term containing has minor and the signs from the subdiagonal cancel the cofactor sign; the diagonal term supplies . The defining relation says . Every polynomial in commutes with , so
It therefore vanishes on a basis, proving
This direct argument for a cyclic vector does not assume the Cayley-Hamilton theorem.
The structure theorem for finitely generated modules over a principal ideal domain applies in particular to a Euclidean domain : every finitely generated module has an isomorphism
with each nonzero and a nonunit. The rank of a free module and the invariant factors of a finitely generated module are unique up to multiplication by units; empty sums are allowed. This is the classification theorem being used, without a proof of that theorem.
The rational canonical form theorem states that for a linear operator on a finite-dimensional vector space over any field , there are unique monic nonconstant polynomials such that some basis gives
Here, for , the companion matrix has ones on its subdiagonal and last column . The empty matrix covers a zero-dimensional space. Two linear operators have matrix similarity exactly when they have the same invariant factors of a linear operator.
For the proof, make an -module by . It is a finitely generated module, since a vector-space basis also generates it as a module. It is a torsion module: the powers of have linear dependence in the finite-dimensional space , so some nonzero polynomial annihilates every vector. Because is a Euclidean domain, the classification theorem gives
There is no free summand, since a nonzero free module over is not a torsion module. Choose monic generators of the ideals. On , the classes of form an -basis by polynomial division. Multiplication by is exactly in that basis, proving existence. Uniqueness in the classification theorem proves uniqueness of the rational canonical form. Finally, an -module isomorphism is precisely an invertible -linear map intertwining the operators, establishing the assertion about matrix similarity. In particular the characteristic polynomial is and the minimal polynomial is for nonzero .
Make an -module by . It is finitely generated and torsion, so the structure theorem gives cyclic summands with . In the power basis of each summand, multiplication by has the companion matrix of . Their block diagonal sum is the rational canonical form, unique because the invariant factors are unique.
The structure theorem for finitely generated modules over a principal ideal domain applies because every Euclidean domain is a principal ideal domain. It says that a finitely generated -module is isomorphic to
where the nonzero nonunits are unique up to multiplication by units. They are the invariant factors.
For , multiplication by is the linear map . Since is finite-dimensional over , is a finitely generated torsion module over the polynomial ring , so it has no free summand. Choosing each invariant factor to be monic gives
The basis of each cyclic summand makes multiplication by a companion matrix. Concatenating these bases therefore puts in rational canonical form.
On , a polynomial annihilates multiplication by exactly when it is divisible by . It follows that the minimal polynomial and characteristic polynomial are
The second identity follows blockwise from the characteristic polynomial of a companion matrix. Since every divides , the product annihilates every cyclic summand. Thus , which is the Cayley-Hamilton theorem.
For the displayed matrix, the given generators of are the columns of
Elementary row and column operations over give the Smith normal form
Consequently the nonunit invariant factors are
and, as a check,
For the standard basis vector , matrix multiplication selects the th column, so
Consequently
and the columns of are .
Suppose first that are linearly independent, and define
Then is invertible. The first columns of are the last columns of . By the Cayley-Hamilton theorem,
This is exactly the last-column rule for the companion matrix , so
Conversely, suppose , or , and write the columns of as . Comparing the first columns gives
Hence
Since is invertible, its columns are linearly independent. Taking therefore makes
linearly independent. Thus is similar to exactly when it has the stated cyclic vector.
If were a nontrivial invariant decomposition, each restricted minimal polynomial would be a power of of degree at most . Their least common multiple is the minimal polynomial of , contradicting its degree .
Since has degree , has a cyclic vector . Put . Then for . In this basis the matrix is the companion matrix with ones immediately below the diagonal and last column
obtained by expanding .
The prime ideals of are and the maximal ideals generated by the monic irreducibles
For a nonzero prime , use the residue classes of , where . Multiplication by on is represented by the companion matrix of the monic polynomial . In particular, for this may equivalently be written as one size- Jordan block with eigenvalue . The ideal does not give a finite-dimensional quotient.