A matrix is a rectangular arrangement of numbers, symbols, or expressions, arranged in rows and columns. The numbers are called entries of the matrix. We use capital letters A,B,C,… for matrices and lowercase indexed letters aij for the entry in row i, column j. The matrix A with m rows and n columns has order (or dimension) m×n.
When we say A has order m×n, m comes first. The number of entries is mn. Two matrices are equal if they have the same order and equal entries in every position.
Named special matrices
Name
Definition
Row matrix
1×n (one row)
Column matrix
m×1 (one column)
Square matrix
m=n
Diagonal matrix
Square, aij=0 for i=j
Scalar matrix
Diagonal with equal diagonal entries
Identity matrix In
Scalar matrix with diagonal 1
Zero (null) matrix O
All entries are 0
Upper triangular
aij=0 for i>j
Lower triangular
aij=0 for i<j
Examples
A 2×3 matrix: (142536).
A row matrix of order 1×4: (78910).
A diagonal matrix of order 3×3: 200050007.
The 3×3 identity: I3=100010001.
Constructing matrices from formulas
Often a matrix is defined by giving a formula for aij. For example, A=(aij)2×3 with aij=i+2j gives:
a11=3,a12=5,a13=7,a21=4,a22=6,a23=8.
So A=(345678).
Equality of matrices
Two matrices A=(aij) and B=(bij) are equal, written A=B, if and only if:
They have the same order, and
aij=bij for all i,j.
So (12) and (12) are not equal , different orders.
Counting matrices
The number of distinct m×n matrices with entries from a set S of size k is kmn. For example, 2×2 binary matrices number 24=16.
Worked examples
Example 1. Find the order of A=135246. State the entry a32.
Order 3×2. a32=6.
Example 2. Construct B=(bij)2×2 with bij=(i−j)2.
b11=0,b12=1,b21=1,b22=0. So B=(0110).
Example 3. If A=(2x35) and B=(24y5) are equal, find x and y.
x=4,y=3.
Example 4. Identify the order of the zero matrix needed to add to (1001) such that the result is itself.
The matrix is 2×2, so the zero matrix of order 2×2 adds with it.
Example 5. Find a 3×3 diagonal matrix with diagonal entries 1,2,3. Is it also a scalar matrix?
100020003. Not a scalar matrix (diagonal entries differ).
Example 6. Write down a 3×3 upper triangular matrix all of whose diagonal entries are zero.
000a00bc0 for any a,b,c.
Try it yourself
State the order of (142536).
Construct the 3×3 matrix A=(aij) with aij=i+j.
State the entry a23 of the matrix in the previous question.
If A=(x32y)=(5327), find x,y.
Write the 2×2 identity matrix.
Find the number of 2×2 matrices with entries from {0,1,2}.
Construct a 4×4 scalar matrix with scalar −3.
Is the matrix (1324) upper or lower triangular? Neither?
Construct a 3×3 lower triangular matrix where all diagonal entries are 1.
If a matrix has order 5×7, how many entries does it have?
Write down a 2×2 matrix that is both upper and lower triangular.
State whether (1001) is a scalar matrix. Justify.
Construct a 3×3 matrix A with aij=i⋅j.
List all possible orders for a matrix with exactly 12 entries.
Pitfalls / Tricks
The number of entries is m⋅n, but the order is always written m×n (rows first).
A matrix that is both upper and lower triangular must be diagonal.
The zero matrix and the identity matrix are not the same , be careful in operations.
Each entry aij is identified by row i, column j. Confusing these is a frequent mistake.
A scalar matrix is a special case of a diagonal matrix, but not every diagonal matrix is scalar.
Next we define addition and multiplication on matrices.