📚 3 Laws of Matrix Arithmetic | 矩阵运算的三大定律
Matrix arithmetic forms a cornerstone of the AQA A-Level Mathematics syllabus. When you first meet matrices, the operations of addition and multiplication may feel familiar to ordinary numbers — but they are governed by their own set of laws. Understanding the three fundamental laws of matrix arithmetic — the commutative law, the associative law, and the distributive law — is essential not only for exam success but also for progressing to topics like transformations and eigenvectors.
矩阵运算是 AQA A-Level 数学考纲中的核心内容。初次接触矩阵时,加法和乘法运算看似与普通数运算相似,但矩阵运算由一套独立定律支配。掌握矩阵运算的三大基本定律——交换律、结合律和分配律——不仅对考试取得高分至关重要,更是学习变换与特征向量等后续专题的基础。
1. The Commutative Law | 交换律
The commutative law states that the order of an operation does not affect the result. For ordinary numbers, we know that 3 + 5 = 5 + 3 and 3 × 5 = 5 × 3. For matrices, the situation is more subtle.
交换律指出:运算的顺序不影响最终结果。对于普通数字,我们知道 3 + 5 = 5 + 3 且 3 × 5 = 5 × 3。然而对于矩阵,情况要复杂得多。
Matrix addition is commutative. If A and B are two matrices of the same order, then:
A + B = B + A
This holds true because each corresponding entry is simply the sum of two numbers, and addition of scalars is commutative. For example, if A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]], then:
A + B = [[1+5, 2+6], [3+7, 4+8]] = [[6, 8], [10, 12]]
B + A = [[5+1, 6+2], [7+3, 8+4]] = [[6, 8], [10, 12]]
Indeed, A + B = B + A. However, matrix multiplication is NOT commutative:
AB ≠ BA in general
For two square matrices A and B, the product AB is obtained by multiplying rows of A with columns of B, while BA multiplies rows of B with columns of A. Unless the matrices satisfy special conditions, these two results differ.
矩阵加法满足交换律。若 A 和 B 是同阶矩阵,则 A + B = B + A。这是因为矩阵加法中每个对应位置的元素只是两个数的加法,而数的加法满足交换律。然而,矩阵乘法一般不满足交换律:AB 是通过 A 的行与 B 的列相乘得到的,而 BA 则是 B 的行与 A 的列相乘,除非满足特殊条件,两者结果不同。
Numerical demonstration — let us take two 2×2 matrices:
A = [ 1 2 ; 3 4 ] , B = [ 5 6 ; 7 8 ]
AB = [ 1×5+2×7, 1×6+2×8 ; 3×5+4×7, 3×6+4×8 ] = [ 19 22 ; 43 50 ]
BA = [ 5×1+6×3, 5×2+6×4 ; 7×1+8×3, 7×2+8×4 ] = [ 23 34 ; 31 44 ]
Since AB = [19, 22; 43, 50] while BA = [23, 34; 31, 44], we clearly see that AB ≠ BA. This is a critical fact for AQA exams — never assume that the order of matrix multiplication can be swapped.
数值演示:取两个 2×2 矩阵 A 和 B,计算得 AB = [19, 22; 43, 50],而 BA = [23, 34; 31, 44]。显然 AB ≠ BA。这是 AQA 考试中的关键考点——绝不能假设矩阵乘法的顺序可以随意调换。注意,若 AB = BA,则称 A 与 B 可交换;常见特例是 A 为单位矩阵的标量倍数时。
2. The Associative Law | 结合律
The associative law concerns the grouping of three or more matrices in an operation. It states that when multiplying (or adding) three matrices, the way in which they are grouped does not affect the result.
结合律关注的是三个或更多矩阵在运算中的分组方式。它指出:在矩阵乘法(或加法)中,分组方式不影响最终结果。
Matrix addition is associative:
(A + B) + C = A + (B + C)
Matrix multiplication is associative:
(AB)C = A(BC)
This is perhaps the most important practical law because it allows us to compute matrix products in stages without worrying about which product to evaluate first. The associative law for multiplication holds provided that the matrices are conformable — that is, the number of columns of A equals the number of rows of B, and the number of columns of B equals the number of rows of C.
矩阵加法满足结合律:(A + B) + C = A + (B + C);矩阵乘法也满足结合律:(AB)C = A(BC)。这是实际计算中最有用的定律,因为它允许我们分步完成矩阵乘法而不必担心先算哪一步。结合律成立的前提是矩阵满足可乘条件——即 A 的列数等于 B 的行数,B 的列数等于 C 的行数。
Worked verification. Let us extend our earlier matrices with C = [[2, 0], [1, 3]]. First compute (AB)C:
AB = [ 19 22 ; 43 50 ]
(AB)C = [ 19×2+22×1, 19×0+22×3 ; 43×2+50×1, 43×0+50×3 ] = [ 60 66 ; 136 150 ]
Now compute A(BC). First find BC:
BC = [ 5×2+6×1, 5×0+6×3 ; 7×2+8×1, 7×0+8×3 ] = [ 16 18 ; 22 24 ]
A(BC) = [ 1×16+2×22, 1×18+2×24 ; 3×16+4×22, 3×18+4×24 ] = [ 60 66 ; 136 150 ]
Both paths yield the same result, confirming (AB)C = A(BC). In exam questions, you may be asked to compute a triple product; the associative law lets you choose the most convenient pairing.
验证:设 C = [[2, 0], [1, 3]]。先算 (AB)C 得 [60, 66; 136, 150];再算 A(BC),先求出 BC = [16, 18; 22, 24],再得 A(BC) = [60, 66; 136, 150]。两条路径的结果完全一致,从而验证了 (AB)C = A(BC)。在考试中计算三个矩阵的乘积时,结合律允许我们选择最方便的计算顺序。
3. The Distributive Law | 分配律
The distributive law connects matrix multiplication with matrix addition. It states that multiplication distributes over addition, just as it does with ordinary numbers.
分配律将矩阵乘法与矩阵加法联系起来。它指出:矩阵乘法对加法满足分配律,这与普通数字的运算规则一致。
Left distributive law:
A(B + C) = AB + AC
Right distributive law:
(B + C)A = BA + CA
Notice that both forms appear. Because matrix multiplication is not commutative, we must carefully preserve the left-right order in each term — A(B + C) expands to AB + AC, not BA + CA. Both laws hold as long as the relevant products exist.
注意:分配律有左分配律和右分配律两种形式。由于矩阵乘法不满足交换律,我们必须严格保持展开式中各项的左右顺序——A(B + C) 展开为 AB + AC,而不是 BA + CA。只要涉及的乘积有意义,两个分配律均成立。
Numerical verification. Using A = [[1, 2], [3, 4]], B = [[5, 6], [7, 8]] and C = [[2, 0], [1, 3]] from before:
B + C = [ 5+2, 6+0 ; 7+1, 8+3 ] = [ 7 6 ; 8 11 ]
A(B + C) = [ 1×7+2×8, 1×6+2×11 ; 3×7+4×8, 3×6+4×11 ] = [ 23 28 ; 53 62 ]
Now compute AB + AC separately. We already found AB = [19, 22; 43, 50]. Next:
AC = [ 1×2+2×1, 1×0+2×3 ; 3×2+4×1, 3×0+4×3 ] = [ 4 6 ; 10 12 ]
AB + AC = [ 19+4, 22+6 ; 43+10, 50+12 ] = [ 23 28 ; 53 62 ]
The two results match exactly, confirming A(B + C) = AB + AC. This law is especially important when factorising matrix expressions, such as writing AB + AC as A(B + C).
数值验证:先算 B + C = [7, 6; 8, 11],然后计算 A(B + C) = [23, 28; 53, 62]。另一方面,AB = [19, 22; 43, 50],AC = [4, 6; 10, 12],因此 AB + AC = [23, 28; 53, 62]。两结果完全吻合,验证了左分配律。该定律在因式分解矩阵表达式时尤为重要,例如可将 AB + AC 化简为 A(B + C)。
4. Identity and Zero Matrices | 单位矩阵与零矩阵
The three laws above are complemented by two special matrices that behave much like 1 and 0 in ordinary arithmetic.
上述三大定律还需要两个特殊矩阵来完善——它们在运算中扮演的角色类似于普通算术中的 1 和 0。
The identity matrix I (for 2×2 matrices, I₂ = [[1, 0], [0, 1]]) satisfies, for any 2×2 matrix A:
AI = IA = A
The identity matrix is the multiplicative identity — multiplying by it leaves the original matrix unchanged, and importantly, it commutes with every matrix. The zero matrix 0 = [[0, 0], [0, 0]] satisfies:
A + 0 = A , A × 0 = 0 × A = 0
单位矩阵 I₂ = [[1, 0], [0, 1]] 满足:对任意 2×2 矩阵 A,有 AI = IA = A。单位矩阵是乘法单位元——乘以它不改变原矩阵,且它与任何矩阵都可交换。零矩阵 0 = [[0, 0], [0, 0]] 满足:A + 0 = A,且 A × 0 = 0 × A = 0。
In AQA exam questions, you will often be asked to find an unknown matrix by solving a matrix equation such as AX = B. The algebra follows the same pattern as ordinary equations — multiply both sides by A⁻¹ (if it exists) to isolate X. Since A⁻¹A = AA⁻¹ = I, the associative law guarantees that A⁻¹(AX) = (A⁻¹A)X = IX = X. Without the associative law, this step would not be valid.
在 AQA 考试中,你常会遇到求解矩阵方程的问题,如 AX = B。解题步骤与普通代数方程类似——若 A⁻¹ 存在,则在等式两边左乘 A⁻¹ 以隔离 X。由于 A⁻¹A = AA⁻¹ = I,结合律保证了 A⁻¹(AX) = (A⁻¹A)X = IX = X。若没有结合律,这一步操作就是不成立的。注意:在方程 AX = B 中必须左乘 A⁻¹,而不能右乘。
5. Worked Exam-Style Example | 考试典型例题
Let us now combine all three laws in an exam-style problem. Given:
A = [ 2 1 ; 1 3 ] , B = [ 1 -1 ; 2 0 ] , C = [ 0 1 ; 1 1 ]
(a) Compute A(B + C) using the distributive law. (b) Compute (AB)C and A(BC) to verify associativity.
下面通过一道考试风格的例题综合运用三大定律。已知 A = [[2, 1]; [1, 3]],B = [[1, -1]; [2, 0]],C = [[0, 1]; [1, 1]]。(a) 利用分配律求 A(B + C);(b) 分别计算 (AB)C 与 A(BC) 验证结合律。
Part (a): Using the distributive law, A(B + C) = AB + AC. First compute B + C:
B + C = [ 1+0, -1+1 ; 2+1, 0+1 ] = [ 1 0 ; 3 1 ]
A(B + C) = [ 2×1+1×3, 2×0+1×1 ; 1×1+3×3, 1×0+3×1 ] = [ 5 1 ; 10 3 ]
We could also compute AB and AC separately and add — the distributive law guarantees the same answer. For B = [[1, -1], [2, 0]] and C = [[0, 1], [1, 1]], we obtain AB = [[4, -2], [7, -1]] and AC = [[1, 3], [3, 4]]. Then AB + AC = [[5, 1], [10, 3]], matching exactly.
第 (a) 问:利用分配律 A(B + C) = AB + AC。先算 B + C = [[1, 0]; [3, 1]],再算 A(B + C) = [[5, 1]; [10, 3]]。同时,单独计算 AB = [[4, -2]; [7, -1]] 和 AC = [[1, 3]; [3, 4]],两者相加同样得 [[5, 1]; [10, 3]],验证了分配律。
Part (b): For associativity, first compute AB:
AB = [ 2×1+1×2, 2×(-1)+1×0 ; 1×1+3×2, 1×(-1)+3×0 ] = [ 4 -2 ; 7 -1 ]
(AB)C = [ 4×0+(-2)×1, 4×1+(-2)×1 ; 7×0+(-1)×1, 7×1+(-1)×1 ] = [ -2 2 ; -1 6 ]
Next compute BC = [ 1×0+(-1)×1, 1×1+(-1)×1 ; 2×0+0×1, 2×1+0×1 ] = [ -1 0 ; 0 2 ]
A(BC) = [ 2×(-1)+1×0, 2×0+1×2 ; 1×(-1)+3×0, 1×0+3×2 ] = [ -2 2 ; -1 6 ]
Indeed, (AB)C = A(BC) = [[-2, 2], [-1, 6]]. This confirms the associative law with concrete numbers.
第 (b) 问:计算 AB = [[4, -2]; [7, -1]],然后 (AB)C = [[-2, 2]; [-1, 6]]。再计算 BC = [[-1, 0]; [0, 2]],从而 A(BC) = [[-2, 2]; [-1, 6]]。两者完全相等,用具体数值验证了结合律。
6. When Does AB = BA? | 何时 AB = BA?
Since matrix multiplication is not generally commutative, it is worth asking: when does AB = BA actually hold? This is a common exam question testing your understanding of the commutative law’s limits.
由于矩阵乘法一般不满足交换律,一个值得思考的问题是:何时 AB = BA 成立?这是考试中常考的概念题,检验你对交换律适用范围的理解。
- If either matrix is a scalar multiple of the identity matrix. For instance, if B = kI, then AB = A(kI) = kA and BA = (kI)A = kA, so AB = BA.
- If A and B are both diagonal matrices (in the 2×2 case, of the form diag(a, d)), their products are the same diagonal matrix diag(ad, bd).
- For certain special cases. If A = B, clearly AA = AA. More generally, if B = pA + qI (a polynomial in A), then A commutes with B.
- 若其中一个矩阵是单位矩阵的标量倍,即 B = kI,则 AB = A(kI) = kA,而 BA = (kI)A = kA,所以 AB = BA。
- 若 A 和 B 都是对角矩阵,乘积结果都是同一个对角矩阵,故 AB = BA。
- 某些特殊情形:若 A = B,显然 AA = AA;更一般地,若 B 是 A 的多项式 pA + qI,则 A 与 B 可交换。
The zero matrix 0 and the identity matrix I are the two matrices that commute with every matrix. In AQA questions about commutativity, you should test with concrete 2×2 examples — finding a single counterexample is enough to disprove commutativity.
零矩阵和单位矩阵是与所有矩阵都可交换的两个特殊矩阵。在 AQA 考查交换性的题目中,应使用具体的 2×2 矩阵进行检验——只需找到一个反例即可推翻交换性。
7. Common Pitfalls in Exams | 考试常见错误
Students often lose marks on matrix questions due to careless application of these laws. The following mistakes appear repeatedly in AQA examiner reports.
学生在矩阵题目中常因定律使用不当而失分。以下错误在 AQA 考官报告中反复出现。
Pitfall 1: Writing AB = BA. This is the most common error. When expanding expressions like (A + B)², you must write:
(A + B)² = (A + B)(A + B) = A² + AB + BA + B²
Since AB ≠ BA in general, the middle terms cannot be combined into 2AB. Only when A and B commute may you write 2AB.
错误一:直接写 AB = BA。这是最常见的错误。展开 (A + B)² 时,必须写 (A + B)² = A² + AB + BA + B²。由于一般 AB ≠ BA,中间两项不能合并为 2AB。只有当 A 与 B 可交换时,才能写成 A² + 2AB + B²。
Pitfall 2: Wrong order when multiplying both sides of an equation. If AX = B and we multiply by A⁻¹ to isolate X, we must multiply on the left:
A⁻¹(AX) = A⁻¹B ⇒ X = A⁻¹B
Multiplying on the right would give XAA⁻¹ = BA⁻¹, which is not the same.
错误二:方程两边乘法顺序出错。若 AX = B,要在等式两边左乘 A⁻¹ 才能隔离 X:A⁻¹(AX) = A⁻¹B,得 X = A⁻¹B。若在右边乘 A⁻¹,则得到 (AX)A⁻¹ = BA⁻¹,即 X = BA⁻¹,这与正确结果不同。
Pitfall 3: Forgetting conformability conditions. The product AB exists only when the number of columns of A equals the number of rows of B. In particular, A + B requires A and B to be of the same order. Even when AB and BA both exist (both matrices square), their sizes are the same but their entries generally differ.
错误三:忽略可乘性条件。乘积 AB 存在的前提是 A 的列数等于 B 的行数;而 A + B 则要求 A 和 B 同阶。即使 AB 和 BA 都存在(两个矩阵均为方阵),它们的阶数相同,但各位置的元素一般不同。
8. Summary and Key Takeaways | 总结与核心要点
The three laws of matrix arithmetic can be summarised in one compact table:
矩阵运算的三大定律可以用下表简洁归纳:
| Law 定律 | 更多咨询请联系16621398022(同微信)
CommentsMore posts |
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导