Order, dimensions and conformability
Every matrix has an order m×n. The order decides which operations are even allowed.
What a matrix is. A matrix is a rectangular array of numbers (its entries or elements) enclosed in brackets. Its order (or dimensions) is written , where is the number of rows and is the number of columns. Always read rows first, columns second — "" means rows and columns.
For example:
We label the entry in row , column as . So in above, and (row 2, column 3).
Conformability — the single most important idea in this whole subtopic — is the rule that decides whether an operation is defined:
- Addition and subtraction: the two matrices must have the same order (same number of rows AND same number of columns).
- Multiplication : the number of columns of must equal the number of rows of .
If matrices are not conformable for the operation you are attempting, the operation does not exist — you write "not defined", you do not force an answer.
Cambridge tip. Before doing ANY matrix calculation, write the order under each matrix (e.g. ""). It takes two seconds and instantly tells you whether the operation is legal and what shape the answer will be.
- Order is : rows first, columns second.
- Add/subtract needs identical orders; multiply needs columns of first = rows of second.
- If not conformable, the operation is simply 'not defined'.
See the full worked example for matrix addition, subtraction and multiplication →