Learning Outcomes
As you may remember, linear equations like can be graphed as straight lines in the coordinate plane. We say that this equation is in two variables, in this case and . Suppose you have two such equations, each of which can be graphed as a straight line, and consider the resulting graph of two lines. What would it mean if there exists a point of intersection between the two lines? This point, which lies on both graphs, gives and values for which both equations are true. In other words, this point gives the ordered pair () that satisfy both equations. If the point is a point of intersection, we say that is a solution to the two equations. In linear algebra, we often are concerned with finding the solution(s) to a system of equations, if such solutions exist. First, we consider graphical representations of solutions and later we will consider the algebraic methods for finding solutions.
When looking for the intersection of two lines in a graph, several situations may arise. The following picture demonstrates the possible situations when considering two equations (two lines in the graph) involving two variables.
Example B.1: A Graphical Solution
Use a graph to find the solution to the following system of equations
Solution
Through graphing the above equations and identifying the point of intersection, we can find the solution(s). Remember that we must have either one solution, infinitely many, or no solutions at all. The following graph shows the two equations, as well as the intersection. Remember, the point of intersection represents the solution of the two equations, or the which satisfy both equations. In this case, there is one point of intersection at which means we have one unique solution, .
In the above example, we investigated the intersection point of two equations in two variables, and . Now we will consider the graphical solutions of three equations in two variables.
Consider a system of three equations in two variables. Again, these equations can be graphed as straight lines in the plane, so that the resulting graph contains three straight lines. Recall the three possible types of solutions; no solution, one solution, and infinitely many solutions. There are now more complex ways of achieving these situations, due to the presence of the third line. For example, you can imagine the case of three intersecting lines having no common point of intersection. Perhaps you can also imagine three intersecting lines which do intersect at a single point. These two situations are illustrated below.
Consider the first picture above. While all three lines intersect with one another, there is no common point of intersection where all three lines meet at one point. Hence, there is no solution to the three equations. Remember, a solution is a point which satisfies all three equations. In the case of the second picture, the lines intersect at a common point. This means that there is one solution to the three equations whose graphs are the given lines. You should take a moment now to draw the graph of a system which results in three parallel lines. Next, try the graph of three identical lines. Which type of solution is represented in each of these graphs?
We have now considered the graphical solutions of systems of two equations in two variables, as well as three equations in two variables. However, there is no reason to limit our investigation to equations in two variables. We will now consider equations in three variables.
You may recall that equations in three variables, such as , form a plane. Above, we were looking for intersections of lines in order to identify any possible solutions. When graphically solving systems of equations in three variables, we look for intersections of planes. These points of intersection give the that satisfy all the equations in the system. What types of solutions are possible when working with three variables? Consider the following picture involving two planes, which are given by two equations in three variables.
It could also happen that the two planes fail to intersect. However, is it possible to have two planes intersect at a single point? Take a moment to attempt drawing this situation, and convince yourself that it is not possible! This means that when we have only two equations in three variables, there is no way to have a unique solution! Hence, the types of solutions possible for two equations in three variables are no solution or infinitely many solutions.
Now imagine adding a third plane. In other words, consider three equations in three variables. What types of solutions are now possible? Consider the following diagram.
Recall that when working with two equations in three variables, it was not possible to have a unique solution. Is it possible when considering three equations in three variables? In fact, it is possible, and we demonstrate this situation in the following picture.
You can see that when working with equations in three variables, there are many more ways to achieve the different types of solutions than when working with two variables. It may prove enlightening to spend time imagining (and drawing) many possible scenarios, and you should take some time to try a few.
You should also take some time to imagine (and draw) graphs of systems in more than three variables. Equations like with more than three variables are often called hyper-planes. You may soon realize that it is tricky to draw the graphs of hyper-planes! Through the tools of linear algebra, we can algebraically examine these types of systems which are difficult to graph. In the following section, we will consider these algebraic tools.
Learning Outcomes
We have taken an in depth look at graphical representations of systems of equations, as well as how to find possible solutions graphically. Our attention now turns to working with systems algebraically.
Definition B.2: System of Linear Equations
A system of linear equations is a list of equations,
where and are real numbers. The above is a system of equations in the variables, . Written more simply in terms of summation notation, the above can be written in the form
Finally, we can write this in matrix notation as
where
The relative size of and is not important here. Notice that we have allowed and to be any real number. We can also call these numbers scalars . We will use this term throughout the text, so keep in mind that the term scalar just means that we are working with real numbers.
Now, suppose we have a system where for all . In other words every equation equals . This is a special type of system.
Definition B.3: Homogeneous System of Equations
A system of equations is called homogeneous if each equation in the system is equal to . A homogeneous system has the form
where are scalars and are variables.
Recall from the previous section that our goal when working with systems of linear equations was to find the point of intersection of the equations when graphed. In other words, we looked for the solutions to the system. We now wish to find these solutions algebraically. We want to find values for which solve all of the equations. If such a set of values exists, we call the solution set.
Recall the above discussions about the types of solutions possible. We will see that systems of linear equations will have one unique solution, infinitely many solutions, or no solution. Consider the following definition.
Definition B.4: Consistent and Inconsistent Systems
A system of linear equations is called consistent if there exists at least one solution. It is called inconsistent if there is no solution.
If you think of each equation as a condition which must be satisfied by the variables, consistent would mean there is some choice of variables which can satisfy all the conditions. Inconsistent would mean there is no choice of the variables which can satisfy all of the conditions.
The following sections provide methods for determining if a system is consistent or inconsistent, and finding solutions if they exist.
We begin this section with an example. Recall from Example B.1 that the solution to the given system was .
Example B.5: Verifying an Ordered Pair is a Solution
Algebraically verify that is a solution to the following system of equations.
Solution
By graphing these two equations and identifying the point of intersection, we previously found that is the unique solution.
We can verify algebraically by substituting these values into the original equations, and ensuring that the equations hold. First, we substitute the values into the first equation and check that it equals .
This equals as needed, so we see that is a solution to the first equation. Substituting the values into the second equation yields
which is true. For each equation is true and therefore, this is a solution to the system.
Now, the interesting question is this: If you were not given these numbers to verify, how could you algebraically determine the solution? Linear algebra gives us the tools needed to answer this question. The following basic operations are important tools that we will utilize.
Definition B.6: Elementary Operations
Elementary operations are those operations consisting of the following.
It is important to note that none of these operations will change the set of solutions of the system of equations. In fact, elementary operations are the key tool we use in linear algebra to find solutions to systems of equations.
Consider the following example.
Example B.7: Effects of an Elementary Operation
Show that the system
has the same solution as the system
Solution
Notice that the second system has been obtained by taking the second equation of the first system and adding -2 times the first equation, as follows:
By simplifying, we obtain
which is the second equation in the second system. Now, from here we can solve for and see that . Next, we substitute this value into the first equation as follows
Hence and so is a solution to the second system. We want to check if is also a solution to the first system. We check this by substituting into the system and ensuring the equations are true.
Hence, is also a solution to the first system.
This example illustrates how an elementary operation applied to a system of two equations in two variables does not affect the solution set. However, a linear system may involve many equations and many variables and there is no reason to limit our study to small systems. For any size of system in any number of variables, the solution set is still the collection of solutions to the equations. In every case, the above operations of Definition B.6 do not change the set of solutions to the system of linear equations.
In the following theorem, we use the notation to represent an equation, while denotes a constant.
Theorem B.8: Elementary Operations and Solutions
Suppose you have a system of two linear equations
| (B.1) |
Then the following systems have the same solution set as B.1:
| (B.2) |
| (B.3) |
for any scalar , provided .
| (B.4) |
for any scalar (including ).
Before we proceed with the proof of Theorem B.8, let us consider this theorem in context of Example B.7. Then,
Recall the elementary operations that we used to modify the system in the solution to the example. First, we added times the first equation to the second equation. In terms of Theorem B.8, this action is given by
or
This gave us the second system in Example B.7, given by
From this point, we were able to find the solution to the system. Theorem B.8 tells us that the solution we found is in fact a solution to the original system.
Stated simply, the above theorem shows that the elementary operations do not change the solution set of a system of equations.
We will now look at an example of a system of three equations and three variables. Similarly to the previous examples, the goal is to find values for such that each of the given equations are satisfied when these values are substituted in.
Example B.9: Solving a System of Equations with Elementary Operations
Find the solutions to the system,
| (B.5) |
Solution
We can relate this system to Theorem B.8 above. In this case, we have
Theorem B.8 claims that if we do elementary operations on this system, we will not change the solution set. Therefore, we can solve this system using the elementary operations given in Definition B.6. First, replace the second equation by times the first equation added to the second. This yields the system
| (B.6) |
Now, replace the third equation with times the second added to the third. This yields the system
| (B.7) |
At this point, we can easily find the solution. Simply take and substitute this back into the previous equation to solve for , and similarly to solve for .
The second equation is now
You can see from this equation that . Therefore, we can substitute this value into the first equation as follows:
By simplifying this equation, we find that . Hence, the solution to this system is . This process is called back substitution.
Alternatively, in B.7 you could have continued as follows. Add times the third equation to the second and then add times the second to the first. This yields
Now add times the second to the first. This yields
a system which has the same solution set as the original system. This avoided back substitution and led to the same solution set. It is your decision which you prefer to use, as both methods lead to the correct solution, .
The work we did in the previous section will always find the solution to the system. In this section, we will explore a less cumbersome way to find the solutions. First, we will represent a linear system with an augmented matrix. A matrix is simply a rectangular array of numbers. The size or dimension of a matrix is defined as where is the number of rows and is the number of columns. In order to construct an augmented matrix from a linear system, we create a coefficient matrix from the coefficients of the variables in the system, as well as a constant matrix from the constants. The coefficients from one equation of the system create one row of the augmented matrix.
For example, consider the linear system in Example B.9
This system can be written as an augmented matrix, as follows
Notice that it has exactly the same information as the original system. Here it is understood that the first column contains the coefficients from in each equation, in order, Similarly, we create a column from the coefficients on in each equation, and a column from the coefficients on in each equation, For a system of more than three variables, we would continue in this way constructing a column for each variable. Similarly, for a system of less than three variables, we simply construct a column for each variable.
Finally, we construct a column from the constants of the equations,
The rows of the augmented matrix correspond to the equations in the system. For example, the top row in the augmented matrix, corresponds to the equation
Consider the following definition.
Definition B.10: Augmented Matrix of a Linear System
For a linear system of the form
where the are variables and the and are constants, the augmented matrix of this system is given by
Now, consider elementary operations in the context of the augmented matrix. The elementary operations in Definition B.6 can be used on the rows just as we used them on equations previously. Changes to a system of equations in as a result of an elementary operation are equivalent to changes in the augmented matrix resulting from the corresponding row operation. Note that Theorem B.8 implies that any elementary row operations used on an augmented matrix will not change the solution to the corresponding system of equations. We now formally define elementary row operations. These are the key tool we will use to find solutions to systems of equations.
Definition B.11: Elementary Row Operations
The elementary row operations (also known as row operations) consist of the following
Recall how we solved Example B.9. We can do the exact same steps as above, except now in the context of an augmented matrix and using row operations. The augmented matrix of this system is
Thus the first step in solving the system given by B.5 would be to take times the first row of the augmented matrix and add it to the second row,
Note how this corresponds to B.6. Next take times the second row and add to the third,
This augmented matrix corresponds to the system
which is the same as B.7. By back substitution you obtain the solution and
Through a systematic procedure of row operations, we can simplify an augmented matrix and carry it to row-echelon form or reduced row-echelon form, which we define next. These forms are used to find the solutions of the system of equations corresponding to the augmented matrix.
In the following definitions, the term leading entry refers to the first nonzero entry of a row when scanning the row from left to right.
Definition B.12: Row-Echelon Form
An augmented matrix is in row-echelon form if
We also consider another reduced form of the augmented matrix which has one further condition.
Definition B.13: Reduced Row-Echelon Form
An augmented matrix is in reduced row-echelon form if
Notice that the first three conditions on a reduced row-echelon form matrix are the same as those for row-echelon form.
Hence, every reduced row-echelon form matrix is also in row-echelon form. The converse is not necessarily true; we cannot assume that every matrix in row-echelon form is also in reduced row-echelon form. However, it often happens that the row-echelon form is sufficient to provide information about the solution of a system.
The following examples describe matrices in these various forms. As an exercise, take the time to carefully verify that they are in the specified form.
Example B.14: Not in Row-Echelon Form
The following augmented matrices are not in row-echelon form (and therefore also not in reduced row-echelon form).
Example B.15: Matrices in Row-Echelon Form
The following augmented matrices are in row-echelon form, but not in reduced row-echelon form.
Notice that we could apply further row operations to these matrices to carry them to reduced row-echelon form. Take the time to try that on your own. Consider the following matrices, which are in reduced row-echelon form.
Example B.16: Matrices in Reduced Row-Echelon Form
The following augmented matrices are in reduced row-echelon form.
One way in which the row-echelon form of a matrix is useful is in identifying the pivot positions and pivot columns of the matrix.
Definition B.17: Pivot Position and Pivot Column
A pivot position in a matrix is the location of a leading entry in the row-echelon formof a matrix. A pivot column is a column that contains a pivot position.
For example consider the following.
Example B.18: Pivot Position
Let
Where are the pivot positions and pivot columns of the augmented matrix ?
Solution
The row-echelon form of this matrix is
This is all we need in this example, but note that this matrix is not in reduced row-echelon form.
In order to identify the pivot positions in the original matrix, we look for the leading entries in the row-echelon form of the matrix. Here, the entry in the first row and first column, as well as the entry in the second row and second column are the leading entries. Hence, these locations are the pivot positions. We identify the pivot positions in the original matrix, as in the following:
Thus the pivot columns in the matrix are the first two columns.
The following is an algorithm for carrying a matrix to row-echelon form and reduced row-echelon form. You may wish to use this algorithm to carry the above matrix to row-echelon form or reduced row-echelon form yourself for practice.
Algorithm: Reduced Row-Echelon Form Algorithm
This algorithm provides a method for using row operations to take a matrix to its reduced row-echelon form. We begin with the matrix in its original form.
The following step will carry the matrix from row-echelon form to reduced row-echelon form.
Most often we will apply this algorithm to an augmented matrix in order to find the solution to a system of linear equations. However, we can use this algorithm to compute the reduced row-echelon form of any matrix which could be useful in other applications.
Consider the following example of Algorithm B.2.2.
Example B.19: Finding Row-Echelon Form and
Reduced Row-Echelon Form of a Matrix
Let
Find the row-echelon form of . Then complete the process until is in reduced row-echelon form.
Solution
In working through this example, we will use the steps outlined in Algorithm B.2.2.
In this matrix, the first column is a pivot column, and is in the first pivot position. Therefore, we need to create a zero below it. To do this, add times the first row (of this matrix) to the second. The resulting matrix is
Our original matrix now looks like
We can see that there are no more rows to modify.
This matrix is now in row-echelon form.
This matrix is now in reduced row-echelon form.
The above algorithm gives you a simple way to obtain the row-echelon form and reduced row-echelon form of a matrix. The main idea is to do row operations in such a way as to end up with a matrix in row-echelon form or reduced row-echelon form. This process is important because the resulting matrix will allow you to describe the solutions to the corresponding linear system of equations in a meaningful way.
In the next example, we look at how to solve a system of equations using the corresponding augmented matrix.
Example B.20: Finding the Solution to a System
Give the complete solution to the following system of equations
Solution
The augmented matrix for this system is
In order to find the solution to this system, we wish to carry the augmented matrix to reduced row-echelon form. We will do so using Algorithm B.2.2. Notice that the first column is nonzero, so this is our first pivot column. The first entry in the first row, , is the first leading entry and it is in the first pivot position. We will use row operations to create zeros in the entries below the . First, replace the second row with times the first row plus times the second row. This yields
Now, replace the third row with times the first row plus to times the third row. This yields
Now the entries in the first column below the pivot position are zeros. We now look for the second pivot column, which in this case is column three. Here, the in the second row and third column is in the pivot position. We need to do just one row operation to create a zero below the .
Taking times the second row and adding it to the third row yields
We could proceed with the algorithm to carry this matrix to row-echelon form or reduced row-echelon form. However, remember that we are looking for the solutions to the system of equations. Take another look at the third row of the matrix. Notice that it corresponds to the equation
There is no solution to this equation because for all , the left side will equal and This shows there is no solution to the given system of equations. In other words, this system is inconsistent.
The following is another example of how to find the solution to a system of equations by carrying the corresponding augmented matrix to reduced row-echelon form.
Example B.21: An Infinite Set of Solutions
Give the complete solution to the system of equations
| (B.8) |
Solution
The augmented matrix of this system is
In order to find the solution to this system, we will carry the augmented matrix to reduced row-echelon form, using Algorithm B.2.2. The first column is the first pivot column. We want to use row operations to create zeros beneath the first entry in this column, which is in the first pivot position. Replace the third row with times the first row added to times the third row. This gives
Now, we have created zeros beneath the in the first column, so we move on to the second pivot column (which is the second column) and repeat the procedure. Take times the second row and add to the third row.
The entry below the pivot position in the second column is now a zero. Notice that we have no more pivot columns because we have only two leading entries.
At this stage, we also want the leading entries to be equal to one. To do so, divide the first row by .
This matrix is now in row-echelon form.
Let’s continue with row operations until the matrix is in reduced row-echelon form. This involves creating zeros above the pivot positions in each pivot column. This requires only one step, which is to add times the second row to the first row.
This is in reduced row-echelon form, which you should verify using Definition B.13. The equations corresponding to this reduced row-echelon form are
or
Observe that is not restrained by any equation. In fact, can equal any number. For example, we can let , where we can choose to be any number. In this context is called a parameter . Therefore, the solution set of this system is
where is arbitrary. The system has an infinite set of solutions which are given by these equations. For any value of we select, and will be given by the above equations. For example, if we choose then the corresponding solution would be
In Example B.21 the solution involved one parameter. It may happen that the solution to a system involves more than one parameter, as shown in the following example.
Example B.22: A Two Parameter Set of Solutions
Find the solution to the system
Solution
The augmented matrix is
We wish to carry this matrix to row-echelon form. Here, we will outline the row operations used. However, make sure that you understand the steps in terms of Algorithm B.2.2.
Take times the first row and add to the second. Then take times the first row and add to the third. This yields
Now add the second row to the third row and divide the second row by .
| (B.9) |
This matrix is in row-echelon form and we can see that and correspond to pivot columns, while and do not. Therefore, we will assign parameters to the variables and . Assign the parameter to and the parameter to Then the first row yields the equation , while the second row yields the equation . Since , the first equation becomes showing that the solution is given by
It is customary to write this solution in the form
| (B.10) |
This example shows a system of equations with an infinite solution set which depends on two parameters. It can be less confusing in the case of an infinite solution set to first place the augmented matrix in reduced row-echelon form rather than just row-echelon form before seeking to write down the description of the solution.
In the above steps, this means we don’t stop with the row-echelon form in equation B.9. Instead we first place it in reduced row-echelon form as follows.
Then the solution is from the second row and from the first. Thus letting and the solution is given by B.10.
You can see here that there are two paths to the correct answer, which both yield the same answer. Hence, either approach may be used. The process which we first used in the above solution is called Gaussian Elimination This process involves carrying the matrix to row-echelon form, converting back to equations, and using back substitution to find the solution. When you do row operations until you obtain reduced row-echelon form, the process is called Gauss-Jordan Elimination.
We have now found solutions for systems of equations with no solution and infinitely many solutions, with one parameter as well as two parameters. Recall the three types of solution sets which we discussed in the previous section; no solution, one solution, and infinitely many solutions. Each of these types of solutions could be identified from the graph of the system. It turns out that we can also identify the type of solution from the reduced row-echelon form of the augmented matrix.
No Solution: In the case where the system of equations has no solution, the row-echelon form of the augmented matrix will have a row of the form
This row indicates that the system is inconsistent and has no solution.
One Solution: In the case where the system of equations has one solution, every column of the coefficient matrix is a pivot column. The following is an example of an augmented matrix in reduced row-echelon form for a system of equations with one solution.
Infinitely Many Solutions: In the case where the system of equations has infinitely many solutions, the solution contains parameters. There will be columns of the coefficient matrix which are not pivot columns. The following are examples of augmented matrices in reduced row-echelon form for systems of equations with infinitely many solutions.
or
As we have seen in earlier sections, we know that every matrix can be brought into reduced row-echelon form by a sequence of elementary row operations. Here we will prove that the resulting matrix is unique; in other words, the resulting matrix in reduced row-echelon form does not depend upon the particular sequence of elementary row operations or the order in which they were performed.
Let be the augmented matrix of a homogeneous system of linear equations in the variables which is also in reduced row-echelon form. The matrix divides the set of variables in two different types. We say that is a basic variable whenever has a leading in column number , in other words, when column is a pivot column. Otherwise we say that is a free variable.
Recall Example B.22.
Example B.23: Basic and Free Variables
Find the basic and free variables in the system
Solution
Recall from the solution of Example B.22 that the row-echelon form of the augmented matrix of this system is given by
You can see that columns and are pivot columns. These columns correspond to variables and , making these the basic variables. Columns and are not pivot columns, which means that and are free variables.
We can write the solution to this system as
Here the free variables are written as parameters, and the basic variables are given by linear functions of these parameters.
In general, all solutions can be written in terms of the free variables. In such a description, the free variables can take any values (they become parameters), while the basic variables become simple linear functions of these parameters. Indeed, a basic variable is a linear function of only those free variables with . This leads to the following observation.
Proposition B.1. Basic and Free Variables If is a basic variable of a homogeneous system of linear equations, then any solution of the system with for all those free variables with must also have .
Using this proposition, we prove a lemma which will be used in the proof of the main result of this section below.
Lemma B.1. Solutions and the Reduced Row-Echelon Form of a Matrix Let and be two distinct augmented matrices for two homogeneous systems of equations in variables, such that and are each in reduced row-echelon form. Then, the two systems do not have exactly the same solutions.
Now, we say that the matrix is equivalent to the matrix provided that can be obtained from by performing a sequence of elementary row operations beginning with . The importance of this concept lies in the following result.
Theorem B.24: Equivalent Matrices
The two linear systems of equations corresponding to two equivalent augmented matrices have exactly the same solutions.
The proof of this theorem is left as an exercise.
Now, we can use Lemma B.1 and Theorem B.24 to prove the main result of this section.
Theorem B.25: Uniqueness of the Reduced Row-Echelon Form
Every matrix is equivalent to a unique matrix in reduced row-echelon form.
According to this theorem we can say that each matrix has a unique reduced row-echelon form.
There is a special type of system which requires additional study. This type of system is called a homogeneous system of equations, which we defined above in Definition B.3. Our focus in this section is to consider what types of solutions are possible for a homogeneous system of equations.
Consider the following definition.
Definition B.26: Trivial Solution
Consider the homogeneous system of equations given by
Then, is always a solution to this system. We call this the trivial solution .
If the system has a solution in which not all of the are equal to zero, then we call this solution nontrivial . The trivial solution does not tell us much about the system, as it says that ! Therefore, when working with homogeneous systems of equations, we want to know when the system has a nontrivial solution.
Suppose we have a homogeneous system of equations, using variables, and suppose that . In other words, there are more variables than equations. Then, it turns out that this system always has a nontrivial solution. Not only will the system have a nontrivial solution, but it also will have infinitely many solutions. It is also possible, but not required, to have a nontrivial solution if and .
Consider the following example.
Example B.27: Solutions to a Homogeneous System of Equations
Find the nontrivial solutions to the following homogeneous system of equations
Solution
Notice that this system has equations and variables, so . Therefore by our previous discussion, we expect this system to have infinitely many solutions.
The process we use to find the solutions for a homogeneous system of equations is the same process we used in the previous section. First, we construct the augmented matrix, given by
Then, we carry this matrix to its reduced row-echelon form, given below.
The corresponding system of equations is
Since is not restrained by any equation, we know that this variable will become our parameter. Let where is any number. Therefore, our solution has the form
Hence this system has infinitely many solutions, with one parameter .
Suppose we were to write the solution to the previous example in another form. Specifically,
can be written as
Notice that we have constructed a column from the constants in the solution (all equal to ), as well as a column corresponding to the coefficients on in each equation. While we will discuss this form of solution more in further chapters, for now consider the column of coefficients of the parameter . In this case, this is the column .
There is a special name for this column, which is basic solution. The basic solutions of a system are columns constructed from the coefficients on parameters in the solution. We often denote basic solutions by etc., depending on how many solutions occur. Therefore, Example B.27 has the basic solution .
We explore this further in the following example.
Example B.28: Basic Solutions of a Homogeneous System
Consider the following homogeneous system of equations.
Find the basic solutions to this system.
Solution
The augmented matrix of this system and the resulting reduced row-echelon form are
When written in equations, this system is given by
Notice that only corresponds to a pivot column. In this case, we will have two parameters, one for and one for . Let and for any numbers and . Then, our solution becomes
which can be written as
You can see here that we have two columns of coefficients corresponding to parameters, specifically one for and one for . Therefore, this system has two basic solutions! These are
We now present a new definition.
Definition B.29: Linear Combination
Let be column matrices. Then is said to be a linear combination of the columns if there exist scalars, such that
A remarkable result of this section is that a linear combination of the basic solutions is again a solution to the system. Even more remarkable is that every solution can be written as a linear combination of these solutions. Therefore, if we take a linear combination of the two solutions to Example B.28, this would also be a solution. For example, we could take the following linear combination
You should take a moment to verify that
is in fact a solution to the system in Example B.28.
Another way in which we can find out more information about the solutions of a homogeneous system is to consider the rank of the associated coefficient matrix. We now define what is meant by the rank of a matrix.
Definition B.30: Rank of a Matrix
Let be a matrix and consider any row-echelon form of . Then, the number of leading entries of does not depend on the row-echelon form you choose, and is called the rank of . We denote it by .
Similarly, we could count the number of pivot positions (or pivot columns) to determine the rank of .
Example B.31: Finding the Rank of a Matrix
Consider the matrix
What is its rank?
Solution
First, we need to find the reduced row-echelon form of . Through the usual algorithm, we find that this is
Here we have two leading entries, or two pivot positions, shown above in boxes.The rank of is
Notice that we would have achieved the same answer if we had found the row-echelon form of instead of the reduced row-echelon form.
Suppose we have a homogeneous system of equations in variables, and suppose that . From our above discussion, we know that this system will have infinitely many solutions. If we consider the rank of the coefficient matrix of this system, we can find out even more about the solution. Note that we are looking at just the coefficient matrix, not the entire augmented matrix.
Theorem B.32: Rank and Solutions to a Homogeneous System
Let be the coefficient matrix corresponding to a homogeneous system of equations, and suppose has rank . Then, the solution to the corresponding system has parameters.
Consider our above Example B.28 in the context of this theorem. The system in this example has equations in variables. First, because , we know that the system has a nontrivial solution, and therefore infinitely many solutions. This tells us that the solution will contain at least one parameter. The rank of the coefficient matrix can tell us even more about the solution! The rank of the coefficient matrix of the system is , as it has one leading entry in row-echelon form. Theorem B.32 tells us that the solution will have parameters. You can check that this is true in the solution to Example B.28.
Notice that if or , it is possible to have either a unique solution (which will be the trivial solution) or infinitely many solutions.
We are not limited to homogeneous systems of equations here. The rank of a matrix can be used to learn about the solutions of any system of linear equations. In the previous section, we discussed that a system of equations can have no solution, a unique solution, or infinitely many solutions. Suppose the system is consistent, whether it is homogeneous or not. The following theorem tells us how we can use the rank to learn about the type of solution we have.
Theorem B.33: Rank and Solutions to a Consistent System of Equations
Let be the augmented matrix corresponding to a consistent system of equations in variables, and suppose has rank . Then
We will not present a formal proof of this, but consider the following discussions.