Hence, a matrix has an infinite solution if the number of variables is more than the number of nonzero rows in the reduced row-echelon form of the matrix.