Tool to diagonalize a matrix. The diagonalization of a matrix consists of writing it in a base where its elements outside the diagonal are null. This transform was used in linear algebra so that it allow performing easier calculations.

Matrix Diagonalization - dCode

Tag(s) : Matrix

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

A suggestion ? a feedback ? a bug ? an idea ? *Write to dCode*!

Tool to diagonalize a matrix. The diagonalization of a matrix consists of writing it in a base where its elements outside the diagonal are null. This transform was used in linear algebra so that it allow performing easier calculations.

A diagonal matrix is a matrix whose elements out of the trace (the main diagonal) are all null (zeros).

__Example:__ $$ \begin{bmatrix} 1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{bmatrix} $$

A matrix is diagonalizable if there exists an invertible matrix $ P $ and a diagonal matrix $ D $ such that $ M = PDP^{-1} $

To diagonalize a matrix, a diagonalisation method consists in calculating its eigenvectors and its eigenvalues.

__Example:__ The matrix $$ M = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix} $$ has for eigenvalues $ 3 $ and $ -1 $ and eigenvectors respectively $ \begin{pmatrix} 1 \\ 1 \end{pmatrix} $ and $ \begin{pmatrix} -1 \\ 1 \end{pmatrix} $

The diagonal matrix $ D $ is composed of eigenvalues.

__Example:__ $$ D = \begin{bmatrix} 3 & 0 \\ 0 & -1 \end{bmatrix} $$

The invertable matrix $ P $ is composed of the eigenvectors respectively in the same order of the columns than its associated eigenvalues.

P must be a normalized matrix.

__Example:__ $$ P = \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix} $$ Normalization of P: $$ P = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix} $$

A matrix is not diagonalizable if it does not have as many dimensions as distinct eigenvectors.

__Example:__ The matrix of dimension 2: $$ M = \begin{bmatrix} 5 & 1 \\ 0 & 5 \end{bmatrix} $$ has a double eigenvalue: $ 5 $ and therefore a single eigenvector $ \begin{pmatrix} 1 \\ 0 \end{pmatrix} $ so it is not diagonalizable.

__Example:__ A 3x3 matrix with a triple eigenvalue therefore a single eigenvector is not diagonalizable.

Calculate the inverse of the matrix $ P $

**Diagonalization** should give $ PDP^{-1} = M $

dCode retains ownership of the online 'Matrix Diagonalization' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Matrix Diagonalization download for offline use on PC, tablet, iPhone or Android !

Please, check our community Discord for help requests!

diagonalization,diagonal,matrix,endomorphism,diagonalized,diagonalizable

Source : https://www.dcode.fr/matrix-diagonalization

© 2021 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback

▲