Matrix operations, inverses and plane transformations
引入| English | 释义 | 拼音 |
|---|---|---|
| matrix/ˈmeɪtrɪks/ | 矩阵 | jǔ zhèn |
| determinant/dɪˈtɜːmɪnənt/ | 行列式 | háng liè shì |
| identity matrix/aɪˈdentɪti ˈmeɪtrɪks/ | 单位矩阵 | dān wèi jǔ zhèn |
| singular/ˈsɪŋɡjʊlə/ | 奇异的 | qí yì de |
Cayley's memoir, 1858
- In 1858, the English lawyer and mathematician Arthur Cayley published A Memoir on the Theory of Matrices. He treated a whole grid of numbers as one object that you can add, multiply and invert.
- Every 3D video game now moves its pictures with matrices. In FP1, a 2 × 2 matrix 矩阵 maps points of the plane, and its determinant 行列式 tells you how areas change.
Multiplying matrices
- Multiply row by column: $\begin{pmatrix}3 & 1\\2 & 4\end{pmatrix}\begin{pmatrix}1\\4\end{pmatrix} = \begin{pmatrix}3 + 4\\2 + 16\end{pmatrix} = \begin{pmatrix}7\\18\end{pmatrix}$.
- Order matters: in general $\mathbf{AB} \ne \mathbf{BA}$. The identity matrix 单位矩阵 $\mathbf{I} = \begin{pmatrix}1 & 0\\0 & 1\end{pmatrix}$ leaves every matrix unchanged.
查找 $\begin{pmatrix}1 & 2\\0 & 3\end{pmatrix}\begin{pmatrix}4\\-1\end{pmatrix}$.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Row 1: $4 - 2 = 2$. Row 2: $0 - 3 = -3$.
Matrices as transformations
- The columns of a matrix are the images of $\begin{pmatrix}1\\0\end{pmatrix}$ and $\begin{pmatrix}0\\1\end{pmatrix}$. So rotation by $90°$ anticlockwise about $O$ is $\begin{pmatrix}0 & -1\\1 & 0\end{pmatrix}$, and reflection in $y = x$ is $\begin{pmatrix}0 & 1\\1 & 0\end{pmatrix}$.
- $\mathbf{BA}$ means "do $\mathbf{A}$ first, then $\mathbf{B}$", because $\mathbf{BA}\mathbf{x} = \mathbf{B}(\mathbf{A}\mathbf{x})$.
Matrix operations, inverses and plane transformations
A 2×2 matrix [[a,b],[c,d]] has determinant ad-bc and inverse [[d,-b],[-c,a]]/(ad-bc) if the determinant is nonzero
Compare the model with the worked case and explain one change.
Which matrix is a reflection in the $x$-axis?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
$(1, 0)$ stays, $(0, 1)$ goes to $(0, -1)$. The second is a reflection in the $y$-axis.
Worked example: inverse and area
$\mathbf{A} = \begin{pmatrix}3 & 1\\2 & 4\end{pmatrix}$. Find $\mathbf{A}^{-1}$, solve $\mathbf{A}\begin{pmatrix}x\\y\end{pmatrix} = \begin{pmatrix}7\\18\end{pmatrix}$, and find the image area of a triangle of area $5$.
- Determinant: $\det\mathbf{A} = 3 \times 4 - 1 \times 2 = 10$.
- Inverse: swap the leading diagonal, change the signs of the other two and divide: $\mathbf{A}^{-1} = \dfrac{1}{10}\begin{pmatrix}4 & -1\\-2 & 3\end{pmatrix}$. Then $\begin{pmatrix}x\\y\end{pmatrix} = \dfrac{1}{10}\begin{pmatrix}28 - 18\\-14 + 54\end{pmatrix} = \begin{pmatrix}1\\4\end{pmatrix}$.
- Area: the area scale factor is $|\det\mathbf{A}| = 10$, so the image has area $50$.
A shape of area 6 is mapped by $\begin{pmatrix}5 & 2\\3 & 1\end{pmatrix}$. Find the image area.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
$\det = 5 - 6 = -1$, so the area scale factor is $|{-1}| = 1$ (the shape is reflected).
Singular matrices
- A matrix with determinant 0 is singular 奇异的: it has no inverse, and it squashes the whole plane onto a line.
- $\begin{pmatrix}2 & 6\\1 & 3\end{pmatrix}$ has $\det = 6 - 6 = 0$: every point maps onto the line $y = \tfrac{1}{2}x$.
查找 $k$ so that $\begin{pmatrix}k & 4\\3 & 6\end{pmatrix}$ is singular.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
$6k - 12 = 0$, so $k = 2$.
Inverses of products
- $(\mathbf{AB})^{-1} = \mathbf{B}^{-1}\mathbf{A}^{-1}$ — the order reverses, like taking off socks and shoes.
- A negative determinant means the shape is also reflected: reflection in $y = x$ has $\det = -1$, so area is kept but the orientation flips.
$(\mathbf{AB})^{-1} = \mathbf{A}^{-1}\mathbf{B}^{-1}$ for all non-singular $\mathbf{A}$ and $\mathbf{B}$.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The order reverses: $(\mathbf{AB})^{-1} = \mathbf{B}^{-1}\mathbf{A}^{-1}$.
Reading $\mathbf{BA}$ from left to right. $\mathbf{BA}$ applies $\mathbf{A}$ first. If $\mathbf{A}$ is a rotation and $\mathbf{B}$ a reflection, "rotate then reflect" is $\mathbf{BA}$, not $\mathbf{AB}$ — and the two usually give different images.
$\mathbf{R}$ is a rotation and $\mathbf{S}$ a stretch. Which matrix is "stretch, then rotate"?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The first transformation goes on the right: $\mathbf{RS}\mathbf{x} = \mathbf{R}(\mathbf{S}\mathbf{x})$.
Multiply row by column; the columns of a matrix are the images of the unit vectors, and $\mathbf{BA}$ means $\mathbf{A}$ first. For $\begin{pmatrix}a & b\\c & d\end{pmatrix}$, $\det = ad - bc$ is the area scale factor, and the inverse is $\tfrac{1}{\det}\begin{pmatrix}d & -b\\-c & a\end{pmatrix}$ unless $\det = 0$.
Find the inverse of $\mathbf{M} = \begin{pmatrix}2 & -1\\5 & 3\end{pmatrix}$ and use it to find the point that $\mathbf{M}$ maps to $(0, 11)$.
Inverse undoes the map.