Introduction to Matrices
Key Terms
- Matrix
- A rectangular array of numbers arranged in rows and columns and enclosed in square brackets.
- Order (size)
- An m × n matrix has m rows and n columns; always state rows × columns.
- Element aij
- The entry in row i, column j of a matrix.
- Square matrix
- A matrix with equal numbers of rows and columns (m = n).
- Identity matrix I
- A square matrix with 1s on the main diagonal and 0s elsewhere; satisfies AI = IA = A.
- Zero matrix O
- A matrix with all entries equal to zero; A + O = A (additive identity).
What is a Matrix?
A matrix is a rectangular array of numbers arranged in rows and columns, enclosed in square brackets.
Always state rows first, columns second.
Element Notation: aij = element in row i, column j
Types of Matrices
| Type | Description | Example | ||||
|---|---|---|---|---|---|---|
| Square matrix | Same number of rows and columns (m = n) |
|
||||
| Row matrix | Single row (1 × n) |
|
||||
| Column matrix | Single column (m × 1) |
|
||||
| Zero matrix | All elements are 0 |
|
||||
| Identity matrix I | Square; 1s on main diagonal, 0s elsewhere |
|
Worked Example 1 — Identifying Elements
For matrix A:
A =
| 5 | −3 | 8 |
| 2 | 0 | −6 |
(a) Order: 2 rows, 3 columns → order is 2 × 3
(b) a12: Row 1, column 2 → a12 = −3
(c) a21: Row 2, column 1 → a21 = 2
(d) a23: Row 2, column 3 → a23 = −6
(e) Number of elements: 2 × 3 = 6 elements
Worked Example 2 — Matrix Equality
Find the values of x and y if the following matrices are equal:
| 3x − 1 | 2y |
| 4 | y + 5 |
| 8 | 6 |
| 4 | 8 |
Both matrices are 2 × 2, so equality is possible. Equate corresponding elements:
Position (1,1): 3x − 1 = 8 → 3x = 9 → x = 3
Position (1,2): 2y = 6 → y = 3
Position (2,2): y + 5 = 8 → y = 3 ✓ (consistent)
Full Lesson: Introduction to Matrices
Why Do We Use Matrices?
Matrices are one of the most powerful tools in modern mathematics. They allow us to organise and process large amounts of data efficiently, solve systems of equations, model real-world networks, and perform computer graphics transformations. Everything from Google’s search algorithms to economics models relies on matrix operations.
Defining a Matrix
A matrix is a rectangular arrangement of numbers (called elements or entries) displayed in rows and columns inside square brackets.
Here is a 3 × 4 matrix (3 rows, 4 columns):
| 1 | −2 | 5 | 0 |
| 3 | 7 | −1 | 4 |
| −6 | 2 | 9 | −3 |
Matrices are usually named with a capital letter (A, B, M, etc.).
Order of a Matrix
The order (or dimensions) of a matrix describes its size: m × n, where:
- m = number of rows (horizontal lines)
- n = number of columns (vertical lines)
The total number of elements = m × n.
Element Notation
The element in row i, column j of matrix A is written aij.
- The first subscript is always the row number
- The second subscript is always the column number
- Example: a23 means row 2, column 3
| 10 | −5 |
| 3 | 7 |
| −1 | 0 |
Order: 3 × 2 | b12 = −5 | b31 = −1 | b22 = 7
Special Matrices in Detail
The Identity Matrix I plays the same role as the number 1 in ordinary arithmetic. For any matrix A of appropriate size: AI = IA = A.
The 3 × 3 identity matrix is:
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 1 |
Matrix Equality
Two matrices are equal when:
- They have exactly the same order
- Every corresponding element is equal (aij = bij for all i and j)
This means a 2×3 matrix can never equal a 3×2 matrix, even if they contain the same numbers.
If
| 2x + 1 | y |
| 7 | −4 |
Mastery Practice
-
Fluency
Consider matrix A =
4 −2 7 1 0 −3 - State the order of matrix A.
- Find the value of a13.
- Find the value of a21.
- How many elements does matrix A contain?
-
Fluency
Write out each of the following matrices:
- The 2 × 2 identity matrix I.
- A 2 × 3 zero matrix.
- A 1 × 4 row matrix with elements 3, −1, 5, 2 (in that order).
-
Fluency
State the order of each of the following matrices:
(a)
(b)9 3 −1 4 7 2
(c)6 −2 5 1
(d)1 0 0 0 1 0 0 0 1 2 −4 1 8 -
Fluency
Determine whether the following matrix equation can be solved. If so, find the values of x and y:
=2x y + 1 6 4 -
Understanding
Solve for all unknowns given the following matrix equations:
=a + 2b 3c
and10 12
=2a b − 1 8 1 Find the values of a, b, and c.
-
Understanding
A stock inventory is represented by matrix S:
S =
120 45 80 30 60 90 Rows represent products A, B, C. Columns represent Warehouse 1 and Warehouse 2.
- State the order of matrix S.
- Write down the value of s32 and interpret its meaning in context.
- Calculate the total stock of Product B across both warehouses.
-
Understanding
Write a 3 × 3 matrix M where each element mij = i + j (where i is the row number and j is the column number). What special property does this matrix have regarding its rows and columns?
-
Understanding
Matrix M has order 4 × 3.
- How many elements does matrix M contain?
- If the product of all elements in row 2 is 0, what does this tell you about the elements in row 2?
- Can M be a square matrix? Explain.
-
Problem Solving
Matrix T represents term test scores (out of 100) for three students across four subjects:
T =
72 85 68 91 90 78 83 75 64 70 88 79 Row i = Student i, Column j = Subject j.
- State the order of T and identify element t23.
- Which student has the highest total score across all four subjects?
- Which subject has the highest class average?
- Which student showed the greatest improvement from Subject 1 to Subject 4?
-
Problem Solving
Two matrices are equal:
=2x + y x − y 7 1 - Set up two equations using matrix equality.
- Solve for x and y using simultaneous equations.
- Verify your solution by substituting back into both equations.