Search for a tool
Matrix Power

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

Results

Matrix Power -

Tag(s) : Matrix

dCode and you

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!

Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Matrix Power tool. Thank you.

# Matrix Power

## Matrix Power

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

### How to calculate the matrix power n?

Consider $$M$$ 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$$ and consists of multiplying the matrix $$n$$ times by itself.

Example: $$\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 (due to constraints with matrix products).

### 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$$