Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Introductory Linear Algebra/System of linear equations

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Systems of linear equations in matrix form We should define what is system of linear equations before expressing it in matrix form. (System of linear equations) A system of linear equations (SLE) in unknowns is a family of equations of the form in which 's and 's are some constants. in some other definitions, a single linear equation can be regarded as a system of linear equations, but since we can already easily solve a single linear equation, we are not interested in such a case, and thus we do not include this possibility We often use the terms 'consistent' and 'inconsistent' to describe the number of solutions of a system of linear equations. thumb|This system of three linear equations in two unknowns is inconsistent, since there are no common intersection points for the three lines.(Consistency of system of linear equations) A system of linear equations is consistent if it has at least one solution. Otherwise, it is inconsistent (i.e., it is inconsistent if it has no solutions). as we will see, a SLE can either have no solutions, one unique solution, or infinitely many solutions. Thus, a SLE is consistent if and only if it has either a unique solution or infinitely many solutions (Consistent SLE) Consider the SLE Since the solutions are such that . Thus, this SLE has infinitely many solutions, and the SLE is consistent. (Inconsistent SLE) Consider the SLE Putting into , we get which is false, and thus there does not exist such that both equations are satisfied. That is, the SLE has no solutions, and thus it is inconsistent. (Application of SLE) Suppose ten bottles of orange juice have been allocated to a chicken, a duck and a goose. Given that the chicken and the duck have the same number of bottles of orange juice, and the goose has one more bottle of orange juice than the chicken, how many bottles of orange juice have been allocated to each animal? Solution: Denote the number of orange juice bottles allocated to the chicken, duck and goose by and respectively. Then, from the situation and the given conditions, we have the following SLE: in which are all nonnegative integers. Putting and into , we have It follows that , and . Thus, three bottles of orange juice have been allocated to each of the chicken and duck, and four bottles of orange juice have been allocated to the goose. {Choose SLE(s) from the following. |type="[]"} - || is nonlinear (i.e. not in the form of the equations in the definition of SLE) + || it may be also expressed as , and then we can see that it is SLE + || it is SLE, even if it is inconsistent + || even if some coefficients are irrational, this is still SLE {The final score of each student (the highest possible score is ) is a weighted average of the score of the student in test 1 and test 2 (full marks of test 1 and test 2 are both ). Student A gets and marks from test 1 and test 2 respectively, and student B gets and marks from test 1 and test 2 respectively. Suppose the weighting on the scores of test 1 and test 2 are and respectively. It is given that the final score of student A is exactly. Which of the following is (are) true? |type="[]"} - the given information is not sufficient to compute and - one possible allocation of weightings is given by || this is impossible since - the final score of student B is the same as that of student A + the final score of student B is strictly higher than that of student A || from the situation and the given condition, we have the following SLE: || || solving this, we get and || in particular, we have , since the final score is computed based on test 1 and test 2 only, so the sum of weightings must be || after obtaining the weighting, we can compute the final score of student B, which is - the final score of student B is strictly lower than that of student A - we do not know whether the final score of student B is higher, lower than, or the same as that of student A After defining a system of linear equations, we can express it in matrix form in multiple ways, as in the following definition. (Coefficient and augmented matrix) Let be a system of linear equations in the unknowns , in which 's and 's are some constants. The matrix is the coefficient matrix of the system, and the matrix is the augmented matrix of the system. the vertical bar in the augmented matrix is optional, it is put there to separate the constants at the left of '' sign and the constants at the right of '' sign in the system of linear equations. this system is equivalent to which can be rewritten as the augmented matrix gives all necessary things to solve a system, since the notations for the unknowns are not needed for solving a system. (Coefficient matrix and augmented matrix) Consider the SLE which can alternatively expressed as The coefficient matrix of this SLE is and the augmented matrix of this SLE is We may also express this SLE as which is in the form of . {Choose SLE(s) from the following. |type="[]"} - - + - in which is a matrix, are matrices. || the matrix product is undefined since the number of columns of is different from the number of rows of {A SLE is represented by the augmented matrix Choose correct statement(s). |type="[]"} + one possible solution is || this is true since the naming of variables is arbitrary + one possible solution is || this is true since the naming of variables is arbitrary - the size of the coefficient matrix of this SLE is || the size of the augmented matrix is instead || the size of the coefficient matrix is + the SLE in the question has unique solution || for each naming of variables, the solution is unique || the naming of variables of the SLE in the question is one of all possible naming of variables || so the solution is unique for the SLE in the question {Which of the following is (are) the augmented matrix (matrices) representing the SLE ? |type="[]"} - the augmented matrix of this SLE does not exist + - - {Choose augmented matrix (matrices) that represents an inconsistent SLE from the following. |type="[]} + || using to name the variables, || it represents + || using to name the variable, || it represents + || using to name the variable, || it represents + || using to name the variables, || it represents - || using to name the variables, || it represents || the solution is in which are real numbers Gauss-Jordan algorithm (Elementary row operations) There are three types of elementary row operations (EROs) that we may perform on a matrix, as follows: (Type I) interchanging two different rows (Type II) multiplying a row by a nonzero scalar (Type III) adding a scalar multiple of a row to another row We use the following notations for EROs: : rows of an matrix (boldface is used since the rows are essentially row vectors) : interchanging the th row and the th row : multiplying the th row by a nonzero scalar : adding times the th row to the th row (Row equivalence) Two matrices of the same size are row equivalent to each other if one matrix can be obtained from the other matrix by performing some EROs. since EROs are reversible (by the following proposition), if matrix can be obtained from matrix by performing some EROs, then can also be obtained from by performing some EROs (each of them reverse one ERO in the EROs performed to obtain from , in suitable order) thus, it suffices to prove that can be obtained from by some EROs (or vice versa, either one direction) for proving the row equivalence of and ( and are of same size) (Demonstration of three types of EROs) Consider the matrix We perform some EROs as follows: Each matrix shown here is row equivalent to , since each of them can be obtained from by performing some EROs, and has the same size as (it also shows how to perform EROs in suitable order to reverse the EROs performed previously). {Which of the following is (are) row equivalent to , the identity matrix with size ? |type="[]"} - + || it can be obtained from by performing the ERO || remark: it is an example of elementary matrix of type I, which will be defined later + || it can be obtained from by performing the ERO || remark: it is an example of elementary matrix of type II, which will be defined later + || it can be obtained from by performing the EROs , in this order + || it equals || it can be obtained from by performing the EROs , in this order {Choose correct statement(s). |type="[]"} - after performing EROs , in this order, on a matrix with at least three rows, the resultant matrix is the same as the original matrix || counterexample: after performing these EROs in this order on , we get - after performing the ERO on , we get || we get this matrix from by performing the ERO || after performing this ERO on , we get instead - given two arbitrary EROs, performing them on the same matrix in different orders give the same resultant matrix || counterexample: performing in this order and performing on gives || and || respectively || actually, this is false in general - given two arbitrary EROs, performing them on the same matrix in different orders give the different resultant matrices || counterexample: performing in different orders on gives (EROs are reversible) If matrix can be obtained from matrix by performing some EROs, then can also be obtained from by performing some EROs (which may be different from the EROs for obtaining from ). Outline: There is a reverse process (i.e. performing the ERO with its reverse process together, in arbitrary orders, will have no effect on matrix) for each type of EROs, which is also a ERO itself, as illustrated below: the reverse process of type I ERO is also the reverse process of type II ERO is type II ERO (if , this ERO is undefined, this is why must be nonzero for type II ERO, so that it is reversible) the reverse process of type III ERO is type III ERO (Illustration of reverse process of each type of ERO) Type I: Type II: Type III: {Choose correct ERO(s) that is (are) the reverse process of the ERO . |type="[]"} - + - - {Choose correct ERO(s) that is (are) the reverse process of the ERO . |type="[]"} - - + - (Same solution set by row equivalence) Let and be two systems of linear equations with the same number of equations and the same number of variables. If the augmented matrices and are row equivalent, then the two systems have the same solution set. Outline: It suffices to show that the solution set is unchanged if we perform one ERO. E.g. Type I ERO: Type II ERO: Type III ERO: Consider three row equivalent matrices {Solve the SLE |type="{}"} Its unique solution: { -1 _2} { 1 _2} { 2 _2} || the augmented matrix representing this SLE is || since and are row equivalent, || its solution set is the same as the SLE represented by (as augmented matrices) || then we can directly read the solution set from the SLE {Solve the SLE |type="{}"} Its unique solution: { 2 _2} { 1 _2} { -1 _2} || by some rearranging, the SLE becomes || || then we can see that this SLE is represented by the augmented matrix , with 1st, 2nd, 3rd column representing the coefficients of respectively || since and are row equivalent, the solution set of this SLE is the same as the SLE represented by the augmented matrix with 1st, 2nd, 3rd column representing the coefficients of respectively (Leading entry) The leading entry of a row of a matrix is the leftmost nonzero entry. The leading entry of the 1st, 2nd row and 3rd of the matrix is respectively. {What is the leading entry of the first row of ? |type="()"} - 0 - 1 - 2 - 3 + it does not exist {What is the leading entry of the first row of ? |type="()"} - 0 + 1 - 2 - 3 - it does not exist (Row echelon form) A matrix is in row echelon form (REF) if All the zero rows (if exist) lie at the bottom of the matrix, and the leading entry of each nonzero row is always strictly on the right of the leading entries of the rows above. (Reduced row echelon form) A matrix is in reduced row echelon form (RREF) if It is in row echelon form (REF), the leading entry of each nonzero row equals (which is called a leading one), and for each leading one, all other entries in the same column are zero. (Examples of REF and RREF) the following matrices are in REF, but not in RREF: the following matrices are in RREF (and thus are also in REF): the following matrices are not REF (and thus are also not in RREF): {Choose RREF(s) from the following. |type="[]"} - - - + - {How many possible values are there for such that the matrix is in RREF? |type="()"} + 0 || if , the colored in are leading entries || then it is not RREF, since the leading entry of 3rd row is on the left of the leading entry of 2nd row || if , the 2nd row is zero row, which does not lie at the bottom of the matrix, so it is also not RREF in this case || it follows that this matrix is impossible to be RREF - 1 - 2 - 3 - infinitely many {Consider the matrix How many possible values are there for such that the matrix is in REF? |type="()"} + 0 || since the zero row is located at the 3rd row, and does not lie at its bottom, the matrix is not REF regardless of the value of - 1 || consider 3rd row of the matrix - 2 || consider 3rd row of the matrix - 3 || consider 3rd row of the matrix - infinitely many || consider 3rd row of the matrix {Consider the matrix How many possible values are there for such that the matrix is in RREF? |type="()"} - 6 - 7 + 8 || the possible values of are || - 9 - infinitely many (Gauss-Jordan Algorithm) The Gauss-Jordan algorithm is a process of performing some EROs to a matrix that converts it to a matrix in RREF. Its steps are as follows: Consider the leftmost nonzero column, say column . Swap rows (if necessary) to make the 1st entry of column is nonzero. Multiply the 1st row by so that the 1st entry of column is . For each other row with a nonzero entry in column , add times the 1st row to this row to make the entry . If all rows except the 1st are zero rows, we are done. Otherwise, consider the 1st column which contains a nonzero entry not in the 1st row, say column . Swap the rows below the 1st row (if necessary) to make the 2nd entry of the column nonzero. Multiply the 2nd row by to make the 2nd entry of column equal to . For each other row with a nonzero entry in column , add times the 2nd row to this row to make the entry . Repeat the process by considering each of the rows below until all rows or columns are used, or the remaining rows are all zero rows. Then, the resultant matrix is in RREF. RREF of matrix is a matrix in RREF obtained from by performing some EROs it follows that every matrix has its RREF, since we can use Gauss-Jordan algorithm for every matrix RREF of a matrix is unique (the proof is complicated, and so is skipped) in some other definitions of Gauss-Jordan algorithm, some steps may differ, but we should also be able to convert the matrix to its RREF in those ways you may find this website useful for performing computations related to EROs, Gauss-Jordan algorithm, etc. (Illustration of Gauss-Jordan Algorithm) {Solve the SLE using Gauss-Jordan algorithm. |type="{}"} Its unique solution: { -1 _2 } { 2 _2 } || the augmented matrix representing this SLE is || || then we can read the solution directly from the RREF of the augmented matrix Prove that the RREF of the matrix is and (Determining number of solutions of a system of linear equations) Let be a system of linear equations in unknowns. Let be the RREF of the augmented matrix , which is of size . Then, the following hold. if has a leading one in the st column, then the system is inconsistent if has a leading one in each of the first columns, but not the st column, then the system has a unique solution. if has no leading one in the st column, and not all of the first columns contain leading ones, then the system has infinitely many solutions Since must only satisfy one of these three conditions, it follows that the number of solutions to a system of linear equations can only be zero (no solutions), one (unique solution), or infinitely many (exclusive or). The SLE represented by the augmented matrix which is in RREF, is inconsistent, since it has a leading one in the 4th column. The SLE represented by the augmented matrix which is in RREF, has a unique solution, since it has a leading one in each of the first 3 columns, but not the 4th column. The SLE represented by the augmented matrix which is in RREF, has infinitely many solutions, since it has no leading one in the 4th column, and not all of the first 3 columns contain leading ones (2nd column does not contain leading one). This matrix can represent the SLE If we let be the independent unknown, then and independent unknowns (or free variables) are unknowns corresponding to columns without leading ones dependent unknowns (or basic variables) are unknowns corresponding to columns with leading ones It is given that the RREF of the matrix is Denote the SLE's by , and respectively. {Does have no solutions, a unique solution, or infinitely many solutions? |type="()"} - no solutions + a unique solution - infinitely many solutions {Does have no solutions, a unique solution, or infinitely many solutions? |type="()"} - no solutions + a unique solution - infinitely many solutions {Does have no solutions, a unique solution, or infinitely many solutions? |type="()"} + no solutions || Putting the unique solution satisfying the first four linear equations into the last linear equation, || we get , which is always false || so there does not exist a solution such that all five linear equations are satisfied || it follows that has no solutions - a unique solution - infinitely many solutions (Homogeneous system of linear equations) A system of linear equations is homogeneous if it is of the form . A homogeneous system must be consistent, since it has a solution in which each unknown equals zero , which is defined to be a trivial solution. Other solutions, if they exist, are called nontrivial solutions. By the proposition about determining the number of solutions of a system of linear equations, it follows that a homogeneous system of linear equations can either have a unique solution, or infinitely many solutions, since the possibility of having no solutions is excluded, by the fact that a homogeneous system of linear equations must be consistent. (Examples of homogeneous systems of linear equations) The SLE is homogeneous, and thus is consistent. Indeed, the RREF of the augmented matrix representing this SLE is and we can see that the unique solution of this SLE is , which is the trivial solution. The SLE is homogeneous, and thus is consistent. Indeed, the RREF of the augmented matrix representing this SLE is and therefore this SLE has infinitely many solutions, since not all of the first 3 columns contain leading ones, and there is no leading one in the 4th column in this matrix. (Sufficient condition for homogeneous system of linear equations to have nontrivial solutions) A homogeneous system of linear equations in unknowns must have a nontrivial solution if . The augmented matrix of the homogeneous system of linear equations in unknowns is is , and thus its RREF has the form in which is of size , since there are linear equations and unknowns. If has a leading one in each of the first columns, then there are at least rows in . However, has only rows, a contradiction. Thus, the homogeneous SLE does not have a unique solution. Since a SLE can either have no solutions (which is impossible for a homogeneous SLE), a unique solution (which is impossible in this case), or infinitely many solutions, it follows that the homogeneous SLE must have infinitely many solutions, and thus have a nontrivial solution. this proposition does not claim that if a homogeneous SLE has a nontrivial solution, then the number of linear equations is strictly lower than the number of unknowns (converse of the proposition) e.g. in the above example, even if the number of linear equations equals that of unknowns, the SLE can still have a nontrivial solution The homogeneous SLE must have a nontrivial solution. Indeed, the RREF of the augmented matrix representing this SLE is Let be the independent unknown, we have .