1 System of Linear Equations
1.1 Solutions and elementary operations
Practical problems in many fields of study—such as biology, business, chemistry, computer science, economics, electronics, engineering, physics and the social sciences—can often be reduced to solving a system of linear equations. Linear algebra arose from attempts to find systematic methods for solving these systems, so it is natural to begin this book by studying linear equations.
If  ,
,  , and
, and  are real numbers, the graph of an equation of the form
 are real numbers, the graph of an equation of the form
      
is a straight line (if  and
 and  are not both zero), so such an equation is called a linear equation in the variables
 are not both zero), so such an equation is called a linear equation in the variables  and
 and  . However, it is often convenient to write the variables as
. However, it is often convenient to write the variables as  , particularly when more than two variables are involved. An equation of the form
, particularly when more than two variables are involved. An equation of the form
      
is called a linear equation in the  variables
 variables  . Here
. Here  denote real numbers (called the coefficients of
 denote real numbers (called the coefficients of  , respectively) and
, respectively) and  is also a number (called the constant term of the equation). A finite collection of linear equations in the variables
 is also a number (called the constant term of the equation). A finite collection of linear equations in the variables  is called a system of linear equations in these variables. Hence,
 is called a system of linear equations in these variables. Hence,
      
is a linear equation; the coefficients of  ,
,  , and
, and  are
 are  ,
,  , and
, and  , and the constant term is
, and the constant term is  . Note that each variable in a linear equation occurs to the first power only.
. Note that each variable in a linear equation occurs to the first power only.
Given a linear equation  , a sequence
, a sequence  of
 of  numbers is called a solution to the equation if
 numbers is called a solution to the equation if
      
that is, if the equation is satisfied when the substitutions  are made. A sequence of numbers is called a solution to a system of equations if it is a solution to every equation in the system.
 are made. A sequence of numbers is called a solution to a system of equations if it is a solution to every equation in the system.
A system may have no solution at all, or it may have a unique solution, or it may have an infinite family of solutions. For instance, the system  ,
,  has no solution because the sum of two numbers cannot be 2 and 3 simultaneously. A system that has no solution is called inconsistent; a system with at least one solution is called consistent.
 has no solution because the sum of two numbers cannot be 2 and 3 simultaneously. A system that has no solution is called inconsistent; a system with at least one solution is called consistent.
Show that, for arbitrary values of  and
 and  ,
,
      
is a solution to the system
      
Simply substitute these values of  ,
,  ,
,  , and
, and  in each equation.
 in each equation.
      
Because both equations are satisfied, it is a solution for all choices of  and
 and  .
.
The quantities  and
 and  in this example are called parameters, and the set of solutions, described in this way, is said to be given in parametric form and is called the general solution to the system. It turns out that the solutions to every system of equations (if there are solutions) can be given in parametric form (that is, the variables
 in this example are called parameters, and the set of solutions, described in this way, is said to be given in parametric form and is called the general solution to the system. It turns out that the solutions to every system of equations (if there are solutions) can be given in parametric form (that is, the variables  ,
,  ,
,  are given in terms of new independent variables
 are given in terms of new independent variables  ,
,  , etc.).
, etc.).
When only two variables are involved, the solutions to systems of linear equations can be described geometrically because the graph of a linear equation  is a straight line if
 is a straight line if  and
 and  are not both zero. Moreover, a point
 are not both zero. Moreover, a point  with coordinates
 with coordinates  and
 and  lies on the line if and only if
 lies on the line if and only if  —that is when
—that is when  ,
,  is a solution to the equation. Hence the solutions to a system of linear equations correspond to the points
 is a solution to the equation. Hence the solutions to a system of linear equations correspond to the points  that lie on all the lines in question.
 that lie on all the lines in question.
In particular, if the system consists of just one equation, there must be infinitely many solutions because there are infinitely many points on a line. If the system has two equations, there are three possibilities for the corresponding straight lines:
- The lines intersect at a single point. Then the system has a unique solution corresponding to that point.
- The lines are parallel (and distinct) and so do not intersect. Then the system has no solution.
- The lines are identical. Then the system has infinitely many solutions—one for each point on the (common) line.
With three variables, the graph of an equation  can be shown to be a plane and so again provides a “picture” of the set of solutions. However, this graphical method has its limitations: When more than three variables are involved, no physical image of the graphs (called hyperplanes) is possible. It is necessary to turn to a more “algebraic” method of solution.
 can be shown to be a plane and so again provides a “picture” of the set of solutions. However, this graphical method has its limitations: When more than three variables are involved, no physical image of the graphs (called hyperplanes) is possible. It is necessary to turn to a more “algebraic” method of solution.
Before describing the method, we introduce a concept that simplifies the computations involved. Consider the following system
      
of three equations in four variables. The array of numbers
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrr|r} 3 & 2 & -1 & 1 & -1 \\ 2 & 0 & -1 & 2 & 0 \\ 3 & 1 & 2 & 5 & 2 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-e4b09e5e9fb24a35f7ff1a48dad80074_l3.png)
occurring in the system is called the augmented matrix of the system. Each row of the matrix consists of the coefficients of the variables (in order) from the corresponding equation, together with the constant term. For clarity, the constants are separated by a vertical line. The augmented matrix is just a different way of describing the system of equations. The array of coefficients of the variables
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrr} 3 & 2 & -1 & 1 \\ 2 & 0 & -1 & 2 \\ 3 & 1 & 2 & 5 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-199b6155f2adee9de61a7e958e8917ef_l3.png)
is called the coefficient matrix of the system and
![Rendered by QuickLaTeX.com \left[ \begin{array}{r} -1 \\ 0 \\ 2 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-04c6a182a7c583f5b425e38741f08e9a_l3.png) is called the constant matrix of the system.
 is called the constant matrix of the system.
Elementary Operations
The algebraic method for solving systems of linear equations is described as follows. Two such systems are said to be equivalent if they have the same set of solutions. A system is solved by writing a series of systems, one after the other, each equivalent to the previous system. Each of these systems has the same set of solutions as the original one; the aim is to end up with a system that is easy to solve. Each system in the series is obtained from the preceding system by a simple manipulation chosen so that it does not change the set of solutions.
As an illustration, we solve the system  ,
,  in this manner. At each stage, the corresponding augmented matrix is displayed. The original system is
 in this manner. At each stage, the corresponding augmented matrix is displayed. The original system is
      ![Rendered by QuickLaTeX.com \begin{equation*} \begin{array}{lcl} \arraycolsep=1pt \begin{array}{rlrcr} x & + & 2y & = & -2 \\ 2x & + & y & = & 7 \end{array} & \quad & \left[ \begin{array}{rr|r} 1 & 2 & -2 \\ 2 & 1 & 7 \end{array} \right] \end{array} \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-9b0678c560f81284b352f06cb72492e9_l3.png)
First, subtract twice the first equation from the second. The resulting system is
      ![Rendered by QuickLaTeX.com \begin{equation*} \begin{array}{lcl} \arraycolsep=1pt \begin{array}{rlrcr} x & + & 2y & = & -2 \\ & - & 3y & = & 11 \end{array} & \quad & \left[ \begin{array}{rr|r} 1 & 2 & -2 \\ 0 & -3 & 11 \end{array} \right] \end{array} \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-13c11e3b7af630c912d902779e186e7b_l3.png)
which is equivalent to the original. At this stage we obtain  by multiplying the second equation by
 by multiplying the second equation by  . The result is the equivalent system
. The result is the equivalent system
      ![Rendered by QuickLaTeX.com \begin{equation*} \begin{array}{lcl} \arraycolsep=1pt \begin{array}{rcr} x + 2y & = & -2 \\ y & = & -\frac{11}{3} \end{array} & \quad & \left[ \begin{array}{rr|r} 1 & 2 & -2 \\ 0 & 1 & -\frac{11}{3} \end{array} \right] \end{array} \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-e8f239ea40e1acd9d16b7b58a6159e60_l3.png)
Finally, we subtract twice the second equation from the first to get another equivalent system.
      ![Rendered by QuickLaTeX.com \begin{equation*} \begin{array}{lcl} \def\arraystretch{1.5} \arraycolsep=1pt \begin{array}{rcr} x & = & \frac{16}{3} \\ y & = & -\frac{11}{3} \end{array} & \quad \quad & \def\arraystretch{1.5} \left[ \begin{array}{rr|r} 1 & 0 & \frac{16}{3} \\ 0 & 1 & -\frac{11}{3} \end{array} \right] \end{array} \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-7618d0404d1f6c39ac57df382fe5a484_l3.png)
Now this system is easy to solve! And because it is equivalent to the original system, it provides the solution to that system.
Observe that, at each stage, a certain operation is performed on the system (and thus on the augmented matrix) to produce an equivalent system.
Definition 1.1 Elementary Operations
The following operations, called elementary operations, can routinely be performed on systems of linear equations to produce equivalent systems.
- Interchange two equations.
- Multiply one equation by a nonzero number.
- Add a multiple of one equation to a different equation.
Theorem 1.1.1
Suppose that a sequence of elementary operations is performed on a system of linear equations. Then the resulting system has the same set of solutions as the original, so the two systems are equivalent.
Elementary operations performed on a system of equations produce corresponding manipulations of the rows of the augmented matrix. Thus, multiplying a row of a matrix by a number  means multiplying every entry of the row by
 means multiplying every entry of the row by  . Adding one row to another row means adding each entry of that row to the corresponding entry of the other row. Subtracting two rows is done similarly. Note that we regard two rows as equal when corresponding entries are the same.
. Adding one row to another row means adding each entry of that row to the corresponding entry of the other row. Subtracting two rows is done similarly. Note that we regard two rows as equal when corresponding entries are the same.
In hand calculations (and in computer programs) we manipulate the rows of the augmented matrix rather than the equations. For this reason we restate these elementary operations for matrices.
Definition 1.2 Elementary Row Operations
The following are called elementary row operations on a matrix.
- Interchange two rows.
- Multiply one row by a nonzero number.
- Add a multiple of one row to a different row.
In the illustration above, a series of such operations led to a matrix of the form
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rr|r} 1 & 0 & * \\ 0 & 1 & * \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-30d455451d6167e355ed3ada9b1801e4_l3.png)
where the asterisks represent arbitrary numbers. In the case of three equations in three variables, the goal is to produce a matrix of the form
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 0 & * \\ 0 & 1 & 0 & * \\ 0 & 0 & 1 & * \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-88e3de87a7e11ccc93ef6a53eea9788a_l3.png)
This does not always happen, as we will see in the next section. Here is an example in which it does happen.
Example 1.1.3 Find all solutions to the following system of equations.
      
Solution:
The augmented matrix of the original system is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 3 & 4 & 1 & 1 \\ 2 & 3 & 0 & 0 \\ 4 & 3 & -1 & -2 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-bfb09e98ae7539ea1f41414ba6be3521_l3.png)
To create a  in the upper left corner we could multiply row 1 through by
 in the upper left corner we could multiply row 1 through by  . However, the
. However, the  can be obtained without introducing fractions by subtracting row 2 from row 1. The result is
 can be obtained without introducing fractions by subtracting row 2 from row 1. The result is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 1 & 1 & 1 \\ 2 & 3 & 0 & 0 \\ 4 & 3 & -1 & -2 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-c5abcdcbe53c8a428a127c636d53740c_l3.png)
The upper left  is now used to “clean up” the first column, that is create zeros in the other positions in that column. First subtract
 is now used to “clean up” the first column, that is create zeros in the other positions in that column. First subtract  times row 1 from row 2 to obtain
 times row 1 from row 2 to obtain
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 1 & 1 & 1 \\ 0 & 1 & -2 & -2 \\ 4 & 3 & -1 & -2 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-07da0f1cbac233f35b4188c3b9347199_l3.png)
Next subtract  times row 1 from row 3. The result is
 times row 1 from row 3. The result is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 1 & 1 & 1 \\ 0 & 1 & -2 & -2 \\ 0 & -1 & -5 & -6 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-7bedba6b83effccdabf63d827db4dbab_l3.png)
This completes the work on column 1. We now use the  in the second position of the second row to clean up the second column by subtracting row 2 from row 1 and then adding row 2 to row 3. For convenience, both row operations are done in one step. The result is
 in the second position of the second row to clean up the second column by subtracting row 2 from row 1 and then adding row 2 to row 3. For convenience, both row operations are done in one step. The result is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 3 & 3 \\ 0 & 1 & -2 & -2 \\ 0 & 0 & -7 & -8 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-2cd4fa93f374b708d2e6a3f8ddca5e6d_l3.png)
Note that the last two manipulations did not affect the first column (the second row has a zero there), so our previous effort there has not been undermined. Finally we clean up the third column. Begin by multiplying row 3 by  to obtain
 to obtain
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 3 & 3 \\ 0 & 1 & -2 & -2 \\ 0 & 0 & 1 & \frac{8}{7} \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-81a778b9d0b116ade94345febd4f4565_l3.png)
Now subtract  times row 3 from row 1, and then add
 times row 3 from row 1, and then add  times row 3 to row 2 to get
 times row 3 to row 2 to get
      ![Rendered by QuickLaTeX.com \begin{equation*} \def\arraystretch{1.5} \left[ \begin{array}{rrr|r} 1 & 0 & 0 & - \frac{3}{7} \\ 0 & 1 & 0 & \frac{2}{7} \\ 0 & 0 & 1 & \frac{8}{7} \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-25c7db281ca5c1a66718862d10b305dd_l3.png)
The corresponding equations are  ,
,  , and
, and  , which give the (unique) solution.
, which give the (unique) solution.
1.2 Gaussian elimination
The algebraic method introduced in the preceding section can be summarized as follows: Given a system of linear equations, use a sequence of elementary row operations to carry the augmented matrix to a “nice” matrix (meaning that the corresponding equations are easy to solve). In Example 1.1.3, this nice matrix took the form
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 0 & * \\ 0 & 1 & 0 & * \\ 0 & 0 & 1 & * \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-88e3de87a7e11ccc93ef6a53eea9788a_l3.png)
The following definitions identify the nice matrices that arise in this process.
Definition 1.3 row-echelon form (reduced)
A matrix is said to be in row-echelon form (and will be called a row-echelon matrix if it satisfies the following three conditions:
- All zero rows (consisting entirely of zeros) are at the bottom.
- The first nonzero entry from the left in each nonzero row is a  , called the leading , called the leading for that row. for that row.
- Each leading  is to the right of all leading is to the right of all leading s in the rows above it. s in the rows above it.
A row-echelon matrix is said to be in reduced row-echelon form (and will be called a reduced row-echelon matrix if, in addition, it satisfies the following condition:
4.     Each leading  is the only nonzero entry in its column.
 is the only nonzero entry in its column.
The row-echelon matrices have a “staircase” form, as indicated by the following example (the asterisks indicate arbitrary numbers).
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrrrrr} \multicolumn{1}{r|}{0} & 1 & * & * & * & * & * \\ \cline{2-3} 0 & 0 & \multicolumn{1}{r|}{0} & 1 & * & * & * \\ \cline{4-4} 0 & 0 & 0 & \multicolumn{1}{r|}{0} & 1 & * & * \\ \cline{5-6} 0 & 0 & 0 & 0 & 0 & \multicolumn{1}{r|}{0} & 1 \\ \cline{7-7} 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-d3108847bbdf1bfcad7f1498e609bb07_l3.png)
The leading  s proceed “down and to the right” through the matrix. Entries above and to the right of the leading
s proceed “down and to the right” through the matrix. Entries above and to the right of the leading  s are arbitrary, but all entries below and to the left of them are zero. Hence, a matrix in row-echelon form is in reduced form if, in addition, the entries directly above each leading
s are arbitrary, but all entries below and to the left of them are zero. Hence, a matrix in row-echelon form is in reduced form if, in addition, the entries directly above each leading  are all zero. Note that a matrix in row-echelon form can, with a few more row operations, be carried to reduced form (use row operations to create zeros above each leading one in succession, beginning from the right).
 are all zero. Note that a matrix in row-echelon form can, with a few more row operations, be carried to reduced form (use row operations to create zeros above each leading one in succession, beginning from the right).
The importance of row-echelon matrices comes from the following theorem.
Theorem 1.2.1
In fact we can give a step-by-step procedure for actually finding a row-echelon matrix. Observe that while there are many sequences of row operations that will bring a matrix to row-echelon form, the one we use is systematic and is easy to program on a computer. Note that the algorithm deals with matrices in general, possibly with columns of zeros.
Gaussian Algorithm
Step 1. If the matrix consists entirely of zeros, stop—it is already in row-echelon form.
Step 2. Otherwise, find the first column from the left containing a nonzero entry (call it  ), and move the row containing that entry to the top position.
), and move the row containing that entry to the top position.
Step 3. Now multiply the new top row by  to create a leading
 to create a leading  .
.
Step 4. By subtracting multiples of that row from rows below it, make each entry below the leading  zero. This completes the first row, and all further row operations are carried out on the remaining rows.
 zero. This completes the first row, and all further row operations are carried out on the remaining rows.
Step 5. Repeat steps 1–4 on the matrix consisting of the remaining rows.
The process stops when either no rows remain at step 5 or the remaining rows consist entirely of zeros.
Observe that the gaussian algorithm is recursive: When the first leading  has been obtained, the procedure is repeated on the remaining rows of the matrix. This makes the algorithm easy to use on a computer. Note that the solution to Example 1.1.3 did not use the gaussian algorithm as written because the first leading
 has been obtained, the procedure is repeated on the remaining rows of the matrix. This makes the algorithm easy to use on a computer. Note that the solution to Example 1.1.3 did not use the gaussian algorithm as written because the first leading  was not created by dividing row 1 by
 was not created by dividing row 1 by  . The reason for this is that it avoids fractions. However, the general pattern is clear: Create the leading
. The reason for this is that it avoids fractions. However, the general pattern is clear: Create the leading  s from left to right, using each of them in turn to create zeros below it. Here is one example.
s from left to right, using each of them in turn to create zeros below it. Here is one example.
Example 1.2.2 Solve the following system of equations.
      
Solution:
The corresponding augmented matrix is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 3 & 1 & -4 & -1 \\ 1 & 0 & 10 & 5 \\ 4 & 1 & 6 & 1 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-707a7b7ef0fc3c2aaa6adc9106c54830_l3.png)
Create the first leading one by interchanging rows 1 and 2
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 10 & 5 \\ 3 & 1 & -4 & -1 \\ 4 & 1 & 6 & 1 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-e3fabbdcd7e27677e49c185322962824_l3.png)
Now subtract  times row 1 from row 2, and subtract
 times row 1 from row 2, and subtract  times row 1 from row 3. The result is
 times row 1 from row 3. The result is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 10 & 5 \\ 0 & 1 & -34 & -16 \\ 0 & 1 & -34 & -19 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-0c8f075319019cdb38fd7ec1f5c858e7_l3.png)
Now subtract row 2 from row 3 to obtain
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrr|r} 1 & 0 & 10 & 5 \\ 0 & 1 & -34 & -16 \\ 0 & 0 & 0 & -3 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-26f764ac3fcf29ccbe53685acbdc1202_l3.png)
This means that the following reduced system of equations
      
is equivalent to the original system. In other words, the two have the same solutions. But this last system clearly has no solution (the last equation requires that  ,
,  and
 and  satisfy
 satisfy  , and no such numbers exist). Hence the original system has no solution.
, and no such numbers exist). Hence the original system has no solution.
To solve a linear system, the augmented matrix is carried to reduced row-echelon form, and the variables corresponding to the leading ones are called leading variables. Because the matrix is in reduced form, each leading variable occurs in exactly one equation, so that equation can be solved to give a formula for the leading variable in terms of the nonleading variables. It is customary to call the nonleading variables “free” variables, and to label them by new variables  , called parameters. Every choice of these parameters leads to a solution to the system, and every solution arises in this way. This procedure works in general, and has come to be called
, called parameters. Every choice of these parameters leads to a solution to the system, and every solution arises in this way. This procedure works in general, and has come to be called
Gaussian Elimination
To solve a system of linear equations proceed as follows:
- Carry the augmented matrix\index{augmented matrix}\index{matrix!augmented matrix} to a reduced row-echelon matrix using elementary row operations.
-  If a row ![Rendered by QuickLaTeX.com \left[ \begin{array}{cccccc} 0 & 0 & 0 & \cdots & 0 & 1 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-5257853800cfdda9b321b0ad636f98f8_l3.png) occurs, the system is inconsistent. occurs, the system is inconsistent.
- Otherwise, assign the nonleading variables (if any) as parameters, and use the equations corresponding to the reduced row-echelon matrix to solve for the leading variables in terms of the parameters.
There is a variant of this procedure, wherein the augmented matrix is carried only to row-echelon form. The nonleading variables are assigned as parameters as before. Then the last equation (corresponding to the row-echelon form) is used to solve for the last leading variable in terms of the parameters. This last leading variable is then substituted into all the preceding equations. Then, the second last equation yields the second last leading variable, which is also substituted back. The process continues to give the general solution. This procedure is called back-substitution. This procedure can be shown to be numerically more efficient and so is important when solving very large systems.
Rank
It can be proven that the reduced row-echelon form of a matrix  is uniquely determined by
 is uniquely determined by  . That is, no matter which series of row operations is used to carry
. That is, no matter which series of row operations is used to carry  to a reduced row-echelon matrix, the result will always be the same matrix. By contrast, this is not true for row-echelon matrices: Different series of row operations can carry the same matrix
 to a reduced row-echelon matrix, the result will always be the same matrix. By contrast, this is not true for row-echelon matrices: Different series of row operations can carry the same matrix  to different row-echelon matrices. Indeed, the matrix
 to different row-echelon matrices. Indeed, the matrix ![Rendered by QuickLaTeX.com A = \left[ \begin{array}{rrr} 1 & -1 & 4 \\ 2 & -1 & 2 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-5e1d068128a0f1a2772a2e7b4196c728_l3.png) can be carried (by one row operation) to the row-echelon matrix
 can be carried (by one row operation) to the row-echelon matrix ![Rendered by QuickLaTeX.com \left[ \begin{array}{rrr} 1 & -1 & 4 \\ 0 & 1 & -6 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-95ea9d48955c3926fcc4d326b3ee9d3c_l3.png) , and then by another row operation to the (reduced) row-echelon matrix
, and then by another row operation to the (reduced) row-echelon matrix ![Rendered by QuickLaTeX.com \left[ \begin{array}{rrr} 1 & 0 & -2 \\ 0 & 1 & -6 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-3f2fc8ebdc4a06b2a0a6269d3f8eaec1_l3.png) . However, it is true that the number
. However, it is true that the number  of leading 1s must be the same in each of these row-echelon matrices (this will be proved later). Hence, the number
 of leading 1s must be the same in each of these row-echelon matrices (this will be proved later). Hence, the number  depends only on
 depends only on  and not on the way in which
 and not on the way in which  is carried to row-echelon form.
 is carried to row-echelon form.
Definition 1.4 Rank of a matrix
 is the number of leading
 is the number of leading  s in any row-echelon matrix to which
s in any row-echelon matrix to which  can be carried by row operations.
 can be carried by row operations.
Example 1.2.5
![Rendered by QuickLaTeX.com A = \left[ \begin{array}{rrrr} 1 & 1 & -1 & 4 \\ 2 & 1 & 3 & 0 \\ 0 & 1 & -5 & 8 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-b0585b44d2cd72e166e960c2e596dfba_l3.png) .
.Solution:
The reduction of  to row-echelon form is
 to row-echelon form is
      ![Rendered by QuickLaTeX.com \begin{equation*} A = \left[ \begin{array}{rrrr} 1 & 1 & -1 & 4 \\ 2 & 1 & 3 & 0 \\ 0 & 1 & -5 & 8 \end{array} \right] \rightarrow \left[ \begin{array}{rrrr} 1 & 1 & -1 & 4 \\ 0 & -1 & 5 & -8 \\ 0 & 1 & -5 & 8 \end{array} \right] \rightarrow \left[ \begin{array}{rrrr} 1 & 1 & -1 & 4 \\ 0 & 1 & -5 & 8 \\ 0 & 0 & 0 & 0 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-899fdef79a2006d32027cc1a63b9aca8_l3.png)
Because this row-echelon matrix has two leading  s, rank
s, rank  .
.
Suppose that rank  , where
, where  is a matrix with
 is a matrix with  rows and
 rows and  columns. Then
 columns. Then  because the leading
 because the leading  s lie in different rows, and
s lie in different rows, and  because the leading
 because the leading  s lie in different columns. Moreover, the rank has a useful application to equations. Recall that a system of linear equations is called consistent if it has at least one solution.
s lie in different columns. Moreover, the rank has a useful application to equations. Recall that a system of linear equations is called consistent if it has at least one solution.
Theorem 1.2.2
Suppose a system of  equations in
 equations in  variables is consistent, and that the rank of the augmented matrix is
 variables is consistent, and that the rank of the augmented matrix is  .
.
- The set of solutions involves exactly  parameters. parameters.
- If  , the system has infinitely many solutions. , the system has infinitely many solutions.
- If  , the system has a unique solution. , the system has a unique solution.
Proof:
The fact that the rank of the augmented matrix is  means there are exactly
 means there are exactly  leading variables, and hence exactly
 leading variables, and hence exactly  nonleading variables. These nonleading variables are all assigned as parameters in the gaussian algorithm, so the set of solutions involves exactly
 nonleading variables. These nonleading variables are all assigned as parameters in the gaussian algorithm, so the set of solutions involves exactly  parameters. Hence if
 parameters. Hence if  , there is at least one parameter, and so infinitely many solutions. If
, there is at least one parameter, and so infinitely many solutions. If  , there are no parameters and so a unique solution.
, there are no parameters and so a unique solution.
Theorem 1.2.2 shows that, for any system of linear equations, exactly three possibilities exist:
- No solution. This occurs when a row ![Rendered by QuickLaTeX.com \left[ \begin{array}{ccccc} 0 & 0 & \cdots & 0 & 1 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-61053d3b48ff56e4793e4223f99d4b36_l3.png) occurs in the row-echelon form. This is the case where the system is inconsistent. occurs in the row-echelon form. This is the case where the system is inconsistent.
- Unique solution. This occurs when every variable is a leading variable.
- Infinitely many solutions. This occurs when the system is consistent and there is at least one nonleading variable, so at least one parameter is involved.
GeoGebra Exercise: Linear Systems:
 https://www.geogebra.org/m/cwQ9uYCZ
Please answer these questions after you open the webpage:
1.  For the given linear system, what does each one of them represent?
2. Based on the graph, what can we say about the solutions? Does the system have one solution, no solution or infinitely many solutions? Why
3. Change the constant term in every equation to 0, what changed in the graph?
4. For the following linear system:
      ![Rendered by QuickLaTeX.com \[ \systeme*{x+y =0 ,y+z =0, x+z=0} \]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-475335741c899b8e675e1f55cbacb167_l3.png)
Can you solve it using Gaussian elimination? When you look at the graph, what do you observe?
Many important problems involve linear inequalities rather than linear equations For example, a condition on the variables  and
 and  might take the form of an inequality
 might take the form of an inequality  rather than an equality
 rather than an equality  . There is a technique (called the simplex algorithm) for finding solutions to a system of such inequalities that maximizes a function of the form
. There is a technique (called the simplex algorithm) for finding solutions to a system of such inequalities that maximizes a function of the form  where
 where  and
 and  are fixed constants.
 are fixed constants.
1.3 Homogeneous equations
A system of equations in the variables  is called homogeneous if all the constant terms are zero—that is, if each equation of the system has the form
 is called homogeneous if all the constant terms are zero—that is, if each equation of the system has the form
      
Clearly  is a solution to such a system; it is called the trivial solution. Any solution in which at least one variable has a nonzero value is called a nontrivial solution.
 is a solution to such a system; it is called the trivial solution. Any solution in which at least one variable has a nonzero value is called a nontrivial solution.
Our chief goal in this section is to give a useful condition for a homogeneous system to have nontrivial solutions. The following example is instructive.
Example 1.3.1
      
Solution:
The reduction of the augmented matrix to reduced row-echelon form is outlined below.
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrr|r} 1 & -1 & 2 & -1 & 0 \\ 2 & 2 & 0 & 1 & 0 \\ 3 & 1 & 2 & -1 & 0 \end{array} \right] \rightarrow \left[ \begin{array}{rrrr|r} 1 & -1 & 2 & -1 & 0 \\ 0 & 4 & -4 & 3 & 0 \\ 0 & 4 & -4 & 2 & 0 \end{array} \right] \rightarrow \left[ \begin{array}{rrrr|r} 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & -1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-abae4c72fe93311ec2fcb15451d6a2e1_l3.png)
The leading variables are  ,
,  , and
, and  , so
, so  is assigned as a parameter—say
 is assigned as a parameter—say  . Then the general solution is
. Then the general solution is  ,
,  ,
,  ,
,  . Hence, taking
. Hence, taking  (say), we get a nontrivial solution:
 (say), we get a nontrivial solution:  ,
,  ,
,  ,
,  .
.
The existence of a nontrivial solution in Example 1.3.1 is ensured by the presence of a parameter in the solution. This is due to the fact that there is a nonleading variable ( in this case). But there must be a nonleading variable here because there are four variables and only three equations (and hence at most three leading variables). This discussion generalizes to a proof of the following fundamental theorem.
 in this case). But there must be a nonleading variable here because there are four variables and only three equations (and hence at most three leading variables). This discussion generalizes to a proof of the following fundamental theorem.
Theorem 1.3.1
Proof:
Suppose there are  equations in
 equations in  variables where
 variables where  , and let
, and let  denote the reduced row-echelon form of the augmented matrix. If there are
 denote the reduced row-echelon form of the augmented matrix. If there are  leading variables, there are
 leading variables, there are  nonleading variables, and so
 nonleading variables, and so  parameters. Hence, it suffices to show that
 parameters. Hence, it suffices to show that  . But
. But  because
 because  has
 has  leading 1s and
 leading 1s and  rows, and
 rows, and  by hypothesis. So
 by hypothesis. So  , which gives
, which gives  .
.
Note that the converse of Theorem 1.3.1 is not true: if a homogeneous system has nontrivial solutions, it need not have more variables than equations (the system  ,
,  has nontrivial solutions but
 has nontrivial solutions but  .)
.)
Theorem 1.3.1 is very useful in applications. The next example provides an illustration from geometry.
Example 1.3.2
 a conic if the numbers
 a conic if the numbers  ,
,  , and
, and  are not all zero. Show that there is at least one conic through any five points in the plane that are not all on a line.
 are not all zero. Show that there is at least one conic through any five points in the plane that are not all on a line.Solution:
Let the coordinates of the five points be  ,
,  ,
,  ,
,  , and
, and  . The graph of
. The graph of  passes through
 passes through  if
 if
      
This gives five equations, one for each  , linear in the six variables
, linear in the six variables  ,
,  ,
,  ,
,  ,
,  , and
, and  . Hence, there is a nontrivial solution by Theorem 1.1.3. If
. Hence, there is a nontrivial solution by Theorem 1.1.3. If  , the five points all lie on the line with equation
, the five points all lie on the line with equation  , contrary to assumption. Hence, one of
, contrary to assumption. Hence, one of  ,
,  ,
,  is nonzero.
 is nonzero.
Linear Combinations and Basic Solutions
As for rows, two columns are regarded as equal if they have the same number of entries and corresponding entries are the same. Let  and
 and  be columns with the same number of entries. As for elementary row operations, their sum
 be columns with the same number of entries. As for elementary row operations, their sum  is obtained by adding corresponding entries and, if
 is obtained by adding corresponding entries and, if  is a number, the scalar product
 is a number, the scalar product  is defined by multiplying each entry of
 is defined by multiplying each entry of  by
 by  . More precisely:
. More precisely:
      ![Rendered by QuickLaTeX.com \begin{equation*} \mbox{If } \vect{x} = \left[ \begin{array}{c} x_1 \\ x_2 \\ \vdots \\ x_n \end{array} \right] \mbox{and } \vect{y} = \left[ \begin{array}{c} y_1 \\ y_2 \\ \vdots \\ y_n \end{array} \right] \mbox{then } \vect{x} + \vect{y} = \left[ \begin{array}{c} x_1 + y_1 \\ x_2 + y_2 \\ \vdots \\ x_n + y_n \end{array} \right] \mbox{and } k\vect{x} = \left[ \begin{array}{c} kx_1 \\ kx_2 \\ \vdots \\ kx_n \end{array} \right]. \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-5e3db4ff40e1108745e525ffdba2c81d_l3.png)
A sum of scalar multiples of several columns is called a linear combination of these columns. For example,  is a linear combination of
 is a linear combination of  and
 and  for any choice of numbers
 for any choice of numbers  and
 and  .
.
Example 1.3.3
If ![Rendered by QuickLaTeX.com \vect{x} = \left[ \begin{array}{r} 3 \\ -2 \\ \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-6a796207fc7790c3cfdfb96fe8e48129_l3.png) and
 and ![Rendered by QuickLaTeX.com \left[ \begin{array}{r} -1 \\ 1 \\ \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-2df4f75bdb625c7ef6bd54ea97e07357_l3.png)
then ![Rendered by QuickLaTeX.com 2\vect{x} + 5\vect{y} = \left[ \begin{array}{r} 6 \\ -4 \\ \end{array} \right] + \left[ \begin{array}{r} -5 \\ 5 \\ \end{array} \right] = \left[ \begin{array}{r} 1 \\ 1 \\ \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-49caf72419afbd09bfa9fbfee71658d8_l3.png) .
.
Example 1.3.4
Let ![Rendered by QuickLaTeX.com \vect{x} = \left[ \begin{array}{r} 1 \\ 0 \\ 1 \end{array} \right], \vect{y} = \left[ \begin{array}{r} 2 \\ 1 \\ 0 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-a890a9d4aa94a2020c9f2adf63fba651_l3.png)
and ![Rendered by QuickLaTeX.com \vect{z} = \left[ \begin{array}{r} 3 \\ 1 \\ 1 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-c0156adfd807da91d10ebec65d31c818_l3.png) . If
. If ![Rendered by QuickLaTeX.com \vect{v} = \left[ \begin{array}{r} 0 \\ -1 \\ 2 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-14a3027dcbedb32deeb900070556f926_l3.png)
and ![Rendered by QuickLaTeX.com \vect{w} = \left[ \begin{array}{r} 1 \\ 1 \\ 1 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-76e00ecd2bdb9db3ea0239ef0ace6822_l3.png) ,
,
determine whether  and
 and  are linear combinations of
 are linear combinations of  ,
,  and
 and  .
.
Solution:
For  , we must determine whether numbers
, we must determine whether numbers  ,
,  , and
, and  exist such that
 exist such that  , that is, whether
, that is, whether
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{r} 0 \\ -1 \\ 2 \end{array} \right] = r \left[ \begin{array}{r} 1 \\ 0 \\ 1 \end{array} \right] + s \left[ \begin{array}{r} 2 \\ 1 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} 3 \\ 1 \\ 1 \end{array} \right] = \left[ \begin{array}{c} r + 2s + 3t \\ s + t \\ r + t \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-c7ff142e888db6a0a3b068cbe47e6141_l3.png)
Equating corresponding entries gives a system of linear equations  ,
,  , and
, and  for
 for  ,
,  , and
, and  . By gaussian elimination, the solution is
. By gaussian elimination, the solution is  ,
,  , and
, and  where
 where  is a parameter. Taking
 is a parameter. Taking  , we see that
, we see that  is a linear combination of
 is a linear combination of  ,
,  , and
, and  .
.
Turning to  , we again look for
, we again look for  ,
,  , and
, and  such that
 such that  ; that is,
; that is,
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{r} 1 \\ 1 \\ 1 \end{array} \right] = r \left[ \begin{array}{r} 1 \\ 0 \\ 1 \end{array} \right] + s \left[ \begin{array}{r} 2 \\ 1 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} 3 \\ 1 \\ 1 \end{array} \right] = \left[ \begin{array}{c} r + 2s + 3t \\ s + t \\ r + t \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-c5bb432dec912825d70077f18f9550f4_l3.png)
leading to equations  ,
,  , and
, and  for real numbers
 for real numbers  ,
,  , and
, and  . But this time there is no solution as the reader can verify, so
. But this time there is no solution as the reader can verify, so  is not a linear combination of
 is not a linear combination of  ,
,  , and
, and  .
.
Our interest in linear combinations comes from the fact that they provide one of the best ways to describe the general solution of a homogeneous system of linear equations. When
solving such a system with  variables
 variables  , write the variables as a column matrix:
, write the variables as a column matrix: ![Rendered by QuickLaTeX.com \vect{x} = \left[ \begin{array}{c} x_1 \\ x_2 \\ \vdots \\ x_n \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-04dfc2da92c4fa80811e5e491b6aed5f_l3.png) . The trivial solution is denoted
. The trivial solution is denoted ![Rendered by QuickLaTeX.com \vect{0} = \left[ \begin{array}{c} 0 \\ 0 \\ \vdots \\ 0 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-149f4d33981e0df4fdfd7e4ee373c8d0_l3.png) . As an illustration, the general solution in
. As an illustration, the general solution in
Example 1.3.1 is  ,
,  ,
,  , and
, and  , where
, where  is a parameter, and we would now express this by
 is a parameter, and we would now express this by
saying that the general solution is ![Rendered by QuickLaTeX.com \vect{x} = \left[ \begin{array}{r} -t \\ t \\ t \\ 0 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-4321f910ca842e4d8cff2b07c1a69a23_l3.png) , where
, where  is arbitrary.
 is arbitrary.
Now let  and
 and  be two solutions to a homogeneous system with
 be two solutions to a homogeneous system with  variables. Then any linear combination
 variables. Then any linear combination  of these solutions turns out to be again a solution to the system. More generally:
 of these solutions turns out to be again a solution to the system. More generally:
      
In fact, suppose that a typical equation in the system is  , and suppose that
, and suppose that
![Rendered by QuickLaTeX.com \vect{x} = \left[ \begin{array}{c} x_1 \\ x_2 \\ \vdots \\ x_n \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-d4c680ea37970bad608bbaf8d86186f3_l3.png) ,
, ![Rendered by QuickLaTeX.com \vect{y} = \left[ \begin{array}{c} y_1 \\ y_2 \\ \vdots \\ y_n \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-974a3aaf1cf1628aaa6218400ebe924b_l3.png) are solutions. Then
 are solutions. Then  and
 and
 .
.
Hence ![Rendered by QuickLaTeX.com s\vect{x} + t\vect{y} = \left[ \begin{array}{c} sx_1 + ty_1 \\ sx_2 + ty_2 \\ \vdots \\ sx_n + ty_n \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-8e35991eaa75969d9a43fcc703022d73_l3.png) is also a solution because
 is also a solution because
      ![Rendered by QuickLaTeX.com \begin{align*} a_1(sx_1 + ty_1) &+ a_2(sx_2 + ty_2) + \dots + a_n(sx_n + ty_n) \\ &= [a_1(sx_1) + a_2(sx_2) + \dots + a_n(sx_n)] + [a_1(ty_1) + a_2(ty_2) + \dots + a_n(ty_n)] \\ &= s(a_1x_1 + a_2x_2 + \dots + a_nx_n) + t(a_1y_1 + a_2y_2 + \dots + a_ny_n) \\ &= s(0) + t(0)\\ &= 0 \end{align*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-6d203ec79a02f4ff27ba5a9b8b618090_l3.png)
A similar argument shows that Statement 1.1 is true for linear combinations of more than two solutions.
The remarkable thing is that every solution to a homogeneous system is a linear combination of certain particular solutions and, in fact, these solutions are easily computed using the gaussian algorithm. Here is an example.
Example 1.3.5
      ![Rendered by QuickLaTeX.com \begin{equation*} A = \left[ \begin{array}{rrrr} 1 & -2 & 3 & -2 \\ -3 & 6 & 1 & 0 \\ -2 & 4 & 4 & -2 \\ \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-3fbfdfea58449f1378d1dd17259b5648_l3.png)
Solution:
The reduction of the augmented matrix to reduced form is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrr|r} 1 & -2 & 3 & -2 & 0 \\ -3 & 6 & 1 & 0 & 0 \\ -2 & 4 & 4 & -2 & 0 \\ \end{array} \right] \rightarrow \def\arraystretch{1.5} \left[ \begin{array}{rrrr|r} 1 & -2 & 0 & -\frac{1}{5} & 0 \\ 0 & 0 & 1 & -\frac{3}{5} & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-1ae4b16d10637c85f6853da3df4687e8_l3.png)
so the solutions are  ,
,  ,
,  , and
, and  by gaussian elimination. Hence we can write the general solution
 by gaussian elimination. Hence we can write the general solution  in the matrix form
 in the matrix form
      ![Rendered by QuickLaTeX.com \begin{equation*} \vect{x} = \left[ \begin{array}{r} x_1 \\ x_2 \\ x_3 \\ x_4 \end{array} \right] = \left[ \begin{array}{c} 2s + \frac{1}{5}t \\ s \\ \frac{3}{5}t \\ t \end{array} \right] = s \left[ \begin{array}{r} 2 \\ 1 \\ 0 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} \frac{1}{5} \\ 0 \\ \frac{3}{5} \\ 1 \end{array} \right] = s\vect{x}_1 + t\vect{x}_2. \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-bdc0b025197f21672e28c886148c678e_l3.png)
Here ![Rendered by QuickLaTeX.com \vect{x}_1 = \left[ \begin{array}{r} 2 \\ 1 \\ 0 \\ 0 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-65a226debf5d32330de3616c3135b41d_l3.png) and
 and ![Rendered by QuickLaTeX.com \vect{x}_2 = \left[ \begin{array}{r} \frac{1}{5} \\ 0 \\ \frac{3}{5} \\ 1 \end{array} \right]](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-73040c782bf99ba6ad4ea094b4feb1cf_l3.png) are particular solutions determined by the gaussian algorithm.
 are particular solutions determined by the gaussian algorithm.
The solutions  and
 and  in Example 1.3.5 are denoted as follows:
 in Example 1.3.5 are denoted as follows:
Definition 1.5 Basic Solutions
Moreover, the algorithm gives a routine way to express every solution as a linear combination of basic solutions as in Example 1.3.5, where the general solution  becomes
 becomes
      ![Rendered by QuickLaTeX.com \begin{equation*} \vect{x} = s \left[ \begin{array}{r} 2 \\ 1 \\ 0 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} \frac{1}{5} \\ 0 \\ \frac{3}{5} \\ 1 \end{array} \right] = s \left[ \begin{array}{r} 2 \\ 1 \\ 0 \\ 0 \end{array} \right] + \frac{1}{5}t \left[ \begin{array}{r} 1 \\ 0 \\ 3 \\ 5 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-f4597f2f858af810e605349efb08f93f_l3.png)
Hence by introducing a new parameter  we can multiply the original basic solution
 we can multiply the original basic solution  by 5 and so eliminate fractions.
 by 5 and so eliminate fractions.
For this reason:
Convention:
In the same way, the gaussian algorithm produces basic solutions to every homogeneous system, one for each parameter (there are no basic solutions if the system has only the trivial solution). Moreover every solution is given by the algorithm as a linear combination of
these basic solutions (as in Example 1.3.5). If  has rank
 has rank  , Theorem 1.2.2 shows that there are exactly
, Theorem 1.2.2 shows that there are exactly  parameters, and so
 parameters, and so  basic solutions. This proves:
 basic solutions. This proves:
Theorem 1.3.2
Let  be an
 be an  matrix of rank
 matrix of rank  , and consider the homogeneous system in
, and consider the homogeneous system in  variables with
 variables with  as coefficient matrix. Then:
 as coefficient matrix. Then:
- The system has exactly  basic solutions, one for each parameter. basic solutions, one for each parameter.
- Every solution is a linear combination of these basic solutions.
Example 1.3.6
 , and express every solution as a linear combination of the basic solutions, where
, and express every solution as a linear combination of the basic solutions, where
      ![Rendered by QuickLaTeX.com \begin{equation*} A = \left[ \begin{array}{rrrrr} 1 & -3 & 0 & 2 & 2 \\ -2 & 6 & 1 & 2 & -5 \\ 3 & -9 & -1 & 0 & 7 \\ -3 & 9 & 2 & 6 & -8 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-fce1a5a003ff6a2e9dfe1f44c774accb_l3.png)
Solution:
The reduction of the augmented matrix to reduced row-echelon form is
      ![Rendered by QuickLaTeX.com \begin{equation*} \left[ \begin{array}{rrrrr|r} 1 & -3 & 0 & 2 & 2 & 0 \\ -2 & 6 & 1 & 2 & -5 & 0 \\ 3 & -9 & -1 & 0 & 7 & 0 \\ -3 & 9 & 2 & 6 & -8 & 0 \end{array} \right] \rightarrow \left[ \begin{array}{rrrrr|r} 1 & -3 & 0 & 2 & 2 & 0 \\ 0 & 0 & 1 & 6 & -1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-9c386dee157d536d1d418931234f32d6_l3.png)
so the general solution is  ,
,  ,
,  ,
,  , and
, and  where
 where  ,
,  , and
, and  are parameters. In matrix form this is
 are parameters. In matrix form this is
      ![Rendered by QuickLaTeX.com \begin{equation*} \vect{x} = \left[ \begin{array}{r} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \end{array} \right] = \left[ \begin{array}{c} 3r - 2s - 2t \\ r \\ -6s + t \\ s \\ t \end{array} \right] = r \left[ \begin{array}{r} 3 \\ 1 \\ 0 \\ 0 \\ 0 \end{array} \right] + s \left[ \begin{array}{r} -2 \\ 0 \\ -6 \\ 1 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} -2 \\ 0 \\ 1 \\ 0 \\ 1 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-a9da403411b87846fbcf7c5506e99c77_l3.png)
Hence basic solutions are
      ![Rendered by QuickLaTeX.com \begin{equation*} \vect{x}_1 = \left[ \begin{array}{r} 3 \\ 1 \\ 0 \\ 0 \\ 0 \end{array} \right], \ \vect{x}_2 = \left[ \begin{array}{r} -2 \\ 0 \\ -6 \\ 1 \\ 0 \end{array} \right],\ \vect{x}_3 = \left[ \begin{array}{r} -2 \\ 0 \\ 1 \\ 0 \\ 1 \end{array} \right] \end{equation*}](https://ecampusontario.pressbooks.pub/app/uploads/quicklatex/quicklatex.com-06365488da30dafe211f13b11a4cea0d_l3.png)
