Matrix Power Calculator
Calculate the power of a square matrix A raised to any integer exponent n. See each multiplication step animated, intermediate matrices A¹ through Aⁿ, determinant and trace properties, with MathJax formulas and interactive visualization.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Matrix Power Calculator
The Matrix Power Calculator computes An for any square matrix A and integer exponent n. Matrix exponentiation is a fundamental operation in linear algebra with applications ranging from solving systems of recurrence relations to analyzing Markov chains and computing graph connectivity. Enter your matrix, choose the power, and get step-by-step results with animated intermediate matrices.
What Is Matrix Exponentiation?
Matrix exponentiation extends the concept of raising a number to a power. For a square matrix A and a positive integer n, An is defined as the product of n copies of A:
$$A^n = \underbrace{A \times A \times \cdots \times A}_{n \text{ times}}$$
Key Properties of Matrix Powers
| Property | Formula | Condition |
|---|---|---|
| Power of zero | A⁰ = I | A is square |
| First power | A¹ = A | Always |
| Product rule | Am × An = Am+n | A is square |
| Power of power | (Am)n = Amn | A is square |
| Determinant | det(An) = (det A)n | A is square |
| Trace | tr(An) = sum of \(\lambda_i^n\) | Eigenvalues \(\lambda_i\) |
| Inverse power | A−n = (A−1)n | det(A) ≠ 0 |
| Diagonalizable | An = PDnP−1 | A = PDP−1 |
Applications of Matrix Powers
Fibonacci numbers: The Fibonacci sequence can be computed using matrix exponentiation. The matrix \(\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n\) gives the (n+1)-th Fibonacci number in the top-left entry. This is how our "Fibonacci n=10" example works — raising the Fibonacci matrix to the 10th power.
Markov chains: In stochastic processes, the n-step transition probability matrix is the n-th power of the one-step transition matrix. This determines the probability of transitioning between states in exactly n steps.
Graph theory: For an adjacency matrix A of a graph, the entry (An)[i][j] counts the number of walks of length n from vertex i to vertex j.
Systems of linear recurrences: Any k-th order linear recurrence relation can be converted to a matrix equation and solved by matrix exponentiation, providing an O(k³ log n) algorithm for computing the n-th term.
How to Use the Matrix Power Calculator
1. Set the matrix size — Choose the dimension of your square matrix (1×1 up to 5×5) from the size dropdown.
2. Enter matrix values — Type numbers into each cell of the matrix grid. Use the quick example buttons to try pre-filled matrices like the Fibonacci matrix or rotation matrix.
3. Set the power — Enter the integer exponent n. Positive integers (1–20), zero, or negative integers (−1 to −10, requires invertible matrix).
4. Click Calculate — Press "Calculate Aⁿ" to compute the result.
5. Explore the results — View the result matrix, use the animated power timeline to see how A evolves through each power, review matrix properties (determinant, trace), and expand the step-by-step computation for full details.
Supported Input Formats
The calculator accepts integers, decimals, and negative numbers. International number formats are supported — both 1,234.56 (US) and 1.234,56 (EU) notations are handled automatically. The power exponent must be an integer between −10 and 20.
Frequently Asked Questions
What is a matrix power?
A matrix power An means multiplying a square matrix A by itself n times. For example, A³ = A × A × A. The matrix must be square (same number of rows and columns) for the power to be defined, since matrix multiplication requires compatible dimensions.
What is A raised to the power 0?
Any square matrix raised to the power 0 equals the identity matrix: A⁰ = I. The identity matrix has 1s on the main diagonal and 0s elsewhere. This is analogous to any nonzero number raised to the power 0 equaling 1.
Can you raise a matrix to a negative power?
Yes, if the matrix is invertible (has a nonzero determinant). A−n = (A−1)n, meaning you first compute the matrix inverse, then raise it to the absolute value of the power. If the matrix is singular (determinant = 0), negative powers are undefined.
What is the determinant of An?
The determinant of An equals the determinant of A raised to the power n: det(An) = (det A)n. This property follows from the multiplicative property of determinants: det(AB) = det(A) × det(B).
What is the maximum matrix size supported?
This calculator supports square matrices up to 5×5 with integer powers from −10 to 20. This covers most practical use cases in linear algebra courses, recurrence relations, and applied mathematics. For larger matrices or higher powers, consider using specialized software like MATLAB or NumPy.
How is the Fibonacci matrix example useful?
The 2×2 matrix [[1,1],[1,0]] raised to the n-th power produces the Fibonacci numbers: the top-left entry of the result is F(n+1), the top-right is F(n), and the bottom-left is F(n). This provides an efficient O(log n) algorithm for computing Fibonacci numbers using fast matrix exponentiation via repeated squaring.
Reference this content, page, or tool as:
"Matrix Power Calculator" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: 2026-04-13
You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.