Question 7 of 7: Cholesky factorization of a symmetric positive-definite matrix
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — May 2015 — 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) — power-series solutions of ODEs about an ordinary point (Ch. 5), Fourier series and the Fourier transform (Ch. 11), least-squares curve fitting and Cramer’s rule (Ch. 7, 19.7), Romberg integration, bisection and Halley’s (second-order Newton) iteration (Ch. 19), Cholesky factorization of a symmetric positive-definite matrix (Ch. 20.4).
Question 7: Cholesky factorization of a symmetric positive-definite matrix (a) 10 marks; (b) 10 marks
Given. $A=\begin{pmatrix}16&-8&-4\\-8&29&12\\-4&12&41\end{pmatrix}$, symmetric positive-definite; right-hand side $b=(-20,80,20)^T$.
Find. (a) $L$ with $A=LL^T$; (b) solve $Ax=b$ using $L$ and $L^T$.
Approach. Cholesky's algorithm: build $L$ column by column from $l_{ii}=\sqrt{a_{ii}-\sum_{k\lt i}l_{ik}^2}$ and $l_{ji}=\big(a_{ji}-\sum_{k\lt i}l_{jk}l_{ik}\big)/l_{ii}$; then forward-substitute $Lw=b$ and back-substitute $L^Tx=w$.
First column. $l_{11}=\sqrt{16}=4$; $l_{21}=a_{21}/l_{11}=-8/4=-2$; $l_{31}=a_{31}/l_{11}=-4/4=-1$.
Second column. $l_{22}=\sqrt{a_{22}-l_{21}^2}=\sqrt{29-4}=5$; $l_{32}=(a_{32}-l_{31}l_{21})/l_{22}=(12-(-1)(-2))/5=10/5=2$.
Third column.
$$\boxed{l_{33}=\sqrt{a_{33}-l_{31}^2-l_{32}^2}=\sqrt{41-1-4}=6}$$
$$L=\begin{pmatrix}4&0&0\\-2&5&0\\-1&2&6\end{pmatrix},\qquad L^T=\begin{pmatrix}4&-2&-1\\0&5&2\\0&0&6\end{pmatrix}$$
(check: $LL^T=A$ holds exactly.)
Back substitution $L^Tx=w$ (solve for $z,y,x$ in that order).
$$6z=-\dfrac{13}{6}\Rightarrow z=-\dfrac{13}{36}=-0.36111$$
$$5y+2z=14\Rightarrow y=\dfrac{14-2(-13/36)}{5}=\dfrac{53}{18}=2.94444$$
$$4x-2y-z=-5\Rightarrow x=\dfrac{-5+2(53/18)+(-13/36)}{4}=\dfrac{19}{144}=0.13194$$
$$\boxed{(x,y,z)=(0.13194,\ 2.94444,\ -0.36111)}$$
(checked by substituting back into all three original equations.)