Search Tools

Linear System Solver: Rank and Solution Set

Report an issue

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.

What to calculate
Coefficient matrix A and right-hand side bRequired
RowCoefficient of x1Coefficient of x2Right-hand side bActions
1
2

Paste 3 tab-separated columns into the leftmost field. Up to 20 rows.

Each row represents one equation. Enter 0 for zero coefficients. Completely empty rows are not counted as equations.

Defaults to 0.0000000001. Each column is divided by its largest absolute coefficient; pivots at or below the tolerance are treated as 0.

Results

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.