Hongmu Notes

System of linear equations in two variables

A system of linear equations in two variables consists of two linear equations and contains two unknowns. In textbooks, hand calculations are done by substitution elimination or addition, subtraction, and elimination. This tool uses programmed elimination with the same idea to give the result at 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 two variables consists of two linear equations and contains two unknowns. In textbooks, hand calculations are done by substitution elimination or addition, subtraction, and elimination. This tool uses programmed elimination with the same idea to give the result at once.

Two hand calculation methods

methodpracticeApplicable occasions
Substitute into eliminationSolve an unknown number from one equation and substitute it into another equationWhen a coefficient is 1 or easily deformed
Addition, subtraction and elimination of dollarsMultiply the two equations appropriately and then subtract them to eliminate an unknown number.When an unknown coefficient is an integer multiple

solution situation

When the straight lines corresponding to two equations intersect at one point, there is a unique solution; when the two lines coincide, there are infinite solutions; when the two lines are parallel, there is no solution. The basis for judgment is whether the coefficients are proportional and whether the constant terms are also proportional. The tool will automatically give a conclusion using the determinant and rank.

There are two commonly used hand calculation methods for systems of linear equations of two variables: the substitution method is suitable for situations where a certain variable coefficient in an equation is one, and the addition and subtraction method is suitable for situations where the coefficients of the same variable in two equations are proportional. Choosing the right method can save you a few steps.

After solving the problem, substitute the two values ​​back into the original equation and verify them once. This is the lowest-cost check. If one of the equations does not hold, it means that there is an error in the sign or multiple processing of one of the steps in the middle.

When filling in the numbers, fill in the first row for the first equation, the second row for the second equation, and the last columns are the constant terms of the two equations.

📖 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 two equations have no solution??
The tool will clearly indicate that there is no solution and indicate that the rank of the coefficient matrix is less than the rank of the augmented matrix at this time, indicating that the two straight lines are parallel to each other.
How to enter the coefficient as a fraction?
Convert the fraction into a decimal first, or convert the entire equation by multiplying the denominator into an integer before entering it. The result will not be affected.