Hongmu Notes

System of linear equations in four variables

A system of linear equations in four variables contains four unknowns and consists of four equations. The hand calculation requires three consecutive eliminations, which is a lengthy process, and it is more reliable to use tools to solve the problem in one go.
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 four variables contains four unknowns and consists of four equations. The hand calculation requires three consecutive eliminations, which is a lengthy process, and it is more reliable to use tools to solve the problem in one go.

Why is four yuan the dividing point for hand calculation?

The elimination of three yuan can still be completed in half a page. When it comes to four yuan, the number of multiplications and subtractions increases significantly. It is easy to make mistakes in the symbols and reductions of intermediate results. One wrong step will invalidate the final answer. Programmed Gaussian elimination is processed step by step using unified rules, and there are no omissions.

Operation steps

  1. Select 4 for the unknown number, and the grid will become 4 rows and 5 columns.
  2. Fill in the coefficients of the four unknowns in each row, and fill in the constant term in the last box.
  3. The calculation starts at the point, and the solution vector and judgment are given in the result area.

How to use the results

The determinant in the result is used to determine whether it is uniquely solvable, and the maximum residual is used to verify the accuracy of the solution. If it is judged that there are infinite solutions, it means that there is redundancy in the four equations, and free variables need to be used to express the general solution; if it is judged that there are no solutions, there is a contradiction between the equations, and the modeling or input should be checked for errors.

There are many manual calculation steps for four-element equations, and the probability of errors also increases. It is recommended to record the current system of equations every time a variable is eliminated to form clear intermediate results for easy review.

This type of questions is more suitable to be advanced step by step using the elimination method, or directly checked with the help of tools. Organizing the coefficients into neat tabular form when doing the questions can significantly reduce transcription errors.

For quaternions and above, it is recommended to organize the equation into a form in which coefficients and constant terms are separated to avoid missing terms when entering.

📖 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

Can you solve five-element or six-element equations??
Yes. Select the number of unknowns to 5 or 6, the grid will automatically expand, and the solution process is exactly the same.
How to fill in an unknown variable that does not appear in the equation??
Just fill in the coefficient of the unknown variable with 0, which means this term is not included in the equation.