# 2.2 Basic Operation on Matrices

SPM Form 5 Mathematics (KSSM) · Chapter 2 Matrices. Interactive version with diagrams: https://spmtuition.com/math/form-5/chapter-2-matrices/2-2-basic-operation-on-matrices/

## Addition and scalar multiplication

![Corresponding entries in two matrices are added.](https://spmtuition.com/diagrams/matrix-addition.svg)

*Add the highlighted entries. Repeat for each position.*

Add or subtract corresponding entries. The matrices must have the same order.

**Worked example:** Find 2[1, −3; 4, 0] + [2, 1; −1, 5].

1. Multiply each entry: [2, −6; 8, 0]
2. Add corresponding entries
3. [2 + 2, −6 + 1; 8 − 1, 0 + 5]

**Answer:** [4, −5; 7, 5]

> **Exam tip:** A scalar multiplies every entry, not only the diagonal.

### Practice questions: Addition and scalar multiplication

1. When can two matrices be added?
   A. When their orders match
   B. Whenever both are square
   C. When row counts alone match
   D. Always
   **Answer:** A. When their orders match. Corresponding entries need matching positions.

## Matrix multiplication

![Row one times column one gives the first entry of the product matrix.](https://spmtuition.com/diagrams/matrix-multiplication.svg)

*Multiply the matching entries. Add the two products.*

AB exists when columns of A equal rows of B. If A is m × n and B is n × p, AB is m × p.

Multiply each row of A by each column of B, then add the products. Usually AB ≠ BA.

**Worked example:** Find [1, 2; 3, 4][2, 0; 1, 5].

1. First row: [1×2 + 2×1, 1×0 + 2×5] = [4,10]
2. Second row: [3×2 + 4×1, 3×0 + 4×5] = [10,20]
3. Combine the two rows

**Answer:** [4, 10; 10, 20]

### Practice questions: Matrix multiplication

1. A is 2 × 3 and B is 3 × 4. What is the order of AB?
   A. 3 × 3
   B. 2 × 4
   C. 4 × 2
   D. 2 × 3
   **Answer:** B. 2 × 4. The inner dimensions match; the outer dimensions give the result.

2. Find [1,2][3;4].
   A. [11]
   B. [3,8]
   C. [7]
   D. [10]
   **Answer:** A. [11]. The row-column product is 1×3 + 2×4 = 11.

## Identity and inverse

The 2 × 2 identity matrix is I = [1,0;0,1]. It satisfies AI = IA = A.

For A = [a,b;c,d], det A = ad − bc. If det A ≠ 0, A⁻¹ = [d,−b;−c,a]/(ad − bc).

**Worked example:** Find the inverse of A = [2,1;1,1].

1. det A = 2×1 − 1×1 = 1
2. Swap diagonal entries and negate the other entries
3. A⁻¹ = [1,−1;−1,2]/1

**Answer:** [1, −1; −1, 2]

> **Exam tip:** A zero determinant means no inverse. Do not divide by zero.

### Practice questions: Identity and inverse

1. Which matrix has no inverse?
   A. [1,0;0,1]
   B. [2,0;0,3]
   C. [1,1;0,1]
   D. [1,2;2,4]
   **Answer:** D. [1,2;2,4]. Its determinant is 4 − 4 = 0.

## Simultaneous equations

**Worked example:** Solve 2x + y = 7 and x + y = 5 using matrices.

1. [2,1;1,1][x;y] = [7;5]
2. [x;y] = [1,−1;−1,2][7;5]
3. x = 7 − 5 = 2; y = −7 + 10 = 3

**Answer:** x = 2, y = 3

Check both original equations. Multiplication order matters when applying an inverse.

### Practice questions: Simultaneous equations

1. Find the determinant of [3,2;1,4].
   A. 14
   B. 11
   C. 10
   D. 5
   **Answer:** C. 10. ad − bc = 12 − 2.

---

Online SPM tuition for Physics, Chemistry, Biology, Mathematics and Additional Mathematics, Form 4–5, in English or BM. Students who want tuition or extra help can request it at https://spmtuition.com/tuition/.
