Skip to content

Math Review Week 10

Highlights of what I (re)learned in week #10 of my math studies.

  • Began Phase 2 - Linear Algebra
  • 3Blue1Brown - Essence of Linear Algebra

3Blue1Brown - Essence of Linear Algebra

Chapter 1 - Vectors

A vector as an arrow in a coordinate system with the tail at the origin.

Chapter 2 - Linear combinations, span and basis vectors

\(\hat i\) and \(\hat j\) are the basis vectors of the x-y coordinate system.

Linear combination of \(\vec v\) and \(\vec w\):

\[ a\vec v + b\vec w \]

The span of \(\vec v\) and \(\vec w\) is the set of all linear combinations of \(\vec v\) and \(\vec w\).

If a vector can be expressed as a linear combination of a set of vectors, it's linearly dependent on those vectors, or the vector is in the span of the set of vectors.

Definition: The basis of a vector space is a set of linearly independent vectors that span the full space.

Chapter 3 - Linear transformations and matrices

  • All lines remain lines
  • Origin is fixed
\[ \begin{bmatrix} 3 & 2 \\ -2 & 1 \end{bmatrix} \text{ describes a linear transformation} \]
\[ \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} \Rightarrow x \begin{bmatrix} a \\ c \end{bmatrix} + y \begin{bmatrix} b \\ d \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix} \]

Example: rotate 90ยบ counter clockwise. \(\hat i\) moves from (1, 0) to (0, 1) and \(\hat j\) moves from (0, 1) to (-1, 0)

\[ \hat i = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \hat j = \begin{pmatrix} -1 \\ 0 \end{pmatrix} \Rightarrow \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} \]

Chapter 4 - Matrix multiplication as composition

Example: a rotation then a shear

\[ \underbrace{ \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} }_{\text{shear}} \begin{pmatrix} \underbrace{ \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} }_{\text{rotation}} \begin{bmatrix} x \\ y \end{bmatrix} \end{pmatrix} = \underbrace{ \begin{bmatrix} 1 & -1 \\ 1 & 0 \end{bmatrix} }_{\substack{\text{composition of } \\ \text{rotation then} \\ \text{shear}}} \begin{bmatrix} x \\ y \end{bmatrix} \]

Chapter 5 - Three-dimensional linear transformations

Three basis vectors \(\hat i, \hat j \text{ and } \hat k\)

Chapter 6 - The determinant

How much are areas scaled?

The factor by which any linear transformation changes any area is called the determinant of that transformation.

If a transformation causes \(\hat i\) to be on the left of \(\hat j\), instead of the right, orientation has been reversed, and the determinant will be negative.

In 3D, use the right hand rule.

\[ det \begin{pmatrix} \begin{bmatrix} a & b \\ c & d \end{bmatrix} \end{pmatrix} = ad - bc \]
\[ det \begin{pmatrix} \begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{bmatrix} \end{pmatrix} = a\cdot det\begin{pmatrix} \begin{bmatrix} e & f \\ h & i \end{bmatrix} \end{pmatrix} - b\cdot det\begin{pmatrix} \begin{bmatrix} d & f \\ g & i \end{bmatrix} \end{pmatrix} + c\cdot det\begin{pmatrix} \begin{bmatrix} d & e \\ g & h \end{bmatrix} \end{pmatrix} \]
\[ det\begin{pmatrix} M_1\cdot M_2 \end{pmatrix} = det(M_1)\cdot det(M_2) \]

Chapter 7 - Inverse matrices, column space and null space

\[ \substack{ \displaystyle 2x + 5y + 3z = 3 \\ \displaystyle 4x + 0y + 8z = 0 \\ \displaystyle 1x + 3y + 0z = 2 } \Rightarrow \underbrace{ \begin{pmatrix} 2 & 5 & 3 \\ 4 & 0 & 8 \\ 1 & 3 & 0 \end{pmatrix} }_{\substack{ \text{coefficients} \\ \text{A} }} \underbrace{ \begin{pmatrix} x \\ y \\ z \end{pmatrix} }_{\substack{ \text{variables} \\ \vec x }} = \underbrace{ \begin{pmatrix} 3 \\ 0 \\ 2 \end{pmatrix} }_{\substack{ \text{constants} \\ \vec b }} \]

If the determinant is non-zero:

\[ A^{-1}\cdot A = \underbrace{ \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} }_{\substack{ \text{identity matrix} \\ \text{i.e. } \hat i \text{ and } \hat j \text{ unmoved} }} \]

In the case where the determinant is zero, there is no inverse i.e. you can't unsquish a line to turn it into a plane.

Solutions can still exist when the determinant is zero.

Rank when the output of a transformation is a line i.e. it's one dimensional, we say it as a rank of 1. Rank is the # of dimensions in the output.

Set of all possible outputs \(A \hat v\) is called the Column Space of A i.e. columns space is the span of columns in the matrix.

Full rank \(\Rightarrow\) rank is as high as at can be

Null space "kernel" the space of all vectors that become null

Chapter 9 - Dot products and duality

Dot product example:

\[ \begin{bmatrix} 2 \\ 7 \\ 1 \end{bmatrix} \cdot \begin{bmatrix} 8 \\ 2 \\ 8 \end{bmatrix} = 2\cdot 8 + 7\cdot 2 + 1\cdot 8 = 38 \]

Chapter 10 - Cross products

\(\hat i \times \hat j = 1\) (orientation)

\[ \vec v = \begin{bmatrix}3 \\ 1\end{bmatrix}, \vec w = \begin{bmatrix}2 \\ -1\end{bmatrix} \]
\[ \vec v \times \vec w = det \begin{pmatrix} \begin{bmatrix} 3 & 2 \\ 1 & -1 \end{bmatrix} \end{pmatrix} = 3\cdot (-2) - 1\cdot 1 = -7 \]

Chapter 13 - Change of basis

In our coordinate system:

\[ b_1 = \begin{bmatrix}2 \\ 1\end{bmatrix}, b_2 = \begin{bmatrix}-1 \\ 1\end{bmatrix} \]

but in the other coordinate system:

\[ b_1 = \begin{bmatrix}1 \\ 0\end{bmatrix}, b_2 = \begin{bmatrix}0 \\ 1\end{bmatrix} \]

The vector described in our system as \(\begin{bmatrix}3 \\ 2\end{bmatrix}\) would be seen as \(\begin{bmatrix}5/3 \\ 1/3\end{bmatrix}\) in the other system.

What would \(\begin{bmatrix}-1 \\ 2\end{bmatrix}\) in the other system look like in ours?

\[ -1\cdot b_1 + 2\cdot b_2 \Rightarrow -1\begin{bmatrix}2 \\ 1\end{bmatrix} + 2\begin{bmatrix}-1 \\ 2\end{bmatrix} = \begin{bmatrix}-4 \\ 1\end{bmatrix} \]

In other words, create a matrix of the other system's basis vactors and multiply by the vector:

\[ \underbrace{ \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix} }_{\substack{ \text{other system's} \\ \text{basis vectors} }} \begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} -4 \\ 1 \end{bmatrix} \]

How would our \(\begin{bmatrix}3 \\ 2\end{bmatrix}\) look in the other system?

Take the inverse of the change of basis i.e. \(\begin{bmatrix}2 & -1 \\ 1 & 1\end{bmatrix}^{-1}\) which works out to be \(\begin{bmatrix}1/3 & 1/3 \\ -1/3 & 2/3\end{bmatrix}\)

\[ \begin{bmatrix} 1/3 & 1/3 \\ -1/3 & 2/3 \end{bmatrix} \begin{bmatrix}3 \\ 2\end{bmatrix} = \begin{bmatrix}5/3 \\ 1/3\end{bmatrix} \]

The matrix of columns of basis vectors in our coordinates translates vectors in the other system's language into our language.

The inverse matrix does the opposite.

Chapter 14 - Eigenvectors and eigenvalues

Eigenvectors stay on their span after a transformation. Eigenvalues indicate how much the eigenvector is scaled.

Let \(A\) be a transformation matrix, \(\vec v\) be an eigenvector and \(\lambda\) be an eigenvalue:

\[ A \vec v = \lambda \vec v \]

Scaling by \(\lambda \Rightarrow \begin{bmatrix}\lambda & 0 & 0 \\ 0 & \lambda & 0 \\ 0 & 0 & \lambda\end{bmatrix}\) can be written as: \(\lambda \begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{bmatrix}\)

\[ A \vec v = (\lambda I) \vec v \]
\[ (A - \lambda I) \vec v = \vec 0 \]

Chapter 16 - Linearity

Linear transformations perserve addition and scalar multiplication:

  1. \(\vec u + (\vec v + \vec w) = (\vec u + \vec v) + \vec w\)
  2. \(\vec v + \vec w = \vec w + \vec v\)
  3. There is a vector \(\vec 0\) such that \(\vec 0 + \vec v = \vec v\) for all \(\vec v\)
  4. For every vector \(\vec v\) there is a vector \(-\vec v\) such that \(\vec v + (-\vec v) = \vec 0\)
  5. \(a(b \vec v) = (ab) \vec v\)
  6. \(1\vec v = \vec v\)
  7. \(a(\vec v + \vec w) = a\vec v + a\vec w\)
  8. \((a + b)\vec v = a\vec v + b\vec v\)