BIT203 ยท 2082 ยท 5 marks
Solve the following system of linear equation using Cholesky decomposition method:
Solve the following system of linear equation using Cholesky decomposition method:
$$ \begin{aligned} 4x + 6y - 8z &= -8 \ 6x + 13y - 11z &= -1 \ -8x - 11y + 29z &= 57 \end{aligned} $$
[5]
Cholesky Decomposition Method
Given
$$A = \begin{bmatrix} 4 & 6 & -8 \ 6 & 13 & -11 \ -8 & -11 & 29 \end{bmatrix}, \quad B = \begin{bmatrix} -8 \ -1 \ 57 \end{bmatrix}$$
$A$ is symmetric, so $A = LL^T$ applies.
Step 2 - Compute L
Column 1: $$l_{11} = \sqrt{4} = 2$$ $$l_{21} = \frac{6}{2} = 3, \quad l_{31} = \frac{-8}{2} = -4$$
Column 2: $$l_{22} = \sqrt{13 - 3^2} = \sqrt{4} = 2$$ $$l_{32} = \frac{-11 - (-4)(3)}{2} = \frac{1}{2} = 0.5$$
Column 3: $$l_{33} = \sqrt{29 - (-4)^2 - (0.5)^2} = \sqrt{29 - 16 - 0.25} = \sqrt{12.75} \approx 3.5707$$
$$L = \begin{bmatrix} 2 & 0 & 0 \ 3 & 2 & 0 \ -4 & 0.5 & 3.5707 \end{bmatrix}$$
Step 3 - Forward Substitution ($LY = B$)
$$y_1 = \frac{-8}{2} = -4$$ $$y_2 = \frac{-1 - 3(-4)}{2} = \frac{11}{2} = 5.5$$ $$y_3 = \frac{57 - (-4)(-4) - (0.5)(5.5)}{3.5707} = \frac{57 - 16 - 2.75}{3.5707} = \frac{38.25}{3.5707} \approx 10.7121$$
Step 4 - Back Substitution ($L^T X = Y$)
$$z = \frac{10.7121}{3.5707} \approx 3$$ $$y = \frac{5.5 - 0.5(3)}{2} = \frac{4}{2} = 2$$ $$x = \frac{-4 - 3(2) - (-4)(3)}{2} = \frac{2}{2} = 1$$
Verification
- Eq1: $4(1)+6(2)-8(3) = 4+12-24 = -8$ โ
- Eq2: $6(1)+13(2)-11(3) = 6+26-33 = -1$ โ
- Eq3: $-8(1)-11(2)+29(3) = -8-22+87 = 57$ โ
Result
$$\boxed{x = 1, \quad y = 2, \quad z = 3}$$
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.