Tool to calculate matrix exponential in algebra. Matrix power consists in exponentiation of the matrix (multiplication by itself).

Matrix Power - 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*!

$ M $ is a square matrix of site $ m $ ($ m $ rows and $ m $ columns). The calculation of the $ n $ th power of the matrix $ M $ is denoted by $ M^n $ ($ M $ power $ n $) and consists of multiplying the matrix $ n $ times by itself.

__Example:__ Power of a 2x2 matrix: (squared) $$ \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} ^2 = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \times \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 7 & 10 \\ 15 & 22 \end{bmatrix} $$

The size of the resulting matrix is identical to the original matrix M; i.e. $ m $ lines and $ m $ columns.

Calculating **matrix power** only works for square matrices (2x2, 3x3, 4x4, 5x5, etc. due to constraints with multiplication">matrix products) and is used for some matrices such as stochastic matrices.

If the matrix is diagonalizable, then its diagonalization greatly simplifies the power calculations because it apply mainly on the diagonal of the matrix.

Calculating $ M^{-n} $ is equivalent to $ M^{-1 \times n} $. Thus, calculate the inverse of the matrix and then perform with it an exponentiation to the power $ n $.

__Example:__ $$ \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} ^{-2} = \left( \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} ^{-1} \right)^2 $$

The calculation of $ M^{1/n} $ is equivalent to the $ n $ -th root.

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

Please, check our dCode Discord community for help requests!

NB: for encrypted messages, test our automatic cipher identifier!

power,exponent,square,matrix

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

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

Feedback

▲
Thanks to your feedback and relevant comments, dCode has developed the best 'Matrix Power' tool, so feel free to write! Thank you!