Gram–Schmidt and QR Factorization — Cheat sheet

Choose “Save as PDF” in the print dialog.
On this page

Core rule

Subtract earlier projections, then normalize. For full column rank, A=QRA=QR with QTQ=IQ^TQ=I and upper triangular invertible RR.

Watch for

Zero residuals indicate dependence. Rectangular QQ does not satisfy QQT=IQQ^T=I on the entire output space.