Linear System Solver: Rank and Solution Set
Determine consistency and uniqueness for Ax=b with real coefficients and find its solution set.
This is a numerical calculation over the real numbers. Rank and solvability depend on the tolerance. Exact rational arithmetic is not used.
Results
—
- Coefficient matrix rank: rank(A)
- —
- Augmented matrix rank: rank([A|b])
- —
- Number of free variables
- —
- Maximum relative residual of the particular solution
- —
Results update automatically when the required values are entered.
Method, applicability and sources
Calculation method
A is an m×n coefficient matrix and b is an m-dimensional right-hand side. Each column is normalized by its largest absolute coefficient, and b by its largest absolute value. Gauss–Jordan elimination with partial pivoting counts pivots to determine rank(A). A pivot with |pivot|≤relative tolerance is treated as 0. A row with zero coefficients but a nonzero right-hand side gives rank([A|b])=rank(A)+1, so there is no solution. If the ranks are equal, rank(A)=n gives a unique solution; rank(A)<n gives infinitely many solutions, x=particular solution+Σ(tₖ×null-space directionₖ), where tₖ is any real number. Results are displayed to 12 significant figures.
Worked example (hypothetical values)
For x1+x2=3 and 2x1−x2=0, the unique solution is x1=1, x2=2. For x1+x2=3 and 2x1+2x2=6, rank(A)=1 and there are infinitely many solutions. Changing the second right-hand side to 7 gives no solution.
Applicability and limitations
Systems of real linear equations expressed using coefficients for the same variables and a right-hand side. Excludes exact rational arithmetic, complex numbers, nonlinear equations, least-squares approximations, and exact classification of numerically unstable problems.
Methods used
- Gauss–Jordan elimination with partial pivoting (floating-point arithmetic) (relative-pivot v1.0): scope Real numbers, 2–6 coefficient columns, 1–20 equations, and an approximate rank determined by the tolerance.; region Global
Method and sources
Method: Gauss-Jordan relative-pivot v1.0 (2026-11-13); MIT 18.06 linear systems. Data recorded: 2026-11-13.