2.3. The Solution Set of a System of Linear Equations#
As we have seen in Section 1.4, the solutions of a single linear equation with \(2\) variables form a line in the plane. Similarly, the solutions of a single linear equation in \(3\) variables form a plane in three-dimensional space. If we want to know which points lie in the intersection of two planes, we therefore have to find those points that solve two equations simultaneously. This raises some very natural questions: what is the set of vectors that satisfy a number of given equations? What does this set look like geometrically?
Also in Section 1.4 we have already studied the easiest case, that of two equations in \(\mathbb{R}^{2}\). We have seen there that there are three possibilities. The first one is that the equations describe parallel lines. In that case, there is no point of intersection and therefore no common solution of the two equations. The solution set is therefore empty. In the second case, the lines described by the equations cross in a single point \((v_{1},v_{2})\). The solution set therefore consists of the single vector \(\mathbf{v}=\begin{bmatrix}v_{1}\\v_{2}\end{bmatrix}\). In the final case, the two equations describe the same line. The solution set of the system of equations is then the infinite set of vectors which lie on the line.
In this section, we will study solution sets of linear systems in higher dimensions. But first, let us get a clear idea of how we find and write down a solution set.
2.3.1. Writing Down Solution Sets#
In Section 2.1, we saw how to solve a system of linear equations: we reduced the augmented matrix to echelon form and expressed the basic variables in terms of the free variables. This means that any choice of numbers for the free variables determines a solution. We can conveniently write down the set of all such solutions by using a parametrized vector. What we mean by that is best illustrated with a couple of examples.
Consider the following system of equations:
If we apply Algorithm 2.1.1, we find that we can take \(x_{3}\) as a free variable. So for every \(t\) in \(\mathbb{R}\) we can put \(x_{3}=t\) and find a solution: \(x_{1}=-4t\), \(x_{2}=3t\), \(x_{3}=t\). The solution set \(\mathcal{L}_{1}\) of our linear system can therefore be written in the following way:
We can see that the solution set consists of all multiples of a fixed vector \(\mathbf{v}\), i.e. it is a line through the origin. This line can be seen in blue in Figure 2.3.1.
We now look at what happens in a slightly different case where one of our constant terms is not necessarily \(0\).
Consider the system
for some \(a\in\mathbb{R}\). Compared to Example 2.3.1, the only difference is that the right-hand side of the first equation is now \(a\) instead of \(0\). Applying the same algorithm as there, we find again that \(x_{3}\) is free. So for every \(t\) in \(\mathbb{R}\) we can put \(x_{3}=t\) and find a solution: \(x_{1}=-4t-a\), \(x_{2}=3t+a\), \(x_{3}=t\). The solution set \(\mathcal{L}_{2}\) can therefore be written as follows:
We now get a line which is parallel to the one we found in Example 2.3.1, but which has been shifted away from the origin. In fact, any vector in this new solution set is obtained by adding the vector
to an element of the solution set from Example 2.3.1. The green line in Figure 2.3.1 corresponds to the \(a=2\) case.
In general, the solution set of a linear system in \(n\) variables, \(k\) of which are free, can be written as
for some vectors \(\mathbf{v}_{1},...\mathbf{v}_{k},\mathbf{w}\) in \(\mathbb{R}^{n}\). The expression \(\mathbf{w}+t_{1}\mathbf{v}_{1}+\cdots+t_{k}\mathbf{v}_{k}\) is a parametrised vector with parameters \(t_{1},...,t_{k}\). In Example 2.3.2, we have
In Example 2.3.1, \(n\), \(k\), and \(\mathbf{v}_{1}\) are the same, but \(\mathbf{w}=0\).
Example 2.3.1 shows what typically happens when we consider the solutions set of two equations in \(\mathbb{R}^{3}\): we get a line. Of course, this is not the only possibility. The system may be inconsistent, for example. This means that the two equations describe parallel planes. The solution set, which corresponds to the intersection of these planes, is therefore empty. The final possibility is that the second equation is a multiple of the first one. In this case, both equations describe the same plane. The solution set of the system is then that same plane, as in Example 2.3.3.
Consider the following linear system:
We find two free variables and the following solution set:
What happens if we make the constant terms non-zero? Let us change the right hand side of the first equation from \(0\) to \(a\) and that of the second equation from \(0\) to \(2a\):
The solution set now becomes
Note the similarity to Example 2.3.1. Making the right hand side non-zero translates the plane away from the origin by adding the vector
to elements of the solution set of the linear system (2.3.3). This translated plane is parallel to the original one. You can see both these planes in Figure 2.3.2 for the particular case \(a=4\). The yellow vector there is
Note that, if we had changed the right hand side of our first equation to \(a\), \(a\neq0\), and the second one to anything but \(2a\), the system would have had no solutions at all. The two equations would in that case describe two parallel planes.
From these examples, it seems like linear systems in which the constant terms are zero have solution sets containing the origin. Making some of the constant terms non-zero shifts the solution set away from the origin.
2.3.2. Homogeneous Linear Systems#
Our first aim in this section is to show that the intuition from Section 2.3.1 holds in general. We first introduce some terminology to avoid the long and clumsy phrase linear system with all constant terms equal to \(0\).
We will call a linear system homogeneous if all constant terms are \(0\). If
is a system of equations, then the associated homogeneous system is given by
Proposition 2.3.1 shows that the solution set of a non-homogeneous linear system can be obtained by adding the solutions of the associated homogeneous system to one particular solution of the original system. Which particular solution you take does not matter. Compare this to what we found in Section Section 2.3.1, in particular to Figures 2.3.1 and Figure 2.3.2.
Suppose \((c_{1},...,c_{n})\) is a solution of a linear system. Then \((c_{1}',...,c_{n}')\) is also a solution of the linear system if and only if there exists a solution of the associated homogeneous system \((d_{1},...,d_{n})\) such that \(c'_{i}=c_{i}+d_{i}\) for all \(i\).
Proof of Proposition 2.3.1
Consider the linear system
Suppose first that \((c_{1},...,c_{n})\) and \((c_{1}',...,c_{n}')\) are solutions and put \(d_{i}=c_{i}'-c_{i}\). Then
so \((d_{1},...,d_{n})\) is a solution of associated homogeneous system such that \(c_{i}'=c_{i}+d_{i}\) for all \(i\).
Assume on the other hand that \((c_{1},...,c_{n})\) is a solution of the system and that \((d_{1},...,d_{n})\) is a solution of the associated homogeneous system such that \(c_{i'}=c_{i}+d_{i}\). Then
so \((c_{1}',...,c_{n}')\) is indeed a solution of the original system.
In view of Proposition 2.3.1, it seems that a further study of solution sets of homogeneous systems could be very helpful. After all, the solution set to a general system is just a translation of the solution set of the associated homogeneous system. And homogeneous systems are easier!
Let \(V\) be the solution set to a homogeneous linear system. The following statements hold:
-
\(\vect{0}\) is in \(V\);
-
Suppose \(c_{1}\) and \(c_{2}\) are arbitrary scalars. If \(\vect{v}_{1}\) and \(\vect{v}_{2}\) are in \(V\), then so is \(c_{1}\vect{v}_{1}+c_{2}\vect{v}_{2}\).
Proof of Proposition 2.3.2
This is a left as an exercise.
Note that the converse of Proposition 2.3.2 is also true: if i. and ii. hold for the solution set of some linear system, then the system is homogeneous. (In fact, just i. suffices.) This, too, is left as an exercise.
The following consequences of Proposition 2.3.2 will often be useful:
-
By putting \(c_{2}=0\) in statement ii., we find that any multiple of a vector in the solution set is again in the solution set;
-
By putting \(c_{1}=1=c_{2}\), we find that any sum of two solutions is again a solution.
You should keep in mind, however, that this only holds for solutions of homogeneous systems!
(Application)
Remember from Example 1.1.1 that adding carbon (\(\ce{C}\)) to sodium sulfate (\(\ce{Na2SO4}\)) gives sodium sulfide (\(\ce{NaS}\)) and carbon dioxide (\(\ce{CO2}\)). How much carbon do we need to add to a quantity of sodium sulfide in order to turn it all into sodium sulfate?
As we have seen in that application, we can interpret the different molecules as vectors in the following way:
Let \(x_{1},x_{2},x_{3}\) and \(x_{4}\) denote the quantities of \(\ce{Na2SO4}\), \(\ce{C}\), \(\ce{Na2S}\), and \(\ce{CO2}\), respectively. In order to turn all the \(\ce{Na2SO4}\) into \(\ce{Na2S}\), we must have
If we subtract the right hand side, we can rewrite this as the homogeneous system
This system can be solved as follows, using the row reduction algorithm of Section 2.1:
Now we can conclude that the solution set looks as follows:
Hence, in order to turn one molecule of sodium sulfate into sodium sulfide, we must add two molecules of carbon. As a by-product, this will give two molecules of carbon dioxide. Compare this result to Example 1.1.1, where we indeed found the reaction to be balanced when two molecules of carbon were added to one molecule of sodium sulfate.
2.3.3. Grasple Exercises#
Solution set of a system of 2 equations in 3 unknowns
Show/Hide Content
Solution set of a system of 3 equations in 2 unknowns
Show/Hide Content
Solution set of a system of 2 equations in 2 unknowns
Show/Hide Content
Solution set of a system of 3 equations in 4 unknowns
Show/Hide Content
Solution set of a system of 2 equations in 4 unknowns
Show/Hide Content
Solution set of a system of 3 equations in 3 unknowns
Show/Hide Content
Solution set of a system of 3 equations in 5 unknowns
Show/Hide Content
Solution set of a system of 2 equations in 4 unknowns
Show/Hide Content
Different parametrised vector solutions
Show/Hide Content
Combining solutions of a linear system (1)
Show/Hide Content
Combining solutions of a linear system (2)
Show/Hide Content
Combining solutions of a linear system (3)