The two foundational questions about A·x = b — existence and uniqueness — together with the structure of the solution set and the special behavior of square, overdetermined, and underdetermined shapes, can be collected as a six-row Q&A reference. The table below pairs each question a reader might bring to a linear system with the answer in terms of rank, determinant, or solution-set structure.
The first group below is the theory and the second is what to do about it. Existence and uniqueness are each a single rank comparison, and they are independent — a system can have solutions without having one solution, or have at most one without having any. The second group takes the cases where the answer is unwelcome and says what replaces the original question.
Linear systems · solvability
Every solvability question, answered by rank
Two comparisons settle existence and uniqueness completely. Everything below them is what to do once the answer is known — and the shape of the system determines which of those situations you are in.
6questions
The two questions3
1equivalently b∈Col(A) rank(A)=rank([A∣b]) Rouché–Capelli. If the augmented column raises the rank, it contributes a direction the columns of A cannot reach, and the reduction reports this as a row reading 0=d. Existence is a question about b, not about A. 2equivalently Null(A)={0} rank(A)=n A pivot in every column means no free variables. Note this says nothing about whether a solution exists — uniqueness is a question about A alone, which is why the two conditions are independent and both must be checked. 3xp+Null(A) One particular solution plus the entire null space. The set is a point when the nullity is zero, a line when it is one, a plane when it is two — never anything else, because it is always a translated subspace. What the shape of the system implies3
4m=n and detA=0 x=A−1b Both conditions hold at once and for every b — the only case where the answer is unconditional. In practice solve by factorization rather than by forming the inverse; the formula is a statement about existence, not a method. 5m>n, no exact solution ATAx^=ATb More equations than unknowns usually means no solution at all, so the question changes: least squares minimises ∥Ax−b∥2 instead of solving. The answer is the projection of b onto the column space — the closest reachable point. 6infinitely many; choose one
Fewer equations than unknowns leaves free variables, so a solution is never unique and the algebra cannot pick between them. The criterion comes from outside: minimum norm via the pseudoinverse, sparsity, or a physical constraint the model imposes.
Both comparisons come out of the same reduction, which is why they are never computed separately. Reduce [A∣b] once: a contradiction row settles existence, and the count of pivot columns settles uniqueness. Nothing else is needed, and no determinant is involved — which matters because the determinant test only applies to square systems, while these two apply to every system. The last two rows are worth reading as a change of question rather than a failure. An overdetermined system usually has no solution, so least squares asks for the closest approximation instead and answers with a projection. An underdetermined system has too many, so a selection criterion is imposed from outside the algebra — minimum norm, sparsity, or whatever the model requires. In both cases the linear algebra is finished; what remains is deciding what you wanted.