Linear Transformations and Matrices#
Throughout, vectors are column vectors (\(n \times 1\) matrices); their transposes are row vectors (\(1 \times n\) matrices).
Linear Transformations#
A linear transformation from \(\mathbb{R}^n\) to \(\mathbb{R}^m\) is a map
\(T: \mathbb{R}^n \to \mathbb{R}^m\) that satisfies linearity:
for all \(x, y \in \mathbb{R}^n\) and scalars \(\alpha \in \mathbb{R}\).
A linear transformation is completely determined by its action on a basis of \(\mathbb{R}^n\).
If \(\{v_1, \dots, v_n\}\) is a basis of \(\mathbb{R}^n\), and any vector \(x\) can be written as
then
Examples#
\(T: \mathbb{R}^2 \to \mathbb{R}^2\)
\((1, 0) \mapsto (2, 0)\), \((0, 1) \mapsto (0, -1)\)
Stretches the \(x\)-direction by a factor of \(2\) and flips the \(y\)-direction.\(T: \mathbb{R}^2 \to \mathbb{R}^2\)
\((1, 0) \mapsto \left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\),
\((0, 1) \mapsto \left(-\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\)
Rotates the plane by \(\pi/4\).\(T: \mathbb{R}^2 \to \mathbb{R}\)
\((1, 0) \mapsto 1\), \((0, 1) \mapsto 0\)
Extracts the first coordinate of \(x\).\(T: \mathbb{R}^2 \to \mathbb{R}^2\)
\((1, 0) \mapsto (1, 0)\), \((0, 1) \mapsto (0, 0)\)
Orthogonal projection onto the \(x\)-axis.\(T: \mathbb{R} \to \mathbb{R}^2\)
\(1 \mapsto (1, 1)\)
Maps \(\mathbb{R}\) onto the line \(y = x\).
Linear Transformations as Matrices#
A particularly useful basis for \(\mathbb{R}^n\) is the standard basis:
with the \(1\) in the \(i\)-th position.
Any vector \(x \in \mathbb{R}^n\) can be written as:
If \(T(e_i) = a_i \in \mathbb{R}^m\), we can write \(a_i\) in the standard basis as:
Placing these column vectors \(a_i\) side-by-side forms the matrix representation of \(T\):
Matrix-Vector Product#
For \(x \in \mathbb{R}^n\), we have:
This is a linear combination of the columns of \(A\), with coefficients given by the entries of \(x\).
The formula for the matrix-vector product is:
Transpose and Conjugate Transpose#
Everything above is stated over \(\mathbb{R}\). The same definitions carry over to \(T: \mathbb{C}^n \to \mathbb{C}^m\), with scalars \(\alpha \in \mathbb{C}\) and \(A \in \mathbb{C}^{m \times n}\).
Transpose \(A^T\): \((i, j)\) entry of \(A^T\) is \(a_{ji}\).
Conjugate transpose \(A^H\): Take complex conjugate of each entry of \(A^T\).
Key property for real matrices:
For complex matrices:
\(A^T\) is the only matrix that moves across the dot product this way, which is what makes it the adjoint of \(A\). Later chapters rely on this identity repeatedly, starting with the normal equations.
Special Matrices#
Each definition below equates \(A\) with its transpose or conjugate transpose, so \(A\) must be square:
Symmetric: \(A^T = A\)
Skew-symmetric: \(A^T = -A\)
Hermitian: \(A^H = A\)
Skew-Hermitian: \(A^H = -A\)