Section 1.1 Systems of linear equations
Subsection 1.1.1 Systems and their solutions
Definition 1.1.1.
A linear equation in variables \(x_1, \ldots, x_n\) is an equation of the form \(a_1x_1 + \cdots + a_nx_n = b\text{,}\) where \(a_1, \ldots, a_n, b\) are constants.
We will sometimes say that an equation is a linear equation if it can be easily rearranged into an equation of the form above.
We may choose any letters that we wish for our variables. When we are working with an unknown number \(n\) of variables we often choose our variables to be \(x_1, \ldots, x_n\) or \(y_1, \ldots, y_n\text{.}\) If we are working with only three variables we are more likely to choose the variables to be \(x, y, z\) rather than \(x_1, x_2, x_3\text{.}\) Occasionally we will have reasons to use other letters.
Example 1.1.2.
The following are examples of linear equations in the variables \(x, y, z\text{:}\)
\(\displaystyle 4x+\pi y-3z=1 \)
\(\displaystyle x+z=0\)
\(\displaystyle x=2+y+z\)
Notice that the second equation is equivalent to \(x+0y+z=0\text{,}\) so we can consider this equation as either being in only the variables \(x, z\) or as being in the variables \(x, y, z\text{;}\) which one is intended will always be made clear from the context. The third equation can be rewritten as \(x-y-z=2\text{.}\)
Example 1.1.3.
The following equations in the variables \(x, y, z\) are not linear:
\(\displaystyle xy+z=2\)
\(\displaystyle x^2+y^2-z=0\)
\(\displaystyle \sin(x) + \cos(y) + \tan(z) = 3\)
Definition 1.1.4.
A system of linear equations is a finite collection of linear equations, all of which are in the same finite collection of variables. The number of variables does not need to be the same as the number of equations.
A solution to a system of linear equations is a choice of values for the variables that makes all of the equations true.
A system of linear equations that has at least one solution is called consistent. A system of linear equations that has no solutions is called inconsistent.
Example 1.1.5.
Here is a system of linear equations in the variables \(x, y, z\text{:}\)
The assignment \(x=0, y=0, z=2\) is one solution to this system of equations. Another solution is \(x=1, y=1, z=0\text{.}\) Yet another solution is \(x=2, y=2, z=-2\text{.}\) The assignment \(x=3, y=2, z=-3\) is not a solution to this system. Since there is at least one solution, this system is consistent.
If we re-write the second equation as \(x=y\) then we can substitute it into the first equation to get
which we can rearrange as \(z=2-2y\text{.}\) Now if we choose any value for \(y\text{,}\) and then take \(x=y\) and \(z=2-2y\text{,}\) then the first equation becomes \(y+y+(2-2y) = 2\) and the second equation becomes \(y-y=0\text{.}\) Both of these equations are true no matter what value we give to \(y\text{.}\) Therefore this system has infinitely many solutions. Even better, we know how to find all of the solutions: Pick any value at all for \(y\text{,}\) then choose \(x=y\) and \(z = 2-2y\text{,}\) and you will have a solution to this system; moreover, every solution to the system is of this form.
Example 1.1.6.
Here is a system of linear equations in the variables \(x, y\text{:}\)
For this system the only solution is \(x=0, y=0\text{.}\) One way to see this is to re-write the second equation as \(x=y\text{.}\) We can then substitute this in to the first equation to obtain \(y+y=0\text{,}\) which means \(y=0\text{.}\) Then plugging this back into \(x=y\) we get \(x=0\text{.}\) Since there is at least one solution, this system is consistent.
Example 1.1.7.
Here is a system of equations in variables \(x_1, x_2, x_3\text{:}\)
This system has no solutions (that is, it is inconsistent). To see this, re-write the third equation as \(x_1 = 5-2x_2\text{.}\) Now substitute that, together with \(x_3 = 1\text{,}\) into the first equation to get
Simplifying this equation gives us
which is not true no matter what the values of \(x_1, x_2, x_3\) are.
The method of solving systems by rearranging equations and substituting them into other equations (such as we did in Example 1.1.5, Example 1.1.6 and Example 1.1.7) may already be familiar to you. While it is effective for small systems like these ones, it very quickly becomes impractical as the number of variables and the number of equations increases. We will see another, more efficient, method in Section 1.2.
So far we have seen that a system of linear equations may have infinitely many solutions, exactly one solution, or no solutions at all. We will eventually see that these are all of the possibilities, but we will need to develop many new ideas before we are ready to explain why that is the case.
Subsection 1.1.2 Augmented matrices
You might have noticed that the letters we choose for the variables in our systems essentially make no difference to the equations. For instance, the system
is fundamentally the same as the system
because the only difference between the two is the letters we chose for the variables.
In fact, the only important information about the system above is that in the first equation the first variable has coefficient \(1\text{,}\) the second variable has coefficient \(-3\text{,}\) and on the other side of the equals sign the constant is \(4\text{,}\) together with similar information for the second equation. Thus the following array of numbers, known as an augmented matrix, contains all of the relevant information about the system of equations:
Definition 1.1.8.
The augmented matrix associated to the system of linear equations
is the matrix
In the augmented matrix of a system of linear equations the part of the matrix to the left of the vertical bar is called the coefficient matrix. In this part of the matrix the numbers are the coefficients of the variables, while the variables themselves are represented by the column positions. Thus the numbers in the second column of the coefficient matrix represent the coefficients of the second variable of the system. Notice that we do not write the variable letters in the matrix!
On the right side of the vertical line we have the constants from the equations. The vertical line itself represents the equals sign.
Example 1.1.9.
Consider this system of equations:
The augmented matrix associated to this system is:
Exercises 1.1.3 Exercises
Which of the following equations are linear? \(\displaystyle 2x-3y+4z =-10\) \(\displaystyle 2.123x_1+5.541x_2-9.101x_3 = 11.012\) \(\displaystyle x^2 +y^2 +z^2 =1\) \(\displaystyle \frac{1}{\sqrt{2}}x+4^3y = \sin\left(\frac{\pi}{3} \right)\) \(\displaystyle x +yz =3\) Linear. Linear. Not linear. Linear. Not linear. The equation \(2x -3y + 4z = -10 \) is a linear equation because it is of the form given in Hint 1.1.3.1.1 where \(2, -3, 4, -10 \) are scalars and \(x,y, z \) are variables. The equation \(2.123x_1+5.541x_2-9.101x_3 = 11.012\) is a linear equation because it is of the form given in Hint 1.1.3.1.1 where \(2.123, 5.541, 9.101, 11.012 \) are scalars and \(x_1,x_2, x_3 \) are variables. The equation \(x^2 +y^2 +z^2 =1\) is a not a linear equation because it is not of the form given in Hint 1.1.3.1.1. The equation contains the variables \(x,y, z \) squared. The equation \(\frac{1}{\sqrt{2}}x+4^3y = \sin\left(\frac{\pi}{3} \right)\) is a liner equation because it is of the form given in Hint 1.1.3.1.1 where \(\frac{1}{\sqrt{2}}, 4^3, \sin\left(\frac{\pi}{3}\right)\) are scalars and \(x,y \) are variables. The equation \(x +yz =3\) is a not a liner equation because it is not of the form given in Hint 1.1.3.1.1. The equation contains a product of the variables \(y, z. \)1.
\(\displaystyle (2,0,-2,2)\) \(\displaystyle (2,2,-2,0)\) \(\displaystyle (1,1,-1,1)\) \(\displaystyle (3,0,-1,1)\) \(\displaystyle (2,-2,2,0)\) The tuple \((2,0,-2,2) \) is a solution to the first and second equation but not the third equation. It is not a solution to the system of equations. The tuple \((2,2,-2,0) \) is a solution to the second and third equation but not the first equation. It is not a solution to the system of equations. The tuple \((1,1,-1,1) \) is a solution to all three equations and hence is a solution to the system of equations. The tuple \((3,0,-1,1) \) is a solution to the first and third equations but not the second equation. It is not a solution to the system of equations. The tuple \((2,-2,2,0) \) is a solution to all three equations and hence is a solution to the system of equations. Substituting in \(x =2, y = 0, z=-2\) and \(w=2 \) into the equation:2.
Consider the system of equations
3.
Graphically, find the solution to the system \(x+3y =1\) and \(x-y=3\text{.}\) That is, each of these equations is a line in the plane. Graph each line and see where they intersect.
4.
Graphically, find the point of intersection of the two lines \(3x+y =3\) and \(x+2y=1\text{.}\) That is, graph each line and see where they intersect.
5.
Solve for the following system by back substitution.
6.
Write the augmented matrix for each of the following systems of linear equations.
- \begin{equation*} \matr{cc|c}{1\amp -3\amp 5\\2\amp 1\amp 5} \end{equation*}
- \begin{equation*} \matr{cc|c}{1\amp -2\amp 0\\0\amp 1\amp 5} \end{equation*}
- \begin{equation*} \matr{ccc|c}{1\amp -1\amp 1 \amp 2 \\1\amp 0 \amp -1 \amp 1 \\ 0\amp 1 \amp 2 \amp 0} \end{equation*}
- \begin{equation*} \matr{ccc|c}{1\amp 1\amp 0 \amp 1 \\0\amp 1 \amp 1 \amp 0 \\ -1\amp 0 \amp 1 \amp 2} \end{equation*}