Repository navigation
Linear Algebra Crash Course
Please cross-reference the linked Wikipedia articles as you read; it is good to get comfortable with other notations!
Also try coming up with small examples and working them out on paper as you go. 🙂👍
I will be "zero-indexing" my vectors and matrices, i.e. the top entry in vector
Let's use normal type for scalars, e.g., real number
Let's use bold lowercase for vectors like
By convention, we will assume "vector" refers to a column vector, i.e., a vector with one column and any number of rows.
A row vector is the transpose of a column vector.
We read
- The zero vector
$\mathbf{0}$ is a vector of all zeros. My choice of notation doesn't specify the number of entries, but it's typically clear from the context.
Let's use bold uppercase for matrices like
-
$A_{r, c}$ is the entry in$\mathbf{A}$ 's$r$ -th row and$c$ -th column. -
$\mathbf{A}$ has$R*C$ entries. - If
$C = 1$ , then$\mathbf{A}$ is also a column vector. - If
$R = 1$ , then$\mathbf{A}$ is also a row vector. - If
$R = C = 1$ , then$\mathbf{A}$ is also a scalar. - If
$R = C$ , then$\mathbf{A}$ is a square matrix. We could also say, "A is square." - The identity matrix
$\mathbf{I}$ is a square matrix with the property$\mathbf{AI}=\mathbf{IA}=\mathbf{A}$ . My choice of notation doesn't specify the number of rows/cols, but it's typically clear from the context.
It's sometimes convenient to think about matrices and vectors as being broken up into sections called "blocks."
E.g., if
and
then instead of writing
we could write
Consider
In summary,
The
Matrix multiplication is associative, i.e.
Matrix multiplication is NOT commutative, i.e.
If
If
If
Scalar multiplication scales a vector, i.e. preserves its direction and changes its length. E.g.,
This is a fairly uncommon operation.
The length of a vector
To normalize a vector
We denote a unit vector with a "hat," e.g.
We read
The transpose of a matrix
If
We read
The inverse of a square matrix
We read