Systems of Linear Equations 2
Systems of Linear Equations 2
3
Matrices and Echelon Form (1 of 1)
Definition
A matrix is in row echelon form if it satisfies the following
properties:
4
Example 2.8
Assuming that each of the following matrices is an
augmented matrix, write out the corresponding systems of
linear equations and solve them.
Solution:
We first remind ourselves that the last column in an
augmented matrix is the vector of constant terms. The first
matrix then corresponds to the system
2x1 + 4x2 = 1
−x2 = 2
5
Example 2.8 – Solution (1 of 2)
Notice that we have dropped the last equation 0 = 0, or
0x1 + 0x2 = 0, which is clearly satisfied for any values of x1
and x2.) Back substitution gives x2 = −2 and then
2x1 = 1 − 4(−2) = 9, so x1 = The solution is
6
Example 2.8 – Solution (2 of 2)
The last equation represents 0x1 + 0x2 = 4, which clearly has
no solutions. Therefore, the system has no solutions.
Similarly, the system corresponding to the fourth matrix has
no solutions.
For the system corresponding to the third matrix, we have
x1 + x2 + 2x3 = 1
x3 = 3
so x1 = 1 − 2(3) − x2 = −5 − x2. There are infinitely many
solutions, since we may assign x2 any value t to get the
parametric solution [−5 − t, t, 3].
7
Elementary Row Operations
8
Elementary Row Operations (1 of 2)
Definition
The following elementary row operations can be
performed on a matrix:
1. Interchange two rows.
2. Multiply a row by a nonzero constant.
3. Add a multiple of a row to another row.
9
Example 2.9
Reduce the following matrix to echelon form:
10
Example 2.9 – Solution (1 of 5)
We work column by column, from left to right and from top to
bottom. The strategy is to create a leading entry in a
column and then use it to create zeros below it.
11
Example 2.9 – Solution (2 of 5)
We begin by introducing zeros into the first column below
the leading 1 in the first row:
12
Example 2.9 – Solution (3 of 5)
In this case, we do this by interchanging rows. (We could
also add row 3 or row 4 to row 2.)
13
Example 2.9 – Solution (4 of 5)
We now create a zero at the bottom of column 2, using the
leading entry −1 in row 2:
15
Elementary Row Operations (2 of 2)
Definition
Matrices A and B are row equivalent if there is a sequence
of elementary row operations that converts A into B.
Theorem 2.1
Matrices A and B are row equivalent if and only if they can
be reduced to the same row echelon form.
16
Gaussian Elimination
17
Gaussian Elimination (1 of 2)
Gaussian Elimination
1. Write the augmented matrix of the system of linear
equations.
18
Example 2.10
Solve the system
2x2 + 3x3 = 8
2x1 + 3x2 + x3 = 5
x1 − x2 − 2x3 = −5
Solution:
The augmented matrix is
19
Example 2.10 – Solution (1 of 4)
We proceed to reduce this matrix to row echelon form,
following the guidelines given for step 2 of the process. The
first nonzero column is column 1. We begin by creating a
leading entry at the top of this column; interchanging rows 1
and 3 is the best way to achieve this.
20
Example 2.10 – Solution (2 of 4)
We now create a second
zero in the first column,
using the leading 1:
21
Example 2.10 – Solution (3 of 4)
We now need another zero at the bottom of column 2:
22
Example 2.10 – Solution (4 of 4)
The corresponding system is
x1 − x2 − 2x3 = 25
x2 + x3 = 3
x3 = 2
23
Gaussian Elimination (2 of 2)
Definition
The rank of a matrix is the number of nonzero rows in its
row echelon form.
Theorem 2.2
The Rank Theorem
Let A be the coefficient matrix of a system of linear
equations with n variables. If the system is consistent, then
24
Gauss-Jordan Elimination
25
Gauss-Jordan Elimination (1 of 2)
Definition
A matrix is in reduced row echelon form if it satisfies the
following properties:
1. It is in row echelon form.
2. The leading entry in each nonzero row is a 1 (called a
leading 1).
3. Each column containing a leading 1 has zeros
everywhere else.
26
Gauss-Jordan Elimination (2 of 2)
Gauss-Jordan Elimination
1. Write the augmented matrix of the system of linear
equations.
2. Use elementary row operations to reduce the augmented
matrix to reduced row echelon form.
3. If the resulting system is consistent, solve for the leading
variables in terms of any remaining free variables.
27
Example 2.13
Solve the system
w − x − y + 2z = 1
2w − 2x − y + 3z = 3
−w + x − y = −3
by Gauss-Jordan elimination.
Solution:
The reduction proceeds until
we reach the echelon form:
28
Example 2.13 – Solution (1 of 2)
We now must create a zero above the leading 1 in the
second row, third column. We do this by adding row 2 to row
1 to obtain
29
Example 2.13 – Solution (2 of 2)
It is now much easier to solve for the leading variables:
w=2+x−z and y=1+z
30
Homogeneous Systems
31
Homogeneous Systems (1 of 1)
Definition
A system of linear equations is called homogeneous if the
constant term in each equation is zero.
Theorem 2.3
If is a homogeneous system of m linear equations
with n variables, where m < n, then the system has infinitely
many solutions.
32