Programming lesson
Mastering SVD and Matrix Norms for Engineering Computation in 2026
Explore singular value decomposition, matrix norms, and orthogonal projections with real-world engineering examples, including AI and data science applications.
Introduction to Advanced Computational Techniques
In modern engineering, computational techniques like Singular Value Decomposition (SVD) and matrix norms are fundamental for solving linear systems, data compression, and machine learning. As of June 2026, these methods power AI models, recommendation systems, and even quantum computing simulations. This tutorial breaks down key concepts from ENGG7302, focusing on SVD, matrix norms, and orthogonal projections, without solving exam questions directly.
Understanding Singular Value Decomposition (SVD)
SVD decomposes any matrix A into A = UΣVH, where U and V are unitary matrices and Σ is diagonal. In engineering, SVD is used for image compression, noise reduction, and solving ill-posed problems. For example, in 2026, SVD is a core algorithm in generative AI to reduce dimensionality while preserving important features.
Full vs. Reduced SVD
Full SVD keeps all singular values, while reduced SVD discards zero singular values. For a square matrix, both decompositions exist, but U and V may differ in size. Key properties: U and V are unitary (UHU = I, VHV = I), and Σ contains singular values in descending order. The rank of A equals the number of non-zero singular values.
Matrix Norms: 1-norm, 2-norm, ∞-norm, and Frobenius
Matrix norms measure the size of a matrix. For a diagonal matrix with entries 1, 2, 3, the 1-norm is max column sum = 3, 2-norm is largest singular value = 3, ∞-norm is max row sum = 3, Frobenius norm is sqrt(1²+2²+3²) = sqrt(14) ≈ 3.74. So Frobenius norm is largest. In practice, norm choice depends on the problem: 2-norm is sensitive to outliers, 1-norm is robust.
Solving Linear Least Squares with Normal Equations
For Ax = b with A full column rank, the normal equation AHAx = AHb gives the least squares solution. Since null space is empty, AHA is invertible, and the solution is x = (AHA)-1AHb. This method is efficient but can be numerically unstable for ill-conditioned matrices.
Orthogonal Projections and Unitary Matrices
Orthogonal projection matrices satisfy P² = P and PH = P. Unitary matrices satisfy UHU = I. For example, a matrix like [0 0 1] is not orthogonal projection (it's not square), while a rotation matrix like [0 -i; i 0] is unitary. In quantum computing (trending in 2026), unitary matrices represent quantum gates.
Eigenvectors and Orthogonality
For a real symmetric matrix A = AT with distinct eigenvalues, eigenvectors are orthogonal. Proof: if Av = λv and Aw = μw with λ ≠ μ, then λvTw = (Av)Tw = vTATw = vTAw = μvTw ⇒ (λ-μ)vTw = 0 ⇒ vTw = 0. This property is used in principal component analysis (PCA), a popular technique in data science.
Computing SVD, Pseudo-inverse, and Condition Number
For a matrix A = [2 0 0; 0 0 0], the full SVD: U = I (3x3), Σ = diag(2,0,0), V = I (3x3). Reduced SVD keeps only first singular value: U₁ = [1;0;0], Σ₁ = [2], V₁ = [1;0;0]. Pseudo-inverse A⁺ = VΣ⁺UH = diag(0.5, 0, 0). Condition number = σ_max/σ_min = 2/0 = ∞ (infinite). In 2026, condition numbers help assess stability of neural network training.
Vector Projection and Orthogonal Components
Given vectors v and q, the orthogonal component of v with respect to q is r = v - (qHv / qHq) q. If v is decomposed into orthogonal components w.r.t. q₁,...,qₙ, the residual r is orthogonal to all qᵢ. This is the basis of Gram-Schmidt process and QR decomposition.
Practical Example: Which Vector Lies Closest to a Direction?
To find which of v₁, v₂, v₃ best aligns with u = [1,1,1]ᵀ, compute the cosine similarity (normalized dot product). For v₁ = [1,0,1]ᵀ, dot = 2, norm = √2, cosine = 2/√6 ≈ 0.816; v₂ = [3,1,1]ᵀ, dot = 5, norm = √11, cosine = 5/√33 ≈ 0.870; v₃ = [2,-1,3]ᵀ, dot = 4, norm = √14, cosine = 4/√42 ≈ 0.617. So v₂ best lies in direction of u. This concept is used in recommendation systems to find similar users.
Conclusion
Mastering SVD, matrix norms, and orthogonal projections is crucial for engineers in 2026, especially with the rise of AI and data-driven methods. Practice these concepts with real matrices to build intuition.