{"id":3924,"date":"2026-06-22T12:33:01","date_gmt":"2026-06-22T12:33:01","guid":{"rendered":"https:\/\/www.mathros.net.ua\/en\/?p=3924"},"modified":"2026-06-22T14:33:32","modified_gmt":"2026-06-22T14:33:32","slug":"eigenvalues-of-a-matrix-leverrier-method","status":"publish","type":"post","link":"https:\/\/www.mathros.net.ua\/en\/eigenvalues-of-a-matrix-leverrier-method.html","title":{"rendered":"Eigenvalues of a Matrix: Finding Them with the Leverrier Method"},"content":{"rendered":"<p>The Leverrier method is a way to find the eigenvalues of a matrix using the characteristic polynomial. Its advantage is that the coefficients of this polynomial can be calculated not by directly expanding the determinant, but by using the traces of powers of the matrix. Next, let us see exactly how this method works.<\/p>\n<h2>Eigenvalues of a Matrix: From the Matrix to the Characteristic Polynomial<\/h2>\n<p>Suppose we are given a <a title=\"What is square matrix\" href=\"https:\/\/www.mathros.net.ua\/en\/what-is-a-matrix.html\">square matrix<\/a> of order \\( n \\):<\/p>\n<p>\\[<br \/>\nA =<br \/>\n\\begin{pmatrix}<br \/>\na_{11} &amp; a_{12} &amp; \\dots &amp; a_{1n} \\\\<br \/>\na_{21} &amp; a_{22} &amp; \\dots &amp; a_{2n} \\\\<br \/>\n\\vdots &amp; \\vdots &amp; \\ddots &amp; \\vdots \\\\<br \/>\na_{n1} &amp; a_{n2} &amp; \\dots &amp; a_{nn}<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>To find the eigenvalues of the matrix \\( A \\), we need to construct its <a title=\"Characteristic polynomial of a matrix\" href=\"https:\/\/en.wikipedia.org\/wiki\/Characteristic_polynomial\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">characteristic polynomial<\/a><\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)=\\det(\\lambda\\cdot I-A),<br \/>\n\\]<\/p>\n<p>where \\( I \\) is the identity matrix of order \\( n \\).<\/p>\n<p>In its general form, this polynomial can be written as<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^n<br \/>\n-\\sigma_1\\cdot \\lambda^{n-1}<br \/>\n+\\sigma_2\\cdot \\lambda^{n-2}<br \/>\n-\\dots<br \/>\n+(-1)^n\\cdot\\sigma_n.<br \/>\n\\]<\/p>\n<p>Then the eigenvalues of the matrix \\( A \\) are found from the equation<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)=0.<br \/>\n\\]<\/p>\n<p>So, the main task of the method is to find the coefficients<\/p>\n<p>\\[<br \/>\n\\sigma_1,\\sigma_2,\\dots,\\sigma_n.<br \/>\n\\]<\/p>\n<p>Of course, we could directly <a title=\"Method of expanding the characteristic determinant\" href=\"https:\/\/www.mathros.net.ua\/en\/eigenvalues-and-eigenvectors-of-a-matrix.html\">expand the determinant<\/a> \\( \\det(\\lambda\\cdot I-A) \\). But is this always convenient? For higher-order matrices, this approach quickly becomes bulky. That is why the Leverrier method offers a different approach.<\/p>\n<p>First, let us look at what the coefficients \\( \\sigma_1,\\sigma_2,\\dots,\\sigma_n \\) mean.<\/p>\n<p>Let \\( \\lambda_1,\\lambda_2,\\dots,\\lambda_n \\) be the eigenvalues of the matrix \\( A \\), written with their algebraic multiplicities taken into account. Then the characteristic polynomial can be represented as<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n(\\lambda-\\lambda_1)\\cdot<br \/>\n(\\lambda-\\lambda_2)\\cdot<br \/>\n\\dots\\cdot<br \/>\n(\\lambda-\\lambda_n).<br \/>\n\\]<\/p>\n<p>After expanding the brackets, we get the following polynomial:<\/p>\n<p>\\[<br \/>\n\\begin{aligned}<br \/>\n\\chi(\\lambda)<br \/>\n=\\lambda^n<br \/>\n-(\\lambda_1+\\lambda_2+\\dots+\\lambda_n)\\cdot \\lambda^{n-1}<br \/>\n+\\left(\\sum_{1\\le i&lt;j\\le n}\\lambda_i\\cdot\\lambda_j\\right)\\cdot \\lambda^{n-2} \\\\<br \/>\n-\\left(\\sum_{1\\le i&lt;j&lt;k\\le n}\\lambda_i\\cdot\\lambda_j\\cdot\\lambda_k\\right)\\cdot \\lambda^{n-3}<br \/>\n+\\dots<br \/>\n+(-1)^n\\cdot \\lambda_1\\cdot\\lambda_2\\cdot\\dots\\cdot\\lambda_n.<br \/>\n\\end{aligned}<br \/>\n\\]<\/p>\n<p>But this same characteristic polynomial was already written in the form<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^n<br \/>\n-\\sigma_1\\cdot \\lambda^{n-1}<br \/>\n+\\sigma_2\\cdot \\lambda^{n-2}<br \/>\n-\\sigma_3\\cdot \\lambda^{n-3}<br \/>\n+\\dots<br \/>\n+(-1)^n\\cdot\\sigma_n.<br \/>\n\\]<\/p>\n<p>Now let us compare the coefficients of the same powers of \\( \\lambda \\). This comparison shows that the coefficients \\( \\sigma_1,\\sigma_2,\\dots,\\sigma_n \\) are the elementary symmetric functions of the eigenvalues:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sigma_1=\\lambda_1+\\lambda_2+\\dots+\\lambda_n, \\\\[4pt]<br \/>\n\\sigma_2=\\sum_{1\\le i&lt;j\\le n}\\lambda_i\\cdot\\lambda_j, \\\\[4pt]<br \/>\n\\sigma_3=\\sum_{1\\le i&lt;j&lt;k\\le n}\\lambda_i\\cdot\\lambda_j\\cdot\\lambda_k, \\\\[4pt]<br \/>\n\\dots \\\\[4pt]<br \/>\n\\sigma_n=\\lambda_1\\cdot\\lambda_2\\cdot\\dots\\cdot\\lambda_n.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>But there is an important point here. The eigenvalues themselves are still unknown. Therefore, we cannot find the coefficients directly using these formulas. We need a way to calculate them through the matrix \\( A \\) itself. This is exactly where the Leverrier method comes in.<\/p>\n<h2>Traces of Matrix Powers: How to Get the Needed Sums<\/h2>\n<p>The Leverrier method does not use the individual eigenvalues themselves. Instead, it uses their power sums. Let us denote<\/p>\n<p>\\[<br \/>\nS_k=<br \/>\n\\lambda_1^k+\\lambda_2^k+\\dots+\\lambda_n^k,<br \/>\n\\qquad<br \/>\nk=1,2,\\dots,n.<br \/>\n\\]<\/p>\n<p>For example,<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\nS_1=\\lambda_1+\\lambda_2+\\dots+\\lambda_n, \\\\[4pt]<br \/>\nS_2=\\lambda_1^2+\\lambda_2^2+\\dots+\\lambda_n^2, \\\\[4pt]<br \/>\nS_3=\\lambda_1^3+\\lambda_2^3+\\dots+\\lambda_n^3.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>At first glance, it may seem that these sums also cannot be found without knowing the eigenvalues. But here an important property of matrices comes into play.<\/p>\n<p>The sum of the eigenvalues of a matrix is equal to its trace. Therefore,<\/p>\n<p>\\[<br \/>\nS_1=\\operatorname{tr}(A).<br \/>\n\\]<\/p>\n<p>Since the trace of a matrix is the sum of the elements on its main diagonal, we have<\/p>\n<p>\\[<br \/>\nS_1<br \/>\n=<br \/>\n\\operatorname{tr}(A)<br \/>\n=<br \/>\na_{11}+a_{22}+\\dots+a_{nn}<br \/>\n=<br \/>\n\\sum_{i=1}^{n}a_{ii}.<br \/>\n\\]<\/p>\n<p>And what happens for powers of the matrix? The eigenvalues of the matrix \\( A^k \\) are the numbers<\/p>\n<p>\\[<br \/>\n\\lambda_1^k,\\lambda_2^k,\\dots,\\lambda_n^k.<br \/>\n\\]<\/p>\n<p>So, the sum of these numbers is equal to the trace of the matrix \\( A^k \\). Therefore,<\/p>\n<p>\\[<br \/>\nS_k=\\operatorname{tr}(A^k).<br \/>\n\\]<\/p>\n<p>To write this in more detail, let us denote the elements of the matrix \\( A^k \\) as follows:<\/p>\n<p>\\[<br \/>\nA^k=<br \/>\n\\begin{pmatrix}<br \/>\na_{11}^{(k)} &amp; a_{12}^{(k)} &amp; \\dots &amp; a_{1n}^{(k)} \\\\<br \/>\na_{21}^{(k)} &amp; a_{22}^{(k)} &amp; \\dots &amp; a_{2n}^{(k)} \\\\<br \/>\n\\vdots &amp; \\vdots &amp; \\ddots &amp; \\vdots \\\\<br \/>\na_{n1}^{(k)} &amp; a_{n2}^{(k)} &amp; \\dots &amp; a_{nn}^{(k)}<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Then, for the second power of the matrix, we have<\/p>\n<p>\\[<br \/>\nS_2<br \/>\n=<br \/>\n\\operatorname{tr}(A^2)<br \/>\n=<br \/>\na_{11}^{(2)}+a_{22}^{(2)}+\\dots+a_{nn}^{(2)}<br \/>\n=<br \/>\n\\sum_{i=1}^{n}a_{ii}^{(2)}.<br \/>\n\\]<\/p>\n<p>Similarly, for the third power,<\/p>\n<p>\\[<br \/>\nS_3<br \/>\n=<br \/>\n\\operatorname{tr}(A^3)<br \/>\n=<br \/>\na_{11}^{(3)}+a_{22}^{(3)}+\\dots+a_{nn}^{(3)}<br \/>\n=<br \/>\n\\sum_{i=1}^{n}a_{ii}^{(3)}.<br \/>\n\\]<\/p>\n<p>In its general form,<\/p>\n<p>\\[<br \/>\nS_k<br \/>\n=<br \/>\n\\operatorname{tr}(A^k)<br \/>\n=<br \/>\na_{11}^{(k)}+a_{22}^{(k)}+\\dots+a_{nn}^{(k)}<br \/>\n=<br \/>\n\\sum_{i=1}^{n}a_{ii}^{(k)},<br \/>\n\\qquad<br \/>\nk=1,2,\\dots,n.<br \/>\n\\]<\/p>\n<p>Here we need to be careful. For example, \\( \\operatorname{tr}(A^2) \\) is the trace of the matrix \\( A^2 \\). First, we need to find the product \\( A^2=A\\cdot A \\), and only after that add the elements on the main diagonal of this new matrix.<\/p>\n<p>In other words,<\/p>\n<p>\\[<br \/>\n\\operatorname{tr}(A^2)<br \/>\n\\neq<br \/>\na_{11}^2+a_{22}^2+\\dots+a_{nn}^2<br \/>\n\\]<\/p>\n<p>in the general case. This is a common mistake, so it is worth paying special attention to it.<\/p>\n<p>Thus, through the matrix \\( A \\), we can find the values<\/p>\n<p>\\[<br \/>\nS_1,S_2,\\dots,S_n.<br \/>\n\\]<\/p>\n<p>And then, using them, we can move on to the coefficients of the characteristic polynomial.<\/p>\n<h2>Leverrier Method: Sequential Calculation of the Coefficients<\/h2>\n<p>Now we have everything we need for the main part of the method. The power sums are known:<\/p>\n<p>\\[<br \/>\nS_1,S_2,\\dots,S_n,<br \/>\n\\]<\/p>\n<p>and we need to find the coefficients<\/p>\n<p>\\[<br \/>\n\\sigma_1,\\sigma_2,\\dots,\\sigma_n.<br \/>\n\\]<\/p>\n<p>For this, we use Newton\u2019s identities, also called the Newton\u2013Girard formulas. They connect the power sums of the eigenvalues \\( S_k \\) with the coefficients of the characteristic polynomial \\( \\sigma_k \\).<\/p>\n<p>For our form of the characteristic polynomial, these formulas look like this:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\nS_1-\\sigma_1=0, \\\\[4pt]<br \/>\nS_2-\\sigma_1\\cdot S_1+2\\cdot\\sigma_2=0, \\\\[4pt]<br \/>\nS_3-\\sigma_1\\cdot S_2+\\sigma_2\\cdot S_1-3\\cdot\\sigma_3=0, \\\\[4pt]<br \/>\nS_4-\\sigma_1\\cdot S_3+\\sigma_2\\cdot S_2-\\sigma_3\\cdot S_1+4\\cdot\\sigma_4=0.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>The formulas continue in the same pattern. In general form,<\/p>\n<p>\\[<br \/>\nS_k<br \/>\n-\\sigma_1\\cdot S_{k-1}<br \/>\n+\\sigma_2\\cdot S_{k-2}<br \/>\n-\\dots<br \/>\n+(-1)^{k-1}\\cdot\\sigma_{k-1}\\cdot S_1<br \/>\n+(-1)^k\\cdot k\\cdot\\sigma_k<br \/>\n=0.<br \/>\n\\]<\/p>\n<p>Using these equalities, we can find the coefficients of the characteristic polynomial step by step.<\/p>\n<p>From the first formula, we have<\/p>\n<p>\\[<br \/>\n\\sigma_1=S_1.<br \/>\n\\]<\/p>\n<p>Since<\/p>\n<p>\\[<br \/>\nS_1=\\operatorname{tr}(A),<br \/>\n\\]<\/p>\n<p>we get<\/p>\n<p>\\[<br \/>\n\\sigma_1=\\operatorname{tr}(A).<br \/>\n\\]<\/p>\n<p>From the second formula,<\/p>\n<p>\\[<br \/>\nS_2-\\sigma_1\\cdot S_1+2\\cdot\\sigma_2=0.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n(\\sigma_1\\cdot S_1-S_2).<br \/>\n\\]<\/p>\n<p>From the third formula,<\/p>\n<p>\\[<br \/>\nS_3-\\sigma_1\\cdot S_2+\\sigma_2\\cdot S_1-3\\cdot\\sigma_3=0.<br \/>\n\\]<\/p>\n<p>So,<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(\\sigma_2\\cdot S_1-\\sigma_1\\cdot S_2+S_3).<br \/>\n\\]<\/p>\n<p>From the fourth formula, in the same way, we get<\/p>\n<p>\\[<br \/>\n\\sigma_4=<br \/>\n\\frac{1}{4}\\cdot<br \/>\n(\\sigma_3\\cdot S_1-\\sigma_2\\cdot S_2+\\sigma_1\\cdot S_3-S_4).<br \/>\n\\]<\/p>\n<p>Each next coefficient is calculated through the coefficients already found and the traces of powers of the matrix. That is why the Leverrier method is sequential: first \\( \\sigma_1 \\), then \\( \\sigma_2 \\), then \\( \\sigma_3 \\), and so on up to \\( \\sigma_n \\).<\/p>\n<p>In its general form, the recurrence formula is<\/p>\n<p>\\[<br \/>\n\\sigma_k=<br \/>\n\\frac{1}{k}\\cdot<br \/>\n\\left(<br \/>\n\\sigma_{k-1}\\cdot S_1<br \/>\n-\\sigma_{k-2}\\cdot S_2<br \/>\n+\\sigma_{k-3}\\cdot S_3<br \/>\n-\\dots<br \/>\n+(-1)^{k-1}\\cdot\\sigma_0\\cdot S_k<br \/>\n\\right),<br \/>\n\\]<\/p>\n<p>where<\/p>\n<p>\\[<br \/>\nk=1,2,\\dots,n,<br \/>\n\\qquad<br \/>\n\\sigma_0=1.<br \/>\n\\]<\/p>\n<p>After finding all the coefficients, we construct the characteristic polynomial<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^n<br \/>\n-\\sigma_1\\cdot \\lambda^{n-1}<br \/>\n+\\sigma_2\\cdot \\lambda^{n-2}<br \/>\n-\\dots<br \/>\n+(-1)^n\\cdot\\sigma_n.<br \/>\n\\]<\/p>\n<p>Then the eigenvalues of the matrix are found as the roots of the characteristic equation<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)=0.<br \/>\n\\]<\/p>\n<p>So, the Leverrier method reduces the process of finding eigenvalues to three main actions: calculate the traces of powers of the matrix, use them to find the coefficients of the characteristic polynomial, and solve the characteristic equation.<\/p>\n<h2>Practical Part: How to Find Eigenvalues Using the Leverrier Method<\/h2>\n<p>Now let us see how the Leverrier method is applied in practice. In each example, we will work step by step: first, we will find the traces of powers of the matrix, then calculate the coefficients of the characteristic polynomial, and after that find its roots.<\/p>\n<h3 class=\"example\">Example 1. Find the eigenvalues of a matrix<\/h3>\n<p>\\[<br \/>\nA=<br \/>\n\\begin{pmatrix}<br \/>\n4 &amp; 1\\\\<br \/>\n2 &amp; 3<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>For a \\( 2\\times2 \\) matrix, the characteristic polynomial has the form<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^2-\\sigma_1\\cdot\\lambda+\\sigma_2.<br \/>\n\\]<\/p>\n<p>So, we need to find the coefficients \\( \\sigma_1,\\sigma_2 \\).<\/p>\n<p>First, we calculate the first power sum:<\/p>\n<p>\\[<br \/>\nS_1=\\operatorname{tr}(A)=4+3=7.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\sigma_1=S_1=7.<br \/>\n\\]<\/p>\n<p>Next, we find \\( A^2 \\):<\/p>\n<p>\\[<br \/>\nA^2=<br \/>\n\\begin{pmatrix}<br \/>\n4 &amp; 1\\\\<br \/>\n2 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n4 &amp; 1\\\\<br \/>\n2 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n18 &amp; 7\\\\<br \/>\n14 &amp; 11<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Now we calculate the trace of the matrix \\( A^2 \\):<\/p>\n<p>\\[<br \/>\nS_2=\\operatorname{tr}(A^2)=18+11=29.<br \/>\n\\]<\/p>\n<p>Using the Leverrier formula, we have<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(\\sigma_1\\cdot S_1-S_2).<br \/>\n\\]<\/p>\n<p>Substitute the values we found:<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(7\\cdot7-29)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot(49-29)<br \/>\n=<br \/>\n10.<br \/>\n\\]<\/p>\n<p>So, the characteristic polynomial is<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^2-7\\cdot\\lambda+10.<br \/>\n\\]<\/p>\n<p>Now let us find its roots:<\/p>\n<p>\\[<br \/>\n\\lambda^2-7\\cdot\\lambda+10=0.<br \/>\n\\]<\/p>\n<p>Factor the quadratic polynomial:<\/p>\n<p>\\[<br \/>\n\\lambda^2-7\\cdot\\lambda+10<br \/>\n=<br \/>\n(\\lambda-2)\\cdot(\\lambda-5).<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n(\\lambda-2)\\cdot(\\lambda-5)=0.<br \/>\n\\]<\/p>\n<p>Therefore, we get the eigenvalues:<\/p>\n<p>\\[<br \/>\n\\lambda_1=2,<br \/>\n\\qquad<br \/>\n\\lambda_2=5.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 2. Find the eigenvalues of a matrix<\/h3>\n<p>\\[<br \/>\nA=<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>For a \\( 3\\times3 \\) matrix, we write the characteristic polynomial as<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^3<br \/>\n-\\sigma_1\\cdot\\lambda^2<br \/>\n+\\sigma_2\\cdot\\lambda<br \/>\n-\\sigma_3.<br \/>\n\\]<\/p>\n<p>So, we need to find three coefficients \\( \\sigma_1,\\sigma_2,\\sigma_3 \\).<\/p>\n<p>We start with the trace of the matrix \\( A \\):<\/p>\n<p>\\[<br \/>\nS_1=\\operatorname{tr}(A)=2+2+3=7.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\sigma_1=S_1=7.<br \/>\n\\]<\/p>\n<p>Next, we calculate \\( A^2 \\):<\/p>\n<p>\\[<br \/>\nA^2=<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n5 &amp; 4 &amp; 0\\\\<br \/>\n4 &amp; 5 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 9<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Find the second power sum:<\/p>\n<p>\\[<br \/>\nS_2=\\operatorname{tr}(A^2)=5+5+9=19.<br \/>\n\\]<\/p>\n<p>Now we find the second coefficient:<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(\\sigma_1\\cdot S_1-S_2).<br \/>\n\\]<\/p>\n<p>Substitute the values:<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(7\\cdot7-19)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot(49-19)<br \/>\n=<br \/>\n15.<br \/>\n\\]<\/p>\n<p>Now we move on to the third coefficient. To do this, we need to find \\( A^3 \\). Multiply the matrix \\( A^2 \\) by the matrix \\( A \\):<\/p>\n<p>\\[<br \/>\nA^3=A^2\\cdot A.<br \/>\n\\]<\/p>\n<p>We have<\/p>\n<p>\\[<br \/>\nA^3=<br \/>\n\\begin{pmatrix}<br \/>\n5 &amp; 4 &amp; 0\\\\<br \/>\n4 &amp; 5 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 9<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n14 &amp; 13 &amp; 0\\\\<br \/>\n13 &amp; 14 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 27<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\nS_3=\\operatorname{tr}(A^3)=14+14+27=55.<br \/>\n\\]<\/p>\n<p>Now we use the formula<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(\\sigma_2\\cdot S_1-\\sigma_1\\cdot S_2+S_3).<br \/>\n\\]<\/p>\n<p>Substitute the values we found:<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(15\\cdot7-7\\cdot19+55).<br \/>\n\\]<\/p>\n<p>Calculate:<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(105-133+55)<br \/>\n=<br \/>\n\\frac{27}{3}<br \/>\n=<br \/>\n9.<br \/>\n\\]<\/p>\n<p>So,<\/p>\n<p>\\[<br \/>\n\\sigma_1=7,<br \/>\n\\qquad<br \/>\n\\sigma_2=15,<br \/>\n\\qquad<br \/>\n\\sigma_3=9.<br \/>\n\\]<\/p>\n<p>Therefore, the characteristic polynomial is<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^3-7\\cdot\\lambda^2+15\\cdot\\lambda-9.<br \/>\n\\]<\/p>\n<p>Now let us find the roots of the equation<\/p>\n<p>\\[<br \/>\n\\lambda^3-7\\cdot\\lambda^2+15\\cdot\\lambda-9=0.<br \/>\n\\]<\/p>\n<p>Factor the polynomial:<\/p>\n<p>\\[<br \/>\n\\lambda^3-7\\cdot\\lambda^2+15\\cdot\\lambda-9<br \/>\n=<br \/>\n(\\lambda-1)\\cdot(\\lambda-3)^2.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n(\\lambda-1)\\cdot(\\lambda-3)^2=0.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\lambda_1=1,<br \/>\n\\qquad<br \/>\n\\lambda_2=3,<br \/>\n\\qquad<br \/>\n\\lambda_3=3.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 3. Find the eigenvalues of a matrix<\/h3>\n<p>\\[<br \/>\nA=<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3 &amp; 1\\\\<br \/>\n0 &amp; 0 &amp; 1 &amp; 3<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>For a \\( 4\\times4 \\) matrix, the characteristic polynomial has the form<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^4<br \/>\n-\\sigma_1\\cdot\\lambda^3<br \/>\n+\\sigma_2\\cdot\\lambda^2<br \/>\n-\\sigma_3\\cdot\\lambda<br \/>\n+\\sigma_4.<br \/>\n\\]<\/p>\n<p>So, we need to find the coefficients \\( \\sigma_1,\\sigma_2,\\sigma_3,\\sigma_4 \\).<\/p>\n<p>Because of the zero elements, matrix multiplication here is relatively convenient, but the algorithm remains the same.<\/p>\n<p>We start with the first power sum:<\/p>\n<p>\\[<br \/>\nS_1=\\operatorname{tr}(A)=2+2+3+3=10.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\sigma_1=S_1=10.<br \/>\n\\]<\/p>\n<p>Next, we find \\( A^2 \\):<\/p>\n<p>\\[<br \/>\nA^2=<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3 &amp; 1\\\\<br \/>\n0 &amp; 0 &amp; 1 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3 &amp; 1\\\\<br \/>\n0 &amp; 0 &amp; 1 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n5 &amp; 4 &amp; 0 &amp; 0\\\\<br \/>\n4 &amp; 5 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 10 &amp; 6\\\\<br \/>\n0 &amp; 0 &amp; 6 &amp; 10<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\nS_2=\\operatorname{tr}(A^2)=5+5+10+10=30.<br \/>\n\\]<\/p>\n<p>Find the second coefficient:<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(\\sigma_1\\cdot S_1-S_2).<br \/>\n\\]<\/p>\n<p>Substitute the values we found:<\/p>\n<p>\\[<br \/>\n\\sigma_2=<br \/>\n\\frac{1}{2}\\cdot(10\\cdot10-30)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot70<br \/>\n=<br \/>\n35.<br \/>\n\\]<\/p>\n<p>Now we calculate \\( A^3 \\). To do this, multiply the matrix \\( A^2 \\) by the matrix \\( A \\):<\/p>\n<p>\\[<br \/>\nA^3=A^2\\cdot A.<br \/>\n\\]<\/p>\n<p>We get<\/p>\n<p>\\[<br \/>\nA^3=<br \/>\n\\begin{pmatrix}<br \/>\n5 &amp; 4 &amp; 0 &amp; 0\\\\<br \/>\n4 &amp; 5 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 10 &amp; 6\\\\<br \/>\n0 &amp; 0 &amp; 6 &amp; 10<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3 &amp; 1\\\\<br \/>\n0 &amp; 0 &amp; 1 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n14 &amp; 13 &amp; 0 &amp; 0\\\\<br \/>\n13 &amp; 14 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 36 &amp; 28\\\\<br \/>\n0 &amp; 0 &amp; 28 &amp; 36<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\nS_3=\\operatorname{tr}(A^3)=14+14+36+36=100.<br \/>\n\\]<\/p>\n<p>We find the third coefficient using the formula<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(\\sigma_2\\cdot S_1-\\sigma_1\\cdot S_2+S_3).<br \/>\n\\]<\/p>\n<p>Substitute the values:<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(35\\cdot10-10\\cdot30+100).<br \/>\n\\]<\/p>\n<p>So,<\/p>\n<p>\\[<br \/>\n\\sigma_3=<br \/>\n\\frac{1}{3}\\cdot<br \/>\n(350-300+100)<br \/>\n=<br \/>\n\\frac{150}{3}<br \/>\n=<br \/>\n50.<br \/>\n\\]<\/p>\n<p>It remains to find the fourth coefficient. For this, we calculate \\( A^4 \\). Multiply the matrix \\( A^3 \\) by the matrix \\( A \\):<\/p>\n<p>\\[<br \/>\nA^4=A^3\\cdot A.<br \/>\n\\]<\/p>\n<p>We have<\/p>\n<p>\\[<br \/>\nA^4=<br \/>\n\\begin{pmatrix}<br \/>\n14 &amp; 13 &amp; 0 &amp; 0\\\\<br \/>\n13 &amp; 14 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 36 &amp; 28\\\\<br \/>\n0 &amp; 0 &amp; 28 &amp; 36<br \/>\n\\end{pmatrix}<br \/>\n\\cdot<br \/>\n\\begin{pmatrix}<br \/>\n2 &amp; 1 &amp; 0 &amp; 0\\\\<br \/>\n1 &amp; 2 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 3 &amp; 1\\\\<br \/>\n0 &amp; 0 &amp; 1 &amp; 3<br \/>\n\\end{pmatrix}<br \/>\n=<br \/>\n\\begin{pmatrix}<br \/>\n41 &amp; 40 &amp; 0 &amp; 0\\\\<br \/>\n40 &amp; 41 &amp; 0 &amp; 0\\\\<br \/>\n0 &amp; 0 &amp; 136 &amp; 120\\\\<br \/>\n0 &amp; 0 &amp; 120 &amp; 136<br \/>\n\\end{pmatrix}.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\nS_4=\\operatorname{tr}(A^4)=41+41+136+136=354.<br \/>\n\\]<\/p>\n<p>For the fourth coefficient, we use the formula<\/p>\n<p>\\[<br \/>\n\\sigma_4=<br \/>\n\\frac{1}{4}\\cdot<br \/>\n(\\sigma_3\\cdot S_1-\\sigma_2\\cdot S_2+\\sigma_1\\cdot S_3-S_4).<br \/>\n\\]<\/p>\n<p>Substitute:<\/p>\n<p>\\[<br \/>\n\\sigma_4=<br \/>\n\\frac{1}{4}\\cdot<br \/>\n(50\\cdot10-35\\cdot30+10\\cdot100-354).<br \/>\n\\]<\/p>\n<p>Calculate:<\/p>\n<p>\\[<br \/>\n\\sigma_4=<br \/>\n\\frac{1}{4}\\cdot<br \/>\n(500-1050+1000-354)<br \/>\n=<br \/>\n\\frac{96}{4}<br \/>\n=<br \/>\n24.<br \/>\n\\]<\/p>\n<p>So, we have found the coefficients:<\/p>\n<p>\\[<br \/>\n\\sigma_1=10,<br \/>\n\\qquad<br \/>\n\\sigma_2=35,<br \/>\n\\qquad<br \/>\n\\sigma_3=50,<br \/>\n\\qquad<br \/>\n\\sigma_4=24.<br \/>\n\\]<\/p>\n<p>Therefore, the characteristic polynomial is<\/p>\n<p>\\[<br \/>\n\\chi(\\lambda)<br \/>\n=<br \/>\n\\lambda^4<br \/>\n-10\\cdot\\lambda^3<br \/>\n+35\\cdot\\lambda^2<br \/>\n-50\\cdot\\lambda<br \/>\n+24.<br \/>\n\\]<\/p>\n<p>Now let us find its roots:<\/p>\n<p>\\[<br \/>\n\\lambda^4<br \/>\n-10\\cdot\\lambda^3<br \/>\n+35\\cdot\\lambda^2<br \/>\n-50\\cdot\\lambda<br \/>\n+24<br \/>\n=0.<br \/>\n\\]<\/p>\n<p>Factor the polynomial:<\/p>\n<p>\\[<br \/>\n\\lambda^4<br \/>\n-10\\cdot\\lambda^3<br \/>\n+35\\cdot\\lambda^2<br \/>\n-50\\cdot\\lambda<br \/>\n+24<br \/>\n=<br \/>\n(\\lambda-1)\\cdot(\\lambda-2)\\cdot(\\lambda-3)\\cdot(\\lambda-4).<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n(\\lambda-1)\\cdot(\\lambda-2)\\cdot(\\lambda-3)\\cdot(\\lambda-4)=0.<br \/>\n\\]<\/p>\n<p>Therefore, we get the eigenvalues:<\/p>\n<p>\\[<br \/>\n\\lambda_1=1,<br \/>\n\\qquad<br \/>\n\\lambda_2=2,<br \/>\n\\qquad<br \/>\n\\lambda_3=3,<br \/>\n\\qquad<br \/>\n\\lambda_4=4.<br \/>\n\\]<\/p>\n<h2>What to Explore Next: Methods That Complement This Topic<\/h2>\n<p>After the Leverrier method, it is worth comparing it with other approaches to finding eigenvalues. This makes it easier to see how different algorithms differ from one another and when each of them is convenient to use.<\/p>\n<ol>\n<li><a title=\"Eigenvalues of a matrix Danilevsky method\" href=\"https:\/\/www.mathros.net.ua\/en\/eigenvalues-of-a-matrix-danilevsky-method.html\">Danilevsky Method: Transition to Frobenius Form<\/a> \u2014 This article will discuss how to transform a matrix into Frobenius form and find eigenvalues using its polynomial.<\/li>\n<li><a title=\"Eigenvalues of a matrix Krylov method\" href=\"https:\/\/www.mathros.net.ua\/en\/eigenvalues-of-a-matrix-krylov-method.html\">Krylov Method: Vectors and the Characteristic Polynomial<\/a> \u2014 This article will show how to use a sequence of vectors to build a system for the coefficients of the characteristic polynomial.<\/li>\n<li><a title=\"Eigenvalues of a matrix Faddeev method\" href=\"https:\/\/www.mathros.net.ua\/en\/\">Faddeev Method: Coefficients Through Matrix Calculations<\/a> \u2014 This article will explain an algorithm that finds the coefficients of the polynomial using auxiliary matrices.<\/li>\n<\/ol>\n<h2>Eigenvalues of a Matrix: Turn the Leverrier Method into Code<\/h2>\n<p>If you enjoy programming, the Leverrier method can be viewed not only as theoretical material, but also as a ready-to-implement algorithm. The flowchart below helps you see the full logic of the program: from entering the elements of the matrix to constructing the characteristic polynomial and finding the eigenvalues.<\/p>\n<p>Try to transfer this algorithm into <em>Pascal<\/em>, <a title=\"What is Python\" href=\"https:\/\/www.mathros.net.ua\/en\/what-is-python.html\"><em>Python<\/em><\/a>, <em>C++<\/em>, or another language you feel comfortable working with. This way, the formulas get practical use and turn into a convenient tool for calculations.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-3942 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/06\/eigenvalues-of-a-matrix-leverrier-method1.jpg\" alt=\"Flowchart of the algorithm that shows step by step how to find the eigenvalues of a matrix using the Leverrier method\" width=\"600\" height=\"343\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/06\/eigenvalues-of-a-matrix-leverrier-method1.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/06\/eigenvalues-of-a-matrix-leverrier-method1-300x172.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Leverrier method is a way to find the eigenvalues of a matrix using the characteristic polynomial. Its advantage is<\/p>\n","protected":false},"author":1,"featured_media":3944,"comment_status":"open","ping_status":"closed","sticky":false,"template":"template-centered.php","format":"standard","meta":{"footnotes":""},"categories":[532],"tags":[454,533,550,417,134],"class_list":["post-3924","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eigenvalues-and-eigenvectors-of","tag-characteristic-polynomial","tag-eigenvalues","tag-leverrier-method","tag-linear-algebra","tag-numerical-methods"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/3924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/comments?post=3924"}],"version-history":[{"count":18,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/3924\/revisions"}],"predecessor-version":[{"id":3945,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/3924\/revisions\/3945"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media\/3944"}],"wp:attachment":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media?parent=3924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/categories?post=3924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/tags?post=3924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}