- Foundation
- About 13 min
- 5 practice questions
What a matrix is: order, elements and types
Read the order of a matrix and name any element by its row and column, build a matrix from a rule, recognise the common types of matrix and use equality of matrices to find unknowns.
If something looks wrong, please tell us.
A matrix is a rectangular arrangement of numbers in rows and columns, written inside square brackets. Matrices are a compact way to store data and, as later lessons show, to solve several equations at once. Before any calculation, you need the vocabulary: the order of a matrix, how its elements are named, and the special kinds of matrix that have their own names.
Rows, columns and order
Rows run across and columns run down. A matrix with m rows and n columns has order m × n, read 'm by n', and has m × n elements. The order always names the rows first. In this lesson a matrix is written row by row, with rows separated by semicolons; so A = [2 −1 5; 0 3 4] has the first row 2, −1, 5 and the second row 0, 3, 4.
This A has 2 rows and 3 columns, so its order is 2 × 3 and it has 6 elements. The element in row i and column j is written a_ij (a with subscripts i and j). Here a₁₂ = −1 (row 1, column 2), a₂₃ = 4 and a₂₁ = 0. A common slip is to read the column first; always count down to the row, then across to the column.
Worked example 1: building a matrix from a rule
Construct the 2 × 2 matrix with a_ij = i + 2j. Work out each element: a₁₁ = 1 + 2 = 3, a₁₂ = 1 + 4 = 5, a₂₁ = 2 + 2 = 4 and a₂₂ = 2 + 4 = 6. So the matrix is [3 5; 4 6]. Notice that a₁₂ and a₂₁ are different, because the rule treats i and j differently.
Worked example 2: how many orders are possible?
A matrix has 12 elements. What orders can it have? The order m × n must satisfy m × n = 12, so list the factor pairs: 1 × 12, 2 × 6, 3 × 4, 4 × 3, 6 × 2 and 12 × 1. There are 6 possible orders. Note that 3 × 4 and 4 × 3 are different orders. A prime number of elements, such as 7, allows only 1 × 7 and 7 × 1.
Types of matrix
| Type | What it means | Example |
|---|---|---|
| Row matrix | Only one row (order 1 × n) | [1 4 −2] |
| Column matrix | Only one column (order m × 1) | [3; 0; 5] |
| Square matrix | Same number of rows and columns | [1 2; 3 4] |
| Diagonal matrix | Square, every element off the main diagonal is 0 | [2 0; 0 −5] |
| Scalar matrix | Diagonal, with all diagonal elements equal | [3 0; 0 3] |
| Identity matrix I | Scalar matrix with 1 on the diagonal | [1 0; 0 1] |
| Zero matrix O | Every element is 0 (any order) | [0 0; 0 0] |
The main diagonal of a square matrix is the line of elements a₁₁, a₂₂, a₃₃ and so on, from top left to bottom right. The types are nested: every identity matrix is a scalar matrix, and every scalar matrix is a diagonal matrix, but not the other way round. [2 0; 0 −5] is diagonal but not scalar, because its diagonal elements differ.
Equality of matrices
Two matrices are equal only when they have the same order and every pair of corresponding elements is equal. This turns one matrix equation into several ordinary equations, one for each position.
Worked example 3: finding unknowns
If [x + y 2; 5 x − y] = [6 2; 5 2], find x and y. Compare position by position: x + y = 6 and x − y = 2. Adding gives 2x = 8, so x = 4, and then y = 2. Check the other positions: both matrices have 2 in position (1, 2) and 5 in position (2, 1), so nothing else is required.
Order = rows × columns. a_ij is in row i, column j. Equal matrices have the same order and equal elements in every position.
Key takeaways
Always state the order as rows by columns. Name an element by counting rows first. Learn the types in the table, remembering that identity is a special scalar matrix and scalar is a special diagonal matrix. When two matrices are equal, write one equation for each position and solve them.
Check your understanding
-
1. A matrix has 3 rows and 4 columns. What is its order?
- 4 × 3
- 7
- 12 × 1
- 3 × 4
Show answer
Answer: D. The order lists rows first, then columns: 3 × 4. It has 12 elements.
-
2. How many different orders can a matrix with 8 elements have?
- 2
- 3
- 4
- 8
Show answer
Answer: C. The factor pairs of 8 are 1 × 8, 2 × 4, 4 × 2 and 8 × 1, so there are 4 orders.
-
3. A 2 × 2 matrix has a_ij = 2i − j. What is a₂₁?
- 3
- 0
- 2
- 1
Show answer
Answer: A. a₂₁ means i = 2, j = 1: 2 × 2 − 1 = 3.
-
4. Which of these is a scalar matrix?
- [4 0; 0 2]
- [4 4; 4 4]
- [4 0; 0 4]
- [0 4; 4 0]
Show answer
Answer: C. A scalar matrix is diagonal (zeros off the diagonal) with equal diagonal elements. Only [4 0; 0 4] qualifies; [4 0; 0 2] is diagonal but not scalar.
-
5. If [2a b; 3 c + 1] = [8 −1; 3 5], what is a + b + c?
- 7
- 8
- 12
- 6
Show answer
Answer: A. 2a = 8 gives a = 4; b = −1; c + 1 = 5 gives c = 4. So a + b + c = 4 − 1 + 4 = 7.
Sign in to keep track of the lessons you finish.