Matrix Power Calculator
Test cases replayed : 6 of 6 match · Methodology · No outside source listed
Enter the four entries of a 2×2 matrix A and a whole-number exponent n to get Aⁿ.
Result
Aⁿ row 1, column 1
Trace of A (a + d)
- Determinant of A (ad − bc)
- Aⁿ row 1, column 2
- Aⁿ row 2, column 1
- Aⁿ row 2, column 2
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Row 1, column 1: enter a number.
- Row 1, column 2: enter a number.
- Row 2, column 1: enter a number.
- Row 2, column 2: enter a number.
- Power n (whole number, 0 or more): enter 0 or more.
- Read the result: Aⁿ row 1, column 1; the panel also shows Trace of A (a + d), Determinant of A (ad − bc), Aⁿ row 1, column 2, Aⁿ row 2, column 1 and Aⁿ row 2, column 2.
How this calculator works
By the Cayley–Hamilton theorem a 2×2 matrix satisfies A² = tA − δI, where t is its trace and δ its determinant. Repeating this gives Aⁿ = sₙ A − δ sₙ₋₁ I, with s₀ = 0, s₁ = 1 and sₙ₊₁ = t sₙ − δ sₙ₋₁.
The sequence has a closed form through the eigenvalues λ₁, λ₂ = (t ± √(t² − 4δ)) ÷ 2: sₙ = (λ₁ⁿ − λ₂ⁿ) ÷ (λ₁ − λ₂), or n (t/2)ⁿ⁻¹ when the eigenvalues are equal, or its trigonometric form when they are complex. A⁰ is the identity matrix. Entries are rounded to 9 decimal places.
Worked example
| Row 1, column 1 | 1 |
|---|---|
| Row 1, column 2 | 1 |
| Row 2, column 1 | 1 |
| Row 2, column 2 | 0 |
| Power n (whole number, 0 or more) | 10 |
| Trace of A (a + d) | 1 |
|---|---|
| Determinant of A (ad − bc) | -1 |
| Aⁿ row 1, column 1 | 89 |
| Aⁿ row 1, column 2 | 55 |
| Aⁿ row 2, column 1 | 55 |
| Aⁿ row 2, column 2 | 34 |
Frequently asked questions
What is [[1, 1], [1, 0]] to the 10th power?
[[89, 55], [55, 34]]: the powers of this matrix contain the Fibonacci numbers.
Can I raise a matrix to a power by raising each entry?
No. Aⁿ is A multiplied by itself n times; [[1, 2], [3, 4]]⁴ is [[199, 290], [435, 634]], not [[1, 16], [81, 256]].