IB Mathematics: Applications & Interpretation HL · 鼎睿学苑

Unit B5: Matrices and
Markov Chains
单元 B5:矩阵与马尔可夫链

A matrix is a rectangular array of numbers that stores data, solves systems of equations, moves points in the plane and tracks how a population shifts between states. B5 covers the AHL toolkit: matrix algebra, determinants and inverses, solving systems with $A^{-1}$, transformation matrices and the area scale factor, eigenvalues and eigenvectors, diagonalisation $A = PDP^{-1}$ for powers, and Markov chains with transition matrices and steady states. Technology is expected throughout, so every worked example shows the method and what the GDC does.矩阵是由数排成的矩形数组,可用来存储数据、解方程组、在平面上移动点,以及追踪总体在各状态之间的转移。B5 涵盖 AHL 工具集:矩阵运算、行列式与逆矩阵、用 $A^{-1}$ 解方程组、变换矩阵与面积缩放因子、特征值与特征向量、用对角化 $A = PDP^{-1}$ 求矩阵幂,以及带转移矩阵与稳态的马尔可夫链。本单元全程使用技术工具,所以每道例题都同时展示方法与 GDC 的操作。

IB AI HL · AHL 1.14 · 1.15 · 3.9 · 4.19 6 topics · Entire unit6 个主题 · 全单元 HL-only仅 HL
This unit is HL only本单元仅限 HL

This unit is HL only; SL students can skip it. Matrices, eigenvalues, matrix transformations and Markov chains (AHL 1.14, 1.15, 3.9 and 4.19) are additional higher level content in IB Mathematics: Applications and Interpretation, so they are not part of the SL course. Switch the course button at the top of the page to HL to read the full unit.

本单元仅限 HL;SL 学生可以跳过。矩阵、特征值、矩阵变换与马尔可夫链(AHL 1.14、1.15、3.9 与 4.19)属于 IB 数学:应用与解释的高级附加内容(additional higher level),不在 SL 课程中。如需阅读完整单元,请把页面顶部的课程按钮切换到 HL。


Matrix Algebra: Order, Addition, Multiplication, Identity矩阵运算:阶、加法、乘法、单位矩阵 HL AHL 1.14

Learning objectives学习目标
  • State the order of a matrix and identify the element $a_{ij}$ in row $i$, column $j$.
  • Add, subtract and multiply matrices by a scalar, stating when each is defined.
  • Calculate a matrix product by hand for small matrices and with a GDC for larger ones.
  • Explain why $AB$ and $BA$ are usually different, and deduce when a product is not defined.
  • Use the identity matrix $I$ and the zero matrix $O$, and interpret a product of data matrices in context.
  • 写出(state)矩阵的阶,并识别第 $i$ 行第 $j$ 列的元素 $a_{ij}$。
  • 进行矩阵加减与数乘,并说明各运算何时有定义。
  • 小矩阵手算、大矩阵用 GDC 计算(calculate)矩阵乘积。
  • 解释(explain)为何 $AB$ 与 $BA$ 通常不同,并推断(deduce)乘积何时无定义。
  • 使用单位矩阵 $I$ 与零矩阵 $O$,并在情境中解读数据矩阵的乘积。

Order and elements阶与元素

A matrix with $m$ rows and $n$ columns has order $m \times n$ (rows first, always). The order of a matrix decides which operations are allowed, so state it before you calculate. The element in row $i$ and column $j$ is written $a_{ij}$. Two matrices are equal when they have the same order and every pair of corresponding elements is equal, which lets you set up equations element by element. A matrix with one column is a column vector; this guide writes points, state vectors and unknowns as column vectors.

有 $m$ 行 $n$ 列的矩阵,其阶(order)为 $m \times n$(永远先行后列)。矩阵的阶决定哪些运算可以进行,所以计算前先写出阶。第 $i$ 行第 $j$ 列的元素记作 $a_{ij}$。两个矩阵同阶且对应元素逐一相等时,称它们相等,因此可以逐个元素列方程。只有一列的矩阵称为列向量(column vector);本指南中的点、状态向量与未知量都写成列向量。

Addition, scalar multiples and the product of two matrices加法、数乘与两个矩阵的乘积

Addition and subtraction work element by element and need matrices of the same order. A scalar multiple $kA$ multiplies every element by $k$. Matrix multiplication is different: the element in row $i$, column $j$ of $AB$ is row $i$ of $A$ multiplied term by term with column $j$ of $B$, then summed. So the product of two matrices exists only when the number of columns of $A$ equals the number of rows of $B$:

加减法逐个元素进行,要求两矩阵同阶。数乘 $kA$ 把每个元素乘以 $k$。矩阵乘法(matrix multiplication)不同:$AB$ 第 $i$ 行第 $j$ 列的元素,是 $A$ 的第 $i$ 行与 $B$ 的第 $j$ 列对应项相乘后求和。所以只有当 $A$ 的列数等于 $B$ 的行数时,两矩阵的乘积才存在:

$$ (m \times n)\,(n \times p) \;\to\; m \times p, \qquad AB \neq BA \text{ in general}, \qquad AI = IA = A. $$

The identity matrix $I$ is square with 1s on the leading diagonal and 0s elsewhere; it plays the role of the number 1. The zero matrix $O$ has every element 0. Common misconception: because $AB$ and $BA$ are usually different, you cannot "divide" or cancel from either side freely; you must multiply on the same side of both sides of an equation.

单位矩阵(identity matrix)$I$ 为方阵,主对角线上为 1,其余为 0,作用相当于数字 1。零矩阵(zero matrix)$O$ 的所有元素都是 0。常见误解:由于 $AB$ 与 $BA$ 通常不同,不能随意在任一侧"相除"或约去;对等式两边做乘法时必须乘在同一侧。

Worked Example: sums and products of 2 × 2 matrices例题:2 × 2 矩阵的和与积

Let $A = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ -2 & 5 \end{pmatrix}$. Find (a) $2A - B$, (b) $AB$, (c) $BA$, and comment on (b) and (c).设 $A = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix}$,$B = \begin{pmatrix} 1 & 0 \\ -2 & 5 \end{pmatrix}$。求 (a) $2A - B$,(b) $AB$,(c) $BA$,并比较 (b) 与 (c)。

(a) Double every element of $A$, then subtract element by element: $2A - B = \begin{pmatrix} 4 - 1 & -2 - 0 \\ 6 + 2 & 8 - 5 \end{pmatrix} = \begin{pmatrix} 3 & -2 \\ 8 & 3 \end{pmatrix}$.

(a) 先把 $A$ 的每个元素乘以 2,再逐个元素相减:$2A - B = \begin{pmatrix} 4 - 1 & -2 - 0 \\ 6 + 2 & 8 - 5 \end{pmatrix} = \begin{pmatrix} 3 & -2 \\ 8 & 3 \end{pmatrix}$。

(b) Row by column: $AB = \begin{pmatrix} 2(1) + (-1)(-2) & 2(0) + (-1)(5) \\ 3(1) + 4(-2) & 3(0) + 4(5) \end{pmatrix} = \begin{pmatrix} 4 & -5 \\ -5 & 20 \end{pmatrix}$.

(b) 行乘列:$AB = \begin{pmatrix} 2(1) + (-1)(-2) & 2(0) + (-1)(5) \\ 3(1) + 4(-2) & 3(0) + 4(5) \end{pmatrix} = \begin{pmatrix} 4 & -5 \\ -5 & 20 \end{pmatrix}$。

(c) $BA = \begin{pmatrix} 1(2) + 0(3) & 1(-1) + 0(4) \\ -2(2) + 5(3) & -2(-1) + 5(4) \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 11 & 22 \end{pmatrix}$.

(c) $BA = \begin{pmatrix} 1(2) + 0(3) & 1(-1) + 0(4) \\ -2(2) + 5(3) & -2(-1) + 5(4) \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 11 & 22 \end{pmatrix}$。

Comment. $AB \neq BA$: the order of the factors matters. On a GDC, enter $A$ and $B$ in the matrix editor and evaluate $A \times B$ and $B \times A$ to confirm.

说明。$AB \neq BA$:因子的先后顺序很重要。在 GDC 的矩阵编辑器中输入 $A$ 与 $B$,分别计算 $A \times B$ 与 $B \times A$ 加以确认。

Why this works. Each element of a product combines a whole row with a whole column, so swapping the factors pairs different rows with different columns.

为什么可行。乘积的每个元素都由一整行与一整列组合而成,交换因子后,配对的行与列就不同了。

Worked Example: a product of data matrices in context例题:情境中的数据矩阵乘积

A café records drinks sold on Saturday and Sunday in $Q = \begin{pmatrix} 40 & 25 & 15 \\ 35 & 30 & 20 \end{pmatrix}$ (rows: days; columns: coffee, tea, juice). The prices, in dollars, are $\mathbf{p} = \begin{pmatrix} 3.5 \\ 2.5 \\ 4 \end{pmatrix}$. (a) State the order of $Q$ and of $Q\mathbf{p}$. (b) Find $Q\mathbf{p}$ and interpret it. (c) Explain why $\mathbf{p}Q$ is not defined.某咖啡馆把周六、周日售出的饮品记为 $Q = \begin{pmatrix} 40 & 25 & 15 \\ 35 & 30 & 20 \end{pmatrix}$(行:日期;列:咖啡、茶、果汁)。价格(单位:美元)为 $\mathbf{p} = \begin{pmatrix} 3.5 \\ 2.5 \\ 4 \end{pmatrix}$。(a) 写出 $Q$ 与 $Q\mathbf{p}$ 的阶。(b) 求 $Q\mathbf{p}$ 并解读。(c) 解释为何 $\mathbf{p}Q$ 无定义。

(a) $Q$ is $2 \times 3$ and $\mathbf{p}$ is $3 \times 1$. The inner numbers match (3 and 3), so $Q\mathbf{p}$ exists with order $2 \times 1$.

(a) $Q$ 为 $2 \times 3$,$\mathbf{p}$ 为 $3 \times 1$。内侧数字相同(3 与 3),所以 $Q\mathbf{p}$ 存在,阶为 $2 \times 1$。

(b) $Q\mathbf{p} = \begin{pmatrix} 40(3.5) + 25(2.5) + 15(4) \\ 35(3.5) + 30(2.5) + 20(4) \end{pmatrix} = \begin{pmatrix} 140 + 62.5 + 60 \\ 122.5 + 75 + 80 \end{pmatrix} = \begin{pmatrix} 262.5 \\ 277.5 \end{pmatrix}$. The café took 262.50 dollars on Saturday and 277.50 dollars on Sunday.

(b) $Q\mathbf{p} = \begin{pmatrix} 40(3.5) + 25(2.5) + 15(4) \\ 35(3.5) + 30(2.5) + 20(4) \end{pmatrix} = \begin{pmatrix} 140 + 62.5 + 60 \\ 122.5 + 75 + 80 \end{pmatrix} = \begin{pmatrix} 262.5 \\ 277.5 \end{pmatrix}$。即周六收入 262.50 美元,周日收入 277.50 美元。

(c) $\mathbf{p}Q$ would be $(3 \times 1)(2 \times 3)$: the inner numbers 1 and 2 differ, so the product is not defined.

(c) $\mathbf{p}Q$ 为 $(3 \times 1)(2 \times 3)$:内侧数字 1 与 2 不同,所以乘积无定义。

Why this works. Each row of $Q$ meets the price column, so each entry is "quantity times price, summed over drinks": the total revenue for one day.

为什么可行。$Q$ 的每一行与价格列相乘,所以每个元素都是"数量乘价格,对各饮品求和",即某一天的总收入。

Exam tip考试提示

Before multiplying, write the two orders side by side, for example $(2 \times 3)(3 \times 1)$: if the inner numbers differ, the answer to "find $BA$" is "not defined", with that reason. In a context question, label what the rows and columns of your product mean and give money to the nearest cent; a bare matrix is an incomplete interpretation.

做乘法前,把两个阶并排写出,例如 $(2 \times 3)(3 \times 1)$:若内侧数字不同,"求 $BA$"的答案就是"无定义",并写出这个理由。情境题中,要说明乘积的行与列分别代表什么,金额保留到分;只给出一个矩阵是不完整的解读。

Check your understanding自我检测
$A$ has order $3 \times 2$ and $B$ has order $2 \times 4$. State the order of $AB$ and decide whether $BA$ exists.$A$ 的阶为 $3 \times 2$,$B$ 的阶为 $2 \times 4$。写出 $AB$ 的阶,并判断 $BA$ 是否存在。

$(3 \times 2)(2 \times 4)$ gives $AB$ of order $3 \times 4$. $BA$ is $(2 \times 4)(3 \times 2)$: the inner numbers 4 and 3 differ, so $BA$ is not defined.

$(3 \times 2)(2 \times 4)$ 得 $AB$ 的阶为 $3 \times 4$。$BA$ 为 $(2 \times 4)(3 \times 2)$:内侧数字 4 与 3 不同,所以 $BA$ 无定义。

Find $x$ and $y$ if $\begin{pmatrix} x & 3 \\ 2 & y \end{pmatrix} + \begin{pmatrix} 1 & -1 \\ 4 & 2x \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 6 & 9 \end{pmatrix}$.若 $\begin{pmatrix} x & 3 \\ 2 & y \end{pmatrix} + \begin{pmatrix} 1 & -1 \\ 4 & 2x \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 6 & 9 \end{pmatrix}$,求 $x$ 与 $y$。

Top-left: $x + 1 = 5$, so $x = 4$. Bottom-right: $y + 2x = 9$, so $y = 9 - 8 = 1$. The other two elements check: $3 - 1 = 2$ and $2 + 4 = 6$.

左上:$x + 1 = 5$,故 $x = 4$。右下:$y + 2x = 9$,故 $y = 9 - 8 = 1$。另两个元素验证:$3 - 1 = 2$,$2 + 4 = 6$。

For $A = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix}$, show that $AI = A$ and find $A^{2}$.对 $A = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix}$,证明 $AI = A$,并求 $A^{2}$。

$AI = \begin{pmatrix} 2(1) + (-1)(0) & 2(0) + (-1)(1) \\ 3(1) + 4(0) & 3(0) + 4(1) \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix} = A$. $A^{2} = AA = \begin{pmatrix} 4 - 3 & -2 - 4 \\ 6 + 12 & -3 + 16 \end{pmatrix} = \begin{pmatrix} 1 & -6 \\ 18 & 13 \end{pmatrix}$, which is not the matrix of squared elements.

$AI = \begin{pmatrix} 2(1) + (-1)(0) & 2(0) + (-1)(1) \\ 3(1) + 4(0) & 3(0) + 4(1) \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix} = A$。$A^{2} = AA = \begin{pmatrix} 4 - 3 & -2 - 4 \\ 6 + 12 & -3 + 16 \end{pmatrix} = \begin{pmatrix} 1 & -6 \\ 18 & 13 \end{pmatrix}$,它并不是把每个元素平方后得到的矩阵。


Determinants, Inverses and Solving Systems行列式、逆矩阵与解方程组 HL AHL 1.14

Learning objectives学习目标
  • Calculate the determinant of a $2 \times 2$ matrix by hand and of a larger square matrix with a GDC.
  • Find the inverse of a $2 \times 2$ matrix by hand, and of a $3 \times 3$ matrix with a GDC.
  • Determine whether a matrix is singular, and find parameter values that make it singular.
  • Write a system of linear equations as $A\mathbf{x} = \mathbf{b}$ and solve it as $\mathbf{x} = A^{-1}\mathbf{b}$.
  • Solve matrix equations such as $XA = B$, multiplying by the inverse on the correct side.
  • 手算 $2 \times 2$ 矩阵的行列式,并用 GDC 计算(calculate)更大方阵的行列式。
  • 手算 $2 \times 2$ 矩阵的逆矩阵,用 GDC 求 $3 \times 3$ 矩阵的逆矩阵。
  • 判断(determine)矩阵是否奇异,并求使其奇异的参数值。
  • 把线性方程组写成 $A\mathbf{x} = \mathbf{b}$,并解为 $\mathbf{x} = A^{-1}\mathbf{b}$。
  • 解 $XA = B$ 一类的矩阵方程,在正确的一侧乘以逆矩阵。

The determinant and the inverse matrix行列式与逆矩阵

For a square matrix $A$, the inverse matrix $A^{-1}$ is the matrix with $AA^{-1} = A^{-1}A = I$. For a $2 \times 2$ matrix the determinant and the inverse are

对方阵 $A$,逆矩阵(inverse matrix)$A^{-1}$ 满足 $AA^{-1} = A^{-1}A = I$。对 $2 \times 2$ 矩阵,行列式(determinant)与逆矩阵为

$$ A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, \qquad \det A = ad - bc, \qquad A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}. $$

Swap the leading-diagonal elements, change the signs of the other two, and divide by the determinant. If $\det A \neq 0$, the matrix has an inverse. If $\det A = 0$, there is nothing to divide by and the matrix has no inverse: it is singular. For a $3 \times 3$ matrix, find $\det A$ and $A^{-1}$ with the GDC matrix menu; the same rule applies, so check the determinant is non-zero before relying on the inverse.

交换主对角线元素,另两个元素变号,再除以行列式。若 $\det A \neq 0$,矩阵有逆矩阵。若 $\det A = 0$,无法相除,矩阵没有逆矩阵,称为奇异矩阵(singular)。对 $3 \times 3$ 矩阵,用 GDC 的矩阵菜单求 $\det A$ 与 $A^{-1}$;规则相同,所以使用逆矩阵前先确认行列式不为零。

Solving a system of linear equations解线性方程组

A system of linear equations with as many equations as unknowns can be written $A\mathbf{x} = \mathbf{b}$, where $A$ is the coefficient matrix, $\mathbf{x}$ the column of unknowns and $\mathbf{b}$ the column of constants. Multiplying both sides on the left by $A^{-1}$ gives $A^{-1}A\mathbf{x} = A^{-1}\mathbf{b}$, so $\mathbf{x} = A^{-1}\mathbf{b}$. For $XA = B$, multiply on the right instead: $X = BA^{-1}$. Common misconception: $\mathbf{b}A^{-1}$ is not the same as $A^{-1}\mathbf{b}$ (for a column $\mathbf{b}$ it is not even defined). If $\det A = 0$, this method fails; the system then has either no solution or infinitely many, and you must say which by examining the equations.

方程个数与未知数个数相同的线性方程组(system of linear equations)可写成 $A\mathbf{x} = \mathbf{b}$,其中 $A$ 为系数矩阵,$\mathbf{x}$ 为未知数列向量,$\mathbf{b}$ 为常数列向量。两边左乘 $A^{-1}$ 得 $A^{-1}A\mathbf{x} = A^{-1}\mathbf{b}$,所以 $\mathbf{x} = A^{-1}\mathbf{b}$。对 $XA = B$,则要右乘:$X = BA^{-1}$。常见误解:$\mathbf{b}A^{-1}$ 与 $A^{-1}\mathbf{b}$ 不同(当 $\mathbf{b}$ 是列向量时前者甚至无定义)。若 $\det A = 0$,此方法失效;方程组要么无解,要么有无穷多解,需要检查方程才能判断是哪一种。

Worked Example: a 2 × 2 inverse by hand and a system例题:手算 2 × 2 逆矩阵并解方程组

Solve $3x + 2y = 7$ and $5x + 4y = 11$ using an inverse matrix.用逆矩阵解方程组 $3x + 2y = 7$,$5x + 4y = 11$。

Matrix form. $\begin{pmatrix} 3 & 2 \\ 5 & 4 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 7 \\ 11 \end{pmatrix}$.

矩阵形式。$\begin{pmatrix} 3 & 2 \\ 5 & 4 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 7 \\ 11 \end{pmatrix}$。

Determinant. $\det A = 3(4) - 2(5) = 12 - 10 = 2 \neq 0$, so $A^{-1}$ exists.

行列式。$\det A = 3(4) - 2(5) = 12 - 10 = 2 \neq 0$,所以 $A^{-1}$ 存在。

Inverse. $A^{-1} = \frac{1}{2}\begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix}$.

逆矩阵。$A^{-1} = \frac{1}{2}\begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix}$。

Solve. $\begin{pmatrix} x \\ y \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 4(7) - 2(11) \\ -5(7) + 3(11) \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 6 \\ -2 \end{pmatrix} = \begin{pmatrix} 3 \\ -1 \end{pmatrix}$.

求解。$\begin{pmatrix} x \\ y \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 4(7) - 2(11) \\ -5(7) + 3(11) \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 6 \\ -2 \end{pmatrix} = \begin{pmatrix} 3 \\ -1 \end{pmatrix}$。

Check. $3(3) + 2(-1) = 7$ and $5(3) + 4(-1) = 11$. So $x = 3$, $y = -1$.

检验。$3(3) + 2(-1) = 7$,$5(3) + 4(-1) = 11$。所以 $x = 3$,$y = -1$。

Why this works. $A^{-1}$ undoes $A$, just as dividing undoes multiplying, so applying it to both sides isolates the unknowns.

为什么可行。$A^{-1}$ 抵消 $A$ 的作用,就像除法抵消乘法,所以两边同乘它就能分离出未知数。

Worked Example: three unknowns with a GDC例题:用 GDC 解三元方程组

At a market, Ana pays 17 dollars for 2 kg of apples, 1 kg of pears and 3 kg of plums; Ben pays 27 dollars for 1 kg, 4 kg and 2 kg; Chen pays 21 dollars for 3 kg, 2 kg and 1 kg. Let the prices per kg be $x$, $y$ and $z$ dollars. Write the system as a matrix equation and solve it.在市场上,Ana 买 2 千克苹果、1 千克梨、3 千克李子共付 17 美元;Ben 买 1、4、2 千克共付 27 美元;Chen 买 3、2、1 千克共付 21 美元。设每千克价格分别为 $x$、$y$、$z$ 美元。把方程组写成矩阵方程并求解。

Matrix equation. $\begin{pmatrix} 2 & 1 & 3 \\ 1 & 4 & 2 \\ 3 & 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 17 \\ 27 \\ 21 \end{pmatrix}$.

矩阵方程。$\begin{pmatrix} 2 & 1 & 3 \\ 1 & 4 & 2 \\ 3 & 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 17 \\ 27 \\ 21 \end{pmatrix}$。

GDC: determinant. Enter $A$ in the matrix editor; $\det A = -25 \neq 0$, so the system has exactly one solution. (By hand: $2(4 - 4) - 1(1 - 6) + 3(2 - 12) = 0 + 5 - 30 = -25$.)

GDC:行列式。在矩阵编辑器中输入 $A$;$\det A = -25 \neq 0$,所以方程组恰有一个解。(手算:$2(4 - 4) - 1(1 - 6) + 3(2 - 12) = 0 + 5 - 30 = -25$。)

GDC: inverse and product. $A^{-1} = \frac{1}{25}\begin{pmatrix} 0 & -5 & 10 \\ -5 & 7 & 1 \\ 10 & 1 & -7 \end{pmatrix}$ and $A^{-1}\mathbf{b} = \begin{pmatrix} 3 \\ 5 \\ 2 \end{pmatrix}$. For example, the first entry is $\frac{1}{25}(0 - 135 + 210) = 3$.

GDC:逆矩阵与乘积。$A^{-1} = \frac{1}{25}\begin{pmatrix} 0 & -5 & 10 \\ -5 & 7 & 1 \\ 10 & 1 & -7 \end{pmatrix}$,$A^{-1}\mathbf{b} = \begin{pmatrix} 3 \\ 5 \\ 2 \end{pmatrix}$。例如第一个元素为 $\frac{1}{25}(0 - 135 + 210) = 3$。

Answer in context. Apples cost 3 dollars per kg, pears 5 dollars per kg and plums 2 dollars per kg. Check Ana: $2(3) + 5 + 3(2) = 17$.

结合情境作答。苹果每千克 3 美元,梨每千克 5 美元,李子每千克 2 美元。验证 Ana:$2(3) + 5 + 3(2) = 17$。

Why this works. The non-zero determinant guarantees the inverse exists, and the GDC does the arithmetic that would be slow by hand; your written work is the matrix equation, the determinant check and the answer in context.

为什么可行。行列式不为零保证逆矩阵存在,GDC 完成手算会很慢的运算;书面过程应包括矩阵方程、行列式检验与结合情境的答案。

Exam tip考试提示

When a question says "use a matrix method", write the matrix equation $A\mathbf{x} = \mathbf{b}$ in full, then $\mathbf{x} = A^{-1}\mathbf{b}$, then the GDC result; a list of values with no matrix equation does not show the method asked for. For "find the values of $k$ for which $A$ has no inverse", set $\det A = 0$ and solve; give every root.

题目要求"用矩阵方法"时,完整写出矩阵方程 $A\mathbf{x} = \mathbf{b}$,再写 $\mathbf{x} = A^{-1}\mathbf{b}$,最后写 GDC 结果;只列出数值而没有矩阵方程,就没有展示题目要求的方法。对"求使 $A$ 没有逆矩阵的 $k$ 值",令 $\det A = 0$ 并求解,写出所有根。

Check your understanding自我检测
Find the values of $k$ for which $\begin{pmatrix} k & 4 \\ 3 & k + 1 \end{pmatrix}$ is singular.求使 $\begin{pmatrix} k & 4 \\ 3 & k + 1 \end{pmatrix}$ 为奇异矩阵的 $k$ 值。

$\det = k(k + 1) - 12 = k^{2} + k - 12 = (k + 4)(k - 3)$. It is zero when $k = -4$ or $k = 3$.

$\det = k(k + 1) - 12 = k^{2} + k - 12 = (k + 4)(k - 3)$。当 $k = -4$ 或 $k = 3$ 时为零。

Find the inverse of $A = \begin{pmatrix} 2 & 5 \\ 1 & 3 \end{pmatrix}$ and verify that $AA^{-1} = I$.求 $A = \begin{pmatrix} 2 & 5 \\ 1 & 3 \end{pmatrix}$ 的逆矩阵,并验证 $AA^{-1} = I$。

$\det A = 6 - 5 = 1$, so $A^{-1} = \begin{pmatrix} 3 & -5 \\ -1 & 2 \end{pmatrix}$. Then $AA^{-1} = \begin{pmatrix} 6 - 5 & -10 + 10 \\ 3 - 3 & -5 + 6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$.

$\det A = 6 - 5 = 1$,所以 $A^{-1} = \begin{pmatrix} 3 & -5 \\ -1 & 2 \end{pmatrix}$。于是 $AA^{-1} = \begin{pmatrix} 6 - 5 & -10 + 10 \\ 3 - 3 & -5 + 6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$。

With $A$ from question 2, solve $XA = \begin{pmatrix} 1 & 2 \end{pmatrix}$ for the $1 \times 2$ matrix $X$.用第 2 题的 $A$,解 $XA = \begin{pmatrix} 1 & 2 \end{pmatrix}$,求 $1 \times 2$ 矩阵 $X$。

Multiply on the right by $A^{-1}$: $X = \begin{pmatrix} 1 & 2 \end{pmatrix}\begin{pmatrix} 3 & -5 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 3 - 2 & -5 + 4 \end{pmatrix} = \begin{pmatrix} 1 & -1 \end{pmatrix}$. Check: $\begin{pmatrix} 1 & -1 \end{pmatrix}A = \begin{pmatrix} 2 - 1 & 5 - 3 \end{pmatrix} = \begin{pmatrix} 1 & 2 \end{pmatrix}$.

两边右乘 $A^{-1}$:$X = \begin{pmatrix} 1 & 2 \end{pmatrix}\begin{pmatrix} 3 & -5 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 3 - 2 & -5 + 4 \end{pmatrix} = \begin{pmatrix} 1 & -1 \end{pmatrix}$。检验:$\begin{pmatrix} 1 & -1 \end{pmatrix}A = \begin{pmatrix} 2 - 1 & 5 - 3 \end{pmatrix} = \begin{pmatrix} 1 & 2 \end{pmatrix}$。


Geometric Transformations with Matrices用矩阵表示几何变换 HL AHL 3.9

Learning objectives学习目标
  • Find the image of a point or shape by multiplying its position vector by a $2 \times 2$ matrix.
  • Write down the matrix of a reflection, rotation, enlargement or stretch, using the images of $\binom{1}{0}$ and $\binom{0}{1}$.
  • Find the single matrix for a composite transformation, multiplying in the correct order.
  • Use $|\det M|$ as the area scale factor, and interpret a negative determinant.
  • Describe fully the transformation represented by a given matrix.
  • 用 $2 \times 2$ 矩阵乘以位置向量,求点或图形的像。
  • 借助 $\binom{1}{0}$ 与 $\binom{0}{1}$ 的像,写出(write down)反射、旋转、放大或伸缩的矩阵。
  • 按正确顺序相乘,求复合变换的单一矩阵。
  • 用 $|\det M|$ 作为面积缩放因子,并解读负的行列式。
  • 完整描述(describe fully)给定矩阵所表示的变换。

A matrix moves points矩阵移动点

Write the point $(x, y)$ as the column vector $\binom{x}{y}$. The matrix $M = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$ sends it to $M\binom{x}{y} = \binom{ax + by}{cx + dy}$. The origin never moves, and $M\binom{1}{0} = \binom{a}{c}$, $M\binom{0}{1} = \binom{b}{d}$: the columns of $M$ are the images of the two unit vectors. That is the fastest way to build any transformation matrix: decide where $\binom{1}{0}$ and $\binom{0}{1}$ go and write them as columns. A translation by $\binom{p}{q}$ is not a matrix product; it is added: $\binom{x'}{y'} = M\binom{x}{y} + \binom{p}{q}$.

把点 $(x, y)$ 写成列向量 $\binom{x}{y}$。矩阵 $M = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$ 把它映到 $M\binom{x}{y} = \binom{ax + by}{cx + dy}$。原点不动,且 $M\binom{1}{0} = \binom{a}{c}$,$M\binom{0}{1} = \binom{b}{d}$:$M$ 的两列就是两个单位向量的像。这是构造任何变换矩阵最快的方法:确定 $\binom{1}{0}$ 与 $\binom{0}{1}$ 被映到哪里,再把它们写成两列。平移 $\binom{p}{q}$(translation)不是矩阵乘法,而是相加:$\binom{x'}{y'} = M\binom{x}{y} + \binom{p}{q}$。

Standard matrices (all about the origin; $\theta$ anticlockwise):

标准矩阵(均以原点为中心;$\theta$ 为逆时针方向):

$$ \text{rotation by } \theta: \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}, \qquad \text{reflection in } y = (\tan\theta)x: \begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix} $$ $$ \text{enlargement, factor } k: \begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}, \qquad \text{horizontal stretch, factor } k: \begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix}, \qquad \text{vertical stretch, factor } k: \begin{pmatrix} 1 & 0 \\ 0 & k \end{pmatrix} $$

Special cases worth knowing: reflection in the $x$-axis $\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$, in the $y$-axis $\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}$, in $y = x$ $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$; rotation $90^{\circ}$ anticlockwise $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$. A rotation by $\theta$ clockwise is a rotation by $-\theta$ anticlockwise.

值得记住的特例:关于 $x$ 轴的反射(reflection)$\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$,关于 $y$ 轴 $\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}$,关于 $y = x$ $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$;逆时针旋转(rotation)$90^{\circ}$ 为 $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$。顺时针旋转 $\theta$ 即逆时针旋转 $-\theta$。

Composite transformations and the area scale factor复合变换与面积缩放因子

If $M_{1}$ is applied first and $M_{2}$ second, the image is $M_{2}(M_{1}\mathbf{x}) = (M_{2}M_{1})\mathbf{x}$, so the single matrix for the composite transformation is $M_{2}M_{1}$: the first transformation sits on the right. Because matrix products do not commute, reversing the order usually gives a different transformation. Every shape's area is multiplied by the same number, the area scale factor $|\det M|$. A negative determinant means the transformation also reverses orientation (as a reflection does); a zero determinant squashes the plane onto a line or a point, so there is no inverse transformation.

若先作 $M_{1}$ 再作 $M_{2}$,像为 $M_{2}(M_{1}\mathbf{x}) = (M_{2}M_{1})\mathbf{x}$,所以复合变换(composite transformation)的单一矩阵是 $M_{2}M_{1}$:先作的变换写在右边。由于矩阵乘法不满足交换律,颠倒顺序通常得到不同的变换。所有图形的面积都乘以同一个数,即面积缩放因子(area scale factor)$|\det M|$。行列式为负,说明变换还翻转了定向(与反射一样);行列式为零,则平面被压到一条直线或一个点上,不存在逆变换。

O (1, 0) (0, 1) (1, 1) area 1 面积 1 M det M = 3 1 2 3 1 2 3 (2, 1) (3, 3) (1, 2) area 3 面积 3 object 原图形 image under M 在 M 下的像
Figure 1. The unit square and its image under $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$, drawn to scale (same unit length in both panels). Read off: $\binom{1}{0}$ goes to $\binom{2}{1}$ and $\binom{0}{1}$ goes to $\binom{1}{2}$, the two columns of $M$; the corner $(1, 1)$ goes to $(3, 3)$. The image is a parallelogram of area $3 = |\det M| = |2(2) - 1(1)|$, so every shape's area is tripled.图 1. 单位正方形及其在 $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$ 下的像,按比例绘制(两图单位长度相同)。读图:$\binom{1}{0}$ 映到 $\binom{2}{1}$,$\binom{0}{1}$ 映到 $\binom{1}{2}$,正是 $M$ 的两列;顶点 $(1, 1)$ 映到 $(3, 3)$。像是面积为 $3 = |\det M| = |2(2) - 1(1)|$ 的平行四边形,所以任何图形的面积都变为原来的 3 倍。
Worked Example: image of a triangle under a rotation例题:三角形在旋转下的像

Triangle $PQR$ has vertices $P(1, 1)$, $Q(3, 1)$ and $R(1, 4)$. It is rotated $90^{\circ}$ anticlockwise about the origin. Find the vertices of the image and its area.三角形 $PQR$ 的顶点为 $P(1, 1)$、$Q(3, 1)$、$R(1, 4)$。将它绕原点逆时针旋转 $90^{\circ}$。求像的顶点与面积。

Matrix. With $\theta = 90^{\circ}$: $\cos\theta = 0$, $\sin\theta = 1$, so $R_{90} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$. Check the columns: $\binom{1}{0}$ turns to $\binom{0}{1}$ and $\binom{0}{1}$ turns to $\binom{-1}{0}$.

矩阵。$\theta = 90^{\circ}$ 时 $\cos\theta = 0$,$\sin\theta = 1$,所以 $R_{90} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$。检验两列:$\binom{1}{0}$ 转到 $\binom{0}{1}$,$\binom{0}{1}$ 转到 $\binom{-1}{0}$。

Images, all at once. Put the vertices as columns: $R_{90}\begin{pmatrix} 1 & 3 & 1 \\ 1 & 1 & 4 \end{pmatrix} = \begin{pmatrix} -1 & -1 & -4 \\ 1 & 3 & 1 \end{pmatrix}$, so $P'(-1, 1)$, $Q'(-1, 3)$, $R'(-4, 1)$.

一次求出所有像。把顶点写成各列:$R_{90}\begin{pmatrix} 1 & 3 & 1 \\ 1 & 1 & 4 \end{pmatrix} = \begin{pmatrix} -1 & -1 & -4 \\ 1 & 3 & 1 \end{pmatrix}$,所以 $P'(-1, 1)$,$Q'(-1, 3)$,$R'(-4, 1)$。

Area. $PQR$ has a right angle at $P$, with legs $2$ and $3$, so its area is $\tfrac{1}{2}(2)(3) = 3$. $\det R_{90} = 0 - (-1) = 1$, so the image also has area $3$.

面积。$PQR$ 在 $P$ 处为直角,两直角边为 $2$ 与 $3$,面积为 $\tfrac{1}{2}(2)(3) = 3$。$\det R_{90} = 0 - (-1) = 1$,所以像的面积也是 $3$。

Why this works. A rotation keeps lengths and angles, and its determinant $\cos^{2}\theta + \sin^{2}\theta = 1$ confirms that areas are unchanged.

为什么可行。旋转保持长度与角度,其行列式 $\cos^{2}\theta + \sin^{2}\theta = 1$ 也印证面积不变。

Worked Example: a composite transformation, in both orders例题:两种顺序的复合变换

A rotation of $90^{\circ}$ anticlockwise about the origin is followed by a reflection in the $x$-axis. (a) Find the single matrix and describe the combined transformation. (b) Repeat with the order reversed.先绕原点逆时针旋转 $90^{\circ}$,再关于 $x$ 轴反射。(a) 求单一矩阵并描述复合变换。(b) 颠倒顺序再做一次。

(a) The rotation is first, so it goes on the right: $\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}$. Its columns say $\binom{1}{0} \mapsto \binom{0}{-1}$ and $\binom{0}{1} \mapsto \binom{-1}{0}$: this is a reflection in the line $y = -x$ (check with $\theta = 135^{\circ}$: $\cos 270^{\circ} = 0$, $\sin 270^{\circ} = -1$). Its determinant is $-1$.

(a) 旋转先作,写在右边:$\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}$。两列表明 $\binom{1}{0} \mapsto \binom{0}{-1}$,$\binom{0}{1} \mapsto \binom{-1}{0}$:这是关于直线 $y = -x$ 的反射(用 $\theta = 135^{\circ}$ 检验:$\cos 270^{\circ} = 0$,$\sin 270^{\circ} = -1$)。行列式为 $-1$。

(b) Reflection first: $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$, a reflection in $y = x$. A different transformation.

(b) 先反射:$\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$,即关于 $y = x$ 的反射。这是另一个变换。

Why this works. The matrix nearest the vector acts first, so the order of writing is the reverse of the order of doing. Both answers have determinant $-1$: area kept, orientation reversed.

为什么可行。离向量最近的矩阵最先作用,所以书写顺序与操作顺序相反。两个结果的行列式都是 $-1$:面积不变,定向翻转。

Exam tip考试提示

"Describe fully" needs every parameter: a rotation needs its centre, angle and direction; a reflection needs its mirror line; an enlargement needs its centre and scale factor; a stretch needs its direction (horizontal or vertical) and scale factor. For an area question, quote $|\det M|$ and multiply; do not recompute the image's area from coordinates unless asked.

"完整描述"(describe fully)要写出全部参数:旋转要写中心、角度与方向;反射要写对称轴;放大(enlargement)要写中心与比例因子;伸缩(stretch)要写方向(水平或竖直)与比例因子。面积题直接写出 $|\det M|$ 再相乘;除非题目要求,不必由坐标重新计算像的面积。

Check your understanding自我检测
Write down the matrix of a vertical stretch with scale factor 3, and the matrix of a reflection in $y = x$.写出比例因子为 3 的竖直伸缩矩阵,以及关于 $y = x$ 的反射矩阵。

Vertical stretch: $\begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix}$ ($\binom{1}{0}$ stays, $\binom{0}{1} \mapsto \binom{0}{3}$). Reflection in $y = x$: $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$ (it swaps $x$ and $y$).

竖直伸缩:$\begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix}$($\binom{1}{0}$ 不变,$\binom{0}{1} \mapsto \binom{0}{3}$)。关于 $y = x$ 的反射:$\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$(交换 $x$ 与 $y$)。

A shape of area $5\text{ cm}^{2}$ is transformed by $\begin{pmatrix} 3 & 1 \\ -2 & 4 \end{pmatrix}$. Find the area of the image.面积为 $5\text{ cm}^{2}$ 的图形经 $\begin{pmatrix} 3 & 1 \\ -2 & 4 \end{pmatrix}$ 变换。求像的面积。

$\det = 3(4) - 1(-2) = 14$, so the image has area $14 \times 5 = 70\text{ cm}^{2}$.

$\det = 3(4) - 1(-2) = 14$,所以像的面积为 $14 \times 5 = 70\text{ cm}^{2}$。

Find the image of $(2, 0)$ under a rotation of $60^{\circ}$ anticlockwise about the origin, in exact form.求点 $(2, 0)$ 绕原点逆时针旋转 $60^{\circ}$ 后的像(精确值)。

$\begin{pmatrix} \tfrac{1}{2} & -\tfrac{\sqrt{3}}{2} \\ \tfrac{\sqrt{3}}{2} & \tfrac{1}{2} \end{pmatrix}\binom{2}{0} = \binom{1}{\sqrt{3}}$, so the image is $(1, \sqrt{3})$. Check: its distance from the origin is $\sqrt{1 + 3} = 2$, as a rotation requires.

$\begin{pmatrix} \tfrac{1}{2} & -\tfrac{\sqrt{3}}{2} \\ \tfrac{\sqrt{3}}{2} & \tfrac{1}{2} \end{pmatrix}\binom{2}{0} = \binom{1}{\sqrt{3}}$,所以像为 $(1, \sqrt{3})$。检验:它到原点的距离为 $\sqrt{1 + 3} = 2$,符合旋转的要求。


Eigenvalues and Eigenvectors特征值与特征向量 HL AHL 1.15

Learning objectives学习目标
  • State the definition $A\mathbf{v} = \lambda\mathbf{v}$ with $\mathbf{v} \neq \mathbf{0}$, and explain what an eigenvector means geometrically.
  • Write down the characteristic polynomial of a $2 \times 2$ matrix and solve the characteristic equation for its eigenvalues.
  • Find an eigenvector for each eigenvalue by solving $(A - \lambda I)\mathbf{v} = \mathbf{0}$.
  • Verify that a given vector is an eigenvector, and use the trace and determinant to check eigenvalues.
  • 写出定义 $A\mathbf{v} = \lambda\mathbf{v}$($\mathbf{v} \neq \mathbf{0}$),并解释(explain)特征向量的几何意义。
  • 写出 $2 \times 2$ 矩阵的特征多项式(characteristic polynomial),解特征方程求特征值。
  • 对每个特征值解 $(A - \lambda I)\mathbf{v} = \mathbf{0}$,求一个特征向量。
  • 验证(verify)给定向量是否为特征向量,并用迹与行列式检验特征值。

Definition and meaning定义与意义

A non-zero vector $\mathbf{v}$ is an eigenvector of a square matrix $A$ when $A\mathbf{v} = \lambda\mathbf{v}$ for some number $\lambda$, the eigenvalue belonging to $\mathbf{v}$. Geometrically, $A$ does not turn $\mathbf{v}$: it only scales it by $\lambda$ (and reverses it if $\lambda < 0$). So the line through the origin in the direction of $\mathbf{v}$ is mapped onto itself. In Figure 1, $M\binom{1}{1} = \binom{3}{3} = 3\binom{1}{1}$: the diagonal $y = x$ is stretched by factor 3, so $\binom{1}{1}$ is an eigenvector with eigenvalue 3. Any non-zero multiple of an eigenvector is also an eigenvector for the same eigenvalue.

若对某个数 $\lambda$ 有 $A\mathbf{v} = \lambda\mathbf{v}$,则非零向量 $\mathbf{v}$ 称为方阵 $A$ 的特征向量(eigenvector),这个数就是属于 $\mathbf{v}$ 的特征值(eigenvalue)。几何上,$A$ 不改变 $\mathbf{v}$ 的方向,只把它缩放 $\lambda$ 倍($\lambda < 0$ 时反向)。所以过原点、沿 $\mathbf{v}$ 方向的直线被映到自身。在图 1 中,$M\binom{1}{1} = \binom{3}{3} = 3\binom{1}{1}$:对角线 $y = x$ 被拉伸 3 倍,所以 $\binom{1}{1}$ 是特征值为 3 的特征向量。特征向量的任何非零倍数,也是同一特征值的特征向量。

The characteristic equation特征方程

Rewrite $A\mathbf{v} = \lambda\mathbf{v}$ as $(A - \lambda I)\mathbf{v} = \mathbf{0}$. A non-zero solution $\mathbf{v}$ can exist only if $A - \lambda I$ has no inverse (otherwise multiplying by the inverse would force $\mathbf{v} = \mathbf{0}$), so $\det(A - \lambda I) = 0$. For $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$ this characteristic equation is

把 $A\mathbf{v} = \lambda\mathbf{v}$ 改写为 $(A - \lambda I)\mathbf{v} = \mathbf{0}$。只有当 $A - \lambda I$ 没有逆矩阵时才可能有非零解 $\mathbf{v}$(否则两边乘以逆矩阵会得到 $\mathbf{v} = \mathbf{0}$),所以 $\det(A - \lambda I) = 0$。对 $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$,这个特征方程(characteristic equation)为

$$ \det(A - \lambda I) = (a - \lambda)(d - \lambda) - bc = \lambda^{2} - (a + d)\lambda + (ad - bc) = 0. $$

The left side is the characteristic polynomial. Its two roots satisfy $\lambda_{1} + \lambda_{2} = a + d$ (the trace) and $\lambda_{1}\lambda_{2} = \det A$, a quick check on your eigenvalues. A GDC polynomial solver gives the roots; some models also have an eigenvalue command. Common misconception: $\mathbf{v} = \mathbf{0}$ always satisfies $A\mathbf{v} = \lambda\mathbf{v}$, which is why it is excluded; an eigenvector must be non-zero.

左边就是特征多项式。两根满足 $\lambda_{1} + \lambda_{2} = a + d$(迹,trace)与 $\lambda_{1}\lambda_{2} = \det A$,可用来快速检验特征值。GDC 的多项式求解器可给出根;有些型号也有直接求特征值的命令。常见误解:$\mathbf{v} = \mathbf{0}$ 总满足 $A\mathbf{v} = \lambda\mathbf{v}$,正因如此才被排除;特征向量必须是非零向量。

Worked Example: eigenvalues and eigenvectors of the Figure 1 matrix例题:图 1 矩阵的特征值与特征向量

Find the eigenvalues and corresponding eigenvectors of $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$.求 $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$ 的特征值及对应的特征向量。

Characteristic equation. $(2 - \lambda)^{2} - 1 = 0$, that is $\lambda^{2} - 4\lambda + 3 = 0$, so $(\lambda - 1)(\lambda - 3) = 0$ and $\lambda = 1$ or $\lambda = 3$. Check: sum $4$ = trace, product $3 = \det M$.

特征方程。$(2 - \lambda)^{2} - 1 = 0$,即 $\lambda^{2} - 4\lambda + 3 = 0$,所以 $(\lambda - 1)(\lambda - 3) = 0$,$\lambda = 1$ 或 $\lambda = 3$。检验:和为 $4$ 等于迹,积为 $3 = \det M$。

$\lambda = 3$. $M - 3I = \begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}$; the first row gives $-v_{1} + v_{2} = 0$, so $v_{2} = v_{1}$ and $\mathbf{v} = \binom{1}{1}$.

$\lambda = 3$。$M - 3I = \begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}$;第一行给出 $-v_{1} + v_{2} = 0$,所以 $v_{2} = v_{1}$,$\mathbf{v} = \binom{1}{1}$。

$\lambda = 1$. $M - I = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$; $v_{1} + v_{2} = 0$, so $\mathbf{v} = \binom{1}{-1}$. Verify: $M\binom{1}{-1} = \binom{2 - 1}{1 - 2} = \binom{1}{-1}$.

$\lambda = 1$。$M - I = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$;$v_{1} + v_{2} = 0$,所以 $\mathbf{v} = \binom{1}{-1}$。验证:$M\binom{1}{-1} = \binom{2 - 1}{1 - 2} = \binom{1}{-1}$。

Why this works. At an eigenvalue the two rows of $A - \lambda I$ are multiples of each other, so one row is enough to fix the direction. Geometrically, $M$ stretches the line $y = x$ by factor 3 and leaves every point of $y = -x$ where it is.

为什么可行。在特征值处,$A - \lambda I$ 的两行互为倍数,所以一行就足以确定方向。几何上,$M$ 把直线 $y = x$ 拉伸 3 倍,而 $y = -x$ 上每个点都保持不动。

Worked Example: a non-symmetric matrix, checked with a GDC例题:非对称矩阵,用 GDC 检验

Find the eigenvalues and eigenvectors of $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$.求 $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$ 的特征值与特征向量。

Characteristic polynomial. Trace $7$, determinant $12 - 2 = 10$, so $\lambda^{2} - 7\lambda + 10 = 0$. The GDC polynomial solver (or factorising) gives $(\lambda - 5)(\lambda - 2) = 0$: $\lambda = 5$ or $\lambda = 2$.

特征多项式。迹为 $7$,行列式为 $12 - 2 = 10$,所以 $\lambda^{2} - 7\lambda + 10 = 0$。用 GDC 多项式求解器(或因式分解)得 $(\lambda - 5)(\lambda - 2) = 0$:$\lambda = 5$ 或 $\lambda = 2$。

$\lambda = 5$. $A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}$, so $v_{2} = v_{1}$: $\mathbf{v}_{1} = \binom{1}{1}$.

$\lambda = 5$。$A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}$,所以 $v_{2} = v_{1}$:$\mathbf{v}_{1} = \binom{1}{1}$。

$\lambda = 2$. $A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}$, so $2v_{1} + v_{2} = 0$: $\mathbf{v}_{2} = \binom{1}{-2}$.

$\lambda = 2$。$A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}$,所以 $2v_{1} + v_{2} = 0$:$\mathbf{v}_{2} = \binom{1}{-2}$。

Verify. $A\binom{1}{1} = \binom{5}{5} = 5\binom{1}{1}$ and $A\binom{1}{-2} = \binom{4 - 2}{2 - 6} = \binom{2}{-4} = 2\binom{1}{-2}$.

验证。$A\binom{1}{1} = \binom{5}{5} = 5\binom{1}{1}$,$A\binom{1}{-2} = \binom{4 - 2}{2 - 6} = \binom{2}{-4} = 2\binom{1}{-2}$。

Why this works. Multiplying back is the fastest proof that a vector is an eigenvector, and it catches a sign slip in the row equation.

为什么可行。代回相乘是证明某向量为特征向量最快的方法,也能发现行方程中的符号错误。

Exam tip考试提示

When asked to "show that" $\lambda$ is an eigenvalue, substitute it into $\det(A - \lambda I)$ and show the result is $0$; for "verify that $\mathbf{v}$ is an eigenvector", compute $A\mathbf{v}$ and write it as a multiple of $\mathbf{v}$. An eigenvector is any non-zero multiple of a direction, so $\binom{2}{-4}$ is as correct as $\binom{1}{-2}$; state the eigenvalue it belongs to beside it.

题目要求"证明"(show that)$\lambda$ 是特征值时,把它代入 $\det(A - \lambda I)$ 并说明结果为 $0$;"验证 $\mathbf{v}$ 是特征向量"时,计算 $A\mathbf{v}$ 并写成 $\mathbf{v}$ 的倍数。特征向量是某方向上任意非零倍数,所以 $\binom{2}{-4}$ 与 $\binom{1}{-2}$ 同样正确;在旁边写明它对应的特征值。

Check your understanding自我检测
Find the eigenvalues of $\begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}$ and an eigenvector for the larger one.求 $\begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}$ 的特征值,以及较大特征值的一个特征向量。

Trace $3$, determinant $2 - 6 = -4$: $\lambda^{2} - 3\lambda - 4 = (\lambda - 4)(\lambda + 1) = 0$, so $\lambda = 4$ or $\lambda = -1$. For $\lambda = 4$: $\begin{pmatrix} -3 & 2 \\ 3 & -2 \end{pmatrix}$ gives $3v_{1} = 2v_{2}$, so $\mathbf{v} = \binom{2}{3}$. Check: $\binom{2 + 6}{6 + 6} = \binom{8}{12} = 4\binom{2}{3}$.

迹为 $3$,行列式为 $2 - 6 = -4$:$\lambda^{2} - 3\lambda - 4 = (\lambda - 4)(\lambda + 1) = 0$,所以 $\lambda = 4$ 或 $\lambda = -1$。对 $\lambda = 4$:$\begin{pmatrix} -3 & 2 \\ 3 & -2 \end{pmatrix}$ 给出 $3v_{1} = 2v_{2}$,所以 $\mathbf{v} = \binom{2}{3}$。检验:$\binom{2 + 6}{6 + 6} = \binom{8}{12} = 4\binom{2}{3}$。

Decide whether $\binom{1}{2}$ and $\binom{1}{-2}$ are eigenvectors of $\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}$.判断 $\binom{1}{2}$ 与 $\binom{1}{-2}$ 是否为 $\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}$ 的特征向量。

$\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}\binom{1}{2} = \binom{5}{6}$, not a multiple of $\binom{1}{2}$, so it is not an eigenvector. $\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}\binom{1}{-2} = \binom{1}{-2}$, so it is an eigenvector with eigenvalue $1$.

$\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}\binom{1}{2} = \binom{5}{6}$,不是 $\binom{1}{2}$ 的倍数,所以不是特征向量。$\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}\binom{1}{-2} = \binom{1}{-2}$,所以是特征值为 $1$ 的特征向量。

Show that the rotation matrix $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$ has no real eigenvalues, and explain this geometrically.证明旋转矩阵 $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$ 没有实特征值,并从几何上解释。

$\det(A - \lambda I) = \lambda^{2} + 1$, which is never $0$ for real $\lambda$. A $90^{\circ}$ rotation turns every non-zero vector off its own line, so no line through the origin is mapped onto itself.

$\det(A - \lambda I) = \lambda^{2} + 1$,对实数 $\lambda$ 永不为 $0$。旋转 $90^{\circ}$ 会把每个非零向量转离其所在直线,所以没有过原点的直线被映到自身。


Diagonalisation and Powers of a Matrix对角化与矩阵的幂 HL AHL 1.15

Learning objectives学习目标
  • Form $P$ from eigenvectors and $D$ from the matching eigenvalues, and write $A = PDP^{-1}$.
  • Explain why $A^{n} = PD^{n}P^{-1}$ and why $D^{n}$ is easy to compute.
  • Find a general expression for the elements of $A^{n}$ and check it with $n = 1$.
  • Deduce the long-term behaviour of $A^{n}$ from the sizes of the eigenvalues.
  • 由特征向量组成 $P$、由对应特征值组成 $D$,写出 $A = PDP^{-1}$。
  • 解释(explain)为何 $A^{n} = PD^{n}P^{-1}$,以及为何 $D^{n}$ 容易计算。
  • 求 $A^{n}$ 各元素的一般表达式,并用 $n = 1$ 检验。
  • 由特征值的大小推断(deduce)$A^{n}$ 的长期行为。

Why diagonalise为什么要对角化

Put eigenvectors $\mathbf{v}_{1}$, $\mathbf{v}_{2}$ as the columns of $P$ and the matching eigenvalues on the diagonal of $D$, in the same order. Then $AP = PD$ (column by column this is just $A\mathbf{v}_{i} = \lambda_{i}\mathbf{v}_{i}$), and when $P$ has an inverse, $A = PDP^{-1}$. To diagonalise $A$ is to find such a $P$ and $D$. This course uses the case of two distinct real eigenvalues; distinct eigenvalues guarantee two independent eigenvectors, so $P$ is invertible.

把特征向量 $\mathbf{v}_{1}$、$\mathbf{v}_{2}$ 作为 $P$ 的两列,把对应的特征值按相同顺序放在 $D$ 的对角线上。于是 $AP = PD$(逐列看,这正是 $A\mathbf{v}_{i} = \lambda_{i}\mathbf{v}_{i}$),当 $P$ 可逆时,$A = PDP^{-1}$。对角化(diagonalise)$A$,就是求出这样的 $P$ 与 $D$。本课程只处理两个不同实特征值的情形;不同的特征值保证有两个线性无关的特征向量,所以 $P$ 可逆。

$$ A = PDP^{-1} \quad\Rightarrow\quad A^{n} = (PDP^{-1})(PDP^{-1})\cdots(PDP^{-1}) = PD^{n}P^{-1}, \qquad D^{n} = \begin{pmatrix} \lambda_{1}^{n} & 0 \\ 0 & \lambda_{2}^{n} \end{pmatrix}. $$

Every inner $P^{-1}P$ collapses to $I$, and a diagonal matrix is raised to a power element by element. So $A^{n}$ becomes a formula in $n$. In the long run the term with the largest $|\lambda|$ dominates: a power $\lambda^{n}$ with $|\lambda| < 1$ tends to $0$. Common misconception: swapping the columns of $P$ without swapping the diagonal of $D$ gives a wrong product; the $i$th column of $P$ must belong to the $i$th diagonal entry of $D$.

中间每个 $P^{-1}P$ 都化为 $I$,而对角矩阵的幂只需对各对角元素取幂。所以 $A^{n}$ 变成关于 $n$ 的公式。长期来看,$|\lambda|$ 最大的项占主导:当 $|\lambda| < 1$ 时 $\lambda^{n}$ 趋于 $0$。常见误解:交换 $P$ 的两列而不交换 $D$ 的对角元素,乘积就错了;$P$ 的第 $i$ 列必须对应 $D$ 的第 $i$ 个对角元素。

Worked Example: a formula for A to the power n例题:A 的 n 次幂公式

For $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$ (eigenvalues $5$ and $2$, eigenvectors $\binom{1}{1}$ and $\binom{1}{-2}$, from B5.4): (a) write $A = PDP^{-1}$; (b) find $A^{n}$; (c) check $A^{3}$ with a GDC.对 $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$(由 B5.4,特征值为 $5$ 与 $2$,特征向量为 $\binom{1}{1}$ 与 $\binom{1}{-2}$):(a) 写出 $A = PDP^{-1}$;(b) 求 $A^{n}$;(c) 用 GDC 检验 $A^{3}$。

(a) $P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}$, $D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}$. $\det P = -2 - 1 = -3$, so $P^{-1} = \frac{1}{-3}\begin{pmatrix} -2 & -1 \\ -1 & 1 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}$.

(a) $P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}$,$D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}$。$\det P = -2 - 1 = -3$,所以 $P^{-1} = \frac{1}{-3}\begin{pmatrix} -2 & -1 \\ -1 & 1 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}$。

(b) $PD^{n} = \begin{pmatrix} 5^{n} & 2^{n} \\ 5^{n} & -2 \cdot 2^{n} \end{pmatrix}$, then multiply by $P^{-1}$:

(b) $PD^{n} = \begin{pmatrix} 5^{n} & 2^{n} \\ 5^{n} & -2 \cdot 2^{n} \end{pmatrix}$,再乘以 $P^{-1}$:

$$ A^{n} = \frac{1}{3}\begin{pmatrix} 2 \cdot 5^{n} + 2^{n} & 5^{n} - 2^{n} \\ 2 \cdot 5^{n} - 2 \cdot 2^{n} & 5^{n} + 2 \cdot 2^{n} \end{pmatrix}. $$

Check $n = 1$: $\frac{1}{3}\begin{pmatrix} 10 + 2 & 5 - 2 \\ 10 - 4 & 5 + 4 \end{pmatrix} = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$.

检验 $n = 1$:$\frac{1}{3}\begin{pmatrix} 10 + 2 & 5 - 2 \\ 10 - 4 & 5 + 4 \end{pmatrix} = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$。

(c) $n = 3$: $\frac{1}{3}\begin{pmatrix} 250 + 8 & 125 - 8 \\ 250 - 16 & 125 + 16 \end{pmatrix} = \begin{pmatrix} 86 & 39 \\ 78 & 47 \end{pmatrix}$, which matches $A^{3}$ evaluated directly on the GDC.

(c) $n = 3$:$\frac{1}{3}\begin{pmatrix} 250 + 8 & 125 - 8 \\ 250 - 16 & 125 + 16 \end{pmatrix} = \begin{pmatrix} 86 & 39 \\ 78 & 47 \end{pmatrix}$,与在 GDC 上直接计算的 $A^{3}$ 一致。

Why this works. In the eigenvector coordinates $A$ just multiplies by $5$ and by $2$, so $n$ applications multiply by $5^{n}$ and $2^{n}$; $P$ and $P^{-1}$ translate into and out of those coordinates.

为什么可行。在特征向量坐标下,$A$ 只是分别乘以 $5$ 和 $2$,所以作用 $n$ 次就是乘以 $5^{n}$ 和 $2^{n}$;$P$ 与 $P^{-1}$ 负责在两种坐标之间转换。

Worked Example: powers of a transition matrix and the long run例题:转移矩阵的幂与长期行为

$T = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$. (a) Show that the eigenvalues are $1$ and $0.5$ and find eigenvectors. (b) Find $T^{n}$. (c) Find the limit of $T^{n}$ as $n \to \infty$.$T = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$。(a) 证明特征值为 $1$ 与 $0.5$,并求特征向量。(b) 求 $T^{n}$。(c) 求 $n \to \infty$ 时 $T^{n}$ 的极限。

(a) Trace $1.5$, determinant $0.56 - 0.06 = 0.5$: $\lambda^{2} - 1.5\lambda + 0.5 = (\lambda - 1)(\lambda - 0.5) = 0$. For $\lambda = 1$: $-0.2v_{1} + 0.3v_{2} = 0$, so $\binom{3}{2}$. For $\lambda = 0.5$: $0.3v_{1} + 0.3v_{2} = 0$, so $\binom{1}{-1}$.

(a) 迹为 $1.5$,行列式为 $0.56 - 0.06 = 0.5$:$\lambda^{2} - 1.5\lambda + 0.5 = (\lambda - 1)(\lambda - 0.5) = 0$。$\lambda = 1$ 时:$-0.2v_{1} + 0.3v_{2} = 0$,得 $\binom{3}{2}$。$\lambda = 0.5$ 时:$0.3v_{1} + 0.3v_{2} = 0$,得 $\binom{1}{-1}$。

(b) $P = \begin{pmatrix} 3 & 1 \\ 2 & -1 \end{pmatrix}$, $\det P = -5$, $P^{-1} = \frac{1}{5}\begin{pmatrix} 1 & 1 \\ 2 & -3 \end{pmatrix}$, $D^{n} = \begin{pmatrix} 1 & 0 \\ 0 & 0.5^{n} \end{pmatrix}$. Multiplying out,

(b) $P = \begin{pmatrix} 3 & 1 \\ 2 & -1 \end{pmatrix}$,$\det P = -5$,$P^{-1} = \frac{1}{5}\begin{pmatrix} 1 & 1 \\ 2 & -3 \end{pmatrix}$,$D^{n} = \begin{pmatrix} 1 & 0 \\ 0 & 0.5^{n} \end{pmatrix}$。展开相乘得

$$ T^{n} = PD^{n}P^{-1} = \frac{1}{5}\begin{pmatrix} 3 + 2(0.5)^{n} & 3 - 3(0.5)^{n} \\ 2 - 2(0.5)^{n} & 2 + 3(0.5)^{n} \end{pmatrix}. $$

Check $n = 1$: $\frac{1}{5}\begin{pmatrix} 4 & 1.5 \\ 1 & 3.5 \end{pmatrix} = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$.

检验 $n = 1$:$\frac{1}{5}\begin{pmatrix} 4 & 1.5 \\ 1 & 3.5 \end{pmatrix} = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$。

(c) $(0.5)^{n} \to 0$, so $T^{n} \to \begin{pmatrix} 0.6 & 0.6 \\ 0.4 & 0.4 \end{pmatrix}$. Both columns become $\binom{0.6}{0.4}$, the eigenvector for $\lambda = 1$ scaled so its entries sum to 1.

(c) $(0.5)^{n} \to 0$,所以 $T^{n} \to \begin{pmatrix} 0.6 & 0.6 \\ 0.4 & 0.4 \end{pmatrix}$。两列都趋于 $\binom{0.6}{0.4}$,即 $\lambda = 1$ 的特征向量按元素和为 1 缩放后的结果。

Why this works. The eigenvalue $1$ part never changes and the $0.5$ part halves each step, so only the eigenvalue $1$ direction survives. This is the steady state of B5.6.

为什么可行。特征值 $1$ 的部分始终不变,$0.5$ 的部分每步减半,所以最终只剩特征值 $1$ 的方向。这就是 B5.6 中的稳态。

Exam tip考试提示

Write $P$, $D$ and $P^{-1}$ separately before multiplying, and state which eigenvalue each column of $P$ belongs to. After finding $A^{n}$, substitute $n = 1$ and compare with $A$; a mismatch shows a slip in $P^{-1}$ or in the order of the columns. The GDC can evaluate $A^{n}$ for a specific $n$, but a general formula in $n$ needs the diagonal form.

相乘前分别写出 $P$、$D$ 与 $P^{-1}$,并说明 $P$ 的每一列对应哪个特征值。求出 $A^{n}$ 后,代入 $n = 1$ 与 $A$ 比较;不一致说明 $P^{-1}$ 或列的顺序出了错。GDC 能计算具体 $n$ 的 $A^{n}$,但关于 $n$ 的一般公式需要用对角形式。

Check your understanding自我检测
Use $P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$ and $D = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}$ to find $M^{n}$ for $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$, and hence $M^{4}$.用 $P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$ 与 $D = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}$ 求 $M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$ 的 $M^{n}$,进而求 $M^{4}$。

$P^{-1} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$, so $M^{n} = \frac{1}{2}\begin{pmatrix} 3^{n} + 1 & 3^{n} - 1 \\ 3^{n} - 1 & 3^{n} + 1 \end{pmatrix}$. With $n = 4$: $\frac{1}{2}\begin{pmatrix} 82 & 80 \\ 80 & 82 \end{pmatrix} = \begin{pmatrix} 41 & 40 \\ 40 & 41 \end{pmatrix}$.

$P^{-1} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$,所以 $M^{n} = \frac{1}{2}\begin{pmatrix} 3^{n} + 1 & 3^{n} - 1 \\ 3^{n} - 1 & 3^{n} + 1 \end{pmatrix}$。取 $n = 4$:$\frac{1}{2}\begin{pmatrix} 82 & 80 \\ 80 & 82 \end{pmatrix} = \begin{pmatrix} 41 & 40 \\ 40 & 41 \end{pmatrix}$。

A student writes $P = \begin{pmatrix} 1 & 1 \\ -2 & 1 \end{pmatrix}$ and $D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}$ for $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$. What is wrong, and how is it fixed?某学生对 $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$ 写出 $P = \begin{pmatrix} 1 & 1 \\ -2 & 1 \end{pmatrix}$ 与 $D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}$。错在哪里?如何改正?

The first column $\binom{1}{-2}$ belongs to $\lambda = 2$, but $D$ puts $5$ first. Either use $D = \begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix}$ with this $P$, or swap the columns of $P$.

第一列 $\binom{1}{-2}$ 对应 $\lambda = 2$,但 $D$ 把 $5$ 放在第一位。要么配合这个 $P$ 使用 $D = \begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix}$,要么交换 $P$ 的两列。

A $2 \times 2$ matrix has eigenvalues $1$ and $0.4$. Describe what happens to $A^{n}$ as $n$ grows, and why.某 $2 \times 2$ 矩阵的特征值为 $1$ 与 $0.4$。描述 $n$ 增大时 $A^{n}$ 的变化,并说明原因。

$A^{n} = P\begin{pmatrix} 1 & 0 \\ 0 & 0.4^{n} \end{pmatrix}P^{-1}$ and $0.4^{n} \to 0$, so $A^{n}$ approaches the fixed matrix $P\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}P^{-1}$: it converges instead of growing or shrinking to zero.

$A^{n} = P\begin{pmatrix} 1 & 0 \\ 0 & 0.4^{n} \end{pmatrix}P^{-1}$,且 $0.4^{n} \to 0$,所以 $A^{n}$ 趋于固定矩阵 $P\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}P^{-1}$:它收敛,既不发散也不趋于零。


Transition Matrices, Markov Chains and Steady States转移矩阵、马尔可夫链与稳态 HL AHL 4.19

Learning objectives学习目标
  • Construct a transition matrix from a transition diagram or a description, stating the convention used.
  • Calculate the state vector after $n$ steps as $\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$, with a GDC.
  • Find the steady-state vector by solving $(T - I)\mathbf{s} = \mathbf{0}$ with entries summing to 1, or as the eigenvector for eigenvalue 1.
  • Interpret state vectors and the steady state in context, as probabilities or long-run proportions.
  • Find the probability of being in a given state after two steps from the matrix $T^{2}$.
  • 由转移图或文字描述构造(construct)转移矩阵,并说明所用的约定。
  • 用 GDC 计算 $n$ 步后的状态向量 $\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$。
  • 解 $(T - I)\mathbf{s} = \mathbf{0}$ 并令各元素之和为 1,或取特征值 1 的特征向量,求稳态向量。
  • 在情境中把状态向量与稳态解读(interpret)为概率或长期比例。
  • 由矩阵 $T^{2}$ 求两步后处于某状态的概率。

Markov chains and the column convention马尔可夫链与列约定

A Markov chain is a process that moves between a fixed set of states in steps, where the probability of the next state depends only on the current state, not on the earlier history. The transition matrix $T$ stores these probabilities. This guide uses the column convention throughout: the element in row $i$, column $j$ is the probability of moving from state $j$ to state $i$, so each column lists where everything in one state goes and each column sums to 1. The state vector $\mathbf{s}_{n}$ is a column of probabilities (or counts) for each state after $n$ steps, starting from the initial state $\mathbf{s}_{0}$:

马尔可夫链(Markov chain)是按步在一组固定状态之间转移的过程,下一状态的概率只取决于当前状态,与更早的历史无关。转移矩阵(transition matrix)$T$ 存放这些概率。本指南全程使用列约定:第 $i$ 行第 $j$ 列的元素是从状态 $j$ 转移到状态 $i$ 的概率,所以每一列列出某一状态中的全部去向,且每一列之和为 1。状态向量(state vector)$\mathbf{s}_{n}$ 是 $n$ 步后各状态的概率(或数量)组成的列向量,从初始状态(initial state)$\mathbf{s}_{0}$ 出发:

$$ \mathbf{s}_{n+1} = T\mathbf{s}_{n}, \qquad \mathbf{s}_{n} = T^{n}\mathbf{s}_{0}, \qquad T\mathbf{s} = \mathbf{s} \text{ with entries summing to } 1 \text{ (steady state)}. $$

Some books write the transpose instead: rows sum to 1, the state is a row vector and $\mathbf{s}_{n} = \mathbf{s}_{0}T^{n}$. The two conventions give the same probabilities, but mixing them gives nonsense. Common misconception: multiplying a row-convention matrix by a column state vector silently produces wrong numbers, so add up a column of the given matrix before you start; if the columns do not sum to 1 but the rows do, transpose it.

有些书使用转置的写法:每一行之和为 1,状态是行向量,$\mathbf{s}_{n} = \mathbf{s}_{0}T^{n}$。两种约定得到相同的概率,但混用就会出错。常见误解:把行约定的矩阵乘以列状态向量,不会报错却会得到错误的数,所以开始前先把给定矩阵的一列加起来;若各列之和不为 1 而各行之和为 1,就先转置。

The steady state稳态

A steady-state vector $\mathbf{s}$ does not change from one step to the next: $T\mathbf{s} = \mathbf{s}$. That says $\mathbf{s}$ is an eigenvector of $T$ for eigenvalue 1, scaled so its entries sum to 1. To find it, solve $(T - I)\mathbf{s} = \mathbf{0}$: these equations are dependent, so replace one of them by "entries sum to 1". For a chain in which some power of $T$ has every entry positive (true for every chain in this unit), $\mathbf{s}_{n}$ approaches this same steady state from every initial state, so it gives the long-run proportion of time, or of the population, in each state.

稳态(steady state)向量 $\mathbf{s}$ 从一步到下一步保持不变:$T\mathbf{s} = \mathbf{s}$。这说明 $\mathbf{s}$ 是 $T$ 关于特征值 1 的特征向量,并按元素和为 1 缩放。求法是解 $(T - I)\mathbf{s} = \mathbf{0}$:这些方程线性相关,所以用"各元素之和为 1"替换其中一个。若 $T$ 的某次幂所有元素都为正(本单元所有链都满足),则无论初始状态如何,$\mathbf{s}_{n}$ 都趋于同一个稳态,所以它给出长期处于各状态的时间比例或总体比例。

Worked Example: a two-state chain, step by step and in the long run例题:两状态链的逐步计算与长期行为

Each week a gym member either attends ($G$) or does not ($N$). Of those who attend one week, 80% attend the next; of those who do not, 30% attend the next. Of 1000 members, 200 attend in week 0. (a) Write down $T$ (states in the order $G$, $N$). (b) Find the numbers attending in weeks 1, 2 and 3. (c) Find the long-run number attending.每周健身房会员要么去($G$),要么不去($N$)。本周去的人中 80% 下周还去;本周不去的人中 30% 下周会去。1000 名会员中,第 0 周有 200 人去。(a) 写出 $T$(状态顺序为 $G$、$N$)。(b) 求第 1、2、3 周去的人数。(c) 求长期去的人数。

(a) Column $G$ holds where attenders go: $0.8$ to $G$, $0.2$ to $N$. Column $N$: $0.3$ to $G$, $0.7$ to $N$. So $T = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$; each column sums to 1.

(a) $G$ 列是去的人的去向:$0.8$ 到 $G$,$0.2$ 到 $N$。$N$ 列:$0.3$ 到 $G$,$0.7$ 到 $N$。所以 $T = \begin{pmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{pmatrix}$;每列之和为 1。

(b) $\mathbf{s}_{0} = \binom{200}{800}$. $\mathbf{s}_{1} = T\mathbf{s}_{0} = \binom{160 + 240}{40 + 560} = \binom{400}{600}$, $\mathbf{s}_{2} = T\mathbf{s}_{1} = \binom{320 + 180}{80 + 420} = \binom{500}{500}$, $\mathbf{s}_{3} = T\mathbf{s}_{2} = \binom{400 + 150}{100 + 350} = \binom{550}{450}$. On a GDC, evaluate $T^{3}\mathbf{s}_{0}$ directly. So 400, 500 and 550 members attend.

(b) $\mathbf{s}_{0} = \binom{200}{800}$。$\mathbf{s}_{1} = T\mathbf{s}_{0} = \binom{160 + 240}{40 + 560} = \binom{400}{600}$,$\mathbf{s}_{2} = T\mathbf{s}_{1} = \binom{320 + 180}{80 + 420} = \binom{500}{500}$,$\mathbf{s}_{3} = T\mathbf{s}_{2} = \binom{400 + 150}{100 + 350} = \binom{550}{450}$。在 GDC 上可直接计算 $T^{3}\mathbf{s}_{0}$。所以分别有 400、500、550 名会员去。

(c) Solve $(T - I)\mathbf{s} = \mathbf{0}$: $-0.2a + 0.3b = 0$, so $a = 1.5b$; with $a + b = 1$, $b = 0.4$ and $a = 0.6$. In the long run about $0.6 \times 1000 = 600$ members attend each week. (B5.5 gives the same: $T^{n}\mathbf{s}_{0}$ has first entry $600 - 400(0.5)^{n}$, which tends to 600.)

(c) 解 $(T - I)\mathbf{s} = \mathbf{0}$:$-0.2a + 0.3b = 0$,所以 $a = 1.5b$;结合 $a + b = 1$ 得 $b = 0.4$,$a = 0.6$。长期来看每周约有 $0.6 \times 1000 = 600$ 名会员去。(B5.5 给出相同结果:$T^{n}\mathbf{s}_{0}$ 的第一个元素为 $600 - 400(0.5)^{n}$,趋于 600。)

Why this works. Each step moves people according to the columns of $T$; at 600 and 400 the flow out of $G$ ($0.2 \times 600 = 120$) equals the flow in ($0.3 \times 400 = 120$), so nothing changes.

为什么可行。每一步都按 $T$ 的各列移动人员;当人数为 600 与 400 时,流出 $G$ 的人数($0.2 \times 600 = 120$)等于流入的人数($0.3 \times 400 = 120$),所以不再变化。

A B C 0.3 0.1 0.2 0.1 0.2 0.2 0.6 0.7 0.6 arrow from j to i: probability of moving from j to i in one day 由 j 指向 i 的箭头:一天内从 j 移到 i 的概率
Figure 2. Transition diagram for hire bikes moving between depots $A$, $B$ and $C$ each day. Read off: the three arrows leaving each depot (including its loop) carry probabilities that sum to 1, and each depot's outgoing probabilities form one column of $T$; for example, depot $A$ gives the column $\begin{pmatrix} 0.6 \\ 0.3 \\ 0.1 \end{pmatrix}$.图 2. 共享单车每天在站点 $A$、$B$、$C$ 之间移动的转移图(transition diagram)。读图:离开每个站点的三支箭头(含自环)上的概率之和为 1,每个站点的出发概率构成 $T$ 的一列;例如站点 $A$ 给出列 $\begin{pmatrix} 0.6 \\ 0.3 \\ 0.1 \end{pmatrix}$。
Worked Example: a three-state chain with a GDC例题:用 GDC 处理三状态链

Use Figure 2. (a) Write down $T$ with states in the order $A$, $B$, $C$. (b) A bike is at $A$ today. Find the probability that it is at $B$ in two days. (c) A fleet of 150 bikes starts with 50 at each depot. Find the distribution after two days. (d) Find the steady state and the long-run number of bikes at each depot.使用图 2。(a) 按状态顺序 $A$、$B$、$C$ 写出 $T$。(b) 一辆单车今天在 $A$,求两天后在 $B$ 的概率。(c) 150 辆单车开始时每个站点 50 辆,求两天后的分布。(d) 求稳态,以及长期每个站点的单车数量。

(a) One column per depot it leaves: $T = \begin{pmatrix} 0.6 & 0.2 & 0.2 \\ 0.3 & 0.7 & 0.2 \\ 0.1 & 0.1 & 0.6 \end{pmatrix}$. Column sums: $1$, $1$, $1$.

(a) 每个出发站点对应一列:$T = \begin{pmatrix} 0.6 & 0.2 & 0.2 \\ 0.3 & 0.7 & 0.2 \\ 0.1 & 0.1 & 0.6 \end{pmatrix}$。各列之和:$1$、$1$、$1$。

(b) $T^{2}\begin{pmatrix} 1 \ 0 \ 0 \end{pmatrix}$ is the first column of $T^{2}$, which the GDC gives as $\begin{pmatrix} 0.44 \\ 0.41 \\ 0.15 \end{pmatrix}$. So the probability is $0.41$. By paths: $A \to A \to B$, $A \to B \to B$, $A \to C \to B$ give $0.6(0.3) + 0.3(0.7) + 0.1(0.2) = 0.18 + 0.21 + 0.02 = 0.41$.

(b) $T^{2}\begin{pmatrix} 1 \ 0 \ 0 \end{pmatrix}$ 即 $T^{2}$ 的第一列,GDC 给出 $\begin{pmatrix} 0.44 \\ 0.41 \\ 0.15 \end{pmatrix}$。所以概率为 $0.41$。按路径计算:$A \to A \to B$、$A \to B \to B$、$A \to C \to B$ 给出 $0.6(0.3) + 0.3(0.7) + 0.1(0.2) = 0.18 + 0.21 + 0.02 = 0.41$。

(c) $\mathbf{s}_{1} = T\begin{pmatrix} 50 \\ 50 \\ 50 \end{pmatrix} = \begin{pmatrix} 50 \\ 60 \\ 40 \end{pmatrix}$ and $\mathbf{s}_{2} = T\mathbf{s}_{1} = \begin{pmatrix} 30 + 12 + 8 \\ 15 + 42 + 8 \\ 5 + 6 + 24 \end{pmatrix} = \begin{pmatrix} 50 \\ 65 \\ 35 \end{pmatrix}$: 50 at $A$, 65 at $B$, 35 at $C$.

(c) $\mathbf{s}_{1} = T\begin{pmatrix} 50 \\ 50 \\ 50 \end{pmatrix} = \begin{pmatrix} 50 \\ 60 \\ 40 \end{pmatrix}$,$\mathbf{s}_{2} = T\mathbf{s}_{1} = \begin{pmatrix} 30 + 12 + 8 \\ 15 + 42 + 8 \\ 5 + 6 + 24 \end{pmatrix} = \begin{pmatrix} 50 \\ 65 \\ 35 \end{pmatrix}$:$A$ 有 50 辆,$B$ 有 65 辆,$C$ 有 35 辆。

(d) $(T - I)\mathbf{s} = \mathbf{0}$ with $\mathbf{s} = \begin{pmatrix} a \\ b \\ c \end{pmatrix}$: row 3 gives $0.1a + 0.1b - 0.4c = 0$, so $c = \tfrac{a + b}{4}$; row 1 gives $-0.4a + 0.2b + 0.2c = 0$, so $-0.35a + 0.25b = 0$ and $b = 1.4a$, then $c = 0.6a$. With $a + b + c = 3a = 1$: $\mathbf{s} = \begin{pmatrix} 1/3 \\ 7/15 \\ 1/5 \end{pmatrix} \approx \begin{pmatrix} 0.333 \\ 0.467 \\ 0.200 \end{pmatrix}$. Row 2 checks: $0.1 - 0.14 + 0.04 = 0$. Long run: $150\mathbf{s} = \begin{pmatrix} 50 \\ 70 \\ 30 \end{pmatrix}$ bikes. (GDC route: solve the system, or raise $T$ to a large power such as $T^{50}$ and read any column.)

(d) 设 $\mathbf{s} = \begin{pmatrix} a \\ b \\ c \end{pmatrix}$,解 $(T - I)\mathbf{s} = \mathbf{0}$:第 3 行给出 $0.1a + 0.1b - 0.4c = 0$,所以 $c = \tfrac{a + b}{4}$;第 1 行给出 $-0.4a + 0.2b + 0.2c = 0$,于是 $-0.35a + 0.25b = 0$,$b = 1.4a$,进而 $c = 0.6a$。由 $a + b + c = 3a = 1$:$\mathbf{s} = \begin{pmatrix} 1/3 \\ 7/15 \\ 1/5 \end{pmatrix} \approx \begin{pmatrix} 0.333 \\ 0.467 \\ 0.200 \end{pmatrix}$。用第 2 行检验:$0.1 - 0.14 + 0.04 = 0$。长期:$150\mathbf{s} = \begin{pmatrix} 50 \\ 70 \\ 30 \end{pmatrix}$ 辆。(GDC 方法:解方程组,或计算 $T$ 的高次幂如 $T^{50}$ 并读取任一列。)

Why this works. Every entry of $T$ is positive, so the chain forgets where it started and every column of $T^{n}$ approaches the steady state; that is why a high power of $T$ shows it.

为什么可行。$T$ 的所有元素都为正,链会"忘记"起点,$T^{n}$ 的每一列都趋于稳态;所以 $T$ 的高次幂能显示稳态。

Exam tip考试提示

Label the rows and columns of your transition matrix with the state names (and "from" across the top, "to" down the side) before using it, and check every column sums to 1. For a steady state, show the equation $T\mathbf{s} = \mathbf{s}$ (or $(T - I)\mathbf{s} = \mathbf{0}$) with the condition that the entries sum to 1; reading a column of $T^{50}$ from a GDC is a good check but on its own does not show why the vector is steady. Give answers in context: "in the long run about 47% of bikes are at depot $B$".

使用转移矩阵前,先用状态名标注行与列(顶部写"从",侧边写"到"),并检查每列之和为 1。求稳态时,写出方程 $T\mathbf{s} = \mathbf{s}$(或 $(T - I)\mathbf{s} = \mathbf{0}$)以及元素之和为 1 的条件;从 GDC 读取 $T^{50}$ 的一列是很好的检验,但单凭它不能说明该向量为何是稳态。结合情境作答:"长期约有 47% 的单车在站点 $B$"。

Check your understanding自我检测
Using the column convention, can $\begin{pmatrix} 0.5 & 0.4 \\ 0.5 & 0.7 \end{pmatrix}$ be a transition matrix? Explain.在列约定下,$\begin{pmatrix} 0.5 & 0.4 \\ 0.5 & 0.7 \end{pmatrix}$ 能否作为转移矩阵?说明理由。

No. The second column sums to $0.4 + 0.7 = 1.1$, but the probabilities of leaving one state for all possible states must sum to 1. (The rows do not sum to 1 either, so it is not a row-convention matrix.)

不能。第二列之和为 $0.4 + 0.7 = 1.1$,而从一个状态转到所有可能状态的概率之和必须为 1。(各行之和也不为 1,所以它也不是行约定的矩阵。)

Find the steady-state vector of $T = \begin{pmatrix} 0.9 & 0.4 \\ 0.1 & 0.6 \end{pmatrix}$.求 $T = \begin{pmatrix} 0.9 & 0.4 \\ 0.1 & 0.6 \end{pmatrix}$ 的稳态向量。

$(T - I)\mathbf{s} = \mathbf{0}$ gives $-0.1a + 0.4b = 0$, so $a = 4b$. With $a + b = 1$: $b = 0.2$, $a = 0.8$, so $\mathbf{s} = \binom{0.8}{0.2}$. Check: $T\binom{0.8}{0.2} = \binom{0.72 + 0.08}{0.08 + 0.12} = \binom{0.8}{0.2}$.

$(T - I)\mathbf{s} = \mathbf{0}$ 给出 $-0.1a + 0.4b = 0$,所以 $a = 4b$。结合 $a + b = 1$:$b = 0.2$,$a = 0.8$,所以 $\mathbf{s} = \binom{0.8}{0.2}$。检验:$T\binom{0.8}{0.2} = \binom{0.72 + 0.08}{0.08 + 0.12} = \binom{0.8}{0.2}$。

In Figure 2, a bike is at $C$ today. Find the probability that it is at $A$ in two days.在图 2 中,一辆单车今天在 $C$。求两天后它在 $A$ 的概率。

Paths $C \to A \to A$, $C \to B \to A$, $C \to C \to A$: $0.2(0.6) + 0.2(0.2) + 0.6(0.2) = 0.12 + 0.04 + 0.12 = 0.28$. This is the element in row $A$, column $C$ of $T^{2}$.

路径 $C \to A \to A$、$C \to B \to A$、$C \to C \to A$:$0.2(0.6) + 0.2(0.2) + 0.6(0.2) = 0.12 + 0.04 + 0.12 = 0.28$。这正是 $T^{2}$ 中第 $A$ 行、第 $C$ 列的元素。


Exam Strategy and Common Pitfalls考试策略与常见陷阱

Order matters顺序很重要
  • Write the orders first. $(m \times n)(n \times p)$ is defined and gives $m \times p$; anything else is not defined.
  • 先写出阶。$(m \times n)(n \times p)$ 有定义且结果为 $m \times p$;其他情形都无定义。
  • Inverse on the correct side. $A\mathbf{x} = \mathbf{b}$ gives $\mathbf{x} = A^{-1}\mathbf{b}$; $XA = B$ gives $X = BA^{-1}$.
  • 逆矩阵乘在正确的一侧。$A\mathbf{x} = \mathbf{b}$ 得 $\mathbf{x} = A^{-1}\mathbf{b}$;$XA = B$ 得 $X = BA^{-1}$。
  • Composites read right to left. "$M_{1}$ then $M_{2}$" is the single matrix $M_{2}M_{1}$.
  • 复合变换从右往左读。"先 $M_{1}$ 后 $M_{2}$"的单一矩阵是 $M_{2}M_{1}$。
Eigen-work and Markov chains特征值问题与马尔可夫链
  • Check eigenvalues with trace and determinant. $\lambda_{1} + \lambda_{2} = a + d$ and $\lambda_{1}\lambda_{2} = \det A$ catch most slips in the characteristic equation.
  • 用迹与行列式检验特征值。$\lambda_{1} + \lambda_{2} = a + d$ 与 $\lambda_{1}\lambda_{2} = \det A$ 能发现特征方程中的大多数错误。
  • Match $P$ and $D$ column by column, then test your $A^{n}$ formula at $n = 1$.
  • $P$ 与 $D$ 逐列对应,再用 $n = 1$ 检验 $A^{n}$ 的公式。
  • Check the convention of a transition matrix. In this guide columns sum to 1 and $\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$; if a given matrix has rows summing to 1, it is the transpose.
  • 检查转移矩阵的约定。本指南中各列之和为 1,$\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$;若给定矩阵各行之和为 1,它就是转置形式。
  • A steady state needs two conditions: $T\mathbf{s} = \mathbf{s}$ and entries summing to 1.
  • 稳态需要两个条件:$T\mathbf{s} = \mathbf{s}$,且各元素之和为 1。
Exam format (HL)考试形式(HL)

For exams sat under the 2021 syllabus (through November 2028), IB Mathematics: Applications and Interpretation HL has three papers, and technology is required on Papers 1, 2 and 3. Paper 1 (2 hours, 110 marks, 30%) has compulsory short-response questions; Paper 2 (2 hours, 110 marks, 30%) has compulsory extended-response questions; Paper 3 (55 marks, 20%) has two compulsory extended-response problems. The internal assessment, a mathematical exploration, is the remaining 20%. Because a GDC is always available, practise entering matrices quickly and use it for determinants, inverses, powers and $3 \times 3$ systems, while still writing the matrix equation that shows your method.

按 2021 年大纲参加考试(至 2028 年 11 月)时,IB 数学:应用与解释 HL 共有三份试卷,Papers 1、2 与 3 都要求使用技术工具。Paper 1(2 小时,110 分,占 30%)为必答短答题;Paper 2(2 小时,110 分,占 30%)为必答长答题;Paper 3(55 分,占 20%)有两道必答的长答题。其余 20% 是内部评估(internal assessment),即数学探究(mathematical exploration)。由于始终可以使用 GDC,要练习快速输入矩阵,用它计算行列式、逆矩阵、矩阵幂与 $3 \times 3$ 方程组,同时仍写出体现方法的矩阵方程。


Flashcards (HL unit)闪卡(HL 单元)

0 / 12 flipped已翻 0 / 12
When is $AB$ defined?$AB$ 何时有定义?
When the number of columns of $A$ equals the number of rows of $B$.当 $A$ 的列数等于 $B$ 的行数时。
Determinant of a $2 \times 2$ matrix?$2 \times 2$ 矩阵的行列式?
$$\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc$$
Inverse of a $2 \times 2$ matrix?$2 \times 2$ 矩阵的逆矩阵?
$$\frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}$$
Solve $A\mathbf{x} = \mathbf{b}$?解 $A\mathbf{x} = \mathbf{b}$?
$\mathbf{x} = A^{-1}\mathbf{b}$, valid when $\det A \neq 0$.$\mathbf{x} = A^{-1}\mathbf{b}$,当 $\det A \neq 0$ 时成立。
Columns of a transformation matrix?变换矩阵的两列是什么?
The images of $\binom{1}{0}$ and $\binom{0}{1}$.$\binom{1}{0}$ 与 $\binom{0}{1}$ 的像。
Rotation by $\theta$ anticlockwise?逆时针旋转 $\theta$?
$$\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}$$
Area scale factor of $M$?$M$ 的面积缩放因子?
$|\det M|$; a negative determinant also reverses orientation.$|\det M|$;行列式为负时还会翻转定向。
"$M_{1}$ then $M_{2}$" as one matrix?"先 $M_{1}$ 后 $M_{2}$"的单一矩阵?
$$M_{2}M_{1}$$
Characteristic equation ($2 \times 2$)?特征方程($2 \times 2$)?
$$\lambda^{2} - (a + d)\lambda + (ad - bc) = 0$$
Powers by diagonalisation?用对角化求幂?
$$A^{n} = PD^{n}P^{-1}$$
State after $n$ steps (column convention)?$n$ 步后的状态(列约定)?
$$\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$$
Steady state conditions?稳态的条件?
$T\mathbf{s} = \mathbf{s}$ (eigenvector for $\lambda = 1$) and entries sum to 1.$T\mathbf{s} = \mathbf{s}$($\lambda = 1$ 的特征向量)且各元素之和为 1。

Unit B5 Practice Quiz (HL unit)单元 B5 练习测验(HL 单元)

$A$ has order $2 \times 3$ and $B$ has order $3 \times 4$. The order of $AB$ is:$A$ 的阶为 $2 \times 3$,$B$ 的阶为 $3 \times 4$。$AB$ 的阶为:
Q1
$3 \times 3$
$2 \times 4$
$4 \times 2$
not defined无定义
$(2 \times 3)(3 \times 4)$: the inner numbers match, and the outer numbers give the order $2 \times 4$.$(2 \times 3)(3 \times 4)$:内侧数字相同,外侧数字给出阶 $2 \times 4$。
Write the orders side by side: $(2 \times 3)(3 \times 4)$. The inner 3s match, so the product exists, and its order is rows of $A$ by columns of $B$: $2 \times 4$.把阶并排写出:$(2 \times 3)(3 \times 4)$。内侧的 3 相同,所以乘积存在,阶为 $A$ 的行数乘 $B$ 的列数:$2 \times 4$。
The determinant of $\begin{pmatrix} 5 & 3 \\ 4 & 2 \end{pmatrix}$ is:$\begin{pmatrix} 5 & 3 \\ 4 & 2 \end{pmatrix}$ 的行列式为:
Q2
$22$
$-2$
$2$
$-22$
$ad - bc = 5(2) - 3(4) = 10 - 12 = -2$.$ad - bc = 5(2) - 3(4) = 10 - 12 = -2$。
Leading diagonal product minus the other diagonal product: $5(2) - 3(4) = -2$. Adding instead of subtracting gives 22.主对角线之积减去另一条对角线之积:$5(2) - 3(4) = -2$。若误用加法会得到 22。
Which matrix represents a rotation of $90^{\circ}$ anticlockwise about the origin?哪个矩阵表示绕原点逆时针旋转 $90^{\circ}$?
Q3
$\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$
$\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}$
$\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$
$\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}$
Anticlockwise $90^{\circ}$ sends $\binom{1}{0}$ to $\binom{0}{1}$ and $\binom{0}{1}$ to $\binom{-1}{0}$; those are the columns. The others are a reflection in $y = x$, a clockwise $90^{\circ}$ rotation and a $180^{\circ}$ rotation.逆时针 $90^{\circ}$ 把 $\binom{1}{0}$ 映到 $\binom{0}{1}$,把 $\binom{0}{1}$ 映到 $\binom{-1}{0}$,这就是两列。其余分别是关于 $y = x$ 的反射、顺时针 $90^{\circ}$ 旋转和 $180^{\circ}$ 旋转。
Build it from the columns: the image of $\binom{1}{0}$ is $\binom{0}{1}$ and the image of $\binom{0}{1}$ is $\binom{-1}{0}$, giving $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$.用两列来构造:$\binom{1}{0}$ 的像为 $\binom{0}{1}$,$\binom{0}{1}$ 的像为 $\binom{-1}{0}$,得 $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$。
The eigenvalues of $\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}$ are:$\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}$ 的特征值为:
Q4
$1$ and与 $4$
$3$ and与 $2$
$-1$ and与 $-4$
$2$ and与 $5$
Trace $5$, determinant $6 - 2 = 4$: $\lambda^{2} - 5\lambda + 4 = (\lambda - 1)(\lambda - 4) = 0$. Check: $1 + 4 = 5$ and $1 \times 4 = 4$.迹为 $5$,行列式为 $6 - 2 = 4$:$\lambda^{2} - 5\lambda + 4 = (\lambda - 1)(\lambda - 4) = 0$。检验:$1 + 4 = 5$,$1 \times 4 = 4$。
The diagonal entries are the eigenvalues of a triangular matrix, but not in general. Solve $\lambda^{2} - 5\lambda + 4 = 0$ to get $1$ and $4$.三角矩阵的对角元素就是特征值,但一般矩阵并非如此。解 $\lambda^{2} - 5\lambda + 4 = 0$ 得 $1$ 与 $4$。
Using the column convention, the steady-state vector of $T = \begin{pmatrix} 0.9 & 0.4 \\ 0.1 & 0.6 \end{pmatrix}$ is:在列约定下,$T = \begin{pmatrix} 0.9 & 0.4 \\ 0.1 & 0.6 \end{pmatrix}$ 的稳态向量为:
Q5
$\binom{0.5}{0.5}$
$\binom{0.2}{0.8}$
$\binom{0.9}{0.1}$
$\binom{0.8}{0.2}$
$-0.1a + 0.4b = 0$ gives $a = 4b$; with $a + b = 1$, $\mathbf{s} = \binom{0.8}{0.2}$. Check: $T\binom{0.8}{0.2} = \binom{0.8}{0.2}$.$-0.1a + 0.4b = 0$ 得 $a = 4b$;结合 $a + b = 1$,$\mathbf{s} = \binom{0.8}{0.2}$。检验:$T\binom{0.8}{0.2} = \binom{0.8}{0.2}$。
Solve $(T - I)\mathbf{s} = \mathbf{0}$ with entries summing to 1: $a = 4b$, so $\binom{0.8}{0.2}$. The first column $\binom{0.9}{0.1}$ is only the one-step distribution from the first state.解 $(T - I)\mathbf{s} = \mathbf{0}$ 并令元素和为 1:$a = 4b$,得 $\binom{0.8}{0.2}$。第一列 $\binom{0.9}{0.1}$ 只是从第一个状态出发一步后的分布。
A shape of area $4$ square units is transformed by $\begin{pmatrix} 3 & 1 \\ -2 & 4 \end{pmatrix}$. The area of the image is:面积为 $4$ 平方单位的图形经 $\begin{pmatrix} 3 & 1 \\ -2 & 4 \end{pmatrix}$ 变换。像的面积为:
Q6
$40$
$14$
$56$
$24$
$\det = 3(4) - 1(-2) = 14$, so the area is $14 \times 4 = 56$ square units.$\det = 3(4) - 1(-2) = 14$,所以面积为 $14 \times 4 = 56$ 平方单位。
The area scale factor is $|\det M| = |12 + 2| = 14$ (watch the sign of $-bc$). Multiply: $14 \times 4 = 56$.面积缩放因子为 $|\det M| = |12 + 2| = 14$(注意 $-bc$ 的符号)。相乘:$14 \times 4 = 56$。

Readiness Checklist (HL unit)备考清单(HL 单元)

Tick each item when you can do it cold, without notes, on your first attempt. The entire unit is HL only, so every item below is HL content.

每一条都要"裸做"做对(不看笔记、一次过)才打勾。本单元为纯 HL,所以下面每一条都是 HL 内容。

0 / 12 mastered已掌握 0 / 12
How to use this guide本指南使用说明

How to use this guide本指南使用说明

B5 is one of the HL-only units of this course: it covers the 2021 sub-topics AHL 1.14 (matrices, determinants, inverses, systems), AHL 1.15 (eigenvalues, eigenvectors, diagonalisation, powers), AHL 3.9 (matrix transformations) and AHL 4.19 (Markov chains). The sections build on each other: products and inverses (B5.1, B5.2) feed transformations (B5.3); eigenvectors (B5.4) explain both the invariant lines of a transformation and the powers of a matrix (B5.5); and the steady state of a Markov chain (B5.6) is the eigenvector for eigenvalue 1.B5 是本课程的纯 HL 单元之一,涵盖 2021 年大纲子主题 AHL 1.14(矩阵、行列式、逆矩阵、方程组)、AHL 1.15(特征值、特征向量、对角化、矩阵幂)、AHL 3.9(矩阵变换)与 AHL 4.19(马尔可夫链)。各节层层递进:乘积与逆矩阵(B5.1、B5.2)用于几何变换(B5.3);特征向量(B5.4)既解释变换的不变直线,也解释矩阵的幂(B5.5);而马尔可夫链的稳态(B5.6)正是特征值 1 的特征向量。

!
If you are cramming如果你在临阵磨枪

Learn three moves. Systems: write $A\mathbf{x} = \mathbf{b}$, check $\det A \neq 0$, and let the GDC compute $A^{-1}\mathbf{b}$. Transformations: the columns of $M$ are the images of $\binom{1}{0}$ and $\binom{0}{1}$, and areas scale by $|\det M|$. Markov chains: $\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$, and the steady state solves $T\mathbf{s} = \mathbf{s}$ with entries summing to 1.

掌握三招。方程组:写出 $A\mathbf{x} = \mathbf{b}$,检查 $\det A \neq 0$,由 GDC 计算 $A^{-1}\mathbf{b}$。变换:$M$ 的两列是 $\binom{1}{0}$ 与 $\binom{0}{1}$ 的像,面积按 $|\det M|$ 缩放。马尔可夫链:$\mathbf{s}_{n} = T^{n}\mathbf{s}_{0}$,稳态满足 $T\mathbf{s} = \mathbf{s}$ 且元素之和为 1。

★
If you are going for a 7如果你目标是 7 分

Connect the ideas: explain why $\det(A - \lambda I) = 0$ gives the eigenvalues, derive $A^{n} = PD^{n}P^{-1}$ and use it to show why a Markov chain settles down (the eigenvalue 1 part stays, the others shrink). Practise multi-part context problems end to end, interpreting every matrix you produce.

把各个概念串起来:解释为何 $\det(A - \lambda I) = 0$ 给出特征值,推导 $A^{n} = PD^{n}P^{-1}$,并用它说明马尔可夫链为何趋于稳定(特征值 1 的部分保持,其余部分衰减)。完整练习多小问的情境题,并解读你算出的每一个矩阵。

HL flagHL 标记说明 Every section of B5 is HL content (AHL 1.14, 1.15, 3.9, 4.19). SL students do not study matrices in this course.B5 全部章节均为 HL 内容(AHL 1.14、1.15、3.9、4.19)。本课程的 SL 学生不学习矩阵。