In $Ax=b$. If $A$ is not invertible there are no solutions or infinity. How to determine what the case is?
Linear equations given by $Ax = b$ have a solution if and only if $\operatorname{rank}(A|b) = \operatorname{rank}(A)$