Companion matrix

From HandWiki
Short description: Square matrix constructed from a monic polynomial

In linear algebra, the Frobenius companion matrix of the monic polynomial p(x)=c0+c1x++cn1xn1+xn is the square matrix defined as

C(p)=[000c0100c1010c2001cn1].

Some authors use the transpose of this matrix, C(p)T, which is more convenient for some purposes such as linear recurrence relations (see below).

C(p) is defined from the coefficients of p(x), while the characteristic polynomial as well as the minimal polynomial of C(p) are equal to p(x).[1] In this sense, the matrix C(p) and the polynomial p(x) are "companions".

Similarity to companion matrix

Any matrix A with entries in a field F has characteristic polynomial p(x)=det(xIA), which in turn has companion matrix C(p). These matrices are related as follows.

The following statements are equivalent:

  • A is similar over F to C(p), i.e. A can be conjugated to its companion matrix by matrices in GLn(F);
  • the characteristic polynomial p(x) coincides with the minimal polynomial of A , i.e. the minimal polynomial has degree n;
  • the linear mapping A:FnFn makes Fn a cyclic F[A]-module, having a basis of the form {v,Av,,An1v}; or equivalently FnF[X]/(p(x)) as F[A]-modules.

If the above hold, one says that A is non-derogatory.

Not every square matrix is similar to a companion matrix, but every square matrix is similar to a block diagonal matrix made of companion matrices. If we also demand that the polynomial of each diagonal block divides the next one, they are uniquely determined by A, and this gives the rational canonical form of A.

Diagonalizability

The roots of the characteristic polynomial p(x) are the eigenvalues of C(p). If there are n distinct eigenvalues λ1,,λn, then C(p) is diagonalizable as C(p)=V1DV, where D is the diagonal matrix and V is the Vandermonde matrix corresponding to the λ's: D=[λ1000λ2000λn],V=[1λ1λ12λ1n1λ2λ22λ2n1λnλn2λnn]. Indeed, an easy computation shows that the transpose C(p)T has eigenvectors vi=(1,λi,,λin1) with C(p)T(vi)=λivi, which follows from p(λi)=c0+c1λi++cn1λin1+λin=0. Thus, its diagonalizing change of basis matrix is VT=[v1TvnT], meaning C(p)T=VTD(VT)1, and taking the transpose of both sides gives C(p)=V1DV.

We can read the eigenvectors of C(p) with C(p)(wi)=λiwi from the equation C(p)=V1DV: they are the column vectors of the inverse Vandermonde matrix V1=[w1TwnT]. This matrix is known explicitly, giving the eignevectors wi=(L0i,,L(n1)i), with coordinates equal to the coefficients of the Lagrange polynomials Li(x)=L0i+L1ix++L(n1)ixn1=jixλjλjλi=p(x)(xλi)p(λi). Alternatively, the scaled eigenvectors w~i=p(λi)wi have simpler coefficients.

If p(x) has multiple roots, then C(p) is not diagonalizable. Rather, the Jordan canonical form of C(p) contains one diagonal block for each distinct root, an m × m block with λ on the diagonal if the root λ has multiplicity m.

Linear recursive sequences

A linear recursive sequence defined by ak+n=c0akc1ak+1cn1ak+n1 for k0 has the characteristic polynomial p(x)=c0+c1x++cn1xn1+xn, whose transpose companion matrix C(p)T generates the sequence: [ak+1ak+2ak+n1ak+n]=[010000100001c0c1c2cn1][akak+1ak+n2ak+n1]. The vector v=(1,λ,λ2,,λn1) is an eigenvector of this matrix, where the eigenvalue λ is a root of p(x). Setting the initial values of the sequence equal to this vector produces a geometric sequence ak=λk which satisfies the recurrence. In the case of n distinct eigenvalues, an arbitrary solution ak can be written as a linear combination of such geometric solutions, and the eigenvalues of largest complex norm give an asymptotic approximation.

From linear ODE to first-order linear ODE system

Similarly to the above case of linear recursions, consider a homogeneous linear ODE of order n for the scalar function y=y(t): y(n)+cn1y(n1)++c1y(1)+c0y=0. This can be equivalently described as a coupled system of homogeneous linear ODE of order 1 for the vector function z(t)=(y(t),y(t),,y(n1)(t)): z=C(p)Tz where C(p)T is the transpose companion matrix for the characteristic polynomial p(x)=xn+cn1xn1++c1x+c0. Here the coefficients ci=ci(t) may be also functions, not just constants.

If C(p)T is diagonalizable, then a diagonalizing change of basis will transform this into a decoupled system equivalent to one scalar homogeneous first-order linear ODE in each coordinate.

An inhomogeneous equation y(n)+cn1y(n1)++c1y(1)+c0y=f(t) is equivalent to the system: z=C(p)Tz+F(t) with the inhomogeneity term F(t)=(0,,0,f(t)).

Again, a diagonalizing change of basis will transform this into a decoupled system of scalar inhomogeneous first-order linear ODEs.

Cyclic shift matrix

In the case of p(x)=xn1, when the eigenvalues are the complex roots of unity, the companion matrix and its transpose both reduce to Sylvester's cyclic shift matrix, a circulant matrix.

Multiplication map on a simple field extension

Consider a polynomial p(x)=xn+cn1xn1++c1x+c0 with coefficients in a field F, and suppose p(x) is irreducible in the polynomial ring F[x]. Then adjoining a root λ of p(x) produces a field extension K=F(λ)F[x]/(p(x)), which is also a vector space over F with standard basis {1,λ,λ2,,λn1}. Then the F-linear multiplication mapping

mλ:KK defined by mλ(α)=λα

has an n × n matrix [mλ] with respect to the standard basis. Since mλ(λi)=λi+1 and mλ(λn1)=λn=c0cn1λn1, this is the companion matrix of p(x): [mλ]=C(p). Assuming this extension is separable (for example if F has characteristic zero or is a finite field), p(x) has distinct roots λ1,,λn with λ1=λ, so that p(x)=(xλ1)(xλn), and it has splitting field L=F(λ1,,λn). Now mλ is not diagonalizable over F; rather, we must extend it to an L-linear map on LnLFK, a vector space over L with standard basis {11,1λ,1λ2,,1λn1}, containing vectors w=(β1,,βn)=β11++βnλn1. The extended mapping is defined by mλ(βα)=β(λα).

The matrix [mλ]=C(p) is unchanged, but as above, it can be diagonalized by matrices with entries in L: [mλ]=C(p)=V1DV, for the diagonal matrix D=diag(λ1,,λn) and the Vandermonde matrix V corresponding to λ1,,λnL. The explicit formula for the eigenvectors (the scaled column vectors of the inverse Vandermonde matrix V1) can be written as: w~i=β0i1+β1iλ++β(n1)iλn1=ji(1λλj1) where βijL are the coefficients of the scaled Lagrange polynomial p(x)xλi=ji(xλj)=β0i+β1ix++β(n1)ixn1.

See also

Notes

  1. Horn, Roger A.; Charles R. Johnson (1985). Matrix Analysis. Cambridge, UK: Cambridge University Press. pp. 146–147. ISBN 0-521-30586-1. https://books.google.com/books?id=f6_r93Of544C&dq=%22companion+matrix%22&pg=PA147. Retrieved 2010-02-10.