 Then we need a right candidate formula_19 of order formula_20 such that for all formula_10

That is, formula_23 is a solution of the linear system formula_7.Equivalently, we need a matrix formula_19 of order formula_26 such that

Hence we can define the generalized inverse or g-inverse as follows