Hongmu Notes

System of linear equations in three variables

A system of linear equations in three variables contains three unknowns and consists of three equations. Hand calculation requires two consecutive eliminations, and it is easy to make errors in symbols. It is more stable to hand it over to a tool to complete the calculation once.
100% Browser local processing 0 Data upload

📏 Solve systems of linear equations

Fill in one line for each equation: fill in the coefficients of each unknown number in turn, and fill in the constant term to the right of the equal sign in the last box.

💡 Instructions for use

  • Select the number of unknowns first, and the grid will automatically change to the corresponding size; each equation occupies one line, the coefficients of each unknown are listed horizontally, and the last grid is the constant term.
  • The coefficient supports negative numbers and decimals, and spaces will be automatically ignored; please convert the fraction into a decimal first, or multiply the entire equation by the same number into an integer.
  • Before solving, perform column pivot elimination first, and then back-substitute; the result area also provides the rank of the determinant, coefficient matrix, and augmented matrix as a basis for judging the solution.
  • The maximum residual is used for self-testing: a value close to 0 indicates a correct solution, and a significantly larger value indicates a problem with the input or the equation itself.

A system of linear equations in three variables contains three unknowns and consists of three equations. Hand calculation requires two consecutive eliminations, and it is easy to make errors in symbols. It is more stable to hand it over to a tool to complete the calculation once.

The geometric meaning of triples

Each linear equation of three variables represents a plane in space, and the solution of the system of equations is the common intersection point of the three planes. There is a unique solution when three planes intersect at one point; there are infinite solutions when they intersect on a straight line or a plane; there is no solution when they are parallel to each other or intersect in pairs but have no common point.

Why hand calculations are prone to errors

  • Two eliminations involve a total of more than a dozen multiplications and subtractions. If the symbol is wrong, the entire question will be invalid.
  • When substituting back, the order must be from back to front. If the order of substitution is reversed, the calculation will be incorrect.
  • When the coefficient contains decimals, errors accumulate, and in the end it is difficult to determine whether it is a calculation error or a reduction problem.

After using the tool to calculate the result, substituting x, y, and z back into the three original equations to verify, you can confirm that the answer is correct.

The idea of hand calculation of a system of three-variable equations is to gradually eliminate variables: first select a variable, eliminate it with two equations, and obtain a new system of two-variable equations, then solve it according to the binary method, and finally find the third variable by back substitution.

The order of elimination affects the amount of computation. It is recommended to first observe which variable has the neatest coefficients. For example, if there are items with a coefficient of one or the opposite number of each other, starting from it can usually avoid fractions.

If fractions appear during elimination, it is recommended to multiply the entire row by the denominator to maintain integer calculations.

Select 3 for the number of unknowns, and the grid will automatically become 3 rows and 4 columns, and fill in the constant term to the right of the equal sign in the fourth column.

📖 Glossary

System of linear equations
A system of equations consisting of several linear equations in which the unknowns only appear to the first power. The general form is that the unknown coefficients of each equation multiplied by the unknowns add up to a constant term.
coefficient matrix
The matrix obtained by arranging the coefficients of the unknowns in each equation in rows only describes the relationship between the unknowns, and does not include the constant term on the right side of the equal sign.
augmented matrix
A matrix is obtained by adding a column of constant items to the right of the coefficient matrix. Gaussian elimination is performed directly on the augmented matrix, and the last column is the solution.
Gaussian elimination method
Use elementary row transformation to transform the augmented matrix into an upper triangular form, and then back-substitute from the last row to find the classical solution to all unknowns.
Column pivot
Before each elimination step, the element with the largest absolute value in the column is first moved to the main diagonal to avoid error amplification caused by dividing by a small number, which is also called partial pivot selection.
Determinant
The value defined only for the square matrix is equal to the product of the main diagonal elements after elimination multiplied by the sign of the newline. A system of equations has a unique solution when the determinant is not 0.
rank
The number of linearly independent rows in a matrix. The solution is unique when the rank of the coefficient matrix is ​​equal to the number of unknowns, there are infinite solutions when it is less than the number of unknowns, and there is no solution when it is related to constant terms.
only solution
A system of equations has exactly one set of values that satisfies all equations at the same time. Geometrically, it is represented by the straight lines or planes represented by all equations intersecting at a point.
No solution
There is no set of values in a system of equations that can satisfy all the equations at the same time, such as two parallel straight lines or planes offset from each other.
infinite solutions
There is a linear correlation between the equations and insufficient constraints. There are infinite sets of values that satisfy the conditions, and there will be free variables that can take values freely in the general solution.
free variable
In a system of equations with infinite solutions, the number of variables that can take any value and the remaining unknowns are determined accordingly is equal to the number of unknowns minus the rank of the coefficient matrix.
Back proxy verification
Substituting the obtained solution back into the original equation and checking whether the difference between the left and right sides is within the allowable error is the most direct way to check whether the solution is correct.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

What happens if the three equations are not independent??
If there is a linear correlation, the rank of the coefficient matrix will be less than 3, and the tool will judge that there are infinite solutions and give the number of free variables.
Does the solution have to be an integer??
Not necessarily. The solution may be a fraction or a decimal when the coefficients and constant terms are arbitrary. The tool gives floating point results with residuals for verification.