1 ST
1 ST
Selçuk Demir
February 5, 2025
1 / 24
Systems of Linear Equations
a1 x1 + a2 x2 + · · · + an xn = b.
A solution of the system is a list {s1 , s2 , ..., sn } of numbers that makes each equation
a true statement when the values s1 , s2 , ..., sn are substituted for x1 , x2 , ..., xn ,
respectively.
2 / 24
Systems of Linear Equations
3 / 24
Systems of Linear Equations
Consider the system
Example
Let’s solve the system
x1 − 2x2 + x3 = 0
2x2 − 8x3 = 8
5x1 − 5x3 = 10
5 / 24
Systems of Linear Equations
6 / 24
Systems of Linear Equations
Example
Consider the system
x1 − 2x2 + x3 = 0
2x2 − 8x3 = 8
5x1 − 5x3 = 10
7 / 24
Systems of Linear Equations
The
augmented matrix
1 −2 1 0 1 −2 1 0
0 2 −8 8 is row equivalent to the matrix 0 1 −4 4
5 0 −5 10 0 0 1 −1
This shows that the system is consistent.
8 / 24
Systems of Linear Equations
Example
Determine whether the following system of equations is consistent.
x2 − 4x3 = 8
2x1 − 3x2 + 2x3 = 1
4x1 − 8x2 + 12x3 = 1
0 1 −4 8 2 −3 2 1
The augmented matrix 2 −3 2 1 is row equivalent to 0 1 −4 8
4 −8 12 1 0 0 0 15
which is clearly incosistent.
9 / 24
Row Reduction
A rectangular matrix is in echelon form (or row echelon form) if it has the following
three properties:
1. All nonzero rows are above any rows of all zeros.
2. Each leading entry of a row is in a column to the right of the leading entry of the
row above it.
3. All entries in a column below a leading entry are zeros.
If a matrix in echelon form satisfies the following additional conditions, then it is
in reduced echelon form (or reduced row echelon form):
4. The leading entry in each nonzero row is 1.
5. Each leading 1 is the only nonzero entry in its column.
10 / 24
Row Reduction
11 / 24
cepts in the first four chapters will be connected in one way or another with pivot posi-
columns
tions of .
in a matrix.
Row Reduction
EXAMPLE 2 Row reduce the matrix
Example below to echelon form, and locate the pivot
columns of . 2 3
0 3 6 4 9
SOLUTION Use the same basic 6 strategy
1 2 as1 in Section
3 17 71.1. The top of the leftmost
AD6
nonzero column is the first pivot position.
4 2 3A nonzero
0 3 entry, 1 5or pivot, must be placed in this
position. A good choice is to interchange
1 4rows51 and9 4 (because
7 the mental computations
in the next step will not involve fractions).
SOLUTION Use the same basic strategy as in Section 1.1. The top of the leftmost
nonzero column is the first pivot position. APivot
nonzero entry, or pivot, must be placed in this
position. A good choice is to interchange
2
1 4 51 and9 4 (because
rows 7
3 the mental computations
in the next step will not involve6fractions).
6 1 2 1 3 17 7
4 2 3 0 3 15
Pivot
0 3 6 4 9
6 Pivot column
Create zeros below the pivot, 1, by adding multiples of the first row to the rows below,
12 / 24
Create zeros below the pivot, 1, by adding multiples of the first row to the rows below,
possible—namely
and in the
obtain matrix (1) second
below. Thecolumn. Chooseinthe
pivot position the2 second
in this position
row mustas be
theasnext
far pivot.
left as
Row Reduction
possible—namely in the second column. Choose the 2 in this position as the next pivot.
Pivot
2 Pivot 3
1 4 5 9 7 (1)
60 2 4 6 67
6
40
7 (1)
5 10 15 15 5
0 3 Next
6 pivot4 column
9
6 Next pivot column
Add times row 2 to row 3, and add times row 2 to row 4.
Add times row
R 1 Linear Equations in Linear Algebra 2 to row 3,
2 and add times row32 to row 4.
1 4 5 9 7
60 2 4 6 67
6
40 0 0 0 05
7 (2)
destroy the echelon arrangement of the leading entries already produced.) However, if
(2)
we interchange rows 3 and 4, we0 can 0produce
0 a5leading
0 entry in column 4.
The matrix is in echelon form and thus reveals that columns 1, 2, and 4 of are pivot 13 / 24
Row Reduction
Pivot columns
The matrix is in echelon form and thus reveals that columns 1, 2, and 4 of are pivot
columns.
Pivot positions
0
2 3
3 6 4 9
6 1 2 1 3 17
AD6 (3)
3
7
4 2 3 0 15
1 4 5 9 7
6 6 6 Pivot columns
Pivot
2 3
3 9 New 12 pivot9 column
6 15
40 2 4 4 2 65
0 3 step
For step 3, we could insert an optional 6 of dividing
6 4 the 5 “top” row of the submatrix by
the pivot, 2. Instead, we add 6
times thepivot
New “top” row to the row below. This produces
column
17 / 24
Pivot
When we cover the row containing the second pivot position for step 4, we are left with
Row
new Reduction
a Steps 1–3 require
submatrix Algorithm
no work
having onlyfor
onethis submatrix, and we have reached an echelon form of
row:
the full matrix. If we want the reduced echelon form, we perform one more step.
2 3
3 9 12 9 6 15
40 2 4 4 2 65
Step 5
0 0 0 0 1 4
Beginning with the rightmost pivot and working upward Pivot
and to the left, create
zeros above each pivot. If a pivot is not 1, make it 1 by a scaling operation.
Steps 1–3 require no work for this submatrix, and we have reached an echelon form of
Stepmatrix.
the full 5 If we want the reduced echelon form, we perform one more step.
Beginning with the rightmost pivot and working upward and to the left, create zeros
The rightmost pivot is in row 3. Create zeros above it, adding suitable multiples of row
above each pivot. If a pivot is not 1, make it 1 by a scaling operation.
3 to rows 2 and 1.
Step 5 2 3
Row 1 C . 6/ row 3
Beginning with3 the9rightmost
12 9 pivot 0 and 9working upward and to the left, create
40 2 4 4 0 14 Row 2 C . 2/ row 3
zeros above each pivot. If a pivot is not 1, make it 1 by a scaling operation.
5
0 0 0 0 1 4
Therightmost
The next pivotpivot
is inisrow 2. Scale
in row this row,
3. Create dividing
zeros byadding
above it, the pivot.
suitable multiples of row 18 / 24
The next pivot is in row 2. Scale this row, dividing by the pivot.
Row The
Reduction
next pivotAlgorithm
is in row 2. Scale this row, dividing by the pivot.
Row scaled by
Row scaled by
2 3
3 9 12 9 0 9
40 1 2 2 0 75 Row scaled by 1
2
Create a zero in column
0 0 2 by 0 adding
0 91 times4 row 2 to row 1.
Create a zero in column 2 by adding 9 times row 2 to row 1.
Create a zero2 in column 2 by adding 9 times 3 row 2 to
Rowrow
1 1. row 2
3 0 6 9 0 72 Row 1 C .9/ row 2
40 1 2 2 0 75 Row 1 row 2
0 0 0 0 1 4
Finally, scale row 1, dividing by the pivot, 3.
Finally, scale row
2 1, dividing by the pivot, 3. 3
Finally, scale row
1 1, 0dividing
2 by 3 the0pivot,
243. Row scaled by 31
40 1 2 2 0 75 Row scaled by
0 0 0 0 1 4 Row scaled by
EXAMPLE
Example 4 Find the general solution of the linear system whose augmented matrix
Thehas beenisreduced
matrix to form,2but we want the reduced echelon
in echelon 3 form
1 6 is2completed
g for the basic variables. The row reduction 5 2 next. 4 The symbol
atrix indicates that the matrix is row0 equivalent
0 2 to 8the preceding
1 3 5 matrix.
4
0 0 0 0 1 7
SOLUTION The matrix 5 is 4in echelon form, but we want
5 the reduced echelon form
before solving echelon
The reduced for the basic
form variables. The rowmatrix
of the augmented reduction
is is completed next. The symbol
before a matrix indicates
3 that
2 the matrix is row equivalent
3 to the preceding matrix.
1 6 0 3 0 0
5 40 0 1 4 0 55
0 0 0 0 1 7
he term leading variables because they correspond to the columns containing leading
20 / 24
Row Reduction
There Algorithm
are five variables because the augmented matrix has six columns. The associated
There
Theare five variables because the augmented matrix has six columns. The associated
associated
system now is system now is
system now is
x1 C 6x2 C 3x4 D0
(6)
x3 4x4 D5 (6)
x5 D 7
The pivot columns of the matrix are 1, 3, and 5, so the basic variables are , , and .
The pivot columns of the matrix are 1, 3, and 5, so the basic variables are , , and .
The remaining variables, and , must be free. solution:
Solve for the basic variables to obtain
TheSolve for the variables,
remaining basic variablesand
to obtain thebegeneral
, must free. Solve for the basic variables to obtain
the general solution:
the general solution: 8
ˆ
ˆ x1 D 6x2 3x4
<x2isisfree
free
ˆ
ˆ
ˆ
ˆ
x3 D 5 C 4x4 (7)
(7)
ˆx4isisfree
free
ˆ
ˆ
ˆ
ˆ
x5 D 7
:̂
Note that the value of is already fixed by the third equation in system (6). 21 / 24
just the right device for answering two fundamental questions posed in Section 1.1.
Although
Row Reductiona nonreduced echelon form is a poor tool for solving a system, this form is
Algorithm
just the right device for answering two fundamental questions posed in Section 1.1.
EXAMPLE
Example 5 Determine the existence and uniqueness of the solutions to the system
EXAMPLE 5 Determine the3xexistence and uniqueness of the solutions to the system
6x C 6x C 4x D 5
2 3 4 5
3x1 7x2 C 8x3 5x4 C 8x5 D 9
3x1 9x2 C 12x3 9x4 C 6x5 D 15
SOLUTION The augmented matrix of this system was row reduced in Example 3 to
By an example above, we know that the following matrix is an echelon form of the
augmented The
SOLUTION augmented
matrix matrix
of the given of this
system system was row reduced in Example 3 to
of equations.
2 3 (8)
3 9 12 9 6 15
40 2 4 4 2 65 (8)
The basic variables are , 0 , and 0 ;0 the 0free 1variables
4 are and . There is no
equation such as that would indicate an inconsistent system, so we could use back-
The basic variables are , , and ; the free variables are and . There is no
substitution
One can seeto that
find ax3solution. But
and x4 are thevariables.
free existence of a solution is already clear in (8). Also,
equation such as that would indicate an inconsistent system, so we could use back-
the solution is not unique because there are free variables. Each different choice of 22 / 24
Row Reduction Algorithm
with b nonzero If a linear system is consistent, then the solution set contains either (i)
a unique solution, when there are no free variables, or (ii) infinitely many solutions,
when there is at least one free variable.
23 / 24
Row Reduction Algorithm
24 / 24