These are personal study and translation notes for reference only; the original course materials belong to MIT OpenCourseWare and their respective rights holders.
Orthogonal subspaces: Subspaces V and W are orthogonal if every vector in V is orthogonal to every vector in W.
Fundamental Orthogonality:
Row spaceC(AT)⊥NullspaceN(A)
Column spaceC(A)⊥Left nullspaceN(AT)
Proof: For any x in N(A), Ax=0, meaning every row of A (a basis for the row space) is orthogonal to x. Similarly for the second pair using AT.
The Big Picture: Rows and nullspace live in Rn; columns and left nullspace live in Rm. The orthogonal subspaces are not just orthogonal -- they are orthogonal complements: together they span the whole space.
Decomposition: Every x∈Rn can be uniquely written as:
x=xrow+xnull
where xrow∈C(AT) and xnull∈N(A). Similarly for Rm.
4.2 Projections onto Subspaces
Projection onto a line through a:
p=aTaaaTb=aTaaTba
Projection matrix for a line:
P=aTaaaT
Properties: P2=P (idempotent), PT=P (symmetric).
Projection onto a subspace: Given a matrix A with independent columns, the projection of b onto C(A) is:
p=Ax^whereATAx^=ATb
Projection matrix for a subspace:
P=A(ATA)−1AT
Properties of projection matrices:
P2=P (projecting twice is same as once)
PT=P (symmetric)
I−P is the projection onto the orthogonal complement
P projects onto C(A); I−P projects onto N(AT)
4.3 Least Squares Approximations (Regression): ATAx^=ATb
When Ax=b has no solution (because b is not in C(A)), we find the best approximation by minimizing ∥b−Ax∥2.
The Normal Equations:
ATAx^=ATb
Why this works: The error e=b−Ax^ is orthogonal to C(A), so ATe=0, giving AT(b−Ax^)=0, hence ATAx^=ATb.
Best Fit Line (Linear Regression): Given m points (t1,y1),…,(tm,ym), find the line y=C+Dt that minimizes the sum of squared errors.
Set up A=11⋮1t1t2⋮tm, x=[CD], b=y1⋮ym.
Solve ATAx^=ATb:
[m∑ti∑ti∑ti2][CD]=[∑yi∑tiyi]
4.4 Orthogonal Matrices and Gram-Schmidt
Orthogonal MatrixQ satisfies QTQ=I. For square Q, this means QT=Q−1.
Properties:
Columns of Q are orthonormal (qiTqj=0 for i=j, qiTqi=1)
∥Qx∥=∥x∥ (preserves length)
(Qx)T(Qy)=xTy (preserves angles)
Product of orthogonal matrices is orthogonal
detQ=±1
Orthonormal Basis: For a basis q1,…,qn with qiTqj=δij:
Fourier Coefficients: Every vector v can be expressed as:
v=(q1Tv)q1+(q2Tv)q2+⋯+(qnTv)qn
The coefficients ck=qkTv are the Fourier coefficients.
Gram-Schmidt Process: Converts independent vectors a,b,c into orthonormal vectors q1,q2,q3.
q1=a/∥a∥
B=b−(q1Tb)q1, then q2=B/∥B∥
C=c−(q1Tc)q1−(q2Tc)q2, then q3=C/∥C∥
At each step, we subtract the projections onto all previous orthonormal vectors, then normalize.
QR Factorization: Every m×n matrix A (with independent columns) factors as:
A=QR
Q is m×n with orthonormal columns
R is n×n upper triangular
The entries of R are the dot products rij=qiTaj (or qiTb in the notation above).
Solving Ax=b with QR:
ATAx=ATb⟹RTQTQRx=RTQTb⟹RTRx=RTQTb⟹Rx=QTb
Since R is triangular, back substitution gives x directly -- no need to form ATA.