Substitution gives . Since is invertible, cancel it on the left to obtain the nonsingular triangular system
This is the reduced QR least-squares solution. Its geometric justification is the orthogonal decomposition
The second term is independent of , while invertibility of lets the first term be zero at exactly one point. Although , one must not replace by : is tall and its product is the orthogonal projection onto its column space.