Report

Help us improve this tool

Matrix Power Calculator

Calculate the power of any square matrix raised to any integer exponent with step-by-step visualization and intermediate matrices.

O M T

Matrix Power Calculator - Calculate An Online

Calculate the power of any square matrix A raised to any integer exponent n with our free online Matrix Power Calculator. Matrix exponentiation is a fundamental operation in linear algebra with applications in Fibonacci sequences, Markov chains, graph theory, and systems of recurrence relations. See each multiplication step with intermediate matrices from A1 through An.

Key Features

  • Square Matrix Support: Compute An for matrices from 1×1 up to 5×5
  • Integer Exponents: Supports positive, zero, and negative powers (from -10 to 20)
  • Interactive Grid Input: Enter matrix values directly in a visual grid
  • Intermediate Steps: View all intermediate matrices A1 through An
  • Matrix Properties: See determinant and trace of the result matrix
  • Quick Examples: Start with Fibonacci matrix, rotation matrix, and other presets
  • Real-time Updates: Results update automatically as you change values
  • Zero Power: A0 = Identity matrix I
  • Negative Power: A-n = (A-1)n for invertible matrices
  • Copy Results: Copy matrix output to clipboard for use elsewhere

How to Use the Matrix Power Calculator

  1. Select Matrix Size: Choose the dimension of your square matrix (1×1 to 5×5)
  2. Enter Matrix Values: Click on grid cells and type numeric values
  3. Set the Power: Enter the integer exponent n (-10 to 20)
  4. View Result: The result matrix An appears instantly with properties
  5. Explore Steps: Expand intermediate matrices to see the progression

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

The matrix must be square (same number of rows and columns) for the power to be defined, since matrix multiplication requires compatible dimensions.

Examples

Fibonacci Matrix (2×2, n=10)

The matrix [[1, 1], [1, 0]] raised to the n-th power produces 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).

Rotation Matrix (2×2, n=4)

The rotation matrix [[0, -1], [1, 0]] raised to the 4th power equals the identity matrix, representing a full 360-degree rotation.

Key Properties of Matrix Powers

Property Formula Condition
Zero powerA0 = IA is square
First powerA1 = AAlways
Product ruleAm x An = Am+nA is square
Power of power(Am)n = AmnA is square
Determinantdet(An) = (det A)nA is square
Inverse powerA-n = (A-1)ndet(A) != 0

Applications of Matrix Powers

Fibonacci Numbers

The Fibonacci sequence can be computed using matrix exponentiation. The matrix [[1, 1], [1, 0]]n gives the (n+1)-th Fibonacci number in the top-left entry. This provides an efficient O(log n) algorithm for computing Fibonacci numbers using fast matrix exponentiation via repeated squaring.

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. This is fundamental in network analysis and path counting.

Frequently Asked Questions

Frequently Asked Questions

What is a matrix power?

A matrix power An means multiplying a square matrix A by itself n times. For example, A3 = A x A x A. The matrix must be square for the power to be defined.

What is A raised to the power 0?

Any square matrix raised to the power 0 equals the identity matrix: A0 = 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 follows from the multiplicative property of determinants: det(AB) = det(A) x det(B).

What is the maximum matrix size supported?

This calculator supports square matrices up to 5x5 with integer powers from -10 to 20. This covers most practical use cases in linear algebra courses, recurrence relations, and applied mathematics.

How is the Fibonacci matrix example useful?

The 2x2 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). This provides an efficient way to compute Fibonacci numbers using matrix exponentiation.

Once you master matrix powers, explore other matrix operations like Matrix Multiplication, Matrix Determinant, and Matrix Inverse Calculator.