Question 7 of 7: Cholesky Decomposition and Solution of a Linear System
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Examinations, May 2018 — 04-BS-5 Advanced Mathematics, 3 hours, closed book (approved Casio/Sharp calculator and one double-sided aid sheet permitted). Any five of the seven questions constitute a complete paper and all questions are of equal value; all seven are answered below as a full study resource.
Reference texts: Kreyszig, Advanced Engineering Mathematics, 10th ed. (Wiley) — Ch. 5 (Series Solutions of ODEs about an ordinary point), Ch. 11 (Fourier Series, Fourier Integrals and Transforms), Ch. 19 (Numerics in General: interpolation, numerical differentiation, Romberg integration, iterative equation solving), Ch. 20 (Numeric Linear Algebra: Cholesky/LU factorization). Supporting: Chapra & Canale, Numerical Methods for Engineers, 7th ed. — Ch. 5–6 (bracketing and open root-finding methods), Ch. 18 (interpolation), Ch. 22 (Romberg integration); Strang, Introduction to Linear Algebra, 6th ed. — Ch. 2 (Cholesky/LU factorization).
Question 7: Cholesky Decomposition and Solution of a Linear System (a: 10; b: 10 marks)
Given. The symmetric positive-definite matrix $A=\begin{bmatrix}25&5&15\\5&5&9\\15&9&43\end{bmatrix}$ and the right-hand side $b=(-10,-1,8)^T$.
Find. (a) The Cholesky factor $L$ with $A=LL^T$. (b) The solution $x=(x_1,x_2,x_3)$ of $Ax=b$.
Approach. Equate entries of $LL^T$ to $A$ column-by-column to solve for $L$'s six unknowns in sequence, then solve $Ax=b$ in two cheap triangular sweeps: forward substitution $Lz=b$, then back substitution $L^Tx=z$. This is exactly the same linear system as a Gaussian-elimination solve, but recasting it through the symmetric factor $L$ roughly halves the arithmetic and, unlike raw elimination, never needs a pivoting strategy because positive-definiteness already guarantees every square root argument stays positive.
(a) First column: solve for $l_{11},l_{21},l_{31}$. Matching $(LL^T)_{11}=l_{11}^2=25$, $(LL^T)_{21}=l_{11}l_{21}=5$, $(LL^T)_{31}=l_{11}l_{31}=15$:
$$l_{11}=\sqrt{25}=5,\qquad l_{21}=\dfrac{5}{5}=1,\qquad l_{31}=\dfrac{15}{5}=3$$
Second column: solve for $l_{22},l_{32}$. $(LL^T)_{22}=l_{21}^2+l_{22}^2=5\ \Rightarrow\ l_{22}=\sqrt{5-1^2}=2$. $(LL^T)_{32}=l_{31}l_{21}+l_{32}l_{22}=9\ \Rightarrow\ l_{32}=\dfrac{9-3(1)}{2}=3$.
Third column: solve for $l_{33}$. $(LL^T)_{33}=l_{31}^2+l_{32}^2+l_{33}^2=43\ \Rightarrow\ l_{33}=\sqrt{43-3^2-3^2}=\sqrt{25}=5$.
$$\boxed{L=\begin{bmatrix}5&0&0\\1&2&0\\3&3&5\end{bmatrix}}\qquad(\text{check: }LL^T=A\ \checkmark)$$
Back substitution $L^Tx=z$. With $L^T=\begin{bmatrix}5&1&3\\0&2&3\\0&0&5\end{bmatrix}$: $5x_3=2.5\Rightarrow x_3=0.5$. $2x_2+3(0.5)=0.5\Rightarrow x_2=\dfrac{0.5-1.5}{2}=-0.5$. $5x_1+(-0.5)+3(0.5)=-2\Rightarrow x_1=\dfrac{-2+0.5-1.5}{5}=-0.6$.
$$\boxed{x_1=-0.6,\quad x_2=-0.5,\quad x_3=0.5}$$
Check: $25(-0.6)+5(-0.5)+15(0.5)=-15-2.5+7.5=-10\ \checkmark$; the other two equations check similarly.