NivaarExam PrepOfficial exam papers ↗

04-BS-5 · May 2014

Question 7 of 7: Cholesky Factorization and Solving a Linear System

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — May 2014 — 04-BS-5 Advanced Mathematics. Three-hour, closed-book exam (one double-sided 8.5"×11" aid sheet permitted; approved Casio/Sharp calculator allowed). Format: seven questions of equal value (20 marks each, with internal splits as marked); any five constitute a complete paper and only the first five appearing in the answer book are marked. All seven are solved below for completeness.

Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — Sturm–Liouville eigenproblems, Fourier series and the Fourier transform (Ch. 11), least-squares curve fitting, Lagrange/Newton interpolation, Romberg integration, and root-finding by bisection/Newton/fixed-point iteration (Ch. 19), Cholesky factorization (Ch. 20); Strang, Introduction to Linear Algebra (6th ed., Wellesley-Cambridge) — symmetric positive-definite systems and Cholesky factorization.

Question 7: Cholesky Factorization and Solving a Linear System (10+10 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given (a). The symmetric positive-definite matrix $A=\begin{bmatrix}16&-8&12\\-8&5&-6\\12&-6&13\end{bmatrix}$.

Find (a). The lower-triangular $L$ with $A=LL^T$.

Approach (a). Apply the Cholesky recursion column by column: $l_{ii}=\sqrt{a_{ii}-\sum_{k\lt i}l_{ik}^2}$, $l_{ji}=\big(a_{ji}-\sum_{k\lt i}l_{jk}l_{ik}\big)/l_{ii}$ for $j\gt i$.

  1. Column 1. $l_{11}=\sqrt{16}=4$; $l_{21}=a_{21}/l_{11}=-8/4=-2$; $l_{31}=a_{31}/l_{11}=12/4=3$.
  2. Column 2. $l_{22}=\sqrt{a_{22}-l_{21}^2}=\sqrt{5-4}=1$; $l_{32}=\big(a_{32}-l_{31}l_{21}\big)/l_{22}=\big(-6-(3)(-2)\big)/1=0$.
  3. Column 3. $l_{33}=\sqrt{a_{33}-l_{31}^2-l_{32}^2}=\sqrt{13-9-0}=2$. $$\boxed{L=\begin{bmatrix}4&0&0\\-2&1&0\\3&0&2\end{bmatrix}}$$ Check: $LL^T=\begin{bmatrix}16&-8&12\\-8&5&-6\\12&-6&13\end{bmatrix}=A$. ✓

Given (b). The system $Ax=b$ with $b=(-16,\,11,\,-8)^T$, and the factorization $A=LL^T$ from part (a).

Find (b). $x_1,x_2,x_3$.

Approach (b). Solve two triangular systems: forward-substitute $Ly=b$, then back-substitute $L^Tx=y$.

  1. Forward substitution, $Ly=b$. $$4y_1=-16\Rightarrow y_1=-4;\qquad -2y_1+y_2=11\Rightarrow y_2=11-8=3;\qquad 3y_1+2y_3=-8\Rightarrow y_3=\frac{-8+12}{2}=2$$
  2. Back substitution, $L^Tx=y$. $L^T=\begin{bmatrix}4&-2&3\\0&1&0\\0&0&2\end{bmatrix}$. $$2x_3=2\Rightarrow x_3=1;\qquad x_2=y_2=3;\qquad 4x_1-2(3)+3(1)=-4\Rightarrow x_1=\frac{-4+6-3}{4}=-\frac14$$ $$\boxed{x_1=-\tfrac14,\quad x_2=3,\quad x_3=1}$$
  3. Check against the original equations. $16(-\tfrac14)-8(3)+12(1)=-4-24+12=-16$; $-8(-\tfrac14)+5(3)-6(1)=2+15-6=11$; $12(-\tfrac14)-6(3)+13(1)=-3-18+13=-8$ — all three match $b$.
Cholesky factor and system solution
QuantityValue
L[[4,0,0],[−2,1,0],[3,0,2]]
x1−1/4
x23
x31
Back to the paper →