Question 7 of 7: LU (Doolittle) Decomposition and Solving a Linear System
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Examinations, December 2019 — 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. 11 (Sturm–Liouville Problems, Fourier Series, Fourier Integrals and Transforms), Ch. 19 (Numerics in General: interpolation, numerical differentiation, Romberg integration, iterative equation solving), Ch. 20 (Numeric Linear Algebra: 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).
Question 7: LU (Doolittle) Decomposition and Solving a Linear System (a: 10 marks; b: 10 marks)
Given. $A=\begin{pmatrix}6&-1&5\\-18&7&-13\\12&18&21\end{pmatrix}$, unit-lower-triangular $L$, upper-triangular $U$; right-hand side $\mathbf{b}=(8,-30,-13)^T$.
Find. (a) $L$ and $U$ such that $A=LU$. (b) $\mathbf{x}=(x_1,x_2,x_3)^T$ via forward then back substitution — no other solution method (e.g. Cramer's rule, direct Gaussian elimination on the augmented system) is accepted.
Approach. Doolittle's method: eliminate column by column, recording each multiplier as an entry of $L$, and reading the reduced rows off as $U$. Then solve $L\mathbf{y}=\mathbf{b}$ by forward substitution, and $U\mathbf{x}=\mathbf{y}$ by back substitution.
Row 1 of $U$; first multipliers. $u_{11}=6,\ u_{12}=-1,\ u_{13}=5$. Eliminate column 1:
$$l_{21}=\frac{-18}{6}=-3,\qquad l_{31}=\frac{12}{6}=2$$
Row 3 of $U$. $u_{33}=21-l_{31}u_{13}-l_{32}u_{23}=21-(2)(5)-(5)(2)=1$.
$$\boxed{L=\begin{pmatrix}1&0&0\\-3&1&0\\2&5&1\end{pmatrix},\qquad U=\begin{pmatrix}6&-1&5\\0&4&2\\0&0&1\end{pmatrix}}$$
Check: $LU=A$ exactly (verified by direct multiplication).
Back substitution, $U\mathbf{x}=\mathbf{y}$.
$$x_3=\frac{1}{1}=1;\qquad 4x_2+2(1)=-6\Rightarrow x_2=-2;\qquad 6x_1-(-2)+5(1)=8\Rightarrow x_1=\frac16$$
$$\boxed{x_1=\tfrac16,\qquad x_2=-2,\qquad x_3=1}$$
Check: substituting back into all three original equations reproduces $8,-30,-13$ exactly.