ZestCalc

Matrix Calculator

Name your matrices, then type the whole expression, such as 2AᵀB⁻¹ + I. Get an exact answer, every operation in order, and the properties of the result.

Matrices

Each tab's name is a variable you can use below. Add up to six, from A to F, each up to 12×12.

Up to 12 rows and 12 columns.

Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.

Expression

Write products by putting names side by side: 2AB. You can use + − * / ^, A^T or A', A^-1, A^3, I, and det, tr, rank, inv, rref, and transpose.

2ATB−1+I2 A^{T} B^{-1} + I

Result

Updates as you type.

1/23
05

Properties of this result

Size
2 × 2
Rank
2
Explain
Trace
112\frac{11}{2}
Explain
Determinant
52\frac{5}{2}
Explain
Invertible
Yes
Explain
Symmetric
No
Explain

Every operation, in order

AT=A^{T} =
13
24

Turn the rows into columns.

Step 0 of 4
See how this works

How to write an expression

Each tab's name is a variable. Put names side by side to multiply, as you would on paper, and let the calculator apply the usual order: powers and transposes first, then products, then sums.

2ATB−1+I2A^{T}B^{-1} + I

Above, type that as 2A^T B^-1 + I. A^T or A' is the transpose, which the Matrix Transpose Calculator covers, and A^-1 is the inverse, which the Matrix Inverse Calculator works out in full. I is the identity, and it takes its size from the matrix beside it. The functions are det, tr, rank, inv, rref, and transpose, so det(A)A^-1 is a valid expression.

Just below the box, the expression is shown as it was read, so you can check that an implied product or a parenthesis did what you meant.

Matrix algebra isn't number algebra

Most of the rules you know carry over, but a few don't, and these are behind most mistakes:

  • Order matters. In general, AB≠BAAB \neq BA, as the example AB−BAAB - BA shows. Only one of them may even be defined. The Matrix Multiplication Calculator shows each product entry by entry.
  • Transposes and inverses reverse a product: (AB)T=BTAT(AB)^{T} = B^{T}A^{T} and (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}.
  • There's no division. Multiply by an inverse instead, on the correct side: AB−1AB^{-1} and B−1AB^{-1}A differ.
  • A number can't be added to a matrix. To add 2 along the diagonal, write A+2IA + 2I.
  • AB=0AB = 0 doesn't mean AA or BB is 0.

What the properties tell you

Below a matrix result are the facts about it that come up most, each with a link to the page that explains it. The determinant is 0 exactly when the matrix has no inverse, and the Determinant Calculator shows why. The rank counts its independent rows, which the Matrix Rank Calculator finds by reducing it. The trace is the sum of its diagonal, and that's also the sum of its eigenvalues, which the Eigenvalue and Eigenvector Calculator finds.