where: , and .
to check which of the two solutions for provides the minimum, the residual sum of squares, R, should be calculated for each where: