Common mistake
You can add a 2×3 matrix to a 3×2 matrix because both have six entries.
Correct understanding
Addition requires the same order, not merely the same number of entries. 2×3 and 3×2 matrices cannot be added.
Maths · Lesson 3.1
Matrix order, entries, equality, and the standard types of matrices.
By the end of this lesson, you should be able to:
A matrix is a rectangular array of numbers. Matrices are used to store data, to represent linear transformations, and to solve systems of equations efficiently. The order of a matrix tells you how many rows and columns it has.
This lesson establishes the vocabulary and the simplest operation, addition. The rules are entry-by-entry, which makes them easy to compute but also easy to misapply if the orders do not match.
A matrix with m rows and n columns has order m × n. The entry in row i and column j is written aij. A matrix with the same number of rows and columns is square. In a square matrix, the diagonal from top-left to bottom-right is the main diagonal.
Important special matrices include the zero matrix (all entries zero), the identity matrix I (ones on the main diagonal and zeros elsewhere), a diagonal matrix (non-zero entries only on the main diagonal), and a row or column matrix. The identity matrix plays the role of 1 in matrix multiplication.
Two matrices are equal exactly when they have the same order and every corresponding entry is equal. This gives a useful way to turn a matrix equation into a system of scalar equations.
Addition and subtraction are defined only for matrices of the same order. The result is obtained by adding or subtracting corresponding entries. Scalar multiplication multiplies every entry by the same number. These operations inherit the usual commutative and associative laws from the real numbers.
A + B = [[2 + 1, -1 + 4], [3 + (-2), 0 + 5]] = [[3, 3], [1, 5]].
2A = [[4, -2], [6, 0]].
2A - B = [[4 - 1, -2 - 4], [6 - (-2), 0 - 5]] = [[3, -6], [8, -5]].
Both results have the same order 2 × 2 as A and B, as required.
Common mistake
You can add a 2×3 matrix to a 3×2 matrix because both have six entries.
Correct understanding
Addition requires the same order, not merely the same number of entries. 2×3 and 3×2 matrices cannot be added.
Yes. A 1 × 1 matrix is just a single number enclosed in brackets.
A matrix with the same number of rows and columns, such as 2 × 2 or 3 × 3.