Professional Documents
Culture Documents
2. Gaussian Elimination
3. Homogeneous Equations
Objectives
Using Gaussian elimination to solve system of
linear equations
Using series of elementary row operations to
carry a matrix to row – echelon form, find the
rank of a matrix.
Condition for a homogeneous system to have
nontrivial solution
1.1. Solutions and Elementary Operations
coefficients variables
a1x1+a2x2+…+anxn=b is called a linear equation
( phương trình tuyến tính )
A solution ( nghiệm) to the equation is a sequence
s1,s2,…,sn such that a1s1+a2s2+…+ansn=b
s1,s2,…,sn is called a solution to a system of linear
equations if s1,s2,…,sn is a solution to every equation
of the system
A system may have no solution, may have unique
solution (nghiệm duy nhất), or may have an infinite
family of solutions (vô số nghiệm)
A system that has no solution is called
inconsistent (không tương thích)
A system that has at least one solution is
called consistent (tương thích)
Inconsistent Consistent
(không (tương thích)
tương thích)
No solutions Unique solution Infinitely many
( vô nghiệm) (nghiệm duy nhất) solutions
(vô số nghiệm)
Example 1
x 2 y 1 x y z 1
x 2 y 3 x y z 3
no solution (0,2,1), (2,0,1) (t,2-t,1)
Inconsistent Consistent
(infinitely many solutions)
(t,2-t,1) is called a general solution and
given in parametric form , t is parameter
( t is arbitrary)
Algebraic Method
1
0
2
constant matrix
(ma trận cột tự do)
3 2 1 1
2 0 1 2
3 1 2 5
Equivalent
Difficult Easy
x y 1
x 2 y 2
1 1 1
augmented matrix
1 2 2
Example 2
x y 1 x y 1 x y 1 x 0 y 0
x 2 y 2 0 x 3 y 3 0 x y 1 0 x y 1
1 1 1 ( III ) 1 1 1 1 1 1
( II ) ( III ) 1 0 0
1 2 2 0 3 3 0 1 1 0 1 1
Solution (0,-1)
Theorem. Suppose an elementary operation is performed on a
system of linear equations. Then the resulting system has the
same set of solutions as the original system, so the two system
are equivalent (tương đương)
In this case,their augmented matrices are called row-equivalent
Type I (interchange two rows)
1 2 3 r r 4 1 6
2 5 0 2 5 0
1 3
4 1 6 1 2 3
Type II (multiply one row by a
nonzero number)
1 2 3 3r 3 6 9
2 5 0 2 5 0
1
4 1 6 4 1 6
Type III (add a multiple of one
row to another row)
2 5 0 0 1 6
1 3
4 1 6 0 7 18
Elementary (row) Operations on
matrix
In case of two equations in two
variables, the goal is to produce a
matrix of the form
1 0*
0 1*
In case of three equations in three
variables, the goal matrix is
1 0 0*
0 1 0*
0 0 1*
1.2. Gaussian Elimination
(phép khử Gauss)
By using elementary row operations to carry the
augment matrix to “nice” matrix such as
1 0 0*
0 1 0*
0 0 1*
0 1 * * * * *
0 0 0 1 * * *
0 0 0 0 1 * *
leading ones
0 0 0 0 0 0 1
0 0 0 0 0 0 0
1 * * * 0 1 * * 1 * *
0 1 * * 0 0 0 1 0 0 0
0 1 * * 0 0 0 0 0 0 1
A reduced row-echelon matrix
(ma trận bậc thang theo dòng thu
gọn) has the properties
It is a row-echelon matrix
Each leading 1 is the only 1 0 * 0
0 1 * 0
nonzero entry in its
column 0 0 0 1
Reduced row- echelon matrix
1 * 0
1 * 0 0 1 0
0 0 1
0 0 1
1 0 * 0 0 1 * 0 1 * 0
0 1 * 0 0 0 0 1 0 0 0
0 0 0 1 0 0 0 0 0 0 1
Find x,y so that the matrix
1 x y
0 x 1
is row-echelon matrix
is reduced row-echelon matrix
Gaussian Algorithm
Theorem. Every matrix can be brought to (reduced) row-
echelon form by a series of elementary row operations
Step 1. If all row are zeros, stop
Step 2. Otherwise, find the first column from the left
containing a nonzero entry (call it a) and move the row
containing a to the top position
Step 3. Multiply that row by 1/a to create the leading 1
Step 4. By subtracting multiples of that row from the
rows below it, make each entry below the leading 1
zero
Step 5. Repeat step 1-4 on the matrix consisting of the
remaining rows
Gaussian Algorithm
0 0 0 0
0 0 0 0
step 1: stop
0 0 0 0
leading one
0 0 0 0
2 2 1 0 1 1
0 0 13 1 1 0 1 1 0
r r 0 0 1 3 2r
2 2
2 1 0
1 2 4 r r
0 0 1 3
1 2 1 1 4
0 0 1 3
0 3 0 6 0 3 0 6 0 3 0 6 0 3 0 6
4 7 5 1 4 7 5 1 4 7 5 1 0 3 7 1
2 6 2 2
2 3 11 4
3 11 3 0
to row-echelon matrix
to reduced row-
echelon matrix
2 6 2 2 1 r 1 3 1 1 23r rr r 1 3 1 1
1 2
2 3 11 4 2 3 11 4 0 3 9 6
1
2 1 3
3 11 3 0 3 11 3 0 0 2 6 3
1 1 3 1 1 2 r r
r2 1 3 1 1 1 r 1 3 1 1
0 1 3 2 0 1 3 2 0 1 3 2
3
3 2 3 7
0 2 6 3 0 0 0 7 0 0 0 1
row-echelon matrix
1 3 1 1 2 r r 1 3 1 0
3 2
r r
0 1 3
3 2 0 1 3 0
1
0 0 0 1 0 0 0 1
1 0 10 0
3 r r
0 1 3 0
2 1
0 0 0 1
reduced row-echelon matrix
Gauss-Jordan Elimination
(for solving a system of linear equations)
Step 1.Using elementary row
operations, augmented 1 0 10 0 x 0 y 10 z 0
matrixreduced row-echelon 0 1 3 0 0 x 1y 3z 0
matrix 0 0 0 1 0 x 0 y 0 z 1
Step 2. If a row [0 0 0…0 1] occurs,
reduced row echelon matrix
1 2 1 3 1 1 2 1 3 1 1 2 1 3 1
2 4 1 0 5 0 0 3 6 3 0 0 1 2 1
1 2 2 3 4 0 0 3 6 3 0 0 0 0 0
row echelon matrix
3x y z a
x y 2z b
5 x 3 y 4 z c
0 1 * * * * *
0 0 0 1 * * *
0 0 0 0 1 * *
0 0 0 0 0 0 1
0 0 0 0 0 0 0
then rankA=4
Theorem 2
Suppose a system of m equations in n
variables has a solution. If the rank of the
augment matrix is r then the set of
solutions involves exactly n-r parameters
leading one
1 2 1 3 1 1 2 1 3 1 1 2 1 3 1
2 4 1 0 5 0 0 3 6 3 0 0 1 2 1
1 2 2 3 4 0 0 3 6 3 0 0 0 0 0
rankA=2