Matrix
Description
- A scalar is a number, like 3, -5, 0.368, etc.
- A vector is a list of numbers (can be in a row or column),
- A matrix is an array of numbers (one or more rows, one or more columns).
Row vector:
Column vector:
Matrix:
We can show a matrix with multiple vectors:
Operations
Multiplication With Another Matrix
We will use this for transformation composition, like this:
\((f \circ g)(\vec{x}) = f(g(a)) = f(Ax) = B(Ax) = BA(x)\)
Multiplication With Vector (Matrix-Vector Product)
In general, each vector \(\begin{bmatrix} x \\ y \end{bmatrix}\) can be broken down as follows:
So, if the green arrow \(\begin{bmatrix} 1 \\ 0 \end{bmatrix}\) lands on some vector \(\begin{bmatrix} a \\ c \end{bmatrix}\) and the red arrow \(\begin{bmatrix} 0 \\ 1 \end{bmatrix}\) lands on some vector \(\begin{bmatrix} b \\ d \end{bmatrix}\), then the vector \(\begin{bmatrix} x \\ y \end{bmatrix}\) must land on
A really nice way to describe all this is to represent a given linear transform with the matrix below:
In this matrix, the first column tells us where \(\begin{bmatrix} 1 \\ 0 \end{bmatrix}\) lands, and the second column tells us where \(\begin{bmatrix} 0 \\ 1 \end{bmatrix}\) lands. Now we can describe where any vector \(\mathbf{v} = \begin{bmatrix} x \\ y \end{bmatrix}\) lands very compactly as the matrix-vector product
In fact, this is where the definition of a matrix-vector product comes from.
Matrix-vector product is always a linear transformation.
Transpose
Reduced Row Echelon Form (RREF)
Determinant
The determinant of a \(2 \times 2\) matrix is
And the determinant of a \(3 \times 3\) matrix is
- The determinant is nonzero if and only if the matrix is invertible and the linear map represented by the matrix is an isomorphism.
- The determinant of a matrix is equal to the determinant of its transpose
Null Space
The null space of any matrix \(A\) consists of all the vectors \(B\) such that \(AB = 0\) and \(B\) is not zero.
We will show the null space of \(\mathbf{A}\) with \(N(\mathbf{A})\).
- It can also be thought of as the solution obtained from \(AB=0\) where \(A\) is a known matrix of size \(m x n\) and \(B\) is a matrix to be found of size \(n x k\).
- \(N(\mathbf{A}) = N(RREF(\mathbf{A}))\)
Column Space
We will show the columnspace of \(\mathbf{A}\) with \(C(\mathbf{A})\).
Identity Matrix
\(I_1 = [1], I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}, \dots, I_n = \begin{bmatrix} 1 & 0 & 0 & \cdots & 0 \\ 0 & 1 & 0 & \cdots & 0 \\ 0 & 0 & 1 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & 1 \end{bmatrix}\)