How a linear system is solved

Gauss-Jordan elimination turns the system into an equivalent one — one with the same solutions — whose answer can be read off directly. You work on the augmented matrix, coefficients plus constants, using just three legal moves: swap two rows, multiply a row by a non-zero number, add a multiple of one row to another. At the end every pivot is 1 and is the only non-zero entry in its column.

The classification follows the Rouché-Capelli theorem, which compares two ranks: that of the coefficient matrix and that of the augmented matrix. If the second is greater than the first, elimination has produced a row of the form 0 = c with c non-zero — a contradiction — and the system is inconsistent. If the two ranks match there are solutions: exactly one when the rank equals the number of unknowns, infinitely many when it is lower.

In the indeterminate case the unknowns split into two groups. Those matching a pivot column are determined by the others; the rest are free and can take any value. The general solution is then written as a particular solution plus a linear combination of the free directions, one for each free unknown: it is the same structure that in geometry describes a line or a plane of solutions.

The calculation uses partial pivoting: at each step the pivot chosen is the entry of largest magnitude in the column, not simply the first non-zero one. This is not a matter of efficiency but of reliability: a very small pivot would amplify every rounding error made afterwards, and that is how a perfectly solvable system ends up looking inconsistent.

Common mistakes

  • Forgetting to apply the operation to the constants column as well: the resulting system is no longer equivalent to the original.
  • Multiplying a row by zero: the operation is not reversible and wipes out an equation, changing the solution set.
  • Concluding that a system with more equations than unknowns must be inconsistent: if the extra equations are combinations of the others, it remains solvable.
  • Confusing the inconsistent case with the indeterminate one: a wholly zero row, constant included, marks a redundant equation, not a contradiction.
  • Treating a tiny pivot as non-zero in numerical work: below the tolerance it should be treated as zero, otherwise the rank comes out too high.

Frequently asked questions

What does the Rouché-Capelli theorem say?

A linear system has solutions if and only if the rank of the coefficient matrix equals that of the augmented matrix. If that common value also equals the number of unknowns the solution is unique; otherwise there are infinitely many.

What is the difference between Gaussian and Gauss-Jordan elimination?

Gaussian elimination stops at the triangular form and needs back-substitution to recover the unknowns. Gauss-Jordan carries on to the reduced form, clearing above the pivots as well: the solution can then be read straight off the last column.

What are free unknowns?

They are the unknowns whose columns contain no pivot. They can take any value, and for each choice the remaining unknowns are determined: that is what makes an indeterminate system's solutions infinite.

Can I solve systems with different numbers of equations and unknowns?

Yes. The matrix does not have to be square: you can set the number of equations and unknowns freely, up to 12 each, and the method classifies overdetermined and underdetermined systems correctly too.

How do you read the solution of an indeterminate system?

The calculator shows a particular solution, obtained by setting every free unknown to zero, and one free direction for each of them. Every solution of the system is that particular one plus any linear combination of those directions.

How this calculation works

The augmented matrix [A | b] is reduced to Gauss-Jordan form with partial pivoting: in each column the pivot chosen is the entry of largest magnitude, the row is normalised by dividing through by the pivot, and every other entry in the column is cleared. The rank is the number of pivots found in the coefficient columns; the rank of the augmented matrix counts them all. Comparing the two ranks with each other and with the number of unknowns gives the classification. The free directions come from setting one free unknown to 1 at a time and the others to 0.