The notion of linear equation will now be extended to systems of linear equations.
A system of linear equations is understood to be one or more linear equations with one or more unknowns.
A solution of the system of equations is a list of values of the unknowns that, when substituted into each equation of the system, gives a set of equations that are valid (a true statement). Not every system of equations has a solution: the system \[ \left\{\;\begin{aligned} x + y\;&= 1 \\ x+ y\;&=2\end{aligned} \right.\] for example, has no solution. Such a system is called inconsistent.
Solving a system of equations is the determination of all the solutions. The result is also called the solution.
A system of linear equations is often solved by reduction, that is, by replacing it via elementary operations by another system of linear equations that is both simpler than the previous one, and the same solution. We speak of an elementary reduction if all steps in the reduction process consists of elementary operations. Elementary operations are multiplication of an equation by a nonzero number, addition of two equations, and interchange of two equations.
Two systems of linear equations are called equivalent if they have the same solution because they can be converted into each other via elementary reduction.
In case the system is inconsistent, mathematicians speak of the empty set of solutions or simply the empty solution. We will not use this terminology in this course; we will simply say it has no solution.
We usually fix an order of the unknowns and write solutions as a list of values of the variables in this order; but other formats are also widely used.
Note the difference between a solution and the solution: the solution of the linear equation \(x=x+y\) in the unknowns \(x\) and \(y\) is \(y=0\), but \(x=1 \land y=0\) is a solution.
The solution of an equation with the two unknowns \(x\) and \(y\) is generally a line in the \(x,y\)-plane. The solutions of two equations with two unknowns are the points that belong to the lines of both equations. In the example given, \[ \left\{\;\begin{aligned} x + y\;&= 1 \\ x+ y\;&=2\end{aligned} \right.\] we are dealing with two parallel lines.
In the reduction, usually elementary operations are being used. These are the following three operations on systems of linear equations:
- The multiplication of both sides of a equation by the same number distinct from zero.
- The addition of a multiple of one equation to one of the other equations.
- The interchange of two equations.
Later we will discuss them more fully.
Consider the system \[\left\{\;\begin{aligned} 2x + 3y\;&= 1 \\ \phantom{2}x+\phantom{3}y\;&=1\end{aligned} \right.\] with unknowns \(x\) and \(y\), which we sometimes write as \[{2 x +3y = 1 \quad \land\quad x +y =1 }\] Here, \(\land\) is the logical "and" operator.
A solution of this system is \[x=2\ \text{ and }\ y=-1\] In order to see that this is a solution, we substitute these values in the equations: \[\left\{\begin{aligned} 2\cdot 2+3\cdot (-1)\;&=1 \\ \phantom{2\cdot } 2+\,\phantom{3\cdot } (-1)\;&=1\end{aligned} \right.\] These equalities hold, so \([x=2,y=-1]\) is a solution. This solution can also be written as \[[x,y]=[2,-1]\] or in the forms \[x=2\quad\mathrm{and}\quad y=-1\] and \[x=2\quad\land\quad y=-1\] Solving the system is finding all solutions. In this case, there are no more solutions, as we show below.
\(\phantom{x}\)
If we subtract the second equation twice from the first equation, we get a new linear equation, namely \(y=-1\). The original system of equations is equivalent to \[\left\{\begin{aligned} \phantom{x+}y\;&=-1 \\ x+y\;&=\phantom{-}1\end{aligned} \right.\] Subtracting the first equation of the new system from the second equation, we get the following equivalent system: \[\left\{\begin{aligned} y\;&=-1 \\ x\;&=\phantom{-}2\end{aligned} \right.\] Interchanging the two equations gives the solution in a familiar order of variables.
Below, we discuss how a system of linear equations can be seen as a system of vector equations.
The system of equations \[\left\{\;\begin{aligned} 2x + 3y\;&= 1 \\ \phantom{2}x+\phantom{3}y\;&=1\end{aligned} \right.\] can also be written in vector form as \[x\cdot\!\!\cv{2\cr 1\cr}+y\cdot\!\!\cv{3\cr 1\cr}= \cv{1\cr 1\cr}\] In this form, solving the system is nothing but finding an expression of the vector \(\cv{1\cr 1\cr}\) as a linear combination of the vectors \(\cv{2\cr 1\cr}\) and \(\cv{3\cr 1\cr}\).
We show why the system of linear equations is equivalent to the equation in vector form. We have
\[ x\cdot\!\!\cv{2\cr 1\cr}+y\cdot\!\!\cv{3\cr 1\cr}= \cv{2x\cr x\cr}+\cv{3y\cr y\cr} =\cv{2x+3y\cr x+y\cr}\]
The vector equation can therefore be written as
\[\cv{2x+3y\cr x+y\cr}=\cv{1\cr 1\cr}\]
This amounts to an equality for each coordinate:
\[\left\{\;\begin{aligned} 2x + 3y\;&= 1 \\ \phantom{2}x+\phantom{3}y\;&=1\end{aligned} \right.\]
Thus, we recovered the original system of equations.
We will often see that a linear algebra problem eventually leads to solving a system of linear equations. Therefore we pay considerable attention to finding solutions.
A system of linear equations can have more equations than unknowns. We give an example of two equations with one unknown (a dynamic example at the bottom of this page). You can see that in this case there are three possibilities:
- There is no solution: the equations may be inconsistent. That means that no solution of one equation form the system is also a solution of the other. Also, it may be that one of the equations has no solution.
- There is exactly one solution.
- There is more than one solution: in this case the number of solutions is even infinite, because all the values of the unknown will satisfy both equations.
We have already seen that the system \[ \left\{\;\begin{aligned} x + y\;&= 1 \\ x+ y\;&=2\end{aligned} \right.\] is inconsistent.
The system \[ \left\{\;\begin{aligned} x \;&= 1 \\ y\;&=2\end{aligned} \right.\] with unkowns \(x\) and \(y\) has exactly one solution.
The system \[ \left\{\;\begin{aligned} x \;&= x \\ y\;&=3\end{aligned} \right.\] has more than one solution: for each value \(a\) of \(x\), the pair \(\rv{x,y} = \rv{a,3}\) is a solution.
Solve the following system of equations in \(x\): \[\lineqs{5 x + 5 &=& 3x+5 \cr 6 x + 1 &=& 3 x +5 \cr}\]
There are two linear equations with the same unknown, namely, \(x\). We can solve them separately: \[\lineqs{ x &=& 0\cr x &=& {{4}\over{3}}\cr }\] A look at the two separate solutions gives that there is no solution.