Matrices
What this chapter covers
- Represent information from real situations as matrices and state the type of a matrix (2.1.1)
- Determine the order of a matrix and identify elements by row and column (2.1.2)
- Decide whether two matrices are equal and find unknown elements (2.1.3)
- Add and subtract matrices of the same order and multiply a matrix by a scalar (2.2.1, 2.2.2)
- Multiply two matrices, and use the identity matrix (2.2.3, 2.2.4)
- Find the determinant and inverse of a 2 × 2 matrix (2.2.5)
- Solve simultaneous linear equations and problems using the matrix method (2.2.6, 2.2.7)
2.1Matrices
A table of data can be written as a matrix by keeping only the numbers. Kedai Elektrik Sinar Jaya sold 16, 18 and 11 stand, ceiling and wall fans in the shop and 5, 10 and 4 online:
Types of matrix
| Type | Meaning | Example |
|---|---|---|
| Row matrix | only one row (order 1 × n) | 1700210020001800 |
| Column matrix | only one column (order m × 1) | 768272 |
| Square matrix | same number of rows and columns | 13511024889 |
| Rectangular matrix | different number of rows and columns | 768272808870 |
Order and elements
(a) D has 4 rows and 2 columns, so its order is 4 × 2.
(b) d11 = −2 (row 1, column 1), d21 = 3 (row 2, column 1), d32 = 4 (row 3, column 2).
Show answerHide answer
n23 is in row 2, column 3: n23 = 5.
Equal matrices
Match the elements: x = 5; 7 = y + 1, so y = 6; 5 − 3z = 2z, so 5 = 5z and z = 1.
Show answerHide answer
2.2Basic operations on matrices
Adding and subtracting matrices
P + Q = 36332012229 (total sales, March and April)
Q − P = 4−3−2221 (change from March to April)
Show answerHide answer
Difference: −1−8101
Multiplying a matrix by a number
= 4−280 − 39−615 (scalar multiplication first)
= 1−1114−15
Show answerHide answer
Multiplying two matrices
To find an element of AB, multiply the elements of a row of A by the elements of a column of B, then add the products. Row i of A and column j of B give the element in row i, column j of AB.
P is 2 × 3 and K is 3 × 1, so PK can be done and has order 2 × 1.
PK = 16(25) + 18(30) + 11(20)5(25) + 10(30) + 4(20) = 1160505
The shop earned RM1 160 in commission and online RM505.
AB = 1(5) + 4(−1)1(0) + 4(2)2(5) + (−3)(−1)2(0) + (−3)(2) = 1813−6
BA = 5203−10
Show answerHide answer
Reversed: 3 × 1 times 1 × 3 is also possible, but the order is 3 × 3.
Identity matrix
I plays the part of the number 1 in matrix multiplication.
Inverse matrix of a 2 × 2 matrix
For A = abcd, the determinant is |A| = ad − bc. The inverse exists only when ad − bc ≠ 0, and then
A−1 = 1ad − bcd−b−ca
In words: swap the two elements on the main diagonal, change the sign of the other two, and multiply by 1 over the determinant.
(b) 3524: ad − bc = 3(4) − 5(2) = 2, so the inverse is 124−5−23 = 2−52−132.
Show answerHide answer
Inverse = 122−3−24 = 1−32−12
Solving simultaneous linear equations
Write the equations ax + by = p and cx + dy = q as AX = B, that is abcdxy = pq. Multiply both sides on the left by A−1:
| Step | Working |
|---|---|
| 1 | Write in the form AX = B |
| 2 | Find A−1 (check that |A| ≠ 0) |
| 3 | X = A−1B, so multiply A−1 by B |
| 4 | Read off x and y, and check in the original equations |
1−23−4xy = 14
|A| = 1(−4) − (−2)(3) = 2, so xy = 12−42−3114 = 1241 = 212
x = 2 and y = 12. Check: 2 − 2(12) = 1 and 3(2) − 4(12) = 4.
Show answerHide answer
X = -13−1−1−1272 = -13−9−3 = 31.
x = 3, y = 1.
Problem solving
Name the unknowns, form two linear equations, write them as AX = B, then use X = A−1B and state the answer in words.
2x + y = 19, 3x + 2y = 33: 2132xy = 1933
|A| = 2(2) − 1(3) = 1, so X = 2−1−321933 = 59.
A child ticket costs RM5 and an adult ticket RM9.
Show answerHide answer
Notes follow Mathematics Form 5 (KSSM, DLP), Chapter 2, pp. 34-71; examples use new numbers and the figures are redrawn.