Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Compute Powers of a Matrix

AkA^k means AA multiplied by itself kk times, so only square matrices have powers. Multiply step by step for small kk, square repeatedly for large kk, and look for a pattern before doing any work.

Recognize the task

A square matrix with an exponent: A2A^2, A3A^3, A10A^{10}, AnA^n for every nn, or a recurrence xk+1=Axk\mathbf{x}_{k+1} = A\mathbf{x}_k, whose solution is xk=Akx0\mathbf{x}_k = A^k\mathbf{x}_0. Test: is AA square, and is it diagonal, triangular or a rotation whose powers repeat?
Powers are defined in the matrix powers lesson section; see the matrix power formula.

Ways to do it

Repeated multiplicationsmall k
Ak=AA⋯A⏟k factorsA^k = \underbrace{A A \cdots A}_{k \text{ factors}}
Multiply by AA one step at a time with matrix multiplication.
Repeated squaringlarge k
A8=((A2)2)2A^{8} = \big((A^2)^2\big)^2
Square, then square again: A8A^{8} takes three products instead of seven.
Diagonal or diagonalizedany k
A=PDP−1⇒Ak=PDkP−1A = PDP^{-1} \Rightarrow A^k = PD^kP^{-1}
Raise each diagonal entry to the power; for a non-diagonal matrix, first diagonalize it (diagonalization).

Steps

StepOn A4A^4 for A=(2111)A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}
1Check that A is square. Only an n×nn \times n matrix can be multiplied by itself.2×22 \times 2 ✓
2Look for a shortcut. Diagonal: power each entry (diagonal power). Nilpotent or periodic: the powers vanish or repeat.not diagonal, no visible cycle: multiply
3Compute A squared. Row times column, as for any product.A2=(5332)A^2 = \begin{pmatrix} 5 & 3 \\ 3 & 2 \end{pmatrix}
4Square again, or multiply by A, up to the power you need. A4=A2A2A^4 = A^2 A^2; for A5A^5 multiply once more by AA.A4=(5332)2=(34212113)A^4 = \begin{pmatrix} 5 & 3 \\ 3 & 2 \end{pmatrix}^2 = \begin{pmatrix} 34 & 21 \\ 21 & 13 \end{pmatrix}
5Check with the determinant. The determinant of a power is det⁡(Ak)=det⁡(A)k\det(A^k) = \det(A)^k.det⁡(A)=1\det(A) = 1, and 34⋅13−212=442−441=134 \cdot 13 - 21^2 = 442 - 441 = 1 ✓

Worked examples

Example 1 · find the pattern

every power at once
A=(1101)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}: A2=(1201)A^2 = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}, A3=(1301)A^3 = \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}
the corner grows by 11
An=(1n01)A^n = \begin{pmatrix} 1 & n \\ 0 & 1 \end{pmatrix}
confirm: AnAA^n A has corner n+1n + 1

Example 2 · a diagonal matrix

power each entry
D=(2000−10003)D = \begin{pmatrix} 2 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 3 \end{pmatrix}
D4=(24000(−1)400034)=(16000100081)D^4 = \begin{pmatrix} 2^4 & 0 & 0 \\ 0 & (-1)^4 & 0 \\ 0 & 0 & 3^4 \end{pmatrix} = \begin{pmatrix} 16 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 81 \end{pmatrix}

Example 3 · a repeating cycle

rotation by 90°
R=(0−110)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}: R2=−IR^2 = -I, so R4=IR^4 = I
four quarter turns
R10=R8R2=I⋅R2R^{10} = R^{8} R^{2} = I \cdot R^2
10=8+210 = 8 + 2
R10=−I=(−100−1)R^{10} = -I = \begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}
Step through the products in the matrix power visualizer.

See it happen

A matrix acts on the plane, and AkA^k applies that action kk times. A rotation by 90°90° is back at the start after four turns, so its powers cycle. A shear slides a little further each time, so its corner entry grows by one. A diagonal matrix stretches each axis on its own, so each axis is stretched kk times over.

Common mistakes

Squaring each entry

✗ (2111)2=(4111)\begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}^2 = \begin{pmatrix} 4 & 1 \\ 1 & 1 \end{pmatrix}
✓ A2=AA=(5332)A^2 = AA = \begin{pmatrix} 5 & 3 \\ 3 & 2 \end{pmatrix}
Entrywise powers are correct only for diagonal matrices.

Expanding a square of a sum as for numbers

✗ (A+B)2=A2+2AB+B2(A + B)^2 = A^2 + 2AB + B^2
✓ (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2; the middle terms differ when AB≠BAAB \neq BA

Powers of a non-square matrix

✗ (123456)2\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}^2
✓ undefined: (2×3)(2×3)(2 \times 3)(2 \times 3) does not multiply