How to use this tool
- Enter matrix a — one row per line, right-hand side b.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Matrix A — one row per line | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | 2, 1
1, 3 |
| Right-hand side b | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | 5, 7 |
Result for these sample inputs
x1 = 1.6 x2 = 1.8
- Maximum absolute residual
- 0
- Equations
- 2
A small residual checks this calculation; it does not guarantee that a poorly conditioned system is insensitive to input error.
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Augment the coefficient matrix with b and use Gauss–Jordan elimination with partial pivoting. Check the solution by computing max absolute component of A × x − b.
Using matrix a — one row per line = 2, 1 1, 3, right-hand side b = 5, 7, the result is x1 = 1.6 x2 = 1.8. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
Square systems only, up to ten unknowns. Singular or near-singular systems are rejected; inconsistent and underdetermined systems are not classified separately. Finite-precision arithmetic is used. Check the domain and the stated convention before using an approximation.
Common questions
Where do the coefficients go?
Each row of A represents an equation, with columns in the same variable order. For 2x + y = 5 and x + 3y = 7, enter rows 2,1 and 1,3, then b as 5,7.
Can this solve nonlinear equations?
No. Products between unknowns, powers of unknowns and trigonometric expressions are not linear coefficients. Use this page only for a linear system.
Methodology maintained by ClarityKit. How these tools are built and checked.