Matrix-Matrix Multiplication#
Composition of Linear Transformations#
If \(T_1: \mathbb{R}^n \to \mathbb{R}^m\) has matrix \(B\) and \(T_2: \mathbb{R}^m \to \mathbb{R}^\ell\) has matrix \(A\),
then the composition \(T_2 \circ T_1\) has matrix \(AB\), where:
The formula for matrix-matrix multiplication is:
where \(C = AB\).
Properties:
Defined only if the number of columns of \(A\) equals the number of rows of \(B\).
Associative: \((AB)C = A(BC)\).
Not commutative: \(AB \ne BA\) in general.
Transpose rule: \((AB)^T = B^T A^T\).
Identity and Inverse Matrices#
The identity matrix \(I_n\) has \(1\) on the diagonal and \(0\) elsewhere, and satisfies:
for all \(x \in \mathbb{R}^n\).
A square matrix \(A\) is invertible if there exists \(A^{-1}\) such that:
Fact
\(A\) is invertible if and only if its columns are linearly independent.
Change of Basis#
Let \(\{v_1, \dots, v_n\}\) be a basis of \(\mathbb{R}^n\). Any \(x \in \mathbb{R}^n\) can be written as:
where \(\alpha = (\alpha_1, \dots, \alpha_n)^T\) are the coordinates of \(x\) in this basis.
If \(V\) is the matrix with \(v_i\) as columns, then:
If \(A\) is the matrix of \(T\) in the standard basis and \(B\) is the matrix in the basis \(\{v_i\}\), then:
This is the change of basis formula.