SlideShare a Scribd company logo
JOSOPHAT MAKAWA
‣ A lot of matrix mathematics are handled better when using the row-
reduced echelon form. Some of these, include finding the inverses of
matrices, solving a series of equations, finding column and null spaces
and many more.
‣ The row-reduced echelon form was derived from method of finding the
inverse matrix using the gaussian-elimination method. Hence, the row-
reduced echelon form is also known as the Gauss-Elimination method.
‣ In this session, we will not bother to look at finding inverses or solving
equations using the row-reduced echelon form in detail, we will rather
look at the methodology, and then proceed to column and null spaces.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 2
INTRODUCTION
‣ There are two things occurring here, the echelon form and the reduced
echelon form.
‣ In Row echelon form, the matrix has to satisfy the following properties.
1. All non-zero rows are above any rows of all zeros.
2. Each leading entry (i.e. left most nonzero 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 zero.
‣ In general, we will define some of the general forms of matrices in row
echelon form.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 3
ROW-REDUCED ECHELON FORM
‣ Below are the general forms of the row echelon form.
a)
∎ ∗ ∗ ∗ ∗
0 ∎ ∗ ∗ ∗
0 0 0 0 0
0 0 0 0 0
c.)
0 ∎ ∗ ∗ ∗ ∗ ∗
0 0 0 ∎ ∗ ∗ ∗
0 0 0 0 ∎ ∗ ∗
0 0 0 0 0 0 ∎
0 0 0 0 0 0 0
b)
∎ ∗ ∗
0 ∎ ∗
0 0 ∎
0 0 0
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 4
ROW-REDUCED ECHELON FORM
NOTE: Make sure that we are only having zeros below
every leading non-zero entry in a column. And
to the left of a leading non-zero entry in a given
row, we also have zeros.
∎ Non-Zero
entry
∗ Zero or non-
zero entry
‣ In row-reduced echelon form, we make more changes to the leading entries
and their respective columns.
‣ So, to the first 3 properties of row echelon form, add the following properties.
4. The leading entry in each nonzero row is 1.
5. Each leading 1 is the only nonzero entry in its column.
‣ In general,
1 ∗ 0 0 ∗ ∗ 0 0 ∗
0 0 1 0 ∗ ∗ 0 0 ∗
0 0 0 1 ∗ ∗ 0 0 ∗
0 0 0 0 0 0 1 0 ∗
0 0 0 0 0 0 0 1 ∗
is in row-reduced echelon form.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 5
ROW-REDUCED ECHELON FORM
‣ In this session we will deal more with the row-reduced echelon form and
we will often meet a number of terms. For example, pivot position, pivot
and pivot column are the most common terms to be familiar with.
▪ pivot position: a position of a leading entry in an echelon form of the
matrix.
▪ pivot: a nonzero number that either is used in a pivot position to
create 0’s or is changed into a leading 1, which in turn is used to
create 0’s in row-reduced echelon form.
▪ pivot column: a column that contains a pivot position.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 6
ROW-REDUCED ECHELON FORM
‣ Let’s try to identify if matrices are in row-reduced echelon form or not.
1.
0 0 0 0
0 1 0 0
0 0 1 −2
2.
1 0 0
0 1 0
0 0 1
3.
1 2 0 0 4
0 0 1 0 9
0 0 0 1 −1
0 0 0 0 0
(this matrix is left for your practice)
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 7
ROW-REDUCED ECHELON FORM
This matrix is not in row-reduced echelon form
because a row with all 0’s is above row(s) with some
non-zero entries.
This matrix in row-reduced echelon form because each
column is a pivot column and every leading pivot
(leading entry) is a 1.
FINDING REDUCED ECHELON FORMS OF MATRICES
‣ In the conversion of a matrix into row-reduced echelon form (RREF), we
create an augmented matrix depending on the nature of a calculation we
need to make.
‣ For example, if we want to find the inverse matrix, we augment the given
square matrix (A𝑛) and its identity matrix (I𝑛) in the form A𝑛 I𝑛 . By
converting A𝑛 into RREF, the matrix I𝑛 is converted into the inverse of
A𝑛. In the same way, a system of equations Aത
x = ത
b, we augment the
coefficient matrix A, and the solution vector ത
b, in the form A ത
b . In
RREF we find the column vector ത
x.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 8
ROW-REDUCED ECHELON FORM
‣ To convert a matrix into RREF, we use the following three rules
simultaneously.
1. Interchanging the positions of any two rows.
2. Multiplying by a non-zero scalar
3. Adding or subtracting other rows or adding or subtracting the scalar
multiples of other rows.
‣ We should always note that we can’t multiply by 0 and we also can’t add
or subtract a scalar. We should also note that any rule we choose is
applied on the entire row and not a specific point or pivot.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 9
ROW-REDUCED ECHELON FORM
Example 1: Find the inverse matrix A given that
A =
3 1
4 2
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 10
ROW-REDUCED ECHELON FORM
‣ This a 2 × 2 matrix, thus the augmented matrix will look as follows
3 1
4 2
1 0
0 1
= A I
‣ The idea here is to convert A into an identity matrix I, and I into A−1
3 1
4 2
1 0
0 1
←
1
3
𝑅1
We want to make the first point be 1 (pivot).
Since no other row in this column has 1, we
can’t interchange. Hence, a scalar product to
row 1
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 11
ROW-REDUCED ECHELON FORM
‣ After multiplying
1
3
to the entire row, we get
1
1
3
4 2
1
3
0
0 1
1
1
3
0
2
3
1
3
0
−
4
3
1
1
1
3
0 1
1
3
0
−2
3
2
← 𝑅2 − 4𝑅1
We must have all zeros below a pivot,
1. Thus, 4𝑅1 will work since we can’t
subtract by a scalar.
←
3
2
𝑅2
We need to create a pivot for row 2 by
converting
2
3
into 1. Scalar multiplication.
← 𝑅1 −
1
3
𝑅2
A pivot column must only contain a
1. We must convert
1
3
to a 0 but we
shouldn’t disturb the pivot for row 1.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 12
ROW-REDUCED ECHELON FORM
1 0
0 1
−
1
3
−
1
2
−2
3
2
= I A−1
Therefore, 𝐴−1 =
−
1
3
−
1
2
−2
3
2
; your job is to test this using 𝐴 ∙ 𝐴−1 = 𝐼.
‣ As mentioned earlier, more of our attention will be on the process of
finding the row-reduced echelon form of any given matrix.
At this point we have found row-
reduced echelon form of A. For
square matrices, the RREF is their
respective identity matrices.
‣ Some basic points that may help in critical situations when we don’t
know where to start from may be;
▪ Change the first entry in row 1 to 1 by either interchanging the
positions with any other row that has 1 in column 1 or multiplying by
a scalar. Once this is a pivot (1), we must change everything in the
column to zeros.
▪ Change the last row to zeros or the last entry to the pivot if possible. If
not, start with the rows below the first row, defining pivots where
possible. Make sure, you finish with the first row unless otherwise,
being in a rush may affect the pivot point in column 1.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 13
ROW-REDUCED ECHELON FORM
‣ Visually, Given A𝑚×𝑛;
𝑎1,1 ⋯ 𝑎1,𝑛
⋮ ⋱ ⋮
𝑎𝑚,1 ⋯ 𝑎𝑚,𝑛
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 14
ROW-REDUCED ECHELON FORM
Start with changing 𝑎1,1
to 1 by any rule. Then
change everything in
column 1 to 0’s.
Change the columns that
have a pivot to zeros one
by one where possible.
1 3
Change the last row into
all zeros and stop if and
only if you have a pivot at
any point in that row.
Change to zeros any
entry in any column
that contains a pivot.
Note that this is simply a proposed
idea, it still needs proper analysis of
any given matrix.
4
2
Example 2: Write the matrix 𝐴 =
0 3 −6 6 4 −5
3 −7 8 −5 8 9
3 −9 12 −9 6 15
in RREF.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 15
ROW-REDUCED ECHELON FORM
0 3 −6 6 4 −5
3 −7 8 −5 8 9
3 −9 12 −9 6 15
3 −9 12 −9 6 15
3 −7 8 −5 8 9
0 3 −6 6 4 −5
← 𝑅1 ↔ 𝑅3 We have 0 on a pivot point.
We will interchange with row
3 (row 2 will give fractions)
←
1
3
𝑅1
Convert the pivot point to 1. If we
had interchanged with row 2, this
operation could have brought
fractions. Always pay attention.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 16
ROW-REDUCED ECHELON FORM
1 −3 4 −3 2 5
3 −7 8 −5 8 9
0 3 −6 6 4 −5
1 −3 4 −3 2 5
0 2 −4 4 2 −6
0 3 −6 6 4 −5
1 −3 4 −3 2 5
0 1 −2 2 1 −3
0 3 −6 6 4 −5
← 𝑅2 − 3𝑅1
Making zeros for all terms
below a pivot in a pivot
column.
←
1
2
𝑅2
Creating a pivot in second
column. Our consideration is on
converting 2 to 1.
← 𝑅3 − 3𝑅2
Making zeros for all terms
below a pivot in a pivot
column. Start with terms below
and lastly finish with entries in
row 1.
1 −3 4 −3 2 5
0 1 −2 2 1 −3
0 0 0 0 1 4
1 −3 4 −3 2 5
0 1 −2 2 0 −7
0 0 0 0 1 4
1 −3 4 −3 0 −8
0 1 −2 2 0 −7
0 0 0 0 1 4
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 17
ROW-REDUCED ECHELON FORM
← 𝑅2 − 𝑅3
We have a new pivot in row 3.
we need to change everything in
this column to 0’s above 1.
← 𝑅1 − 2𝑅3
We have now changed all
terms in pivot columns in
lower rows. Let’s do for row 1
← 𝑅1 + 3𝑅3
Make sure that all pivot
columns have been treated
such that all terms that are not
pivots are 0’s.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 18
ROW-REDUCED ECHELON FORM
‣ Hence, we finally get to the final row reduced echelon form of the
given matrix. And we have;
𝐴∗ =
1 0 −2 3 0 −24
0 1 −2 2 0 −7
0 0 0 0 1 4
‣ We may also note that every row operation targets at least one entry
changing it to either 1 or 0. However, each operation affects the entire
row.
Pivots
‣ This algorithm provides a method for using row operations to take a matrix to
its echelon form. We begin with the matrix in its original form.
1. Starting from the left, find the first non-zero column. This is the first
pivot column, and the position at the top of this column will be the
position of the first pivot entry. Switch rows if necessary to place a non-
zero number in the first pivot position.
2. Use row operations to make the entries below the first pivot entry (in the
first pivot column) equal to zero.
3. Ignoring the row containing the first pivot entry, repeat steps 1 and 2 with
the remaining rows. Repeat the process until there are no more non-zero
rows left. Back to slide 29
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 19
ROW-REDUCED ECHELON FORM
Example 3: Find the reduced echelon form of 𝐴 =
1 2 1 3 2
1 3 6 0 2
3 7 8 6 6
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 20
ROW-REDUCED ECHELON FORM
1 2 1 3 2
1 3 6 0 2
3 7 8 6 6
𝑅2: (𝑅2 − 𝑅1)
1 2 1 3 2
0 1 5 −3 0
3 7 8 6 6
𝑅3: (𝑅3 − 3𝑅1)
1 2 1 3 2
0 1 5 −3 0
0 1 5 −3 0
𝑅3: (𝑅3 − 𝑅2)
1 2 1 3 2
0 1 5 −3 0
0 0 0 0 0
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 21
ROW-REDUCED ECHELON FORM
1 2 1 3 2
0 1 5 −3 0
0 0 0 0 0
𝑅1: (𝑅1 − 2𝑅2)
1 0 −9 9 2
0 1 5 −3 0
0 0 0 0 0
‣ In this question, the first column is a non-zero column, hence, it is our
first pivot column. Since the first entry was already a 1, nothing can be
done here than making everything in this column equal 0.
‣ In column 2 we already get another pivot in column 2. The process
continues until when all the pivot columns have 1 (pivot) and zeros
everywhere. In addition, all entries in a row on the left of a 1 (pivot) are
zeros.
A. Determine if the given matrices are in reduced echelon form or not.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 22
ROW-REDUCED ECHELON FORM
1.
1 0 0 4
0 1 0 7
0 0 1 −1
2.
0 0 0
0 0 1
0 1 0
1 0 0
3.
1 3 −3 3
0 0 0 0
4.
1 0 2
0 1 −1
0 0
1
2
NOTE: Remember to describe the
properties in your critics.
Understand the reasons why a given
matrix is in row-reduced echelon
form or not.
B. Find the echelon and reduced echelon forms of the following matrices
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 23
ROW-REDUCED ECHELON FORM
1.
1 2 3 4
4 5 6 7
6 7 8 9
2.
−2 −3 −2
3 −2 −2
3 −2 −1
−1 −1 −2
3.
1 3 −3 −3
0 0 −2 2
4.
1 2 0
1 3 3
−1 0 −1
−3 0 0
5.
0 0 −2 0 7 12
2 4 −10 6 12 28
2 4 −5 6 −5 −1
MAT222 - INTRODUCTION TO LINEAR ALGEBRA WITH APPLICATIONS | ROW-REDUCED ECHELON FORM AND VECTOR SPACES.pdf
‣ A system of linear equations consists of a series of linear equations which
is converted and solved using matrix mathematics.
‣ The general form of these equations is Aത
x = ത
b where A is the matrix of
coefficients in the given equations, ത
x is the column vector of all the
variables available in the equations and ത
b is the column vector of the
solution associated with given equations.
‣ We have two types of equations based on the nature of the solutions in
the equations as well as the nature of the values of the variables. These
include the non-homogenous equations and homogenous equations.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 25
LINEAR SYSTEM OF EQUATIONS
‣ As a matter of definition; A linear system of equations Aത
x = ത
b is called
homogeneous if ത
b = 0, and non-homogeneous if b ≠ 0.
‣ Notice that ത
x = 0 is always solution of the homogeneous equations. That
is, 𝑥1 = 0, 𝑥2 = 0, … 𝑥𝑛 = 0. This solution is called the trivial solution.
‣ If there are other solutions, they are called nontrivial solutions. Because a
homogeneous linear system always has the trivial solution, there are only
two possibilities for its solutions:
• The system has only the trivial solution.
• The system has infinitely many solutions in addition to the trivial
solution
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 26
LINEAR SYSTEM OF EQUATIONS
‣ In nontrivial cases, we tend to find a non-zero vector that satisfies the
equation Aത
x = 0. The homogeneous equation Aത
x = 0 has a nontrivial
solution if and only if the equation has at least one free variable.
‣ For non-homogenous equations Aത
x = ത
b, we have various forms and their
own solutions. The other methods for solving the equations Aത
x = ത
b like
the inverse method and Cramer's rule are mostly applicable if and only if
the coefficient matrix A is a non-singular square matrix (det A ≠ 0).
‣ If the coefficient matrix is not a square matrix there is a slight difference
in the nature of the solutions.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 27
LINEAR SYSTEM OF EQUATIONS
‣ Consider the general for a system of linear equations and their respective
augmented matrix when using row-reduced echelon form.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 28
LINEAR SYSTEM OF EQUATIONS
Given the following set of linear equations
𝑎11𝑥1 + 𝑎12𝑥2 + ⋯ + 𝑎1𝑛𝑥𝑛 = 𝑏1
⋮
𝑎𝑚1𝑥1 + 𝑎𝑚2𝑥2 + ⋯ + 𝑎𝑚𝑛𝑥𝑛 = 𝑏𝑚
𝑎11 ⋯ 𝑎1𝑛
⋮ ⋱ ⋮
𝑎𝑚1 ⋯ 𝑎𝑚𝑛
𝑏1
⋮
𝑏𝑚
Definition: Augmented matrix of a system of linear equations
Example 4: Solve the linear equations: 𝑥1 + 4𝑥2 + 3𝑥3 = 11
2𝑥1 + 10𝑥2 + 7𝑥3 = 27
𝑥1 + 𝑥2 + 2𝑥3 = 5
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 29
LINEAR SYSTEM OF EQUATIONS
‣ The augmented matrix is
1 4 3
2 10 7
1 1 2
11
27
5
‣ To carry the augmented matrix to reduced echelon form, we will use the
method discussed earlier (slide 19). Notice that the first column is non-zero,
so this is our first pivot column. The first entry in the first row, 1, is the first
pivot entry and we will proceed with the rest.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 30
LINEAR SYSTEM OF EQUATIONS
1 4 3
2 10 7
1 1 2
11
27
5
1 4 3
0 2 1
1 1 2
11
5
5
1 4 3
0 2 1
0 −3 −1
11
5
−6
‣ Changing the last row to zeros except the last entry which changes to 1.
1 4 3
0 2 1
0 −3 −1
11
5
−6
1 4 3
0 2 1
0 −6 −2
11
5
−12
1 4 3
0 2 1
0 0 1
11
5
3
‣ Changing the remaining pivot columns to zeros in row 2.
1 4 3
0 2 1
0 0 1
11
5
3
1 4 3
0 2 0
0 0 1
11
2
3
1 4 3
0 1 0
0 0 1
11
1
3
← 𝑅2 − 2𝑅1
← 𝑅3 − 𝑅1
← 2𝑅3
← 𝑅3 + 3𝑅2
← 𝑅2 − 𝑅3 ←
1
2
𝑅2
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 31
LINEAR SYSTEM OF EQUATIONS
‣ Let’s finish with row 1, make 0’s on all pivot columns
1 4 3
0 1 0
0 0 1
11
1
3
1 4 0
0 1 0
0 0 1
2
1
3
1 0 0
0 1 0
0 0 1
−2
1
3
‣ Since all the rows have been entirely reduced, each pivot holds a value
of one variable.
‣ Hence, ത
x =
𝑥1
𝑥2
𝑥3
=
−2
1
3
; in other words 𝑥1 = −2, 𝑥2 = 1 and 𝑥3 = 3.
← 𝑅1 − 3𝑅3
← 𝑅1 − 4𝑅2
Example 5: Solve the following equations: 3𝑥1 − 𝑥2 + 5𝑥3 = 8
𝑥2 − 10𝑥3 = 1
6𝑥1 − 𝑥2 = 17
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 32
LINEAR SYSTEM OF EQUATIONS
3 −1 5
0 1 −10
6 −1 0
8
1
17
3 −1 5
0 1 −10
0 1 −10
8
1
1
3 −1 5
0 1 −10
0 0 0
8
1
0
‣ This is the echelon form not the reduced echelon form. Converting this to
reduced echelon form will consists of multiplying row 1 by
1
3
hence, we will
have fractions. In this form, we can deduce equations that satisfy the given
equation solutions.
← 𝑅3 − 2𝑅1 ← 𝑅3 − 𝑅2
‣ In the echelon form,
𝑥1 𝑥2 𝑥3
3 −1 5
0 1 −10
0 0 0
𝑏
8
1
0
‣ Variables that are represented by pivot columns are called pivot
variables and the variables that aren’t represented by pivot columns are
called free variables.
‣ In this case, 𝑥1 and 𝑥2 are pivot variables and 𝑥3 is a free variable.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 33
LINEAR SYSTEM OF EQUATIONS
Pivots
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 34
LINEAR SYSTEM OF EQUATIONS
‣ Thus, our solution to the equations include
3𝑥1 − 𝑥2 + 5𝑥3 = 8
𝑥2 − 10𝑥3 = 1
‣ We may notice that 𝑥3 is not constrained by any other equation, that is, we
can let 𝑥3 to be equal to any number. If we let 𝑥3 to be equal to 𝑡, 𝑡 will be
known as a parameter. Thus, 𝑥2 − 10𝑡 = 1; 𝑥2 = 1 + 10𝑡 and 3𝑥1 −
1 + 10𝑡 + 5𝑡 = 8; 𝑥1 = 9 +
5
3
𝑡 (infinite number of solutions)
‣ Therefore, 𝑥1 = 9 +
5
3
𝑡, 𝑥2 = 1 + 10𝑡, 𝑧 = 𝑡. If we let the value of 𝑡 to be 4,
we get the following values: 𝑥1 =
29
3
, 𝑥2 = 41 and 𝑥3 = 4.
‣ Consider the following equations;
𝑥 + 2𝑦 − 2𝑧 + 2𝑤 = 7
𝑥 + 2𝑦 − 𝑧 + 3𝑤 = 5
𝑥 + 2𝑦 − 3𝑧 + 𝑤 = 1
‣ The augmented matrix and its reduced echelon form are
1 2 −2 2
1 2 −1 3
1 2 −3 1
3
5
1
RREF
1 2 0 2
0 0 1 1
0 0 0 0
7
2
0
‣ Thus, ത
x =
𝑥
𝑦
𝑧
𝑤
=
7 − 2𝑦 − 2𝑤
𝑦
2 − 𝑤
𝑤
=
7 − 2𝑡 − 2𝑠
𝑡
2 − 𝑠
𝑠
for 𝑦 = 𝑡, 𝑤 = 𝑠 and ∀{𝑦, 𝑡} ∈ ℝ.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 35
LINEAR SYSTEM OF EQUATIONS
‣ The following are the properties of a linear system of equations.
1. No solution: If the echelon form has a row of the form
0 0 0 b , where b ≠ 0, then the system is inconsistent and has
no solution.
2. One solution: If every column of the coefficient matrix of the
echelon form is a pivot column, the system has exactly one solution.
3. Infinitely many solutions: For a consistent system of equations: If
not all columns of the coefficient matrix of the echelon form are
pivot columns, then the system has infinitely many solutions.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 36
LINEAR SYSTEM OF EQUATIONS
Example 6: For homogenous, solve the following system of equations.
2𝑥1 + 𝑥2 + 𝑥3 + 4𝑥4 = 0
𝑥1 + 2𝑥2 − 𝑥3 + 5𝑥4 = 0
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 37
LINEAR SYSTEM OF EQUATIONS
2 1 1 4
1 2 −1 5
0
0
RREF
1 0 1 1
0 1 −1 2
0
0
‣ According to the reduced echelon form,
𝑥1 = −𝑥3 − 𝑥4 and 𝑥2 = 𝑥3 − 2𝑥4
That is,
𝑥1
𝑥2
𝑥3
𝑥4
=
−𝑥3 − 𝑥4
𝑥3 − 2𝑥4
𝑥3
𝑥4
= 𝑥3
−1
1
1
0
+ 𝑥4
−1
−2
0
1
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 38
LINEAR SYSTEM OF EQUATIONS
‣ Notice that we have constructed a column from the coefficients of 𝑥3 in each
equation, and another column from the coefficients of 𝑥4.
‣ Consider what happens when we let the parameters to be 𝑥3 = 1 and 𝑥4 = 0;
𝑥1
𝑥2
𝑥3
𝑥4
= 1
−1
1
1
0
+ 0
−1
−2
0
1
=
−1
1
1
0
‣ And if we let 𝑥3 = 0 and 𝑥4 = 1;
𝑥1
𝑥2
𝑥3
𝑥4
= 0
−1
1
1
0
+ 1
−1
−2
0
1
=
−1
−2
0
1
These two vector
are called basic
solutions. We say
that the general
solution of the
homogeneous
system is a linear
combination of its
basic solutions
Question: Solve the following systems of linear equations.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 39
LINEAR SYSTEM OF EQUATIONS
1. 2𝑥1 + 3𝑥2 + 4𝑥3 = 0
𝑥1 − 3𝑥2 + 𝑥3 = 0
4𝑥1 − 𝑥2 + 6𝑥3 = 0
2. 𝑥 + y − z + 2w = 0
𝑥 + 3𝑦 + 𝑧 + 6𝑤 = 0
𝑥 + 2𝑦 + 4𝑤 = 0
3. −𝑥2 + 𝑥3 = 3
𝑥1 − 𝑥2 − 𝑥3 = 0
−𝑥1 − 𝑥2 = −3
4. 𝑥2 − 4𝑥2 = 8
2𝑥1 − 3𝑥2 + 2𝑥3 = 1
4𝑥1 − 8𝑥2 + 12𝑥3 = 1
MAT222 - INTRODUCTION TO LINEAR ALGEBRA WITH APPLICATIONS | ROW-REDUCED ECHELON FORM AND VECTOR SPACES.pdf
‣ In this section we will study some important vector spaces that are associated
with matrices. Our work here will provide us with a deeper understanding of
the relationships between the solutions of a linear system and properties of its
coefficient matrix.
▪ Row space: This refers to the space spanned by the row vectors of a matrix.
In other words, it's the set of all possible linear combinations of the rows of
a matrix.
▪ Column space: It's the space spanned by the column vectors of a matrix.
Like the row space, it's the set of all possible linear combinations of the
columns.
▪ Null space: This is the set of all vectors that satisfy the homogenous
equations. In essence, it represents the solutions to the equation Aത
x = 0,
where A is the matrix and ത
x is a vector of appropriate dimension.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 41
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ For an 𝑚 × 𝑛 matrix
A =
𝑎11 𝑎12 ⋯ 𝑎1𝑛
𝑎21 𝑎22 ⋯ 𝑎2𝑛
⋮ ⋮ ⋮
𝑎𝑚1 𝑎𝑚2 ⋯ 𝑎𝑚𝑛
‣ The vectors 𝑟1 = 𝑎11 𝑎12 ··· 𝑎1𝑛 , 𝑟2 = 𝑎21 𝑎22 ··· 𝑎2𝑛 and so on
up to 𝑟𝑚 = [𝑎𝑚1 𝑎𝑚2 ··· 𝑎𝑚𝑛] in 𝑅𝑛
that are formed from the rows of
A are called the row vectors of A.
‣ This implies that the vectors 𝑅𝑚 formed from the columns of A are called
the column vectors of A.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 42
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ From the given matrix A, below are the column vectors.
𝑐1 =
𝑎11
𝑎21
⋮
𝑎𝑚1
, 𝑐2 =
𝑎12
𝑎22
⋮
𝑎𝑚2
and so on up to 𝑐3 =
𝑎1𝑛
𝑎2𝑛
⋮
𝑎𝑚𝑛
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 43
ROW SPACE, COLUMN SPACE AND NULL SPACE
Let A be an 𝑚 × 𝑛 matrix. The column space of A, written col(A), is the
span of the columns. The row space of A, written row(A), is the span of
the rows. The null space of A, written null(A), is the set
null(A) = {ത
x | Aത
x = 0}.
Definition: Column space, row space, null space
‣ Now, we may note that the product Aത
x, in the equation Aത
x = 0, can be
written as a linear combination of the row and column matrix consisting
of coefficients from ത
x. That is
Aത
x = 𝑥1𝑐1 + 𝑥2𝑐2 +··· + 𝑥𝑛𝑐𝑛
‣ Thus, a linear system, Aത
x = ത
b, of m equations in n unknowns can be
written as 𝑥1𝒄𝟏 + 𝑥2𝒄𝟐 +··· + 𝑥𝑛𝒄𝒏 = ത
b from which we conclude that
Aത
x = ത
b is consistent if and only if ത
b is expressible as a linear
combination of the column vectors of A.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 44
ROW SPACE, COLUMN SPACE AND NULL SPACE
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 45
ROW SPACE, COLUMN SPACE AND NULL SPACE
Let Aത
x = ത
b be the linear system
−1 3 2
1 2 −3
2 1 −2
𝑥1
𝑥2
𝑥3
=
1
−9
−3
Show that ത
b is in the column space of A by expressing ത
b as a linear
combination of column vectors of A.
Example 7: A Vector ത
b in the Column Space of A
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 46
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ Solving this system using Gaussian Elimination method gives 𝑥1 = 2,
𝑥2 = −1 and 𝑥3 = 3 (please verify this)
‣ Since 𝑐1 =
−1
1
2
, 𝑐2 =
3
2
1
, 𝑐3 =
2
−3
−2
and 𝑥1𝒄𝟏 + 𝑥2𝒄𝟐 + 𝑥3𝒄𝟑 = ത
b,
Thus,
𝑥1
−1
1
2
+ 𝑥2
3
2
1
+ 𝑥3
2
−3
−2
= 2
−1
1
2
−
3
2
1
+ 3
2
−3
−2
=
1
−9
−3
‣ We know that performing elementary row operations on the augmented matrix
[A |ത
b] does not change the solution set of that system. This is also true if the
system is homogeneous, where the augmented matrix is [A | 0].
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 47
ROW SPACE, COLUMN SPACE AND NULL SPACE
Find the basis for null space of the matrix
1 3 −2 0 2 0
2 6 −5 −2 4 −3
0 0 5 10 0 15
2 6 0 8 4 18
0
0
0
0
Example 8: Finding a Basis for the Null Space of a Matrix
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 48
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ After the row operations, we get the following matrix in RREF.
1 3 0 4 2 0
0 0 1 −2 0 0
0 0 0 0 0 1
0 0 0 0 0 0
0
0
0
0
‣ This results into the following equations;
𝑥1 = −3𝑥2 − 4𝑥4 − 2𝑥5
𝑥3 = −2𝑥4
𝑥6 = 0
‣ This means that 𝑥1, 𝑥3 and 𝑥6 are pivot variables while 𝑥2, 𝑥4 and 𝑥5 are free
variables.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 49
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ Therefore,
𝑥1
𝑥2
𝑥3
𝑥4
𝑥5
𝑥6
=
−3𝑥2 − 4𝑥4 − 2𝑥5
𝑥2 is free
−2𝑥4
𝑥4 is free
𝑥5 is free
0
and if we factorise;
𝑥1
𝑥2
𝑥3
𝑥4
𝑥5
𝑥6
= 𝑥2
−3
1
0
0
0
0
+ 𝑥4
−4
0
−2
0
0
0
+ 𝑥5
−2
0
0
0
1
0
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 50
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ Therefore;
𝑢 =
−3
1
0
0
0
0
, 𝑣 =
−4
0
−2
0
0
0
and 𝑤 =
−2
0
0
0
1
0
‣ Observe that the basis vectors 𝑢,𝑣, and 𝑤 in this example are the
vectors that result by successively setting one of the parameters (free
variables) in the general solution equal to 1 and the others equal to 0.
Basis
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 51
ROW SPACE, COLUMN SPACE AND NULL SPACE
Find a spanning set for the null space of the matrix
−3 6 −1 1 −7
1 −2 2 3 −1
2 −4 5 8 −4
Example 9: Finding the Null Space of a Matrix
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 52
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ The first step is to find the general solution of Aത
x = 0 in terms of free
variables. The reduced echelon form of the augmented matrix is
1 −2 0 −1 3
0 0 1 2 −2
0 0 0 0 0
0
0
0
‣ At this point we need to write the pivot variables in terms of the free
variables.
𝑥1 = 2𝑥2 + 𝑥4 − 3𝑥5
𝑥3 = −2𝑥4 + 2𝑥5
‣ 𝑥1 and 𝑥3 are the only pivot variables. The rest are free.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 53
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ We now decompose the vector giving the general solution into a linear
combination of vectors.
𝑥1
𝑥2
𝑥3
𝑥4
𝑥5
=
2𝑥2 + 𝑥4 − 3𝑥5
𝑥2 is free
−2𝑥4 + 2𝑥5
𝑥4 is free
𝑥5 is free
= 𝑥2
2
1
0
0
0
+ 𝑥4
1
0
−2
1
0
+ 𝑥5
−3
0
2
0
1
‣ Thus, Null(A) = 𝑢, 𝑣, 𝑤 =
2
1
0
0
0
,
1
0
−2
1
0
,
−3
0
2
0
1
𝑢 𝑣 𝑤
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 54
ROW SPACE, COLUMN SPACE AND NULL SPACE
Find a basis for the column space, row space of the matrix
1 2 1 3 2
1 3 6 0 2
3 7 8 6 6
Example 10: Basis of column space and row space
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 55
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ The column space is the span of the columns of the matrix A, i.e.;
Col(A)=Span
1
1
3
,
2
3
7
,
1
6
8
,
3
0
6
,
2
2
6
‣ The row-reduced echelon for of A is
1 0 −9 9 2
0 1 5 −3 0
0 0 0 0 0
and the pivot
column in the RREF of A represent the basis pf Col(A)
Basis of Col(A) =
1
1
3
,
2
3
7
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 56
ROW SPACE, COLUMN SPACE AND NULL SPACE
‣ Row space of A is the span of the rows, i.e.;
Row(A) = span 1 2 1 3 2 , 1 3 6 0 2 , 3 7 8 6 6
‣ Non-zero rows of the row-reduced echelon form of the given matrix
gives the basis for the row space of A.
‣ Therefore;
Basis of Row(A) = 1 0 −9 9 2 , 0 1 5 −3 0
Question: Find null(A) for the following matrices.
Tuesday, 07 May 2024
Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 57
ROW SPACE, COLUMN SPACE AND NULL SPACE
1. A =
2 3
4 6
2. A =
1 0 −1
−1 1 3
3 2 1
3. A =
2 −1 3 5
2 0 1 2
6 4 −5 −6
0 2 −4 −6
4. A = 1 3 5 0
0 1 4 2
5. A =
1 5 −4 −3 1
0 1 −2 1 0
0 0 0 0 0
Josophat Makawa
bsc-mat-14-21@unima.ac.mw
+265 999 978 828
+265 880 563 256

More Related Content

PDF
MAT221: CALCULUS II - Hyperbolic Functions.pdf
PDF
MAT221: CALCULUS II - REDUCTION FORMULA, POWERS OF TRIG FUNCTIONS AND TRIGONO...
PDF
Bhrighu Nandi Nadi Chart 1 by R G Rao.pdf
PDF
Jaimini astrology argala in predictive astrology
PDF
Prml 10 1
PDF
楕円曲線と暗号
PDF
PRML輪読#8
PDF
PRML11.2 - 11.6
MAT221: CALCULUS II - Hyperbolic Functions.pdf
MAT221: CALCULUS II - REDUCTION FORMULA, POWERS OF TRIG FUNCTIONS AND TRIGONO...
Bhrighu Nandi Nadi Chart 1 by R G Rao.pdf
Jaimini astrology argala in predictive astrology
Prml 10 1
楕円曲線と暗号
PRML輪読#8
PRML11.2 - 11.6

What's hot (20)

PDF
PRML勉強会第3回 2章前半 2013/11/28
PDF
2022 May - Shoulders of Giants - Amsterdam - Kotlin Dev Day.pdf
PDF
PRML復々習レーン#2 2.3.6 - 2.3.7
PDF
Rational expression
PDF
PRML 2.3節 - ガウス分布
PDF
PRML 2.4
PDF
L. D. Landau - Mecánica cuántica (Teoría No-Relativista). 3-Reverté (2005).pdf
PDF
平方剰余
PPTX
Newton Cotes Integration Method, Open Newton Cotes, Closed Newton Cotes Gauss...
PDF
目grepのはなし
PDF
[PRML] パターン認識と機械学習(第2章:確率分布)
PDF
Lifted-ElGamal暗号を用いた任意関数演算の二者間秘密計算プロトコルのmaliciousモデルにおける効率化
PDF
PRML 2.3節
PDF
PRML2.1 2.2
PDF
PRML上巻勉強会 at 東京大学 資料 第4章4.3.1 〜 4.5.2
PDF
Tutorial 4 mth 3201
PDF
五次方程式はやっぱり解ける #日曜数学会
PPTX
Multiplying binomials
 
PDF
AtCoder Regular Contest 030 解説
PDF
AtCoder Beginner Contest 006 解説
PRML勉強会第3回 2章前半 2013/11/28
2022 May - Shoulders of Giants - Amsterdam - Kotlin Dev Day.pdf
PRML復々習レーン#2 2.3.6 - 2.3.7
Rational expression
PRML 2.3節 - ガウス分布
PRML 2.4
L. D. Landau - Mecánica cuántica (Teoría No-Relativista). 3-Reverté (2005).pdf
平方剰余
Newton Cotes Integration Method, Open Newton Cotes, Closed Newton Cotes Gauss...
目grepのはなし
[PRML] パターン認識と機械学習(第2章:確率分布)
Lifted-ElGamal暗号を用いた任意関数演算の二者間秘密計算プロトコルのmaliciousモデルにおける効率化
PRML 2.3節
PRML2.1 2.2
PRML上巻勉強会 at 東京大学 資料 第4章4.3.1 〜 4.5.2
Tutorial 4 mth 3201
五次方程式はやっぱり解ける #日曜数学会
Multiplying binomials
 
AtCoder Regular Contest 030 解説
AtCoder Beginner Contest 006 解説
Ad

Similar to MAT222 - INTRODUCTION TO LINEAR ALGEBRA WITH APPLICATIONS | ROW-REDUCED ECHELON FORM AND VECTOR SPACES.pdf (20)

PDF
MAT221: CALCULUS II - Indeterminate Forms.pdf
PPTX
lay_linalg5_01_02.pptx
PPT
Linear equations in linear algebra in maths
PDF
Echelon or not
PPTX
Linear Algebra - Row Echelon Form and Reduced Row Echelon Form
PPTX
Algebra 2 00-Linear Functions (RW 2022).pptx
PPTX
Lecture 2.2b 2.3 bt
PPTX
Linear Algebra - Row Echelon and Reduced Row Echelon Form.pptx
PDF
Slide_Chapter1_st.pdf
PPTX
Math 8 linear inequalities
PPTX
LINEAR EQUATION.pptx
PPTX
Simplex Algorithm
PDF
Chapter_2_Representing Position and Orientation.pdf
PPT
Assignment Problem
PDF
qadm-ppt-150918102124-lva1-app6892.pdf
PPTX
Differentiation 1 - Rules For CSEC AddMath.pptx
PDF
Assignment problems
PDF
Regression analysis
PPTX
Simplex algorithm
PPTX
Stats chapter 4
MAT221: CALCULUS II - Indeterminate Forms.pdf
lay_linalg5_01_02.pptx
Linear equations in linear algebra in maths
Echelon or not
Linear Algebra - Row Echelon Form and Reduced Row Echelon Form
Algebra 2 00-Linear Functions (RW 2022).pptx
Lecture 2.2b 2.3 bt
Linear Algebra - Row Echelon and Reduced Row Echelon Form.pptx
Slide_Chapter1_st.pdf
Math 8 linear inequalities
LINEAR EQUATION.pptx
Simplex Algorithm
Chapter_2_Representing Position and Orientation.pdf
Assignment Problem
qadm-ppt-150918102124-lva1-app6892.pdf
Differentiation 1 - Rules For CSEC AddMath.pptx
Assignment problems
Regression analysis
Simplex algorithm
Stats chapter 4
Ad

Recently uploaded (20)

PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
RMMM.pdf make it easy to upload and study
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Lesson notes of climatology university.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Updated Idioms and Phrasal Verbs in English subject
RMMM.pdf make it easy to upload and study
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
LDMMIA Reiki Yoga Finals Review Spring Summer
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Yogi Goddess Pres Conference Studio Updates
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Weekly quiz Compilation Jan -July 25.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial diseases, their pathogenesis and prophylaxis
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
01-Introduction-to-Information-Management.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Lesson notes of climatology university.
Final Presentation General Medicine 03-08-2024.pptx

MAT222 - INTRODUCTION TO LINEAR ALGEBRA WITH APPLICATIONS | ROW-REDUCED ECHELON FORM AND VECTOR SPACES.pdf

  • 2. ‣ A lot of matrix mathematics are handled better when using the row- reduced echelon form. Some of these, include finding the inverses of matrices, solving a series of equations, finding column and null spaces and many more. ‣ The row-reduced echelon form was derived from method of finding the inverse matrix using the gaussian-elimination method. Hence, the row- reduced echelon form is also known as the Gauss-Elimination method. ‣ In this session, we will not bother to look at finding inverses or solving equations using the row-reduced echelon form in detail, we will rather look at the methodology, and then proceed to column and null spaces. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 2 INTRODUCTION
  • 3. ‣ There are two things occurring here, the echelon form and the reduced echelon form. ‣ In Row echelon form, the matrix has to satisfy the following properties. 1. All non-zero rows are above any rows of all zeros. 2. Each leading entry (i.e. left most nonzero 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 zero. ‣ In general, we will define some of the general forms of matrices in row echelon form. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 3 ROW-REDUCED ECHELON FORM
  • 4. ‣ Below are the general forms of the row echelon form. a) ∎ ∗ ∗ ∗ ∗ 0 ∎ ∗ ∗ ∗ 0 0 0 0 0 0 0 0 0 0 c.) 0 ∎ ∗ ∗ ∗ ∗ ∗ 0 0 0 ∎ ∗ ∗ ∗ 0 0 0 0 ∎ ∗ ∗ 0 0 0 0 0 0 ∎ 0 0 0 0 0 0 0 b) ∎ ∗ ∗ 0 ∎ ∗ 0 0 ∎ 0 0 0 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 4 ROW-REDUCED ECHELON FORM NOTE: Make sure that we are only having zeros below every leading non-zero entry in a column. And to the left of a leading non-zero entry in a given row, we also have zeros. ∎ Non-Zero entry ∗ Zero or non- zero entry
  • 5. ‣ In row-reduced echelon form, we make more changes to the leading entries and their respective columns. ‣ So, to the first 3 properties of row echelon form, add the following properties. 4. The leading entry in each nonzero row is 1. 5. Each leading 1 is the only nonzero entry in its column. ‣ In general, 1 ∗ 0 0 ∗ ∗ 0 0 ∗ 0 0 1 0 ∗ ∗ 0 0 ∗ 0 0 0 1 ∗ ∗ 0 0 ∗ 0 0 0 0 0 0 1 0 ∗ 0 0 0 0 0 0 0 1 ∗ is in row-reduced echelon form. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 5 ROW-REDUCED ECHELON FORM
  • 6. ‣ In this session we will deal more with the row-reduced echelon form and we will often meet a number of terms. For example, pivot position, pivot and pivot column are the most common terms to be familiar with. ▪ pivot position: a position of a leading entry in an echelon form of the matrix. ▪ pivot: a nonzero number that either is used in a pivot position to create 0’s or is changed into a leading 1, which in turn is used to create 0’s in row-reduced echelon form. ▪ pivot column: a column that contains a pivot position. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 6 ROW-REDUCED ECHELON FORM
  • 7. ‣ Let’s try to identify if matrices are in row-reduced echelon form or not. 1. 0 0 0 0 0 1 0 0 0 0 1 −2 2. 1 0 0 0 1 0 0 0 1 3. 1 2 0 0 4 0 0 1 0 9 0 0 0 1 −1 0 0 0 0 0 (this matrix is left for your practice) Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 7 ROW-REDUCED ECHELON FORM This matrix is not in row-reduced echelon form because a row with all 0’s is above row(s) with some non-zero entries. This matrix in row-reduced echelon form because each column is a pivot column and every leading pivot (leading entry) is a 1.
  • 8. FINDING REDUCED ECHELON FORMS OF MATRICES ‣ In the conversion of a matrix into row-reduced echelon form (RREF), we create an augmented matrix depending on the nature of a calculation we need to make. ‣ For example, if we want to find the inverse matrix, we augment the given square matrix (A𝑛) and its identity matrix (I𝑛) in the form A𝑛 I𝑛 . By converting A𝑛 into RREF, the matrix I𝑛 is converted into the inverse of A𝑛. In the same way, a system of equations Aത x = ത b, we augment the coefficient matrix A, and the solution vector ത b, in the form A ത b . In RREF we find the column vector ത x. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 8 ROW-REDUCED ECHELON FORM
  • 9. ‣ To convert a matrix into RREF, we use the following three rules simultaneously. 1. Interchanging the positions of any two rows. 2. Multiplying by a non-zero scalar 3. Adding or subtracting other rows or adding or subtracting the scalar multiples of other rows. ‣ We should always note that we can’t multiply by 0 and we also can’t add or subtract a scalar. We should also note that any rule we choose is applied on the entire row and not a specific point or pivot. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 9 ROW-REDUCED ECHELON FORM
  • 10. Example 1: Find the inverse matrix A given that A = 3 1 4 2 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 10 ROW-REDUCED ECHELON FORM ‣ This a 2 × 2 matrix, thus the augmented matrix will look as follows 3 1 4 2 1 0 0 1 = A I ‣ The idea here is to convert A into an identity matrix I, and I into A−1 3 1 4 2 1 0 0 1 ← 1 3 𝑅1 We want to make the first point be 1 (pivot). Since no other row in this column has 1, we can’t interchange. Hence, a scalar product to row 1
  • 11. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 11 ROW-REDUCED ECHELON FORM ‣ After multiplying 1 3 to the entire row, we get 1 1 3 4 2 1 3 0 0 1 1 1 3 0 2 3 1 3 0 − 4 3 1 1 1 3 0 1 1 3 0 −2 3 2 ← 𝑅2 − 4𝑅1 We must have all zeros below a pivot, 1. Thus, 4𝑅1 will work since we can’t subtract by a scalar. ← 3 2 𝑅2 We need to create a pivot for row 2 by converting 2 3 into 1. Scalar multiplication. ← 𝑅1 − 1 3 𝑅2 A pivot column must only contain a 1. We must convert 1 3 to a 0 but we shouldn’t disturb the pivot for row 1.
  • 12. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 12 ROW-REDUCED ECHELON FORM 1 0 0 1 − 1 3 − 1 2 −2 3 2 = I A−1 Therefore, 𝐴−1 = − 1 3 − 1 2 −2 3 2 ; your job is to test this using 𝐴 ∙ 𝐴−1 = 𝐼. ‣ As mentioned earlier, more of our attention will be on the process of finding the row-reduced echelon form of any given matrix. At this point we have found row- reduced echelon form of A. For square matrices, the RREF is their respective identity matrices.
  • 13. ‣ Some basic points that may help in critical situations when we don’t know where to start from may be; ▪ Change the first entry in row 1 to 1 by either interchanging the positions with any other row that has 1 in column 1 or multiplying by a scalar. Once this is a pivot (1), we must change everything in the column to zeros. ▪ Change the last row to zeros or the last entry to the pivot if possible. If not, start with the rows below the first row, defining pivots where possible. Make sure, you finish with the first row unless otherwise, being in a rush may affect the pivot point in column 1. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 13 ROW-REDUCED ECHELON FORM
  • 14. ‣ Visually, Given A𝑚×𝑛; 𝑎1,1 ⋯ 𝑎1,𝑛 ⋮ ⋱ ⋮ 𝑎𝑚,1 ⋯ 𝑎𝑚,𝑛 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 14 ROW-REDUCED ECHELON FORM Start with changing 𝑎1,1 to 1 by any rule. Then change everything in column 1 to 0’s. Change the columns that have a pivot to zeros one by one where possible. 1 3 Change the last row into all zeros and stop if and only if you have a pivot at any point in that row. Change to zeros any entry in any column that contains a pivot. Note that this is simply a proposed idea, it still needs proper analysis of any given matrix. 4 2
  • 15. Example 2: Write the matrix 𝐴 = 0 3 −6 6 4 −5 3 −7 8 −5 8 9 3 −9 12 −9 6 15 in RREF. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 15 ROW-REDUCED ECHELON FORM 0 3 −6 6 4 −5 3 −7 8 −5 8 9 3 −9 12 −9 6 15 3 −9 12 −9 6 15 3 −7 8 −5 8 9 0 3 −6 6 4 −5 ← 𝑅1 ↔ 𝑅3 We have 0 on a pivot point. We will interchange with row 3 (row 2 will give fractions) ← 1 3 𝑅1 Convert the pivot point to 1. If we had interchanged with row 2, this operation could have brought fractions. Always pay attention.
  • 16. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 16 ROW-REDUCED ECHELON FORM 1 −3 4 −3 2 5 3 −7 8 −5 8 9 0 3 −6 6 4 −5 1 −3 4 −3 2 5 0 2 −4 4 2 −6 0 3 −6 6 4 −5 1 −3 4 −3 2 5 0 1 −2 2 1 −3 0 3 −6 6 4 −5 ← 𝑅2 − 3𝑅1 Making zeros for all terms below a pivot in a pivot column. ← 1 2 𝑅2 Creating a pivot in second column. Our consideration is on converting 2 to 1. ← 𝑅3 − 3𝑅2 Making zeros for all terms below a pivot in a pivot column. Start with terms below and lastly finish with entries in row 1.
  • 17. 1 −3 4 −3 2 5 0 1 −2 2 1 −3 0 0 0 0 1 4 1 −3 4 −3 2 5 0 1 −2 2 0 −7 0 0 0 0 1 4 1 −3 4 −3 0 −8 0 1 −2 2 0 −7 0 0 0 0 1 4 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 17 ROW-REDUCED ECHELON FORM ← 𝑅2 − 𝑅3 We have a new pivot in row 3. we need to change everything in this column to 0’s above 1. ← 𝑅1 − 2𝑅3 We have now changed all terms in pivot columns in lower rows. Let’s do for row 1 ← 𝑅1 + 3𝑅3 Make sure that all pivot columns have been treated such that all terms that are not pivots are 0’s.
  • 18. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 18 ROW-REDUCED ECHELON FORM ‣ Hence, we finally get to the final row reduced echelon form of the given matrix. And we have; 𝐴∗ = 1 0 −2 3 0 −24 0 1 −2 2 0 −7 0 0 0 0 1 4 ‣ We may also note that every row operation targets at least one entry changing it to either 1 or 0. However, each operation affects the entire row. Pivots
  • 19. ‣ This algorithm provides a method for using row operations to take a matrix to its echelon form. We begin with the matrix in its original form. 1. Starting from the left, find the first non-zero column. This is the first pivot column, and the position at the top of this column will be the position of the first pivot entry. Switch rows if necessary to place a non- zero number in the first pivot position. 2. Use row operations to make the entries below the first pivot entry (in the first pivot column) equal to zero. 3. Ignoring the row containing the first pivot entry, repeat steps 1 and 2 with the remaining rows. Repeat the process until there are no more non-zero rows left. Back to slide 29 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 19 ROW-REDUCED ECHELON FORM
  • 20. Example 3: Find the reduced echelon form of 𝐴 = 1 2 1 3 2 1 3 6 0 2 3 7 8 6 6 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 20 ROW-REDUCED ECHELON FORM 1 2 1 3 2 1 3 6 0 2 3 7 8 6 6 𝑅2: (𝑅2 − 𝑅1) 1 2 1 3 2 0 1 5 −3 0 3 7 8 6 6 𝑅3: (𝑅3 − 3𝑅1) 1 2 1 3 2 0 1 5 −3 0 0 1 5 −3 0 𝑅3: (𝑅3 − 𝑅2) 1 2 1 3 2 0 1 5 −3 0 0 0 0 0 0
  • 21. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 21 ROW-REDUCED ECHELON FORM 1 2 1 3 2 0 1 5 −3 0 0 0 0 0 0 𝑅1: (𝑅1 − 2𝑅2) 1 0 −9 9 2 0 1 5 −3 0 0 0 0 0 0 ‣ In this question, the first column is a non-zero column, hence, it is our first pivot column. Since the first entry was already a 1, nothing can be done here than making everything in this column equal 0. ‣ In column 2 we already get another pivot in column 2. The process continues until when all the pivot columns have 1 (pivot) and zeros everywhere. In addition, all entries in a row on the left of a 1 (pivot) are zeros.
  • 22. A. Determine if the given matrices are in reduced echelon form or not. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 22 ROW-REDUCED ECHELON FORM 1. 1 0 0 4 0 1 0 7 0 0 1 −1 2. 0 0 0 0 0 1 0 1 0 1 0 0 3. 1 3 −3 3 0 0 0 0 4. 1 0 2 0 1 −1 0 0 1 2 NOTE: Remember to describe the properties in your critics. Understand the reasons why a given matrix is in row-reduced echelon form or not.
  • 23. B. Find the echelon and reduced echelon forms of the following matrices Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 23 ROW-REDUCED ECHELON FORM 1. 1 2 3 4 4 5 6 7 6 7 8 9 2. −2 −3 −2 3 −2 −2 3 −2 −1 −1 −1 −2 3. 1 3 −3 −3 0 0 −2 2 4. 1 2 0 1 3 3 −1 0 −1 −3 0 0 5. 0 0 −2 0 7 12 2 4 −10 6 12 28 2 4 −5 6 −5 −1
  • 25. ‣ A system of linear equations consists of a series of linear equations which is converted and solved using matrix mathematics. ‣ The general form of these equations is Aത x = ത b where A is the matrix of coefficients in the given equations, ത x is the column vector of all the variables available in the equations and ത b is the column vector of the solution associated with given equations. ‣ We have two types of equations based on the nature of the solutions in the equations as well as the nature of the values of the variables. These include the non-homogenous equations and homogenous equations. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 25 LINEAR SYSTEM OF EQUATIONS
  • 26. ‣ As a matter of definition; A linear system of equations Aത x = ത b is called homogeneous if ത b = 0, and non-homogeneous if b ≠ 0. ‣ Notice that ത x = 0 is always solution of the homogeneous equations. That is, 𝑥1 = 0, 𝑥2 = 0, … 𝑥𝑛 = 0. This solution is called the trivial solution. ‣ If there are other solutions, they are called nontrivial solutions. Because a homogeneous linear system always has the trivial solution, there are only two possibilities for its solutions: • The system has only the trivial solution. • The system has infinitely many solutions in addition to the trivial solution Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 26 LINEAR SYSTEM OF EQUATIONS
  • 27. ‣ In nontrivial cases, we tend to find a non-zero vector that satisfies the equation Aത x = 0. The homogeneous equation Aത x = 0 has a nontrivial solution if and only if the equation has at least one free variable. ‣ For non-homogenous equations Aത x = ത b, we have various forms and their own solutions. The other methods for solving the equations Aത x = ത b like the inverse method and Cramer's rule are mostly applicable if and only if the coefficient matrix A is a non-singular square matrix (det A ≠ 0). ‣ If the coefficient matrix is not a square matrix there is a slight difference in the nature of the solutions. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 27 LINEAR SYSTEM OF EQUATIONS
  • 28. ‣ Consider the general for a system of linear equations and their respective augmented matrix when using row-reduced echelon form. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 28 LINEAR SYSTEM OF EQUATIONS Given the following set of linear equations 𝑎11𝑥1 + 𝑎12𝑥2 + ⋯ + 𝑎1𝑛𝑥𝑛 = 𝑏1 ⋮ 𝑎𝑚1𝑥1 + 𝑎𝑚2𝑥2 + ⋯ + 𝑎𝑚𝑛𝑥𝑛 = 𝑏𝑚 𝑎11 ⋯ 𝑎1𝑛 ⋮ ⋱ ⋮ 𝑎𝑚1 ⋯ 𝑎𝑚𝑛 𝑏1 ⋮ 𝑏𝑚 Definition: Augmented matrix of a system of linear equations
  • 29. Example 4: Solve the linear equations: 𝑥1 + 4𝑥2 + 3𝑥3 = 11 2𝑥1 + 10𝑥2 + 7𝑥3 = 27 𝑥1 + 𝑥2 + 2𝑥3 = 5 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 29 LINEAR SYSTEM OF EQUATIONS ‣ The augmented matrix is 1 4 3 2 10 7 1 1 2 11 27 5 ‣ To carry the augmented matrix to reduced echelon form, we will use the method discussed earlier (slide 19). Notice that the first column is non-zero, so this is our first pivot column. The first entry in the first row, 1, is the first pivot entry and we will proceed with the rest.
  • 30. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 30 LINEAR SYSTEM OF EQUATIONS 1 4 3 2 10 7 1 1 2 11 27 5 1 4 3 0 2 1 1 1 2 11 5 5 1 4 3 0 2 1 0 −3 −1 11 5 −6 ‣ Changing the last row to zeros except the last entry which changes to 1. 1 4 3 0 2 1 0 −3 −1 11 5 −6 1 4 3 0 2 1 0 −6 −2 11 5 −12 1 4 3 0 2 1 0 0 1 11 5 3 ‣ Changing the remaining pivot columns to zeros in row 2. 1 4 3 0 2 1 0 0 1 11 5 3 1 4 3 0 2 0 0 0 1 11 2 3 1 4 3 0 1 0 0 0 1 11 1 3 ← 𝑅2 − 2𝑅1 ← 𝑅3 − 𝑅1 ← 2𝑅3 ← 𝑅3 + 3𝑅2 ← 𝑅2 − 𝑅3 ← 1 2 𝑅2
  • 31. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 31 LINEAR SYSTEM OF EQUATIONS ‣ Let’s finish with row 1, make 0’s on all pivot columns 1 4 3 0 1 0 0 0 1 11 1 3 1 4 0 0 1 0 0 0 1 2 1 3 1 0 0 0 1 0 0 0 1 −2 1 3 ‣ Since all the rows have been entirely reduced, each pivot holds a value of one variable. ‣ Hence, ത x = 𝑥1 𝑥2 𝑥3 = −2 1 3 ; in other words 𝑥1 = −2, 𝑥2 = 1 and 𝑥3 = 3. ← 𝑅1 − 3𝑅3 ← 𝑅1 − 4𝑅2
  • 32. Example 5: Solve the following equations: 3𝑥1 − 𝑥2 + 5𝑥3 = 8 𝑥2 − 10𝑥3 = 1 6𝑥1 − 𝑥2 = 17 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 32 LINEAR SYSTEM OF EQUATIONS 3 −1 5 0 1 −10 6 −1 0 8 1 17 3 −1 5 0 1 −10 0 1 −10 8 1 1 3 −1 5 0 1 −10 0 0 0 8 1 0 ‣ This is the echelon form not the reduced echelon form. Converting this to reduced echelon form will consists of multiplying row 1 by 1 3 hence, we will have fractions. In this form, we can deduce equations that satisfy the given equation solutions. ← 𝑅3 − 2𝑅1 ← 𝑅3 − 𝑅2
  • 33. ‣ In the echelon form, 𝑥1 𝑥2 𝑥3 3 −1 5 0 1 −10 0 0 0 𝑏 8 1 0 ‣ Variables that are represented by pivot columns are called pivot variables and the variables that aren’t represented by pivot columns are called free variables. ‣ In this case, 𝑥1 and 𝑥2 are pivot variables and 𝑥3 is a free variable. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 33 LINEAR SYSTEM OF EQUATIONS Pivots
  • 34. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 34 LINEAR SYSTEM OF EQUATIONS ‣ Thus, our solution to the equations include 3𝑥1 − 𝑥2 + 5𝑥3 = 8 𝑥2 − 10𝑥3 = 1 ‣ We may notice that 𝑥3 is not constrained by any other equation, that is, we can let 𝑥3 to be equal to any number. If we let 𝑥3 to be equal to 𝑡, 𝑡 will be known as a parameter. Thus, 𝑥2 − 10𝑡 = 1; 𝑥2 = 1 + 10𝑡 and 3𝑥1 − 1 + 10𝑡 + 5𝑡 = 8; 𝑥1 = 9 + 5 3 𝑡 (infinite number of solutions) ‣ Therefore, 𝑥1 = 9 + 5 3 𝑡, 𝑥2 = 1 + 10𝑡, 𝑧 = 𝑡. If we let the value of 𝑡 to be 4, we get the following values: 𝑥1 = 29 3 , 𝑥2 = 41 and 𝑥3 = 4.
  • 35. ‣ Consider the following equations; 𝑥 + 2𝑦 − 2𝑧 + 2𝑤 = 7 𝑥 + 2𝑦 − 𝑧 + 3𝑤 = 5 𝑥 + 2𝑦 − 3𝑧 + 𝑤 = 1 ‣ The augmented matrix and its reduced echelon form are 1 2 −2 2 1 2 −1 3 1 2 −3 1 3 5 1 RREF 1 2 0 2 0 0 1 1 0 0 0 0 7 2 0 ‣ Thus, ത x = 𝑥 𝑦 𝑧 𝑤 = 7 − 2𝑦 − 2𝑤 𝑦 2 − 𝑤 𝑤 = 7 − 2𝑡 − 2𝑠 𝑡 2 − 𝑠 𝑠 for 𝑦 = 𝑡, 𝑤 = 𝑠 and ∀{𝑦, 𝑡} ∈ ℝ. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 35 LINEAR SYSTEM OF EQUATIONS
  • 36. ‣ The following are the properties of a linear system of equations. 1. No solution: If the echelon form has a row of the form 0 0 0 b , where b ≠ 0, then the system is inconsistent and has no solution. 2. One solution: If every column of the coefficient matrix of the echelon form is a pivot column, the system has exactly one solution. 3. Infinitely many solutions: For a consistent system of equations: If not all columns of the coefficient matrix of the echelon form are pivot columns, then the system has infinitely many solutions. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 36 LINEAR SYSTEM OF EQUATIONS
  • 37. Example 6: For homogenous, solve the following system of equations. 2𝑥1 + 𝑥2 + 𝑥3 + 4𝑥4 = 0 𝑥1 + 2𝑥2 − 𝑥3 + 5𝑥4 = 0 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 37 LINEAR SYSTEM OF EQUATIONS 2 1 1 4 1 2 −1 5 0 0 RREF 1 0 1 1 0 1 −1 2 0 0 ‣ According to the reduced echelon form, 𝑥1 = −𝑥3 − 𝑥4 and 𝑥2 = 𝑥3 − 2𝑥4 That is, 𝑥1 𝑥2 𝑥3 𝑥4 = −𝑥3 − 𝑥4 𝑥3 − 2𝑥4 𝑥3 𝑥4 = 𝑥3 −1 1 1 0 + 𝑥4 −1 −2 0 1
  • 38. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 38 LINEAR SYSTEM OF EQUATIONS ‣ Notice that we have constructed a column from the coefficients of 𝑥3 in each equation, and another column from the coefficients of 𝑥4. ‣ Consider what happens when we let the parameters to be 𝑥3 = 1 and 𝑥4 = 0; 𝑥1 𝑥2 𝑥3 𝑥4 = 1 −1 1 1 0 + 0 −1 −2 0 1 = −1 1 1 0 ‣ And if we let 𝑥3 = 0 and 𝑥4 = 1; 𝑥1 𝑥2 𝑥3 𝑥4 = 0 −1 1 1 0 + 1 −1 −2 0 1 = −1 −2 0 1 These two vector are called basic solutions. We say that the general solution of the homogeneous system is a linear combination of its basic solutions
  • 39. Question: Solve the following systems of linear equations. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 39 LINEAR SYSTEM OF EQUATIONS 1. 2𝑥1 + 3𝑥2 + 4𝑥3 = 0 𝑥1 − 3𝑥2 + 𝑥3 = 0 4𝑥1 − 𝑥2 + 6𝑥3 = 0 2. 𝑥 + y − z + 2w = 0 𝑥 + 3𝑦 + 𝑧 + 6𝑤 = 0 𝑥 + 2𝑦 + 4𝑤 = 0 3. −𝑥2 + 𝑥3 = 3 𝑥1 − 𝑥2 − 𝑥3 = 0 −𝑥1 − 𝑥2 = −3 4. 𝑥2 − 4𝑥2 = 8 2𝑥1 − 3𝑥2 + 2𝑥3 = 1 4𝑥1 − 8𝑥2 + 12𝑥3 = 1
  • 41. ‣ In this section we will study some important vector spaces that are associated with matrices. Our work here will provide us with a deeper understanding of the relationships between the solutions of a linear system and properties of its coefficient matrix. ▪ Row space: This refers to the space spanned by the row vectors of a matrix. In other words, it's the set of all possible linear combinations of the rows of a matrix. ▪ Column space: It's the space spanned by the column vectors of a matrix. Like the row space, it's the set of all possible linear combinations of the columns. ▪ Null space: This is the set of all vectors that satisfy the homogenous equations. In essence, it represents the solutions to the equation Aത x = 0, where A is the matrix and ത x is a vector of appropriate dimension. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 41 ROW SPACE, COLUMN SPACE AND NULL SPACE
  • 42. ‣ For an 𝑚 × 𝑛 matrix A = 𝑎11 𝑎12 ⋯ 𝑎1𝑛 𝑎21 𝑎22 ⋯ 𝑎2𝑛 ⋮ ⋮ ⋮ 𝑎𝑚1 𝑎𝑚2 ⋯ 𝑎𝑚𝑛 ‣ The vectors 𝑟1 = 𝑎11 𝑎12 ··· 𝑎1𝑛 , 𝑟2 = 𝑎21 𝑎22 ··· 𝑎2𝑛 and so on up to 𝑟𝑚 = [𝑎𝑚1 𝑎𝑚2 ··· 𝑎𝑚𝑛] in 𝑅𝑛 that are formed from the rows of A are called the row vectors of A. ‣ This implies that the vectors 𝑅𝑚 formed from the columns of A are called the column vectors of A. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 42 ROW SPACE, COLUMN SPACE AND NULL SPACE
  • 43. ‣ From the given matrix A, below are the column vectors. 𝑐1 = 𝑎11 𝑎21 ⋮ 𝑎𝑚1 , 𝑐2 = 𝑎12 𝑎22 ⋮ 𝑎𝑚2 and so on up to 𝑐3 = 𝑎1𝑛 𝑎2𝑛 ⋮ 𝑎𝑚𝑛 Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 43 ROW SPACE, COLUMN SPACE AND NULL SPACE Let A be an 𝑚 × 𝑛 matrix. The column space of A, written col(A), is the span of the columns. The row space of A, written row(A), is the span of the rows. The null space of A, written null(A), is the set null(A) = {ത x | Aത x = 0}. Definition: Column space, row space, null space
  • 44. ‣ Now, we may note that the product Aത x, in the equation Aത x = 0, can be written as a linear combination of the row and column matrix consisting of coefficients from ത x. That is Aത x = 𝑥1𝑐1 + 𝑥2𝑐2 +··· + 𝑥𝑛𝑐𝑛 ‣ Thus, a linear system, Aത x = ത b, of m equations in n unknowns can be written as 𝑥1𝒄𝟏 + 𝑥2𝒄𝟐 +··· + 𝑥𝑛𝒄𝒏 = ത b from which we conclude that Aത x = ത b is consistent if and only if ത b is expressible as a linear combination of the column vectors of A. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 44 ROW SPACE, COLUMN SPACE AND NULL SPACE
  • 45. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 45 ROW SPACE, COLUMN SPACE AND NULL SPACE Let Aത x = ത b be the linear system −1 3 2 1 2 −3 2 1 −2 𝑥1 𝑥2 𝑥3 = 1 −9 −3 Show that ത b is in the column space of A by expressing ത b as a linear combination of column vectors of A. Example 7: A Vector ത b in the Column Space of A
  • 46. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 46 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ Solving this system using Gaussian Elimination method gives 𝑥1 = 2, 𝑥2 = −1 and 𝑥3 = 3 (please verify this) ‣ Since 𝑐1 = −1 1 2 , 𝑐2 = 3 2 1 , 𝑐3 = 2 −3 −2 and 𝑥1𝒄𝟏 + 𝑥2𝒄𝟐 + 𝑥3𝒄𝟑 = ത b, Thus, 𝑥1 −1 1 2 + 𝑥2 3 2 1 + 𝑥3 2 −3 −2 = 2 −1 1 2 − 3 2 1 + 3 2 −3 −2 = 1 −9 −3
  • 47. ‣ We know that performing elementary row operations on the augmented matrix [A |ത b] does not change the solution set of that system. This is also true if the system is homogeneous, where the augmented matrix is [A | 0]. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 47 ROW SPACE, COLUMN SPACE AND NULL SPACE Find the basis for null space of the matrix 1 3 −2 0 2 0 2 6 −5 −2 4 −3 0 0 5 10 0 15 2 6 0 8 4 18 0 0 0 0 Example 8: Finding a Basis for the Null Space of a Matrix
  • 48. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 48 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ After the row operations, we get the following matrix in RREF. 1 3 0 4 2 0 0 0 1 −2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ‣ This results into the following equations; 𝑥1 = −3𝑥2 − 4𝑥4 − 2𝑥5 𝑥3 = −2𝑥4 𝑥6 = 0 ‣ This means that 𝑥1, 𝑥3 and 𝑥6 are pivot variables while 𝑥2, 𝑥4 and 𝑥5 are free variables.
  • 49. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 49 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ Therefore, 𝑥1 𝑥2 𝑥3 𝑥4 𝑥5 𝑥6 = −3𝑥2 − 4𝑥4 − 2𝑥5 𝑥2 is free −2𝑥4 𝑥4 is free 𝑥5 is free 0 and if we factorise; 𝑥1 𝑥2 𝑥3 𝑥4 𝑥5 𝑥6 = 𝑥2 −3 1 0 0 0 0 + 𝑥4 −4 0 −2 0 0 0 + 𝑥5 −2 0 0 0 1 0
  • 50. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 50 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ Therefore; 𝑢 = −3 1 0 0 0 0 , 𝑣 = −4 0 −2 0 0 0 and 𝑤 = −2 0 0 0 1 0 ‣ Observe that the basis vectors 𝑢,𝑣, and 𝑤 in this example are the vectors that result by successively setting one of the parameters (free variables) in the general solution equal to 1 and the others equal to 0. Basis
  • 51. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 51 ROW SPACE, COLUMN SPACE AND NULL SPACE Find a spanning set for the null space of the matrix −3 6 −1 1 −7 1 −2 2 3 −1 2 −4 5 8 −4 Example 9: Finding the Null Space of a Matrix
  • 52. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 52 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ The first step is to find the general solution of Aത x = 0 in terms of free variables. The reduced echelon form of the augmented matrix is 1 −2 0 −1 3 0 0 1 2 −2 0 0 0 0 0 0 0 0 ‣ At this point we need to write the pivot variables in terms of the free variables. 𝑥1 = 2𝑥2 + 𝑥4 − 3𝑥5 𝑥3 = −2𝑥4 + 2𝑥5 ‣ 𝑥1 and 𝑥3 are the only pivot variables. The rest are free.
  • 53. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 53 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ We now decompose the vector giving the general solution into a linear combination of vectors. 𝑥1 𝑥2 𝑥3 𝑥4 𝑥5 = 2𝑥2 + 𝑥4 − 3𝑥5 𝑥2 is free −2𝑥4 + 2𝑥5 𝑥4 is free 𝑥5 is free = 𝑥2 2 1 0 0 0 + 𝑥4 1 0 −2 1 0 + 𝑥5 −3 0 2 0 1 ‣ Thus, Null(A) = 𝑢, 𝑣, 𝑤 = 2 1 0 0 0 , 1 0 −2 1 0 , −3 0 2 0 1 𝑢 𝑣 𝑤
  • 54. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 54 ROW SPACE, COLUMN SPACE AND NULL SPACE Find a basis for the column space, row space of the matrix 1 2 1 3 2 1 3 6 0 2 3 7 8 6 6 Example 10: Basis of column space and row space
  • 55. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 55 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ The column space is the span of the columns of the matrix A, i.e.; Col(A)=Span 1 1 3 , 2 3 7 , 1 6 8 , 3 0 6 , 2 2 6 ‣ The row-reduced echelon for of A is 1 0 −9 9 2 0 1 5 −3 0 0 0 0 0 0 and the pivot column in the RREF of A represent the basis pf Col(A) Basis of Col(A) = 1 1 3 , 2 3 7
  • 56. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 56 ROW SPACE, COLUMN SPACE AND NULL SPACE ‣ Row space of A is the span of the rows, i.e.; Row(A) = span 1 2 1 3 2 , 1 3 6 0 2 , 3 7 8 6 6 ‣ Non-zero rows of the row-reduced echelon form of the given matrix gives the basis for the row space of A. ‣ Therefore; Basis of Row(A) = 1 0 −9 9 2 , 0 1 5 −3 0
  • 57. Question: Find null(A) for the following matrices. Tuesday, 07 May 2024 Compiled by Josophat Makawa | Student - B.Sc Mathematics | University of Malawi 57 ROW SPACE, COLUMN SPACE AND NULL SPACE 1. A = 2 3 4 6 2. A = 1 0 −1 −1 1 3 3 2 1 3. A = 2 −1 3 5 2 0 1 2 6 4 −5 −6 0 2 −4 −6 4. A = 1 3 5 0 0 1 4 2 5. A = 1 5 −4 −3 1 0 1 −2 1 0 0 0 0 0 0