Tool to calculate eigenvectors of a matrix. Eigenvectors of a matrix are vectors whose direction remains unchanged after multiplying by the matrix. They are associated with an eigenvalue.

Eigenvectors of a Matrix - dCode

Tag(s) : Mathematics,Algebra,Symbolic Computation

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!

You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? *Contact-me*!

This page is using the new English version of dCode, *please make comments* !

Sponsored ads

This script has been updated, please report any problems.

Tool to calculate eigenvectors of a matrix. Eigenvectors of a matrix are vectors whose direction remains unchanged after multiplying by the matrix. They are associated with an eigenvalue.

Consider \( M \) a square matrix of size \( n \) and \( \lambda_i \) its eigenvalues. Eigenvectors are the solution of the system \( ( M − \lambda I_n ) \vec{X} = \vec{0} \) with \( I_n \) the identity matrix.

Consider the matrix $$ M=\begin{bmatrix} 1 & 2 \\ 4 & 3 \end{bmatrix} $$

Eigenvalues for the matrix \( M \) are \( \lambda_1 = 5 \) and \( \lambda_2 = -1 \) (see tool for calculating matrices eigenvalues).

For each eigenvalue, you look for the associated eigenvector.

For \( \lambda_1 = 5 \), you can solve \( ( M − 5 I_n ) X = \vec{0} \): $$ \begin{bmatrix} 1-5 & 2 \\ 4 & 3-5 \end{bmatrix} . \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}$$

you'll find as solution $$ \begin{align} -4 x_1 + 2 x_2 &= 0 \\ 4 x_1 - 2 x_2 &= 0 \end{align} \iff \begin{matrix} x_1 = 1 \\ x_2 = 2 \end{matrix} $$

So the eigenvector associated to \( \lambda_1 = 5 \) is \( \begin{pmatrix} 1 \\ 2 \end{pmatrix} \).

For \( \lambda_2 = -1 \), you solve \( ( M + I_n ) X = \vec{0} \) like this: $$ \begin{bmatrix} 1+1 & 2 \\ 4 & 3+1 \end{bmatrix} . \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \\ \begin{align} 2 x_1 + 2 x_2 &= 0 \\ 4 x_1 + 4 x_2 &= 0 \end{align} \iff \begin{matrix} x_1 = -1 \\ x_2 = 1 \end{matrix} $$

So the eigenvector associated to \( \lambda_1 = -1 \) is \( \begin{pmatrix} -1 \\ 1 \end{pmatrix} \).

Normally the definition of the eigenvector exclude the zero vector. However, if there are not as many independent eigenvectors as eigenvalues, dCode will display a null vector.

dCode retains ownership of the source code of the script Eigenvectors of a Matrix. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Eigenvectors of a Matrix script for offline use, for you, your company or association, see you on contact page !

eigenvector,matrix,eigenvalue,space,direction

Source : http://www.dcode.fr/matrix-eigenvectors

© 2017 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode