Matrix Calculator

🌐 English
A (3×3)
Rows: 3
Cols: 3
B (3×3)
Rows: 3
Cols: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.
—

Calculation Results

Matrix Power Calculation

This guide explains matrix powers, gives examples, highlights common mistakes, and provides practice problems with collapsible answers. Designed for use with a Matrix Power Calculator.


Definition of Matrix Power

For a square matrix $A$ and positive integer $n$, the matrix power $A^n$ is defined as the repeated multiplication of $A$ by itself:

$$ A^n = \underbrace{A \cdot A \cdot \ldots \cdot A}_{n \text{ times}}. $$

Additionally:

  • $A^1 = A$
  • $A^0 = I$ (identity matrix of the same size as $A$)
  • $A^2 = A \cdot A$ and $A^3 = A \cdot A \cdot A$, etc.

Useful Properties

  • $A^m \cdot A^n = A^{m+n}$
  • $(A^m)^n = A^{mn}$
  • If $AB = BA$ then $(AB)^n = A^nB^n$ (requires commutativity)
  • Only square matrices have powers (matrix multiplication must be valid)

Example 1 (2×2)

Compute $A^2$ where:

$$ A=\begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix} $$

Solution:

$$ A^2 = A\cdot A= \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 1 & 8 \\ 0 & 9 \end{pmatrix}. $$

Example 2 (includes $A^3$)

Compute $A^3$ for:

$$ A=\begin{pmatrix} 2 & 0 \\ 1 & 2 \end{pmatrix} $$

Step 1: compute $A^2$

$$ A^2 = \begin{pmatrix} 2 & 0 \\ 1 & 2 \end{pmatrix} \begin{pmatrix} 2 & 0 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 4 & 0 \\ 4 & 4 \end{pmatrix}. $$

Step 2: compute $A^3$

$$ A^3 = A \cdot A^2= \begin{pmatrix} 2 & 0 \\ 1 & 2 \end{pmatrix} \begin{pmatrix} 4 & 0 \\ 4 & 4 \end{pmatrix} = \begin{pmatrix} 8 & 0 \\ 12 & 8 \end{pmatrix}. $$

Common Mistakes & Tips

  • Only square matrices have powers — dimension mismatch otherwise.
  • Do not multiply each entry independently — matrix exponentiation is NOT scalar exponentiation.
  • Matrix multiplication is not commutative — $AB \neq BA$, so simple shortcuts often fail.
  • $A^0$ is always the identity matrix for square $A$, not the zero matrix.

Practice Problems (Compute)

Try calculating each matrix power. Click to check your results.

Exercise 1

$$ A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}, \quad \text{compute } A^3. $$
Show Answer
$$ A^3 = \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}. $$

Exercise 2

$$ B = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}, \quad \text{compute } B^4. $$
Show Answer
$$ B^4 = \begin{pmatrix} 16 & 0 \\ 0 & 16 \end{pmatrix}. $$

Exercise 3

$$ C = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}, \quad \text{compute } C^2. $$
Show Answer
$$ C^2 = \begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}. $$

Exercise 4

$$ D = \begin{pmatrix} 3 & 1 \\ 0 & 3 \end{pmatrix}, \quad \text{compute } D^3. $$
Show Answer
$$ D^3 = \begin{pmatrix} 27 & 27 \\ 0 & 27 \end{pmatrix}. $$

Learn matrix multiplication more easily in just 2 minutes with this free game.

Matrix Multiplication Game