Button guide
| Button | What it does | Example |
|---|---|---|
| Input | ||
| Rows × Columns | Set the size of A and of B, from 1 to 5 each. | 2 × 3 |
| Scalar k | The number kA and kB multiply by. | |
| Exponent n | The power used by Aⁿ and Bⁿ. Zero and negative whole numbers work too. | n = −1 gives A⁻¹ |
| ⇄ Swap A and B | Exchanges the sizes and entries of A and B. | |
| Use result as A | Copies the result matrix into A so you can keep calculating. | |
| A and B | ||
| A + B | Adds entries in the same position. A and B must be the same size. | [4 7; 2 6] + [1 2; 3 4] = [5 9; 5 10] |
| A − B | Subtracts entries in the same position. A and B must be the same size. | [4 7; 2 6] − [1 2; 3 4] = [3 5; −1 2] |
| A × B | (AB)ᵢⱼ = Σₖ aᵢₖ·bₖⱼ: row i of A times column j of B. An m×n matrix times an n×p matrix gives m×p. | [4 7; 2 6] × [1 2; 3 4] = [25 36; 20 28] |
| One matrix (same buttons for B) | ||
| kA | Multiplies every entry by the scalar k. | k = 2: 2[4 7; 2 6] = [8 14; 4 12] |
| Aᵀ | Swaps rows and columns: (Aᵀ)ᵢⱼ = aⱼᵢ, so m×n becomes n×m. | [1 2 3; 4 5 6]ᵀ = [1 4; 2 5; 3 6] |
| det(A) | Determinant. For 2×2, det [a b; c d] = ad − bc; larger matrices use Gaussian elimination. Square matrices only. | det [4 7; 2 6] = 24 − 14 = 10 |
| A⁻¹ | Inverse, so that A × A⁻¹ = I. For 2×2 it is 1/(ad − bc) × [d −b; −c a]. None exists when det(A) = 0. | [4 7; 2 6]⁻¹ = [0.6 −0.7; −0.2 0.4] |
| rank(A) | Rank: the number of linearly independent rows (pivots left after elimination). | rank [1 2; 2 4] = 1 |
| Aⁿ | A multiplied by itself n times. A⁰ = I and A⁻ⁿ = (A⁻¹)ⁿ. Square matrices only. | [4 7; 2 6]² = [30 70; 20 50] |
Notation and input
- [a b; c d] is the matrix with first row a, b and second row c, d. The examples use A = [4 7; 2 6] and B = [1 2; 3 4], the matrices already filled in when the page opens.
- Empty cells count as 0, so check that no value is missing.
Frequently asked questions
It says the matrix has no inverse.
A matrix whose determinant is 0 (a singular matrix) has no inverse, and Aⁿ with a negative n fails for the same reason. For example, det [1 2; 2 4] = 1 × 4 − 2 × 2 = 0. det, A⁻¹ and Aⁿ also need a square matrix.
Why do I get a size error?
A + B and A − B need A and B to be the same size. A × B needs the number of columns of A to equal the number of rows of B: a 2×3 matrix times a 3×4 matrix gives a 2×4 matrix.
Is A × B the same as B × A?
Usually not. With the matrices above, A × B = [25 36; 20 28] but B × A = [8 19; 20 45]. To get B × A, press ⇄ Swap A and B, then A × B.
Can I enter fractions?
No, each cell takes a single number such as −0.25, so enter 1/2 as 0.5. Entering 1/3 as 0.333333333333 makes the results approximate: 3 × 0.333333333333 shows 0.999999999999, not 1.
How many digits do results show?
Up to 12 significant digits. Tiny rounding leftovers are set to 0, so A × A⁻¹ shows an exact identity matrix.