Jump to content

Linear system/Solution method/Several remarks/Section

From Wikiversity


Sometimes, we want to solve a simultaneous system of linear equations of the form

a11x1+a12x2+⋯+a1nxn=c1(=d1,=e1,…)a21x1+a22x2+⋯+a2nxn=c2(=d2,=e2,…)⋮⋮⋮am1x1+am2x2+⋯+amnxn=cm(=dm,=em,…).

The goal is to find the solutions of the corresponding inhomogeneous linear systems for different vectors. In principle, we could consider independent linear systems, and solve them. However, it is smarter to perform those manipulations that we do on the left-hand side to achieve upper triangular form, simultaneously with all the vectors on the right-hand side. An important special case, for n=m, is when the vectors are the standard vectors, see fact.

We discuss briefly some further methods to solve a linear system.


Another method to solve a linear system is the substitution method. Here, the variables are also successively eliminated, but in another way. If we want to eliminate the variable x1, then we look at an equation, say G1, where x1 occurs with a coefficient different from 0. In this equation, we isolate x1 and get a new equation of the form

G1′:x1=F1,

where x1 does not occur in F1. Then in all other equations G2,…,Gm, we replace the variable x1 by F1, and obtain (after some simplifications) a linear system G2′,…,Gm′ without the variable x1, which is, together with G1′, equivalent to the original system.


Another method to solve a linear system is the equating method. Here, the variables are also successively eliminated, but in another way. In this method, in every equation Gi, i=1,…,m, we isolate one fixed variable, say x1. Suppose that (after reordering) G1,…,Gk are the equations where the variable x1 occurs with a coefficient different from 0. These equations are brought into the form

Gi′:x1=Fi,

where in Fi, the variable x1 does not occur. The linear system consisting in

G1′,F1=F2,F1=F3,…,F1=Fk,Gk+1,…,Gm

is equivalent to the original system. We continue with this system without G1′.


The methods described in fact, remark, and remark to solve a linear system differ with respect to speed, strategic conception, complexity of the coefficients, error-proneness. In the elimination method, the systematic reduction of the number of variables (reduction of dimension) is obvious, and it is unlikely to make mistakes (except for miscalculations). It is always clear how to continue. However, these advantages emerge starting with three variables. For two variables, it does not make a difference what method we choose.

The evaluation of the methods depends also on the features of the concrete system. Such features should be taken into account in order to find "short-cuts“ to the solution. The adequate choice of the solution method appropriate for the given problem is called adaptivity (a concept which is used in the didactic context with different meanings). If, for example, one row of the system has the form x=3, then one should recognize that a part of the solution can be read off immediately, and one should not add to this row any other row. Here, one should replace in the other rows everywhere x by 3, and continue then. Or: if four equations are given, where in two equations only the variables x and y appear, and where in the two other equations only the variables z and w appear, then one should realize that, in principle, two unrelated linear systems are given, each in two variables, and these should be solved independently. Or: it might be that a small subsystem of the system guarantees that there is no solution at all. Then only this has to be worked out, there is no need to consider the other equations. And: consider the exact question! If the question is whether a certain tuple is a solution, then we only have to plug this tuple into the equations, no manipulations are necessary.


A system of linear inequalities over the rational numbers or over the real numbers is a system of the form

a11x1+a12x2+⋯+a1nxn⋆c1a21x1+a22x2+⋯+a2nxn⋆c2⋮⋮⋮am1x1+am2x2+⋯+amnxn⋆cm,

where ⋆ might be ≤ or ≥. It is considerably more difficult to find the solution set of such a system than in the case of equations. In general, it is not possible to eliminate the variables.