1.2 Gaussian Elimination: Class Notes
#7
Solve the system by Gaussian elimination.
Solution
Gaussian elimination works with the augmented matrix of the system:
Tip: Watch the difference between (zero) and , the empty set: .
Step 1. Row 1 already starts with a leading 1. Make the entries below it in column 1 zero, using , , and :
Step 2. Now work on column 2, below row 1. Row 3 already has a 1 there, so swap it into row 2 with :
Then clear the 3s below that leading 1 with and :
This is in row echelon form, reached by Gaussian elimination. The system is now
Solve each equation for its first variable:
Substituting into equation (1) gives , so
The solution is . Let and . Then , , , :
Answer:
Definitions
Row echelon form (#1-3 below) and reduced row echelon form (#1-4 below) of a matrix – to be of this form, a matrix must have the following properties:
- If a row does not consist entirely of zeros, then the first nonzero number in the row is a 1. This is a leading 1.
- If there are any rows that consist entirely of zeros, then they are grouped together at the bottom of the matrix.
- In any two successive rows that do not consist entirely of zeros, the leading 1 in the lower row occurs farther to the right than the leading 1 in the higher row.
- Each column that contains a leading 1 has zeros everywhere else in that column.
Back to #7: the row echelon form was
The above the leading 1 in column 2 breaks property 4. Clear it with :
The columns go with , , , , and the constants:
This is reduced row echelon form, reached by Gauss–Jordan elimination. It gives and directly, without substituting. Letting and gives the same result as before.
Pivots
In reduced row echelon form, the entries above and below each leading 1 are zeros.
The pivots of the original augmented matrix are the positions that hold the leading 1s in its reduced row echelon form. In #7 they are the row 1, column 1 entry and the row 2, column 2 entry.
The pivot columns are the columns that contain leading 1s. In #7 they are the - and -columns.
In #7 the leading 1s are in the - and -columns, so and are leading variables. The remaining variables, and , are free variables.
Definitions
Leading variables correspond to the leading 1’s in the augmented matrix for a linear system. Free variables are the remaining variables in the linear system.
Every variable in a system is either leading or free.
Definition
In a homogeneous linear system, the constant terms are all zero. That is, it has the form
Theorem 1.2.1 Free Variable Theorem for Homogeneous Systems
If a homogeneous linear system has unknowns, and if the reduced row echelon form of its augmented matrix has nonzero rows, then the system has free variables.
The nonzero rows correspond to the leading 1s, so counts the leading variables, and the other variables are free.
Theorem 1.2.2
A homogeneous linear system with more unknowns than equations has infinitely many solutions.
For example, the system below has 3 unknowns but only 2 equations:
Proof
The number of equations in a system is the number of rows in its augmented matrix. The number of leading 1s is no more than the number of rows. Thus, such a system has at least 1 free variable. A homogeneous system is always consistent, since it has the trivial solution . A consistent system with a free variable has infinitely many solutions.
#28
What condition, if any, must , , and satisfy for the linear system to be consistent?
Solution
Step 1. Clear column 1 below the leading 1 with and :
Step 2. Clear column 2 below the leading 1 with :
Row 3 is the equation . The system has a solution exactly when this is true.
Answer:
Solve the given linear system by any method.
#16
Solution
Tip: For a homogeneous system, writing the column of zeros is optional: row operations never change it. The work below leaves it off.
Step 1. Clear column 1 below row 1 with and (both use the rows as they are now):
Then :
Step 2. Clear the 3 below the leading 1 in column 2 with :
Then :
Step 3. Clear column 3 above the leading 1 with and :
Step 4. Clear the in column 2 with , then :
Answer:
This is the trivial solution.
#19
Solution
Divide the first equation by 2 and use instead. With the columns in the order , , , (leaving off the column of zeros), the matrix is
Row 1 starts with 0, so swap it with row 2: .
Column 1. Use and (adding row 3 as it is now, before it changes):
Column 2. Use and :
Then clears row 4, giving row echelon form:
Clear the column above the leading 1 in column 4 with and to reach reduced row echelon form (rref). With the column of zeros put back:
The leading 1s are in the -, -, and -columns, so , , and are leading variables, and is a free variable.
Let . Then , , and .
Answer:
#23
The augmented matrix for a linear system is given in which the asterisk represents an unspecified real number. Determine whether the system is consistent, and if so whether the solution is unique. Answer “inconclusive” if there is not enough information to make a decision.
a. b.
c. d.
Solution
a. Every variable has a leading 1, so there are no free variables, and no row is a contradiction.
Answer:
b. Row 3 says , which is always true. The third column has no leading 1, so there is a free variable.
Answer:
c. Row 3 says , a contradiction.
Answer:
d. Call the variables , , . Row 3 says equals its last entry. If the unspecified entry in row 2 is not zero, row 2 forces . Then the system is consistent if the last entry of row 3 is 0, and inconsistent if it is not 0. Both can happen:
If rows 2 and 3 end in
then subtracting twice the second of these rows from the first gives : no solution. But if they are
subtracting gives , and the system is consistent.
Answer: