ArticleslgStudy

mathematics

Companion matrix

Companion matrix is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Companion matrix rather than just read about it. In short: In linear algebra, the Frobenius companion matrix of the monic polynomial p(x)=c0+c1x+⋯+cn−1xn−1+xn is the square matrix defined as C(p)=[00…0−c010…0−c101…0−c2⋮⋮⋱⋮⋮00…1−cn−1]. 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).

Key takeaways

  • Companion matrix belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Companion matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Companion matrix from memory before moving on to harder problems.

Reference excerpt

In linear algebra, the Frobenius companion matrix of the monic polynomial p(x)=c0+c1x+⋯+cn−1xn−1+xn is the square matrix defined as C(p)=[00…0−c010…0−c101…0−c2⋮⋮⋱⋮⋮00…1−cn−1]. 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). 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⁡(xI−A), 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:Fn→Fn makes Fn a cyclic F[A]-module, having a basis of the form {v,Av,…,An−1v}; or equivalently Fn≅F[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)=V−1DV, where D is the diagonal matrix and V is the Vandermonde matrix corresponding to the λ's: D=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn],V=[1λ1λ12⋯λ1n−11λ2λ22⋯λ2n−1⋮⋮⋮⋱⋮1λnλn2⋯λnn−1]. Indeed, a computation shows that the transpose C(p)T has eigenvectors vi=(1,λi,…,λin−1) with C(p)T(vi)=λivi, which follows from p(λi)=c0+c1λi+⋯+cn−1λin−1+λin=0. Thus, its diagonalizing change of basis matrix is VT=[v1T…vnT], meaning C(p)T=VTD(VT)−1, and taking the transpose of both sides gives C(p)=V−1DV. We can read the eigenvectors of C(p) with C(p)(wi)=λiwi from the equation C(p)=V−1DV: they are the column vectors of the inverse Vandermonde matrix V−1=[w1T⋯wnT]. This matrix is known explicitly, giving the eigenvectors wi=(L0i,…,L(n−1)i), with coordinates equal to the coefficients of the Lagrange polynomials Li(x)=L0i+L1ix+⋯+L(n−1)ixn−1=∏j≠ix−λ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 Jordan block for each distinct root; if the multiplicity of the root is m, then the block is an m × m matrix with λ on the diagonal and 1 in the entries just above the diagonal. In this case, V becomes a confluent Vandermonde matrix.

Linear recursive sequences A linear recursive sequence defined by ak+n=−c0ak−c1ak+1⋯−cn−1ak+n−1 for k≥0 has the characteristic polynomial p(x)=c0+c1x+⋯+cn−1xn−1+xn, whose transpose companion matrix C(p)T generates the sequence: [ak+1ak+2⋮ak+n−1ak+n]=[010⋯0001⋯0⋮⋮⋮⋱⋮000⋯1−c0−c1−c2⋯−cn−1][akak+1⋮ak+n−2ak+n−1]. The vector v=(1,λ,λ2,…,λn−1) 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)+cn−1y(n−1)+⋯+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(n−1)(t)): z′=C(p)Tz where C(p)T is the transpose companion matrix for the characteristic polynomial p(x)=xn+cn−1xn−1+⋯+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)+cn−1y(n−1)+⋯+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)=xn−1, 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+cn−1xn−1+⋯+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,…,λn−1}. Then the F-linear multiplication mapping

has an n × n matrix [mλ] with respect to the standard basis. Since mλ(λi)=λi+1 and mλ(λn−1)=λn=−c0−⋯−cn−1λn−1, 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 Ln≅L⊗FK, a vector space over L with standard basis {1⊗1,1⊗λ,1⊗λ2,…,1⊗λn−1}, containing vectors w=(β1,…,βn)=β1⊗1+⋯+βn⊗λn−1. 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)=V−1DV, for the diagonal matrix D=diag⁡(λ1,…,λn) and the Vandermonde matrix V corresponding to λ1,…,λn∈L. The explicit formula for the eigenvectors (the scaled column vectors of the inverse Vandermonde matrix V−1) can be written as: w~i=β0i⊗1+β1i⊗λ+⋯+β(n−1)i⊗λn−1=∏j≠i(1⊗λ−λj⊗1) where βij∈L are the coefficients of the scaled Lagrange polynomial p(x)x−λi=∏j≠i(x−λj)=β0i+β1ix+⋯+β(n−1)ixn−1.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Companion matrix

Start with the simplest possible case. Write down what Companion matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Companion matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Companion matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Companion matrix

In research
Companion matrix appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Companion matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Companion matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Matrices (mathematics), Matrix normal forms, Matrix theory, so understanding it makes those chapters shorter.
In everyday life
Look for Companion matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Companion matrix” →

How to study Companion matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Companion matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Companion matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Companion matrix in simple terms?

In linear algebra, the Frobenius companion matrix of the monic polynomial p(x)=c0+c1x+⋯+cn−1xn−1+xn is the square matrix defined as C(p)=[00…0−c010…0−c101…0−c2⋮⋮⋱⋮⋮00…1−cn−1]. Some authors use the transpose of this matrix, C(p)T, which is more convenient for some purposes such as linear recurrence…

Why does Companion matrix matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Companion matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Companion matrix.

Tags

  • Matrices (mathematics)
  • Matrix normal forms
  • Matrix theory

Keep exploring