Top Banner Ad

AAS203D — Unit 5: Applied Linear Algebra

Table of Contents (12 sections)

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:

  1. Dolittle: set LL unit lower-triangular and UU upper-triangular; fill u1j=a1ju_{1j}=a_{1j}, li1=ai1/u11l_{i1}=a_{i1}/u_{11}, then uij=aij−∑k<ilikukju_{ij}=a_{ij}-\sum_{k<i}l_{ik}u_{kj} and lij=(aij−∑k<jlikukj)/ujjl_{ij}=(a_{ij}-\sum_{k<j}l_{ik}u_{kj})/u_{jj}.
  2. Eigen step: solve det⁡(A−λI)=0\det(A-\lambda I)=0; check the trace equals ∑λi\sum\lambda_i and determinant equals ∏λi\prod\lambda_i before writing A=PDP−1A=PDP^{-1}.
  3. QR by Gram–Schmidt: q1=a1/∥a1∥q_1=a_1/\|a_1\|, uk=ak−∑j<k(qjTak)qju_k=a_k-\sum_{j<k}(q_j^Ta_k)q_j, qk=uk/∥uk∥q_k=u_k/\|u_k\|; place the qq's as columns of QQ and the inner products as entries of RR.
  4. Kernel/range: kernel ={x:Tx=0}=\{x:Tx=0\} (solve homogeneous system), rank =dim⁡(range)=\dim(\text{range}), and rank + nullity == number of columns.
  5. Norms: ∥x∥2=xTx\|x\|_2=\sqrt{x^Tx}, and Cauchy–Schwarz ∣⟨x,y⟩∣≤∥x∥∥y∥|\langle x,y\rangle|\le\|x\|\|y\|; these two lines secure the theory part of a 7-mark answer.

1. Eigenvalue Decomposition and Singular Value Decomposition

Eigenvalue: for a square matrix AA, a scalar λ\lambda is an eigenvalue if Av=λvAv=\lambda v for some non-zero vector vv, called an eigenvector. The characteristic equation is det⁡(A−λI)=0\det(A-\lambda I)=0. Eigenvalue decomposition (EVD): if AA has nn linearly independent eigenvectors,

A=PDP−1,P=[ v1 v2 … vn ],D=diag⁡(λ1,…,λn).\boxed{A=PDP^{-1}},\quad P=[\,v_1\ v_2\ \dots\ v_n\,],\quad D=\operatorname{diag}(\lambda_1,\dots,\lambda_n).

Then Ak=PDkP−1A^k=PD^kP^{-1}, which is why EVD speeds up repeated matrix powers.

Singular Value Decomposition (SVD): for any m×nm\times n matrix AA (not necessarily square),

A=UΣVT,\boxed{A=U\Sigma V^T},

where UU and VV have orthonormal columns and Σ=diag⁡(σ1,…,σr)≥0\Sigma=\operatorname{diag}(\sigma_1,\dots,\sigma_r)\ge0. The singular values satisfy σi=λi(ATA)\sigma_i=\sqrt{\lambda_i(A^TA)}.

Case EVD SVD
Matrix shape Square only Any m×nm\times n
Vectors Eigenvectors of AA Left singular vectors uiu_i, right singular vectors viv_i
Scaling Eigenvalues may be negative/complex Singular values non-negative real
For symmetric positive semi-definite AA A=QΛQTA=Q\Lambda Q^T U=V=QU=V=Q, Σ=Λ\Sigma=\Lambda

Worked link. For A=(2112)A=\begin{pmatrix}2&1\\1&2\end{pmatrix}, λ=3,1\lambda=3,1 with unit eigenvectors 12(1,1)T\frac1{\sqrt2}(1,1)^T and 12(1,−1)T\frac1{\sqrt2}(1,-1)^T. Hence A=Qdiag⁡(3,1)QTA=Q\operatorname{diag}(3,1)Q^T, and the same QQ serves as both UU and VV in the SVD because AA 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 Ax=bAx=b becomes two triangular solves. In Dolittle LU, A=LUA=LU with LL unit lower triangular (lii=1l_{ii}=1) and UU upper triangular.

Derivation of the recurrence. From ∑k=1min⁡(i,j)likukj=aij\sum_{k=1}^{\min(i,j)}l_{ik}u_{kj}=a_{ij} with lii=1l_{ii}=1:

  • First row: u1j=a1ju_{1j}=a_{1j}.
  • First column: li1=ai1/u11l_{i1}=a_{i1}/u_{11}.
  • For i≤ji\le j: uij=aij−∑k=1i−1likukju_{ij}=a_{ij}-\sum_{k=1}^{i-1}l_{ik}u_{kj}.
  • For i>ji>j: lij=aij−∑k=1j−1likukjujjl_{ij}=\dfrac{a_{ij}-\sum_{k=1}^{j-1}l_{ik}u_{kj}}{u_{jj}}.

Then solve Ly=bLy=b (forward substitution) and Ux=yUx=y (back substitution). Pivoting is required if a diagonal ujj=0u_{jj}=0.

%%{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 AA with independent columns a1,…,ana_1,\dots,a_n, Gram–Schmidt produces orthonormal columns q1,…,qnq_1,\dots,q_n:

ν1=a1,q1=u1∥u1∥,νk=ak−∑j=1k−1(qjTak)qj,qk=uk∥uk∥.\nu_1=a_1,\quad q_1=\frac{u_1}{\|u_1\|},\qquad\nu_k=a_k-\sum_{j=1}^{k-1}(q_j^Ta_k)q_j,\quad q_k=\frac{u_k}{\|u_k\|}.

Then A=QRA=QR with Q=[q1 … qn]Q=[q_1\ \dots\ q_n] and

R=(q1Ta1q1Ta2…0q2Ta2…⋮⋱).R=\begin{pmatrix}q_1^Ta_1 & q_1^Ta_2 & \dots\\ 0 & q_2^Ta_2 & \dots\\ \vdots & & \ddots\end{pmatrix}.

Because QTQ=IQ^TQ=I, least-squares problems reduce to Rx=QTbRx=Q^Tb. Householder reflections and Givens rotations are more stable computer implementations of the same factorisation.

Examiner Tip: In a QR trace, show each projection coefficient qjTakq_j^Ta_k 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: T:V→WT:V\to W satisfies T(u+v)=T(u)+T(v)T(u+v)=T(u)+T(v) and T(cu)=cT(u)T(cu)=cT(u). Applying TT to the standard basis vectors of Rn\mathbb{R}^n and placing the images as columns gives the matrix representation [T][T].

Example. For T(x,y,z)=(x+y, y+z, 0)T(x,y,z)=(x+y,\ y+z,\ 0):

T(e1)=(1,0,0), T(e2)=(1,1,0), T(e3)=(0,1,0),[T]=(110011000).T(e_1)=(1,0,0),\ T(e_2)=(1,1,0),\ T(e_3)=(0,1,0),\quad [T]=\begin{pmatrix}1&1&0\\0&1&1\\0&0&0\end{pmatrix}.
ker⁡T={v:T(v)=0};Range⁡(T)={T(v):v∈V}\ker T=\{v:T(v)=0\};\qquad \operatorname{Range}(T)=\{T(v):v\in V\} rank⁡(T)+nullity⁡(T)=dim⁡V\boxed{\operatorname{rank}(T)+\operatorname{nullity}(T)=\dim V}

For the example, x+y=0x+y=0 and y+z=0y+z=0 give ker⁡T=span⁡{(−1,1,−1)T}\ker T=\operatorname{span}\{(-1,1,-1)^T\} (nullity 1), while the range is the xyxy-plane span⁡{(1,0,0)T,(0,1,0)T}\operatorname{span}\{(1,0,0)^T,(0,1,0)^T\} (rank 2); 2+1=32+1=3 columns.


5. Inner Product Spaces and Norms

Inner product: ⟨x,y⟩\langle x,y\rangle is a scalar satisfying positivity, symmetry, and linearity. In Rn\mathbb{R}^n, ⟨x,y⟩=xTy=∑xiyi\langle x,y\rangle=x^Ty=\sum x_iy_i. Norm: ∥x∥=⟨x,x⟩\|x\|=\sqrt{\langle x,x\rangle}, satisfying ∥x∥≥0\|x\|\ge0, ∥αx∥=∣α∣∥x∥\|\alpha x\|=|\alpha|\|x\|, and the triangle inequality.

Norm Formula Typical use
Euclidean (L2L_2) ∥x∥2=∑xi2\|x\|_2=\sqrt{\sum x_i^2} Geometry, least squares
Manhattan (L1L_1) $|x|_1=\sum x_i
Maximum (L∞L_\infty) $|x|_\infty=\max_i x_i

Cauchy–Schwarz: ∣⟨x,y⟩∣≤∥x∥ ∥y∥|\langle x,y\rangle|\le\|x\|\,\|y\|; equality holds when one vector is a scalar multiple of the other. Orthogonality: ⟨x,y⟩=0\langle x,y\rangle=0, the condition used in Gram–Schmidt.


6. Applications Named in the Syllabus

Syllabus application Linear-algebra object Concrete use
2D & 3D graphics Rotation (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix}\cos\theta&-\sin\theta\sin\theta&\cos\theta\end{pmatrix}, scaling and translation via homogeneous 3×33\times3 / 4×44\times4 matrices A point vector is multiplied by a sequence of matrices to rotate, scale and move it
Neural Networks Layer computation y=σ(Wx+b)y=\sigma(Wx+b), with weight matrix WW Forward pass is repeated matrix–vector multiplication; SVD/PCA can compress weight matrices
Cryptography Invertible matrix KK over integers modulo 26 (Hill cipher) Encryption c=Kp mod 26c=Kp\bmod 26; decryption needs K−1 mod 26K^{-1}\bmod 26, which exists only when det⁡K\det K 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 A=(211433879)A=\begin{pmatrix}2&1&1\\4&3&3\\8&7&9\end{pmatrix} into LULU by Dolittle's method and use it to solve Ax=bAx=b for b=(1,4,9)Tb=(1,4,9)^T.

Solution:

  1. u11=2,u12=1,u13=1u_{11}=2,u_{12}=1,u_{13}=1; l21=4/2=2l_{21}=4/2=2, l31=8/2=4l_{31}=8/2=4.
  2. u22=3−2(1)=1u_{22}=3-2(1)=1, u23=3−2(1)=1u_{23}=3-2(1)=1; l32=(7−4⋅1)/1=3l_{32}=(7-4\cdot1)/1=3.
  3. u33=9−4(1)−3(1)=2u_{33}=9-4(1)-3(1)=2. Hence
L=(100210431),U=(211011002).L=\begin{pmatrix}1&0&0\\2&1&0\\4&3&1\end{pmatrix},\quad U=\begin{pmatrix}2&1&1\\0&1&1\\0&0&2\end{pmatrix}.

Check LU=ALU=A: row 3 is (8, 4+3, 4+3+2)=(8,7,9)(8,\,4+3,\,4+3+2)=(8,7,9) ✓. 4. Forward solve Ly=bLy=b: y1=1y_1=1, y2=4−2=2y_2=4-2=2, y3=9−4−3(2)=−1y_3=9-4-3(2)=-1. 5. Back solve Ux=yUx=y: 2x3=−1⇒x3=−122x_3=-1\Rightarrow x_3=-\tfrac12; x2+x3=2⇒x2=52x_2+x_3=2\Rightarrow x_2=\tfrac52; 2x1+x2+x3=1⇒2x1+2=1⇒x1=−122x_1+x_2+x_3=1\Rightarrow 2x_1+2=1\Rightarrow x_1=-\tfrac12. 6. Answer: x=(−12, 52, −12)Tx=(-\tfrac12,\ \tfrac52,\ -\tfrac12)^T.


Predicted Q2 (7 Marks | Eigen Decomposition and SVD)

Q (predicted from “Eigen Value Decomposition and Singular Value Decomposition”): For A=(2112)A=\begin{pmatrix}2&1\\1&2\end{pmatrix}, find the eigenvalues and eigenvectors, write A=PDP−1A=PDP^{-1}, compute A5A^5, and state the SVD of AA.

Solution:

  1. Characteristic equation: det⁡(A−λI)=(2−λ)2−1=λ2−4λ+3=(λ−3)(λ−1)=0\det(A-\lambda I)=(2-\lambda)^2-1=\lambda^2-4\lambda+3=(\lambda-3)(\lambda-1)=0, so λ1=3,λ2=1\lambda_1=3,\lambda_2=1. Check trace 4=3+14=3+1 and determinant 3=3⋅13=3\cdot1 ✓.
  2. For λ=3\lambda=3: (A−3I)v=0⇒−v1+v2=0(A-3I)v=0\Rightarrow -v_1+v_2=0, take v1=(1,1)Tv_1=(1,1)^T. For λ=1\lambda=1: v2=(1,−1)Tv_2=(1,-1)^T.
  3. With P=(111−1)P=\begin{pmatrix}1&1\\1&-1\end{pmatrix}, P−1=12(111−1)P^{-1}=\frac12\begin{pmatrix}1&1\\1&-1\end{pmatrix}, and D=diag⁡(3,1)D=\operatorname{diag}(3,1),
A=PDP−1.A=PDP^{-1}.
  1. A5=PD5P−1=12(35+135−135−135+1)=(122121121122)A^5=PD^5P^{-1}=\frac12\begin{pmatrix}3^5+1&3^5-1\\3^5-1&3^5+1\end{pmatrix}=\begin{pmatrix}122&121\\121&122\end{pmatrix}.
  2. Normalised eigenvectors u1=12(1,1)Tu_1=\frac1{\sqrt2}(1,1)^T, u2=12(1,−1)Tu_2=\frac1{\sqrt2}(1,-1)^T. Since AA is symmetric positive definite, its SVD is A=UΣVTA=U\Sigma V^T with U=V=12(111−1)U=V=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix} and Σ=diag⁡(3,1)\Sigma=\operatorname{diag}(3,1).
  3. Answer: eigenvalues 3,13,1; A5=(122121121122)A^5=\begin{pmatrix}122&121\\121&122\end{pmatrix}; 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 A=(111001)A=\begin{pmatrix}1&1\\1&0\\0&1\end{pmatrix} (columns a1=(1,1,0)Ta_1=(1,1,0)^T, a2=(1,0,1)Ta_2=(1,0,1)^T). Also find the kernel and range of the linear map whose matrix is (110011000)\begin{pmatrix}1&1&0\\0&1&1\\0&0&0\end{pmatrix}.

Solution:

  1. q1=a1/∥a1∥=12(1,1,0)Tq_1=a_1/\|a_1\|=\frac1{\sqrt2}(1,1,0)^T, and r12=q1Ta2=12r_{12}=q_1^Ta_2=\frac1{\sqrt2}.
  2. u2=a2−r12q1=(1,0,1)−(12,12,0)=(12,−12,1)u_2=a_2-r_{12}q_1=(1,0,1)-(\tfrac12,\tfrac12,0)=(\tfrac12,-\tfrac12,1).
  3. ∥u2∥=14+14+1=32=62\|u_2\|=\sqrt{\tfrac14+\tfrac14+1}=\sqrt{\tfrac32}=\frac{\sqrt6}{2}, so q2=16(1,−1,2)Tq_2=\frac1{\sqrt6}(1,-1,2)^T and r22=62r_{22}=\frac{\sqrt6}{2}.
  4. Hence
Q=(1/21/61/2−1/602/6),R=(21/206/2).Q=\begin{pmatrix}1/\sqrt2&1/\sqrt6\\1/\sqrt2&-1/\sqrt6\\0&2/\sqrt6\end{pmatrix},\quad R=\begin{pmatrix}\sqrt2&1/\sqrt2\\0&\sqrt6/2\end{pmatrix}.
  1. For TT with matrix M=(110011000)M=\begin{pmatrix}1&1&0\\0&1&1\\0&0&0\end{pmatrix}: x+y=0x+y=0, y+z=0y+z=0 give ker⁡T={(−t,t,−t)}=span⁡{(−1,1,−1)T}\ker T=\{(−t,t,−t)\}=\operatorname{span}\{(-1,1,-1)^T\}, nullity 1. Columns (1,0,0)T(1,0,0)^T and (1,1,0)T(1,1,0)^T are independent and span the range, so rank 2 and Range⁡(T)=span⁡{(1,0,0)T,(0,1,0)T}\operatorname{Range}(T)=\operatorname{span}\{(1,0,0)^T,(0,1,0)^T\}; rank + nullity =3=3 ✓.
  2. Answer: QR as shown; kernel and range as shown.

8. Practice Questions (Self-Test)

  1. (2 Marks) Define a singular value and state its relation to the eigenvalues of ATAA^TA.
  2. (7 Marks) Factorise (1234)\begin{pmatrix}1&2\\3&4\end{pmatrix} by Dolittle's method and solve Ax=(5,11)TAx=(5,11)^T. (Ans: x=(1,2)Tx=(1,2)^T.)
  3. (7 Marks) Find the eigenvalues of (3113)\begin{pmatrix}3&1\\1&3\end{pmatrix} and compute A10A^{10} using EVD.
  4. (7 Marks) Apply Gram–Schmidt to a1=(1,0,1)Ta_1=(1,0,1)^T, a2=(0,1,1)Ta_2=(0,1,1)^T and write A=QRA=QR.
  5. (2 Marks) For u=(1,2,2)u=(1,2,2) and v=(2,−1,0)v=(2,-1,0), compute ⟨u,v⟩\langle u,v\rangle and verify Cauchy–Schwarz. (Ans: 0≤3⋅50\le3\cdot\sqrt5.)