A matrix is a neat way to arrange numbers in rows and columns. Matrices are used in many areas of mathematics and in real life, such as in solving equations and in computer work. This chapter explains what a matrix is, its types, how to add and multiply matrices, and how to find the determinant of a 2 x 2 matrix.
A matrix is a rectangular arrangement of numbers in rows and columns, written inside square brackets. The numbers in a matrix are called elements. The horizontal lines are called rows and the vertical lines are called columns. For example, [[2, 3], [1, 4]] is a matrix with 2 rows and 2 columns. The order of a matrix is written as the number of rows by the number of columns. So this matrix has order 2 x 2. A matrix with 2 rows and 3 columns has order 2 x 3.
There are many types of matrices. A row matrix has only one row, for example [[2, 5, 7]]. A column matrix has only one column, for example [[3], [4]]. A square matrix has the same number of rows and columns, for example a 2 x 2 or 3 x 3 matrix. A diagonal matrix is a square matrix with all elements equal to zero except the elements on the main diagonal. A scalar matrix is a diagonal matrix in which all the diagonal elements are equal. An identity matrix is a square matrix with 1s on the main diagonal and 0s in all other positions. A zero matrix, also called a null matrix, has every element equal to zero.
Two matrices can be added only if they have the same order. To add them, add the elements in the same positions. Worked example: Let A = [[2, 3], [1, 4]] and B = [[5, 1], [0, 2]]. Then A + B = [[2+5, 3+1], [1+0, 4+2]] = [[7, 4], [1, 6]]. Check each step: 2 + 5 = 7, 3 + 1 = 4, 1 + 0 = 1, and 4 + 2 = 6. Subtraction is done in the same way, by subtracting the elements in the same positions. For example, A - B = [[2-5, 3-1], [1-0, 4-2]] = [[-3, 2], [1, 2]].
Two matrices can be multiplied only if the number of columns of the first matrix is equal to the number of rows of the second matrix. To find an element of the answer, multiply each element of a row of the first matrix by the matching element of a column of the second matrix and add the results. Worked example: Let A = [[2, 1], [3, 4]] and B = [[5, 0], [1, 2]]. Then AB = [[2x5 + 1x1, 2x0 + 1x2], [3x5 + 4x1, 3x0 + 4x2]] = [[10 + 1, 0 + 2], [15 + 4, 0 + 8]] = [[11, 2], [19, 8]]. Check each step: 2x5 + 1x1 = 10 + 1 = 11, 2x0 + 1x2 = 0 + 2 = 2, 3x5 + 4x1 = 15 + 4 = 19, and 3x0 + 4x2 = 0 + 8 = 8. Note that in general AB is not equal to BA.
The determinant is a number found from a square matrix. For a 2 x 2 matrix [[a, b], [c, d]], the determinant is ad - bc. That is, multiply the elements on the main diagonal (a and d) and subtract the product of the other two elements (b and c). Worked example 1: the determinant of [[2, 3], [1, 4]] is 2 x 4 - 3 x 1 = 8 - 3 = 5. Worked example 2: the determinant of [[5, 2], [3, 1]] is 5 x 1 - 2 x 3 = 5 - 6 = -1. A determinant can be positive, negative or zero.
Matrices are used to solve systems of equations, to store data in tables, and in computer graphics and many other fields. The identity matrix works like the number 1 in multiplication: when a matrix is multiplied by the identity matrix of the same order, the matrix does not change. The transpose of a matrix is formed by changing its rows into columns and its columns into rows. For example, the transpose of [[2, 3], [1, 4]] is [[2, 1], [3, 4]]. A symmetric matrix is a square matrix that is equal to its own transpose.
| Term | Definition |
|---|---|
| Matrix | A rectangular arrangement of numbers in rows and columns, written inside square brackets. |
| Row | A horizontal line of numbers in a matrix. |
| Column | A vertical line of numbers in a matrix. |
| Order of a matrix | The size of a matrix, written as the number of rows by the number of columns, for example 2 x 3. |
| Square matrix | A matrix that has the same number of rows and columns, for example a 2 x 2 matrix. |
| Zero matrix | A matrix in which every element is zero. |
| Identity matrix | A square matrix with 1s on the main diagonal and 0s in all other positions; it works like the number 1 in multiplication. |
| Diagonal matrix | A square matrix with all elements equal to zero except the elements on the main diagonal. |
| Determinant | A number found from a square matrix; for a 2 x 2 matrix [[a, b], [c, d]] it is ad - bc. |
1. What is a matrix?
Answer: A — A rectangular arrangement of numbers in rows and columns. A matrix is a rectangular arrangement of numbers in rows and columns inside square brackets.
2. How many rows and columns does a 2 x 3 matrix have?
Answer: C — 2 rows and 3 columns. A 2 x 3 matrix has 2 rows and 3 columns.
3. Which of the following is a square matrix?
Answer: B — 3 x 3. A square matrix has the same number of rows and columns, so 3 x 3 is a square matrix.
4. Which is the 2 x 2 identity matrix?
Answer: D — [[1, 0], [0, 1]]. In an identity matrix the main diagonal has 1s and all other elements are 0, so [[1, 0], [0, 1]] is the 2 x 2 identity matrix.
5. When can two matrices be added?
Answer: A — They have the same order. Matrices can be added only when they have the same order.
6. What is [[1, 2], [3, 4]] + [[5, 1], [0, 2]]?
Answer: B — [[6, 3], [3, 6]]. [[1, 2], [3, 4]] + [[5, 1], [0, 2]] = [[6, 3], [3, 6]] because 1+5=6, 2+1=3, 3+0=3 and 4+2=6.
7. When can two matrices be multiplied?
Answer: C — The number of columns of the first equals the number of rows of the second. For multiplication, the number of columns of the first matrix must equal the number of rows of the second matrix.
8. What is the determinant of [[2, 3], [1, 4]]?
Answer: A — 5. The determinant is ad - bc = 2 x 4 - 3 x 1 = 8 - 3 = 5.
9. What is the determinant of [[5, 2], [3, 1]]?
Answer: D — -1. The determinant is ad - bc = 5 x 1 - 2 x 3 = 5 - 6 = -1.
10. What is a zero matrix?
Answer: C — Every element is 0. In a zero matrix every element is zero.
1. Define a matrix and its order with an example.
A matrix is a rectangular arrangement of numbers in rows and columns inside square brackets. The order of a matrix is the number of rows by the number of columns. For example, a matrix with 2 rows and 3 columns has order 2 x 3.
2. What is a square matrix? What is an identity matrix?
A square matrix has the same number of rows and columns, for example a 2 x 2 matrix. An identity matrix is a square matrix with 1s on the main diagonal and 0s in all other positions, for example [[1, 0], [0, 1]].
3. Add [[2, 3], [1, 4]] and [[5, 1], [0, 2]]. Show the steps.
[[2, 3], [1, 4]] + [[5, 1], [0, 2]] = [[2+5, 3+1], [1+0, 4+2]] = [[7, 4], [1, 6]]. We add the elements in the same positions: 2+5=7, 3+1=4, 1+0=1 and 4+2=6.
4. Multiply [[2, 1], [3, 4]] by [[5, 0], [1, 2]]. Show the steps.
[[2, 1], [3, 4]] x [[5, 0], [1, 2]] = [[2x5+1x1, 2x0+1x2], [3x5+4x1, 3x0+4x2]] = [[11, 2], [19, 8]]. The steps are 10+1=11, 0+2=2, 15+4=19 and 0+8=8.
5. How is the determinant of a 2 x 2 matrix found? Find the determinants of [[2, 3], [1, 4]] and [[5, 2], [3, 1]].
For a 2 x 2 matrix [[a, b], [c, d]], the determinant is ad - bc. For [[2, 3], [1, 4]], it is 2x4 - 3x1 = 8 - 3 = 5. For [[5, 2], [3, 1]], it is 5x1 - 2x3 = 5 - 6 = -1.
A matrix is a rectangular arrangement of numbers in rows and columns, and its order is written as rows by columns. Important types include row, column, square, diagonal, identity and zero matrices. Matrices of the same order are added by adding matching elements, and matrices are multiplied by multiplying rows by columns when the orders allow it. The determinant of a 2 x 2 matrix [[a, b], [c, d]] is ad - bc, for example the determinant of [[2, 3], [1, 4]] is 5.