Search for a tool
Matrix Power

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

Results

Matrix Power -

Tag(s) : Matrix

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Matrix Power' tool for free! Thank you!

Matrix Power

Matrix Power


Loading...
(if this message do not disappear, try to refresh this page)

Answers to Questions (FAQ)

What is a matrix power? (Definition)

The exponentiation of matrix $ M $ to the power $ n $ ($ n \neq 0 $) is written $ M^n $ and is defined as the multiplication">matrix product (the multiplication) of $ M $ by itself $ n $ times.

$$ M^n = \underbrace{M \cdot M \cdot \ldots \cdot M}_{n} $$

How to calculate the matrix power n?

Taking $ M $ a square matrix of size $ m $ ($ m $ rows and $ m $ columns).

Example: Power of a 2x2 matrix squared (raised to power 2) $$ \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.

Why diagonalizing a matrix before calculating its power?

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

How to compute a negative power of a 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 $$

How to compute a matrix root?

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

How to compute a noninteger power of a matrix?

The exponentiation $ n $ (with $ n $ a nonzero real number) of an invertible square matrix $ M $ can be defined by $ M^n = \exp(n \log{M}) $ and therefore the power of the matrix can be calculated with a decimal number as the exponent. In this case, the logarithm of a matrix is defined with the eigenvectors $ V $ of $ M $ such that $ \log{M} = V . \log{ V^{-1} . A . V } . V^{-1} $ and the exponential of a matrix is can be calculated using an integer series $ e^M = \sum_{k=0}^{\infty} \frac{1}{k!} M^k $.

Source code

dCode retains ownership of the "Matrix Power" source code. Any algorithm for the "Matrix Power" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Matrix Power" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Matrix Power" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Matrix Power" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/matrix-power
In a scientific article or book, the recommended bibliographic citation is: Matrix Power on dCode.fr [online website], retrieved on 2025-04-15, https://www.dcode.fr/matrix-power

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Matrix Power' tool for free! Thank you!


https://www.dcode.fr/matrix-power
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback