Linear-Algebra-Done-Right Β· Unit 20 Β· Video 4 Β· Interactive Practice

Cholesky Factorization: Positive Definite B=Rβˆ—RB = R^*R

IKey Formulas

FormulaNameWhat it says
T∈L(V)T \in \mathcal{L}(V) self-adjoint: TT positive and invertible β€…β€ŠβŸΊβ€…β€ŠβŸ¨Tv,v⟩>0\iff \langle Tv, v\rangle > 0 for every vβ‰ 0v \neq 0Positive invertible testUses: TT positive and ⟨Tv,v⟩=0\langle Tv, v\rangle = 0 β‡’\Rightarrow Tv=0Tv = 0; injective operators on finite-dimensional VV are invertible
B∈Fn,nB \in \mathbf{F}^{n,n}, Bβˆ—=BB^* = B and ⟨Bx,x⟩>0\langle Bx, x\rangle > 0 for every xβ‰ 0x \neq 0Positive definite matrixA positive invertible operator on Fn\mathbf{F}^n (Euclidean inner product), written as a matrix; the signs of the entries decide nothing
BB positive definite β‡’\Rightarrow B=Rβˆ—RB = R^*R for exactly one upper-triangular R∈Fn,nR \in \mathbf{F}^{n,n} with positive diagonalCholesky factorizationRβˆ—R^* is lower triangular, so BB is a lower-triangular matrix times its own conjugate transpose
B=Aβˆ—AB = A^*A, A=QRA = QR (QQ unitary) β‡’\Rightarrow B=Rβˆ—Qβˆ—QR=Rβˆ—RB = R^*Q^*QR = R^*RExistence proofAny AA with Aβˆ—A=BA^*A = B works; AA is invertible, so its QR factorization exists, and then ⟨Bx,x⟩=βˆ₯Rxβˆ₯2\langle Bx, x\rangle = \|Rx\|^2

Key Insight: If DD is diagonal with ∣dk∣=1|d_k| = 1, then (DR)βˆ—(DR)=Rβˆ—Dβˆ—DR=Rβˆ—R(DR)^*(DR) = R^*D^*DR = R^*R, so triangular factors with some negative (or non-real) diagonal entries always exist; requiring a positive diagonal forces D=ID = I, and that is what makes RR unique.

IIPositive Definite Means ⟨Bx,x⟩=βˆ₯Rxβˆ₯2>0\langle Bx, x\rangle = \|Rx\|^2 > 0

For real symmetric B=(abbc)B = \begin{pmatrix} a & b \\ b & c \end{pmatrix}, completing the square either writes ⟨Bx,x⟩\langle Bx, x\rangle as βˆ₯Rxβˆ₯2\|Rx\|^2 or exhibits an xβ‰ 0x \neq 0 with ⟨Bx,xβŸ©β‰€0\langle Bx, x\rangle \le 0.

IIIEvery AA with Aβˆ—A=BA^*A = B Yields the Same RR

Each A=QRA = QR with QQ unitary satisfies Aβˆ—A=BA^*A = B, and Gram–Schmidt on its columns always returns the same RR.

IVQuiz Questions

Problem 1 Β· A 2Γ—22 \times 2 Cholesky Factor

Given: B=(9665)B = \begin{pmatrix} 9 & 6 \\ 6 & 5 \end{pmatrix}, which is positive definite. Find its Cholesky factor: the upper-triangular RR with positive diagonal and Rβˆ—R=BR^*R = B.

βœ… Correct! Rβˆ—R=(3021)(3201)=(9665)R^*R = \begin{pmatrix} 3 & 0 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} 3 & 2 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 9 & 6 \\ 6 & 5 \end{pmatrix}, and the diagonal 3,13, 1 is positive.
❌ Not the Cholesky factor. This matrix does satisfy Rβˆ—R=BR^*R = B (it is DRDR with D=diag⁑(1,βˆ’1)D = \operatorname{diag}(1, -1)), but its diagonal entry βˆ’1-1 is negative; uniqueness holds only among factors with positive diagonal.
❌ Not quite. This is lower triangular; it is Rβˆ—R^*, not RR. Its own product (3201)(3021)=(13221)β‰ B\begin{pmatrix} 3 & 2 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 3 & 0 \\ 2 & 1 \end{pmatrix} = \begin{pmatrix} 13 & 2 \\ 2 & 1 \end{pmatrix} \neq B.
❌ Not quite. The (2,2)(2,2) entry of Rβˆ—RR^*R is r122+r222r_{12}^2 + r_{22}^2, not r222r_{22}^2 alone: with r22=5r_{22} = \sqrt{5} it is 4+5=9β‰ 54 + 5 = 9 \neq 5.
Show solution

Write R=(r11r120r22)R = \begin{pmatrix} r_{11} & r_{12} \\ 0 & r_{22} \end{pmatrix} with r11,r22>0r_{11}, r_{22} > 0. Then

Rβˆ—R=(r110r12r22)(r11r120r22)=(r112r11r12r11r12r122+r222).R^*R = \begin{pmatrix} r_{11} & 0 \\ r_{12} & r_{22} \end{pmatrix}\begin{pmatrix} r_{11} & r_{12} \\ 0 & r_{22} \end{pmatrix} = \begin{pmatrix} r_{11}^2 & r_{11}r_{12} \\ r_{11}r_{12} & r_{12}^2 + r_{22}^2 \end{pmatrix}.

Matching with BB: r112=9r_{11}^2 = 9 gives r11=3r_{11} = 3; 3r12=63r_{12} = 6 gives r12=2r_{12} = 2; 4+r222=54 + r_{22}^2 = 5 gives r22=1r_{22} = 1.

R=(3201).R = \begin{pmatrix} 3 & 2 \\ 0 & 1 \end{pmatrix}.

Equivalently, ⟨Bx,x⟩=9x12+12x1x2+5x22=(3x1+2x2)2+x22=βˆ₯Rxβˆ₯2\langle Bx, x\rangle = 9x_1^2 + 12x_1x_2 + 5x_2^2 = (3x_1 + 2x_2)^2 + x_2^2 = \|Rx\|^2.

Problem 2 Β· Which One Is Positive Definite?

Given: four real 2Γ—22 \times 2 matrices, with the Euclidean inner product on R2\mathbf{R}^2. Which one is positive definite?

βœ… Correct! ⟨Bx,x⟩=5x12βˆ’8x1x2+5x22=4(x1βˆ’x2)2+x12+x22>0\langle Bx, x\rangle = 5x_1^2 - 8x_1x_2 + 5x_2^2 = 4(x_1 - x_2)^2 + x_1^2 + x_2^2 > 0 for xβ‰ 0x \neq 0, and Bβˆ—=BB^* = B; negative entries do not matter.
❌ Positive entries are not enough. For x=(1,βˆ’1)x = (1, -1): Bx=(βˆ’3,1)Bx = (-3, 1) and ⟨Bx,x⟩=βˆ’3βˆ’1=βˆ’4<0\langle Bx, x\rangle = -3 - 1 = -4 < 0.
❌ Not quite. ⟨Bx,x⟩=(2x1+3x2)2β‰₯0\langle Bx, x\rangle = (2x_1 + 3x_2)^2 \ge 0, so this matrix is positive, but x=(3,βˆ’2)β‰ 0x = (3, -2) \neq 0 gives ⟨Bx,x⟩=0\langle Bx, x\rangle = 0; it is not invertible, so it is not positive definite.
❌ Check the first condition. Here ⟨Bx,x⟩=3x12+3x1x2+3x22>0\langle Bx, x\rangle = 3x_1^2 + 3x_1x_2 + 3x_2^2 > 0 for real xβ‰ 0x \neq 0, but Bβˆ—=(3213)β‰ BB^* = \begin{pmatrix} 3 & 2 \\ 1 & 3 \end{pmatrix} \neq B; positive definite requires Bβˆ—=BB^* = B.
Show solution

Positive definite needs both Bβˆ—=BB^* = B and ⟨Bx,x⟩>0\langle Bx, x\rangle > 0 for every xβ‰ 0x \neq 0.

  • (5βˆ’4βˆ’45)\begin{pmatrix} 5 & -4 \\ -4 & 5 \end{pmatrix}: symmetric, and 5x12βˆ’8x1x2+5x22=4(x1βˆ’x2)2+x12+x225x_1^2 - 8x_1x_2 + 5x_2^2 = 4(x_1 - x_2)^2 + x_1^2 + x_2^2, which is 00 only when x1=x2=0x_1 = x_2 = 0. Positive definite.
  • (1443)\begin{pmatrix} 1 & 4 \\ 4 & 3 \end{pmatrix}: x=(1,βˆ’1)x = (1, -1) gives 1βˆ’8+3=βˆ’41 - 8 + 3 = -4. Fails.
  • (4669)\begin{pmatrix} 4 & 6 \\ 6 & 9 \end{pmatrix}: x=(3,βˆ’2)x = (3, -2) gives 36βˆ’72+36=036 - 72 + 36 = 0. Fails (positive, not invertible).
  • (3123)\begin{pmatrix} 3 & 1 \\ 2 & 3 \end{pmatrix}: not self-adjoint. Fails.

Problem 3 Β· A 3Γ—33 \times 3 Cholesky Factor

Given: B=(933351316)B = \begin{pmatrix} 9 & 3 & 3 \\ 3 & 5 & 1 \\ 3 & 1 & 6 \end{pmatrix} and its Cholesky factor R=(r11r12r130r22r2300r33)R = \begin{pmatrix} r_{11} & r_{12} & r_{13} \\ 0 & r_{22} & r_{23} \\ 0 & 0 & r_{33} \end{pmatrix}, upper triangular with positive diagonal and Rβˆ—R=BR^*R = B. The first row is r11=3r_{11} = 3, r12=1r_{12} = 1, r13=1r_{13} = 1, and r22=2r_{22} = 2. Find r23r_{23} and r33r_{33}.

What is r23r_{23}?

What is r33r_{33}?

βœ… Correct! R=(311020005)R = \begin{pmatrix} 3 & 1 & 1 \\ 0 & 2 & 0 \\ 0 & 0 & \sqrt{5} \end{pmatrix}, and multiplying out Rβˆ—RR^*R returns BB.
❌ Not quite. The (2,3)(2,3) entry of Rβˆ—RR^*R is r12r13+r22r23r_{12}r_{13} + r_{22}r_{23}, not r22r23r_{22}r_{23} alone: subtract r12r13=1r_{12}r_{13} = 1 from b23=1b_{23} = 1 before dividing by r22r_{22}.
❌ Not quite. r23=b23r_{23} = b_{23} ignores both the term r12r13r_{12}r_{13} and the factor r22r_{22} in the (2,3)(2,3) entry r12r13+r22r23r_{12}r_{13} + r_{22}r_{23} of Rβˆ—RR^*R.
❌ Not quite. Dividing b23b_{23} by r11r_{11} is the rule for the first row only; the (2,3)(2,3) entry of Rβˆ—RR^*R is r12r13+r22r23r_{12}r_{13} + r_{22}r_{23}.
❌ Check r23r_{23}. Match the (2,3)(2,3) entry: r12r13+r22r23=b23r_{12}r_{13} + r_{22}r_{23} = b_{23}.
❌ Not quite. The (3,3)(3,3) entry of Rβˆ—RR^*R is r132+r232+r332r_{13}^2 + r_{23}^2 + r_{33}^2, so r332=6βˆ’r132βˆ’r232r_{33}^2 = 6 - r_{13}^2 - r_{23}^2, not 66.
❌ Not quite. This uses r23=12r_{23} = \tfrac{1}{2}: 6βˆ’1βˆ’14=1946 - 1 - \tfrac{1}{4} = \tfrac{19}{4}. Recompute r23r_{23} from r12r13+r22r23=1r_{12}r_{13} + r_{22}r_{23} = 1.
❌ Not quite. 55 is r332r_{33}^2; take the positive square root.
❌ Check r33r_{33}. Match the (3,3)(3,3) entry: r132+r232+r332=b33r_{13}^2 + r_{23}^2 + r_{33}^2 = b_{33}.
Show solution

Column jj of RR is (r1j,…,rjj,0,… )(r_{1j}, \dots, r_{jj}, 0, \dots), and the (i,j)(i,j) entry of Rβˆ—RR^*R is the inner product of columns ii and jj of RR:

(Rβˆ—R)23=r12r13+r22r23,(Rβˆ—R)33=r132+r232+r332.(R^*R)_{23} = r_{12}r_{13} + r_{22}r_{23}, \qquad (R^*R)_{33} = r_{13}^2 + r_{23}^2 + r_{33}^2.

Matching b23=1b_{23} = 1: 1β‹…1+2r23=11 \cdot 1 + 2r_{23} = 1, so r23=0r_{23} = 0.

Matching b33=6b_{33} = 6: 1+0+r332=61 + 0 + r_{33}^2 = 6, so r332=5r_{33}^2 = 5 and r33=5r_{33} = \sqrt{5} (positive diagonal).

R=(311020005),Rβˆ—R=(933351316)=B.R = \begin{pmatrix} 3 & 1 & 1 \\ 0 & 2 & 0 \\ 0 & 0 & \sqrt{5} \end{pmatrix}, \qquad R^*R = \begin{pmatrix} 9 & 3 & 3 \\ 3 & 5 & 1 \\ 3 & 1 & 6 \end{pmatrix} = B.

Since RR is upper triangular with nonzero diagonal it is invertible, so ⟨Bx,x⟩=βˆ₯Rxβˆ₯2>0\langle Bx, x\rangle = \|Rx\|^2 > 0 for xβ‰ 0x \neq 0: BB is indeed positive definite.

Problem 4 Β· How Many Triangular Factors?

Given: the matrix B=(933351316)B = \begin{pmatrix} 9 & 3 & 3 \\ 3 & 5 & 1 \\ 3 & 1 & 6 \end{pmatrix} from Problem 3. How many upper-triangular matrices SS with real entries satisfy Sβˆ—S=BS^*S = B, if the sign condition on the diagonal is dropped?

βœ… Correct! They are exactly S=DRS = DR with D=diag⁑(Β±1,Β±1,Β±1)D = \operatorname{diag}(\pm 1, \pm 1, \pm 1): 23=82^3 = 8 matrices.
❌ Not quite. Uniqueness needs the positive diagonal. Without it, flipping the sign of any row of RR gives another factor, e.g. diag⁑(βˆ’1,1,1) R\operatorname{diag}(-1, 1, 1)\,R.
❌ Not quite. Each of the three rows can be flipped independently, and any combination of flips works, including none and all three: 2β‹…2β‹…22 \cdot 2 \cdot 2 choices.
❌ Over C\mathbf{C} that would be right (any ∣dk∣=1|d_k| = 1 works), but a real SS forces dk=±1d_k = \pm 1, which leaves finitely many.
Show solution

Every DRDR works. If DD is diagonal with entries Β±1\pm 1, then DRDR is upper triangular and (DR)βˆ—(DR)=Rβˆ—Dβˆ—DR=Rβˆ—R=B(DR)^*(DR) = R^*D^*DR = R^*R = B because Dβˆ—D=ID^*D = I.

Nothing else works. Let SS be real upper triangular with Sβˆ—S=BS^*S = B. Since BB is invertible, so is SS, so its diagonal entries are nonzero. Let DD be diagonal with dk=Β±1d_k = \pm 1 the sign of skks_{kk}. Then DSDS is upper triangular with positive diagonal and (DS)βˆ—(DS)=Sβˆ—Dβˆ—DS=Sβˆ—S=B(DS)^*(DS) = S^*D^*DS = S^*S = B. By uniqueness of the Cholesky factor, DS=RDS = R, so S=Dβˆ’1R=DRS = D^{-1}R = DR.

Three independent sign choices give 23=82^3 = 8 matrices SS, all distinct because their diagonals differ.

Solved: 0 / 4