Paritian

Mathematics

Matrix Calculator

Add, subtract, multiply, transpose or scale matrices of any size up to twelve by twelve.

Results

The result 19 22 43 50
Size of the result 2 x 2
Determinant 4.00000000
Trace, the diagonal added up 69.00000000
Is it square? Yes
Everything added up 134.00000000
Largest entry 50.00000000
Smallest entry 19.00000000

What this tool does

A matrix is a table of numbers that behaves like a single object: you can add two of them, multiply them together, or turn one on its side. The rules are not the ones you know from ordinary arithmetic — multiplication is a composition of rows against columns, and the order matters. Type your matrices one row per line, pick what to do, and the result comes back with its determinant and trace when it is square, so you can see straight away whether it is invertible.

Formula

(A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ · (A × B)ᵢⱼ = Σₖ theᵢₖ bₖⱼ · (Aᵀ)ᵢⱼ = aⱼᵢ · (cA)ᵢⱼ = c theᵢⱼ

Variables

SymbolMeaningUnit
aFirst matrix, one row per line
modeWhat to do
bSecond matrix, one row per line
scalarThe number to multiply by
RSThe result
SZSize of the result
DTDeterminant
TRTrace, the diagonal added up
SQIs it square?
SMEverything added up
BGLargest entry
SLSmallest entry

Worked example

  • First matrix, one row per line1, 2 3, 4
  • What to domultiply
  • Second matrix, one row per line5, 6 7, 8
  • The number to multiply by2
  • The result19 22 43 50
  • Size of the result2 x 2
  • Determinant4.00000000
  • Trace, the diagonal added up69.00000000
  • Is it square?Yes
  • Everything added up134.00000000
  • Largest entry50.00000000
  • Smallest entry19.00000000

Frequently asked questions

How do I type a matrix?

One row per line, with the numbers separated by commas or spaces. Every row must have the same number of entries. Up to twelve by twelve. For adding and subtracting, both matrices have to be exactly the same shape; for multiplying, the first one's columns must match the second one's rows, and the result has the first one's rows and the second one's columns.

Why is AB not the same as BA?

Because matrix multiplication is a composition of transformations, and doing two things in the other order generally gives a different result — rotate then stretch is not the same as stretch then rotate. With ordinary numbers the order never matters; with matrices it almost always does, and for non-square matrices BA may not even be defined. This is the single most important way matrix algebra differs from the arithmetic you already know.