MIT 18.701 — Lecture 1

Matrix and Group Definitions

Class is taught by Henry Cohn (cohn@mit.edu).

Grading. Grading is defined as below. Indicate collaboration when used, don't use AI.

(psets,quizzes,exams)=(40%,20%,40%)=(8/10 graded,4/5 graded,2/2 graded)(\text{psets}, \text{quizzes}, \text{exams}) = (40\%, 20\%, 40\%) = (8/10 \text{ graded}, 4/5 \text{ graded}, 2/2 \text{ graded})

Class Philosophy. Join the Discord community. Class is an interactive experience—more than just a plain video.

Deadlines. Problem Set #1 is due on September 12th. Also, read Chapter 1 of Artin (Second Edition).

§ Matrix Definition

Controversially, we say that 0N0 \in \mathbb{N}. Uncontroversially, an m×nm \times n matrix has mm rows and nn columns.

Remark. Why two-dimensional arrays, specifically? Because tensors (e.g. m×n×pm \times n \times p arrays) are…  not tractable. For example, computing the rank of a tensor is NP-hard.

A matrix ARm×nA \in \mathbb{R}^{m \times n} transforms vectors in Rn\mathbb{R}^n into vectors in Rm\mathbb{R}^m. How?

A=(A11A12A1nA21A22A2nAm1Am2Amn)    A(x1xn)=(A11x1++A1nxnA21x1++A2nxnAm1x1++Amnxn).A = \begin{pmatrix} A_{11} & A_{12} & \cdots & A_{1n} \\ A_{21} & A_{22} & \cdots & A_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ A_{m1} & A_{m2} & \cdots & A_{mn} \end{pmatrix} \implies A\begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} = \begin{pmatrix} A_{11}x_1 + \cdots + A_{1n} x_n \\ A_{21}x_1 + \cdots + A_{2n}x_n \\ \vdots \\ A_{m1}x_1 + \cdots + A_{mn}x_n \end{pmatrix}.

In other words, matrices encode mm different linear functions in nn variables.

Remark. To Oh My Darling, Clementine: “Row by column, row by column, row by column, multiply!”

Example. Rotations in R3\mathbb{R}^3 are just 22-dimensional rotations about a single axis. But this isn't true in R4\mathbb{R}^4; in fact, rotations in Rn\mathbb{R}^n are determined by n2\lfloor \tfrac{n}{2} \rfloor planes of rotation.

Remark. See Alicia Boole Stott’s story\underline{\text{Alicia Boole Stott's story}} that the human brain can (rarely) understand R4\mathbb{R}^4.

§ Matrix Multiplication and Inverses

Definition (Matrix Multiplication). Consider ARm×nA \in \mathbb{R}^{m \times n} and BRn×pB \in \mathbb{R}^{n \times p}. The matrix product P=ABRm×pP = AB \in \mathbb{R}^{m \times p} is the unique matrix such that A(Bx)RmA(Bx) \in \mathbb{R}^m always equals PxRmPx \in \mathbb{R}^m. Explicitly, this means Pi,k=j=1nAi,jBj,k\displaystyle P_{i, k} = \sum_{j = 1}^n A_{i, j} B_{j, k}.

In particular, matrices are functions, and matrix multiplication is function composition.

Just as f(x)=xf(x) = x is the unique identity function, there is also a unique identity matrix in Rn×n\mathbb{R}^{n \times n}:

In:=(100010001)n columns      In(x)=x for all xRn.I_n := \underbrace{\begin{pmatrix} 1 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & 1 \end{pmatrix}}_{n \text{ columns}} ~ \implies ~ I_n(x) = x \text{ for all } x \in \mathbb{R}^n.

Thus, given any ARn×nA \in \mathbb{R}^{n \times n}, we say AA is invertible if there exists another BRn×nB \in \mathbb{R}^{n \times n} (its inverse) such that AB=BA=InAB = BA = I_n.

Theorem. (Uniqueness of Inverse) Any invertible ARn×nA \in \mathbb{R}^{n \times n} has a unique inverse BB.

Proof: Suppose AA had two inverses B1B_1 and B2B_2. Then:

AB1=In     ×B2 B2AB1=B2In     B2A=In InB1=B2In     defn. of In B1=B2AB_1 = I_n ~ \stackrel{\times B_2}\implies ~ B_2AB_1 = B_2I_n ~ \stackrel{B_2A = I_n}\implies ~ I_nB_1 = B_2I_n ~ \stackrel{\text{defn. of } I_n}\implies ~ B_1 = B_2

So the two inverses B1B_1 and B2B_2 of AA are in fact the same, as desired. \blacksquare

Theorem. (Invertibility Condition) Any ARn×nA \in \mathbb{R}^{n \times n} is invertible if and only if detA0\det A \neq 0.

Proof: (Vibes) You can't divide by 00, so you can't divide by a matrix AA whose determinant is 00. \blacksquare

§ Group Theory Definitions

Definition (Group). A group is a set GG with binary operation  ⁣:G×GG\bigstar \! : G \times G \to G (implied gh=ghg \bigstar h = gh) satisfying…

Note that commutativity is not a requirement for groups.

Example. The set Z\mathbb{Z} together with operation “addition” is a group. The set Q+\mathbb{Q}^+ together with operation “multiplication” is also a group.

Example. The set \emptyset together with operation “whatever” is not a group because it lacks an identity. Meanwhile, the set {1}\{1\} together with operation “whatever” is a group: the trivial group.

Example. The set Rn×n\mathbb{R}^{n \times n} together with operation “matrix multiplication” is not a group; it lacks inverses! However, the set GLn(R):={ARn×ndetA0}GL_n(\mathbb{R}) := \{ A \in \mathbb{R}^{n \times n} \mid \det A \neq 0 \} together with operation “matrix multiplication” is a group: the general linear group of degree nn.

Example. The set Sn:={perms of {1,2,,n}}S_n := \{ \text{perms of } \{1, 2, \dots, n\} \} together with operation “permutation composition” is a group. For example, elements of S6S_6 may be written as:

π:={π(1)=3π(2)=4π(3)=5π(4)=2π(5)=1π(6)=6      π:=(123456345216)      π:=(135)(24)(6)\pi := \begin{cases} \pi(1) = 3 \\ \pi(2) = 4 \\ \pi(3) = 5 \\ \pi(4) = 2 \\ \pi(5) = 1 \\ \pi(6) = 6 \end{cases} \ \iff \ \pi := \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 \\ 3 & 4 & 5 & 2 & 1 & 6 \end{pmatrix} \ \iff \ \pi := (135)(24)(6)