LEC--3--REF-and-RREF-of-a-matrix linear algebra
LEC--3--REF-and-RREF-of-a-matrix linear algebra
Linear
.
Algebra
.
1
.
. x 3 y 5,
The equations 3x 2 y z xz 4,
and y sin x are not
linear.
Solution(a)
we can assign an arbitrary value to x and solve for y , or
choose an arbitrary value for y and solve for x. If we
follow the first approach and assign x an arbitrary value
,we obtain if .x t , then y 2t 1
1 1
2
1 1
or if y t 2 , then x t 2
2 4
t1, t 2
arbitrary numbers are called parameter.
11
for example t1 3 gives the solution x 3, and . y
2
Example 2 (Finding a Solution Set
(2/2)
x y 2 z 9 add - 2 times
2 x 4 y 3 z 1 the first equation
to the second
3 x 6 y 5 z 0
x y 2z 9 add -3 times
2 y 7 z 1 7 the first equation
to the third
3x 6 y 5 z 0
Example 3 (2/4)
x y 2z 9
multiply the second
2 y 7 z 17 equation by
1
3 y 11z 27 2
x y 2z 9
add -3 times
y 7
2 z 17
2
the second equation
to the third
3 y 11z - 27
Example 3 (3/4)
x y 2z 9
y 7
2 z 17
2 Multiply the third
equation by - 2
1
2 z 3
2
x y 2z 9
Add -1 times the
y 7
2 z 17
2 second equation
to the first
z 3
Example 3 (4/4)
Add - 11
2
times
x 112 z 35
2
the third equation
to the first and 72 times
y 7
2 z 17
2
the third equation
to the second
z 3
x 1
y 2
z 3
Add - 11
2
times
x 112 z 35
2
the third equation x 1
to the first and 72 times
y 7
2 z 17
2 the third equation y 2
to the second
z 3
z 3
Add - 11
2
times
the third row
1 0 112 35
2 to the first and 72 1 0 0 1
0 1 7
17 times the third row 0 1 0 2
2 2
to the second
0 0 1 3 0 0 1 3
25
Row-Echelon form
(Gaussian elimination
method)
OR
Reduced Row-Echelon form
(Gauss-Jordan elimination
method).
Gauss & Jordan
Friedrich Gauss
Camille Jordan
Born: 30 April 1777Germany Born: 5 Jan 1838 France
Died: 23 Feb 1855 in Died: 22 Jan 1922 in Paris,
Germany) France
Reduce Row Echelon Forms
(1/2)
0 1 * * * * * * * *
1 * * * 1 * * * 1 * * *
0 0 0 0 1 * * * * * *
1 * * 0 1 * * 0 1 * *
, , , 0 0 0 0 1 * * * * *
0 0 1 * 0 0 1 * 0 0 0 0
0 0 0 0 0 1 * * * *
0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 *
Examples reduced row-echelon
form
All matrices of the following types are in reduced row-
echelon form ( any real numbers substituted for the
*’s. ) :
0 1 * 0 0 0 * * 0 *
1 0 0 0 1 0 0 * 1 0 * *
0 0 0 0 1 0 0 * * 0 *
1 0 0 0 1 0 * 0 1 * *
, , , 0 0 0 0 1 0 * * 0 *
0 0 1 0 0 0 1 * 0 0 0 0
0 0 0 0 0 1 * * 0 *
0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 *
How to write Solutions
From
Reduced Row-Echelon
form.
Case-1:- When the number of Eqs in the system are same
as number of variables.
1 0 0 5
(a) 0 1 0 2
0 0 1 4
Solution (a) x 5
The corresponding system y -2
of eq. equivalent to above
z 4
reduce row echelon form
is :
Case-2:- When the number of Eqs in the system are less
then number of variables.
1 0 0 4 1
(b) 0 1 0 2 6
0 0 1 3 2
free
x1 4 x4 - 1 variables
Solution (b)
x2 2 x4 6
The corresponding
system of eq. x3 3 x4 2
equivalent to above
reduce row echelon leading
form is : variables
x1 1 4t ,
3. There are infinitely solutions, x2 6 2t ,
and the general solution is given
by the formulas. x3 2 3t ,
x4 t
Or.quadruple...( 1 4t , 6 2t , 2 3t , t )
Ex3©
Solution (c) x1 6 x2 4 x5 - 2
The corresponding system of eq.
x3 3 x5 1
equivalent to above reduce row
echelon form is . x4 5 x5 2
Leading
variables
Ex 3©
Solution (c) x1 - 2 - 6 x2 - 4 x5
Solving leading variables in x3 1 - 3 x5
terms of the free variables: x4 2 - 5 x5
When the augmented matrix for a SOLEs have been reduced to the
reduced row-echelon form as under. Then there will be no solution .
1 0 0 0
(d) 0 1 2 0 Solution (d):
0 x1 0 x2 0 x3 1
0 1.
Which.is.a.contradiction
,
therefore there is no solution of the
system.
How to write Solutions
From
Row-Echelon Form
(Called backward
substitution)
Solution from Row Echelon
form
called backward-substitution
To write solution of SOLEs by backward
substitution we proceed as follow
a) Bring the augmented matrix into row-
echelon form only.
b) Write the corresponding system of linear
equation from echelon form in step -1
c) Solve this corresponding system of
equations by back-substitution.
(See example next slide)
41
Example: Writing solution by back
substitution
Example: Write solution from follow row echelon form by back
substitution.
1 3 2 0 2 0 0
0 0 1 2 0 3 1 Step-1 row echelon form
of augmented matrix
0 0 0 0 0 1 13
0 0 0 0 0 0 0
x1 3 x2 2 x3 2 x5 0
Step-2 System of equivalent Eqs.
from row echelon form
x3 2 x4 3 x6 1
x6 1 3
x1 3 x2 2 x3 2 x5
x3 1 2 x4 3 x6 Step-3 Solving Eqs. in step-2
for free variables
x6 1 3
Continue (Back-
Substitution)
Step.5 Assign arbitrary
Step-4 Substituting the values of values to
x6 = 1/3 & then x3 =-2x4 back ward the free variables, x2 , x4 ,
x5
Substituting x6 1 3 x1 3r 4 s 2t
x1 3 x2 2 x3 2 x5 x2 r
x3 2 x4
x3 2 s
x6 1
3
Substituting x3 2 x4 x 4 s
x1 3 x2 4 x4 2 x5 x5 t
x3 2 x4 x6 1 3
x6 1 3
1 2 5 3 6 14
The 1st row in the sub
0 0 1 0 7 6
2 matrix was multiplied by -
0 0 5 0 17 29 1/2 to introduce a leading 1.
Continue (5/7)
Step5 (cont.)
-5 times the 1st row of the
1 2 5 3 6 14 submatrix was added to the
0 0 1 0 7 6 2nd row of the submatrix to
2 introduce a zero below the
0 0 0 0 21
1 leading 1.
1 2 0 3 0 7
0 0 1 0 0 1 5 times the 2nd row was
0 0 0 added to the 1st row.
0 1 2
The last matrix is in reduced row-echelon
form.
Gaussian elimination & Gauss-Jordan
elimination
REMEMBER
Row-echelon form is also called Gaussian elimination.
AND
Reduced row-echelon form is called Gauss-Jordan
elimination.
1 1 2 9
Row-echelon form of above matrix is 0 1 7
172
2
0 0 1 3
Solution
Solving for the leading variablesx 9 y 2 z ,
y 17
2 72 z ,
z 3
Substituting the bottom equation into those above
x 3 y ,
y 2,
z 3
Substituting the 2nd equation into the top
x 1, y 2, z 3