How to tell how many solutions a linear system has

Once we’ve row-reduced a system, we can tell how many solutions it has before we solve for every variable. Start by checking whether the rows can all be true at the same time. Then see whether any variables are free to change.

Check the last column for a contradiction

A row with all zero coefficients and a nonzero constant is an equation like 0=23. If a row says that, the system has no solution.

For example, take 3a-3b+4c=-23, a+2b-3c=25, and 4a-b+c=25. Subtract the first and second equations from the third. The variable terms cancel, but the right side becomes 25-(-23)-25=23.

[3-34|-2312-3|25000|23]

Find the pivots if the system is consistent

If the system has no contradiction and every variable column has a pivot, there’s exactly one solution. The following reduced matrix has a pivot in all three variable columns.

[100|-1010|-4001|-4]

The solution is (-1,-4,-4).

Use a parameter when a variable is free

Now take the first example and change the third constant from 25 to 2. The same row operation gives 0=0. There are pivots for a and b, but c is free. Let c=t and solve for the other two variables.

a=29+t9b=98+13t9c=t

Every real value of the parameter gives a solution. That’s how we get infinitely many solutions.