Arrange coefficients as Ax=b
Write each equation in the same variable order, here x, y, z. The coefficients form A, and the constants on the right form b. For the example, A=[[2,1,0],[1,1,1],[0,2,1]] and b=[5,6,5]ᵀ. The calculator asks for the nine A entries row by row, then b₁, b₂, and b₃.
Move every variable term to the left and every constant to the right before entering values. A missing variable has coefficient zero. If one equation is written in a different order or has an unconverted unit, the solver still receives numbers but represents a different system.
Worked examples
Example 1 · verify a unique solution
Inputs: 2x+y=5; x+y+z=6; 2y+z=5.
Calculation: A=[[2,1,0],[1,1,1],[0,2,1]], b=[5,6,5]ᵀ; det(A)=−3 and x=(2,1,3).
Substitution gives 5, 6, and 5, matching the three right sides.
Example 2 · retain fractional components
Inputs: x+2y−z=4; 3y+z=7; 2z=6.
Calculation: The upper-triangular coefficient matrix has determinant 1×3×2=6. Back-substitution gives z=3, y=4/3, and x=13/3.
The calculator displays approximately (4.33333, 1.33333, 3); substitution using exact fractions returns 4, 7, and 6.
Understand the determinant condition
For a 3×3 coefficient matrix A, det(A)≠0 means the rows are independent and the system has exactly one solution for every right-hand side b. When det(A)=0, Cramer’s rule cannot divide by the determinant; the system may have no solution or infinitely many. The coefficient matrix alone cannot distinguish those cases without checking b.
The current calculator treats |det(A)|<10⁻¹² as no unique solution. This is an absolute numerical threshold, so scaling all coefficients can affect the decision. It is an implementation safeguard, not a relative condition estimate. A mathematically nonsingular matrix close to the threshold may be reported as having no unique solution.
How Cramer’s rule forms each variable
Let D=det(A). To find x, replace the first column of A with b and divide that determinant by D. For y, replace the second column; for z, replace the third. Thus x=Dₓ/D, y=Dᵧ/D, and z=D_z/D. The calculator computes these determinants and displays the ordered solution (x,y,z).
For the first example, D=−3. Replacing the first, second, and third columns with b gives determinants −6, −3, and −9, respectively; the ratios are 2, 1, and 3. The values do not come from dividing each right-side number independently. Each determinant reflects all three equations.
Verify the result in the original equations
Substitution is the most direct check. For (2,1,3), the rows give 2×2+1×1+0×3=5, 1×2+1×1+1×3=6, and 0×2+2×1+1×3=5. Every left side matches its original right side. This checks the result without repeating the same determinant calculation.
For decimal solutions, compare after keeping enough digits. The tool formats each component to five decimal places, so substituting rounded display values can leave a small residual even when the internal solution is more precise. Use the residual size relative to the coefficients and application tolerance rather than requiring exact equality from rounded text.
Units and model structure matter
A system is only meaningful when each equation is dimensionally consistent. The unknown variables may represent different quantities, so coefficients can carry different units in different columns. Scale and label each equation before entering numbers. The calculator does not infer units or reorder variables from their names.
A unique numerical solution does not prove the equations accurately describe a physical system. It only solves the entered linear model. If the coefficients come from measurements, rounded values can make an ill-conditioned system highly sensitive: small input changes may move the solution substantially even when the determinant is not below the tool’s threshold.
Recognize when this solver is not enough
Cramer’s rule is useful for a small exact system and for understanding the determinant condition. For larger systems, repeated determinant expansion is inefficient and can be numerically less stable than pivoted elimination or a factorization method. This tool is limited to three equations and uses floating-point numbers rather than symbolic fractions.
If the tool reports “No unique solution,” first check coefficient order and arithmetic. Then determine whether the equations are inconsistent or dependent by comparing the ranks of A and the augmented matrix [A|b]. Do not label every singular system “no solution”; some have infinitely many solutions. A separate row-reduction analysis is needed to tell which case applies.