BL2.ru

System of linear equations solver(Gauss, Cramer, Seidel)

Enter the coefficients and right-hand sides — the system is solved by Gauss, Cramer or Seidel with every step shown.

Equations 3Unknowns 3
x1 + x2 + x3 =
x1 + x2 + x3 =
x1 + x2 + x3 =
Calculate

Systems of linear equations

In matrix form A·x = b. By the Rouché–Capelli theorem the system is consistent when rank A equals the rank of the augmented matrix, and the solution is unique when that rank equals the number of unknowns.

Gaussian elimination

The augmented matrix is reduced by row operations. Gauss–Jordan with partial pivoting is used: the row with the largest absolute pivot is chosen, normalised and eliminated from all other rows. Works for any system, including rectangular and singular ones.

Cramer’s rule

xi = Δi / Δ, where Δ = det A and Δi is the determinant with column i replaced by b. Only for square systems with non-zero determinant. See also the determinant calculator.

Gauss–Seidel

Iterative: xi = (bi − Σj≠i aijxj) / aii with the newest values. Converges for diagonally dominant matrices.

Example

2x₁ + x₂ − x₃ = 8, −3x₁ − x₂ + 2x₃ = −11, −2x₁ + x₂ + 2x₃ = −3 → x₁ = 2, x₂ = 3, x₃ = −1.

FAQ

Which method should I use?
Gauss is universal; Cramer is convenient for 2×2 and 3×3; Gauss–Seidel is iterative for diagonally dominant systems.
How do I know there is no solution?
A row 0 = c with c ≠ 0 appears after elimination: rank A is less than the rank of the augmented matrix.
What if the determinant is zero?
Cramer’s rule does not apply; switch to Gauss to see which case it is.
Can I enter fractions?
Yes: 1/3, 0.5, -2/7, sqrt(2). Empty cells are zero.