Solve Linear System screenshot

Solve Linear System

Solve a 2×2 or 3×3 linear system A x = b by Gaussian elimination, with the determinant printed as a conditioning warning.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

Elimination with partial pivoting

Choose a 2×2 or 3×3 system, enter the coefficients of A and the right-hand side b, and the page solves A x = b by Gaussian elimination with partial pivoting. It prints each unknown, then the determinant. For the system 2x + y = 5 and x + 3y = 7 the answers are x = 1.6 and y = 1.8 with determinant 5, and every number is shown to six decimal places at most.

A singular matrix has no unique solution and is refused by name; a nearly singular one is solved but the printed determinant is the warning that the answer is decided by rounding. The page does not report the residual, the condition number, an infinite family of solutions or a least-squares answer for an over-determined system — it solves exactly determined square systems only, in two or three unknowns.

The elimination runs in this tab from the numbers you type. Nothing is uploaded, no system is stored, and the same coefficients print the same solution after a reload.

Solve A x = b for a 2×2 or 3×3 system by Gaussian elimination with partial pivoting. The page prints each unknown and the determinant; 2x + y = 5 with x + 3y = 7 gives x = 1.6 and y = 1.8 and a determinant of 5.

A singular matrix has no unique solution and is refused. A nearly singular one is solved, but the printed determinant is the warning that rounding may decide the last digits.

How to use it

Choose the system size, type the coefficients row by row and the right-hand side, then press Run. Unknowns are printed first, one per line, and the determinant comes last with the elimination already done.

The arithmetic

The rows are augmented with b and reduced column by column. At each column the largest available pivot is swapped into place, which keeps the arithmetic stable, and the factor below it is eliminated. Back substitution then recovers each unknown from the last row upward.

Where it stops

Only square systems in two or three unknowns are accepted. An over-determined or under-determined system, a least-squares answer, and an infinite solution family are not modelled. A zero pivot after the swap means the matrix is singular, and the page refuses rather than printing a division by zero.

What to Expect

Best for

  • Checking a hand elimination.
  • Seeing the determinant beside the solution.

What this tool keeps

  • The coefficients are computed in the browser and never posted, so the page works offline and retains nothing.

Sample input

2x + y = 5, x + 3y = 7

Sample output

x1 = 1.6 x2 = 1.8 det A = 5

Frequently asked questions

How do I use it?

Choose the size, type the coefficients and the right-hand side, then press Run. Each unknown is printed, followed by the determinant of the coefficient matrix.

Is anything uploaded?

No. The arithmetic runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The matrix must be square and non-singular; a determinant of zero is refused, and a nearly singular matrix must not be trusted to its last printed digit.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.