Skip to main content

QR and Cholesky

  • Situation: Triangular factors for solving and positivity
  • Learning targets: Reduced QR · Construction · Least squares
  • Convention: Declared field ℝ or ℂ; column vectors; rightmost matrix first; dimensionless data unless units stated · Finite-dimensional inner product spaces; first slot linear, second conjugate-linear; standard inner product for numerical examples

Core concepts​

  • Reduced QR: m×n full-column-rank A with m≥n; Q m×n orthonormal columns, R n×n upper triangular
A matrix split into an orthonormal factor Q and triangular factor R, alongside a positive matrix split as R star R
Figure 1. Triangular factors for solving and positivity
  • Construction: Gram–Schmidt giving Q, R=Q*A; positive real diagonal entries fixing sign/phase ambiguity

  • Least squares: solve Rx=Q*b by back substitution; residual component outside range Q retained

  • Cholesky: Hermitian positive-definite H=R*R, unique upper R with positive diagonal; semidefinite case not guaranteeing this nonsingular factor

Worked example​

u=(1,1,0)T,v=(1,0,1)T,U={(x,y,z)T:x−y−z=0},e3=(0,0,1)Tu=(1,1,0)^T,\quad v=(1,0,1)^T,\quad U=\{(x,y,z)^T:x-y-z=0\},\quad e_3=(0,0,1)^T b=(2,0,1)T,n=(1,−1,−1)T,C=[u v],H=CTC=[2112]b=(2,0,1)^T,\quad n=(1,-1,-1)^T,\quad C=[u\ v],\quad H=C^TC=\begin{bmatrix}2&1\\1&2\end{bmatrix} q1=u/2,q2=(1,−1,2)T/6,Q0=[q1 q2],P=I−nnT/3q_1=u/\sqrt2,\quad q_2=(1,-1,2)^T/\sqrt6,\quad Q_0=[q_1\ q_2],\quad P=I-nn^T/3 s1=(1,1)T/2,s2=(1,−1)T/2s_1=(1,1)^T/\sqrt2,\quad s_2=(1,-1)^T/\sqrt2 C=Q0R,R=[21/203/2],RTR=H=[2112]C=Q_0R,\quad R=\begin{bmatrix}\sqrt2&1/\sqrt2\\0&\sqrt{3/2}\end{bmatrix},\quad R^TR=H=\begin{bmatrix}2&1\\1&2\end{bmatrix}

Practice​

  • Preparation: Paper or calculator; example inputs and ordered bases; exercise cases below as the calculation dataset
  • Prediction: Result, dimensions and applicable conditions before calculation
  • Calculation: First two exercises by hand → substitution into defining equations → exact and rounded checks separately
  • Record: Assumed inputs and calculated results; no physical measurements; optional software output recorded separately
  • Next step: Inputs, basis order and checked identities retained for the next chapter
CasePredictionExact result and reasonSoftware check
Q0TbQ_0^Tb
Rx=Q0TbRx=Q_0^Tb
  • Optional extension: One changed input or removed hypothesis → recalculation → comparison of the conclusion

Exercises​

  1. Problem: Q0TbQ_0^Tb
  2. Problem: Rx=Q0TbRx=Q_0^Tb
  3. Problem: Dependent columns: invertibility of R
Answers and checks
  1. Answer: (2,4/6)T(\sqrt2,4/\sqrt6)^T
  2. Answer: x2=4/3,x1=1/3x_2=4/3,\quad x_1=1/3
  3. Answer: Singular R; full-column-rank triangular solve no longer applicable

Connections​