AAS203D · Numerical Methods · Unit 5
Applied Linear Algebra
Unit Scope & Exam Weightage: This unit turns matrices into computational tools: eigen decomposition and SVD, LU and QR factorisations, linear transformations with kernel and range, inner product spaces and norms, and their use in graphics, neural networks and cryptography. No genuine PYQ cluster is attached to this unit; the questions below are realistic predicted exam questions built strictly from the syllabus topics. Prepare the three worked numericals—eigen decomposition, Dolittle LU, and Gram–Schmidt QR—since they cover the likely 7-mark patterns.
Front Page: Importance-Wise Topic Roadmap (Predicted from Syllabus)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | LU Decomposition (Dolittle method) | 0 genuine PYQs | predicted 7m | Predicted Numerical |
| 2 | Eigen Value Decomposition and Singular Value Decomposition | 0 genuine PYQs | predicted 7m | Predicted Numerical |
| 3 | QR Decomposition | 0 genuine PYQs | predicted 7m | Predicted Numerical |
| 4 | Linear transformation | 0 genuine PYQs | predicted 5m | Predicted Theory |
| 5 | Matrix representation of Linear Transformation | integrated in #4 | — | Core Concept |
| 6 | Kernel and Range | integrated in #4 | — | Core Concept |
| 7 | Introduction to inner product space | 0 genuine PYQs | — | Core Concept |
| 8 | Norm of a vector | 0 genuine PYQs | — | Core Concept |
| 9 | Matrix factorization | integrated in #1, #3 | — | Core Concept |
| 10 | Application: 2D & 3D graphics | 0 genuine PYQs | — | Application |
| 11 | Neural Networks | 0 genuine PYQs | — | Application |
| 12 | Cryptography | 0 genuine PYQs | — | Application |
2-Hour Last-Night Survival Checklist:
- Dolittle: set unit lower-triangular and upper-triangular; fill , , then and .
- Eigen step: solve ; check the trace equals and determinant equals before writing .
- QR by Gram–Schmidt: , , ; place the 's as columns of and the inner products as entries of .
- Kernel/range: kernel (solve homogeneous system), rank , and rank + nullity number of columns.
- Norms: , and Cauchy–Schwarz ; these two lines secure the theory part of a 7-mark answer.
1. Eigenvalue Decomposition and Singular Value Decomposition
Eigenvalue: for a square matrix , a scalar is an eigenvalue if for some non-zero vector , called an eigenvector. The characteristic equation is . Eigenvalue decomposition (EVD): if has linearly independent eigenvectors,
Then , which is why EVD speeds up repeated matrix powers.
Singular Value Decomposition (SVD): for any matrix (not necessarily square),
where and have orthonormal columns and . The singular values satisfy .
| Case | EVD | SVD |
|---|---|---|
| Matrix shape | Square only | Any |
| Vectors | Eigenvectors of | Left singular vectors , right singular vectors |
| Scaling | Eigenvalues may be negative/complex | Singular values non-negative real |
| For symmetric positive semi-definite | , |
Worked link. For , with unit eigenvectors and . Hence , and the same serves as both and in the SVD because is symmetric positive definite.
2. Matrix Factorisation and LU Decomposition (Dolittle)
Matrix factorisation writes a matrix as a product of simpler matrices so that solving becomes two triangular solves. In Dolittle LU, with unit lower triangular () and upper triangular.
Derivation of the recurrence. From with :
- First row: .
- First column: .
- For : .
- For : .
Then solve (forward substitution) and (back substitution). Pivoting is required if a diagonal .
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart TD
A["System Ax = b"] --> B["Factor A = LU (Dolittle)"]
B --> C["Forward substitution: Ly = b"]
C --> D["Back substitution: Ux = y"]
D --> E["Solution x"]
A --> F["Alternative: QR = A"]
F --> G["Solve Rx = Qᵀb"]
3. QR Decomposition
For a matrix with independent columns , Gram–Schmidt produces orthonormal columns :
Then with and
Because , least-squares problems reduce to . Householder reflections and Givens rotations are more stable computer implementations of the same factorisation.
Examiner Tip: In a QR trace, show each projection coefficient explicitly. Examiners give marks for the Gram–Schmidt subtraction even if the final normalisation square root is simplified incorrectly.
4. Linear Transformations: Matrix Representation, Kernel and Range
Linear transformation: satisfies and . Applying to the standard basis vectors of and placing the images as columns gives the matrix representation .
Example. For :
For the example, and give (nullity 1), while the range is the -plane (rank 2); columns.
5. Inner Product Spaces and Norms
Inner product: is a scalar satisfying positivity, symmetry, and linearity. In , . Norm: , satisfying , , and the triangle inequality.
| Norm | Formula | Typical use |
|---|---|---|
| Euclidean () | Geometry, least squares | |
| Manhattan () | $|x|_1=\sum | x_i |
| Maximum () | $|x|_\infty=\max_i | x_i |
Cauchy–Schwarz: ; equality holds when one vector is a scalar multiple of the other. Orthogonality: , the condition used in Gram–Schmidt.
6. Applications Named in the Syllabus
| Syllabus application | Linear-algebra object | Concrete use |
|---|---|---|
| 2D & 3D graphics | Rotation , scaling and translation via homogeneous / matrices | A point vector is multiplied by a sequence of matrices to rotate, scale and move it |
| Neural Networks | Layer computation , with weight matrix | Forward pass is repeated matrix–vector multiplication; SVD/PCA can compress weight matrices |
| Cryptography | Invertible matrix over integers modulo 26 (Hill cipher) | Encryption ; decryption needs , which exists only when is invertible modulo 26 |
7. Predicted Exam-Ready Questions (Solved — Not Verbatim PYQs)
Predicted Q1 (7 Marks | LU Decomposition, Dolittle)
Q (predicted from “LU Decomposition (Dolittle method)”): Factorise into by Dolittle's method and use it to solve for .
Solution:
- ; , .
- , ; .
- . Hence
Check : row 3 is ✓. 4. Forward solve : , , . 5. Back solve : ; ; . 6. Answer: .
Predicted Q2 (7 Marks | Eigen Decomposition and SVD)
Q (predicted from “Eigen Value Decomposition and Singular Value Decomposition”): For , find the eigenvalues and eigenvectors, write , compute , and state the SVD of .
Solution:
- Characteristic equation: , so . Check trace and determinant ✓.
- For : , take . For : .
- With , , and ,
- .
- Normalised eigenvectors , . Since is symmetric positive definite, its SVD is with and .
- Answer: eigenvalues ; ; SVD as above.
Predicted Q3 (7 Marks | QR Decomposition and Kernel/Range)
Q (predicted from “QR Decomposition” and “Kernel and Range”): Using Gram–Schmidt, find the QR decomposition of (columns , ). Also find the kernel and range of the linear map whose matrix is .
Solution:
- , and .
- .
- , so and .
- Hence
- For with matrix : , give , nullity 1. Columns and are independent and span the range, so rank 2 and ; rank + nullity ✓.
- Answer: QR as shown; kernel and range as shown.
8. Practice Questions (Self-Test)
- (2 Marks) Define a singular value and state its relation to the eigenvalues of .
- (7 Marks) Factorise by Dolittle's method and solve . (Ans: .)
- (7 Marks) Find the eigenvalues of and compute using EVD.
- (7 Marks) Apply Gram–Schmidt to , and write .
- (2 Marks) For and , compute and verify Cauchy–Schwarz. (Ans: .)