Linear algebra · Orthogonality and least squares

Gram–Schmidt

Any basis can be turned into one with perpendicular unit vectors by repeatedly removing the parts that overlap.