Lecture 1 part 2
Lecture 1 part 2
Samat Kassabek
Department of Mathematics
School of Sciences and Humanities
Nazarbayev University
Kazakhstan
Week 1
In fact, to solve the system of equations we have used the row reduction
or Gaussian elimination.
The point of Gaussian Elimination method is to use the elementary
operations to reduce a given system of linear equations and reach a simple
form, which is called echelon form and then set up back-substitution to
find unknowns (if it has a solution).
A nonzero row or column is a row or column with at least one nonzero
entry.
The leading entry of a row is the leftmost nonzero entry (in a nonzero
row).
A matrix is called a triangular matrix if the entries below or above the
diagonal are zeros.
Example (1)
The following matrices are in echelon form. The leading entries (■) may have
any nonzero value; the starred entries (∗) may have any value (including zero).
Definition
A system of linear equation is in echelon form, if it has the following form:
a11 x1 + a12 x2 + a13 x3 + . . . + a1n xn = b1
a2j2 xj2 + a2j3 xj3 + . . . + a2n xn = b2
. . . . . . . ...................................
arjr xjr + . . . + arn xn = br
where 1 < j2 < · · · < jr and a11 , a2j2 , . . . , arjr are not zero. x1 , x2 , . . . , xr are
called pivots or leading unknowns. The unknows that are not leading in the
echelon form are called free.
Example
x1 − 2x2 + x3 = 5
x2 − 2x3 = 3.
The system is in echelon form. x1 and x2 are leading unknowns, x3 is free.
Definition
A system of linear equation is in triangular form, if it has the following form:
a11 x1 + a12 x2 + a13 x3 + . . . . . . + a1n xn = b1
a22 x2 + a23 x3 + . . . + a2n xn = b2
. . . . . . . . . . . . . ................................
ann xn = bn
Example
x1 − 2x2 + x3 = 5
x2 − 2x3 = 3
4x3 = 4.
where x1 does not appear in any equation except the first, a11 ̸= 0, and xj2
the first unknown with a nonzero coefficient in any equation other than the
first.
Examine each equation whether
any of it has the form 0x1 + 0x2 + . . . + 0xn = b with b ̸= 0, if so, then we
stop and the system has no solution.
any of it has the form 0x1 + 0x2 + . . . + 0xn = 0, if so, then delete that
equation from the system.
Samat Kassabek ([email protected])
Linear Algebra with Applications 10 / 22
Continued: Algorithm for Forward Elimination
3 (Recursion Step) Repeat the Elimination Step with each new ”smaller”
subsystem formed by all the equations excluding the first equation.
4 (Output) Finally, the system is reduced to triangular or echelon form, or
an equation with no solution.
From Gauss Elimination Method we can conclude the following theorem.
Theorem
Consider a system of linear equations in echelon form, say with r equations in
n unknowns. Then there are two cases:
(i) r = n. That is, there are as many equations as unknowns (triangular
form). Then the system has a unique solution.
(ii) r < n. That is, there are more unknowns than equations. Then we can
arbitrarily assign values to the n − r free unknowns and solve uniquely for
the r unknowns, obtaining a solution of the system.
It implies that x1 and x3 are pivots, and x2 and x4 are free unknowns.
Samat Kassabek ([email protected])
Linear Algebra with Applications 12 / 22
Using the the second equation we express x3 by x4 and have
x3 = −7 + 7x4 .
Then we substitute it into the first equation and we derive
x1 + x2 − 10x4 = −9 ⇔ x1 = −9 − x2 + 10x4 .
So x1 and x3 depend on x2 and x4 .
We can substitute arbitrary numbers for x2 and x4 and find x1 and x3 .
Since K is infinite and x2 , x4 ∈ K, the system has infinitely many sol.
In this case, the solution set can be written as For example, if we set
x2 = x4 = 0, then x1 = −9, x3 = −7 or if we set x2 = 0 and x4 = 1, then
x1 = 1, x3 = 0.
These are examples of particular solutions of the system and they are
infinite.
The general answer is
{(−9 − x2 + 10x4 , x2 , −7 + 7x4 , x4 ) | x2 and x4 are any numbers from K} ,
that’s why, it is called a general solution of the system.
Important remark
As we wish, we can declare the unknowns x3 and x1 as free unknowns and
express x2 and x4 by them. However, again we have the same set of solutions.
Samat Kassabek ([email protected])
Linear Algebra with Applications 13 / 22
In Lecture 1 we studied how to solve a system of linear equations by
Gaussian Elimination method.
The main idea was to derive an echelon form matrix from the system or
from a augmented matrix by elementary operations and then use
back-substitution to find values of unknowns.
However, echelon form matrices are not unique, namely, a system or
matrix may have different echelon form matrices.
Example
2 2
Let A = . Then we note that
4 3
2 2 1 1 2 0
, ,
0 −1 0 −1 0 −1
Definition
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.
Example
The following matrices are in reduced echelon form because the leading entries
are 1’s, and there are 0 ’s below and above each leading 1.
Example
The matrix
2 −3 2 1
0 1 −4 8
5
0 0 0 2
is in echelon form.
Example
The matrix
1 0 0 29
0 1 0 16
0 0 1 3