How do we add, scale and multiply matrices, and when is each operation defined?
Perform matrix addition, subtraction, scalar multiplication and matrix multiplication, applying the order and conformability rules correctly.
How to read a matrix order, add and subtract matrices, multiply by a scalar, and multiply two matrices using the row-by-column rule, including when each operation is defined.
✦ Generated by Claude Opus 4.7·6 min answer·
Reviewed by: AI editorial process; not yet individually human-reviewed
You must know the order of a matrix, perform the four operations correctly, and state when an operation is or is not defined.
Order and notation
A matrix is a rectangular array of numbers. Its order is rows × columns. The matrix
A=[20​53​14​]
has order 2×3 (2 rows, 3 columns). The entry aij​ sits in row i, column j, so a23​=4.
Addition, subtraction and scalar multiplication
These three operations act on each element separately. Same-position entries are combined; for scalar multiplication every entry is multiplied by the scalar.
To find the entry in row i, column j of the product AB, multiply the elements of row i of A by the matching elements of column j of B and add the results.
If A is m×n and B is n×p, the product AB has order m×p. The two inner numbers must match; the two outer numbers give the size of the answer.
Why order matters
Because multiplication combines rows of the first matrix with columns of the second, swapping the order changes both whether the product is defined and what it equals. In the costing example, PQ is also defined (2×1 times 1×2) but gives a 2×2 matrix, which means something entirely different.