 A decomposition reduces to upper triangular .For example, if is then has the form

The linear least squares problem is to find the that minimizes , which is equivalent to projecting to the subspace spanned by the columns of .Assuming the columns of (and hence ) are independent, the projection solution is found from .