Consider a polynomial p(x)=x^n + c_{n-1}x^{n-1} + \cdots + c_1 x + c_0 with coefficients in a
field F, and suppose p(x) is
irreducible in the
polynomial ring F[x]. Then
adjoining a root \lambda of p(x) produces a
field extension K=F(\lambda) \cong F[x]/(p(x)), which is also a vector space over F with standard basis \{1,\lambda,\lambda^2,\ldots,\lambda^{n-1}\} . Then the F-linear multiplication mapping {{ block indent | em = 1.5 | text = m_{\lambda}:K\to K defined by m_\lambda(\alpha) = \lambda\alpha }} has an
n ×
n matrix [m_\lambda] with respect to the standard basis. Since m_\lambda(\lambda^i) = \lambda^{i+1} and m_\lambda(\lambda^{n-1}) = \lambda^n = -c_0-\cdots-c_{n-1}\lambda^{n-1}, this is the companion matrix of p(x): [m_\lambda] = C(p). Assuming this extension is
separable (for example if F has
characteristic zero or is a
finite field), p(x) has distinct roots \lambda_1,\ldots,\lambda_n with \lambda_1 = \lambda, so that p(x)=(x-\lambda_1)\cdots (x-\lambda_n), and it has
splitting field L = F(\lambda_1,\ldots,\lambda_n). Now m_\lambda is not diagonalizable over F; rather, we must
extend it to an L-linear map on L^n \cong L\otimes_F K, a vector space over L with standard basis \{1{\otimes} 1, \, 1{\otimes}\lambda, \, 1{\otimes}\lambda^2,\ldots,1{\otimes}\lambda^{n-1}\} , containing vectors w = (\beta_1,\ldots,\beta_n) = \beta_1{\otimes} 1+\cdots+\beta_n{\otimes} \lambda^{n-1} . The extended mapping is defined by m_\lambda(\beta\otimes\alpha) = \beta\otimes(\lambda\alpha). The matrix [m_\lambda] = C(p) is unchanged, but as above, it can be diagonalized by matrices with entries in L: [m_\lambda]=C(p)= V^{-1}\! D V, for the diagonal matrix D=\operatorname{diag}(\lambda_1,\ldots,\lambda_n) and the
Vandermonde matrix V corresponding to \lambda_1,\ldots,\lambda_n\in L . The explicit formula for the eigenvectors (the scaled column vectors of the
inverse Vandermonde matrix V^{-1}) can be written as: \tilde w_i = \beta_{0i} {\otimes} 1+\beta_{1i} {\otimes} \lambda +\cdots + \beta_{(n-1)i} {\otimes} \lambda^{n-1} = \prod_{j\neq i} (1{\otimes}\lambda - \lambda_j{\otimes} 1) where \beta_{ij}\in L are the coefficients of the scaled Lagrange polynomial \frac{p(x)}{x-\lambda_i} = \prod_{j\neq i} (x - \lambda_j) = \beta_{0i} + \beta_{1i} x + \cdots + \beta_{(n-1)i} x^{n-1}. ==Theoretical complexity: calculation by fast matrix multiplication==