Lecture2_D1
Lecture2_D1
Spring 2025
x1 − x2 + x3 = 0
−x1 + x2 − x3 = 0
10x2 + 25x3 = 90
20x1 + 10x2 = 80.
x1 − x2 + x3 = 0
0 = 0
10x2 + 25x3 = 90
30x2 − 20x3 = 80.
x1 − x2 + x3 = 0
10x2 + 25x3 = 90
−95x3 = −190
0 = 0.
Subtracting 20 times the first row from the 4th row, and
adding the first row to the second row, we obtain
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
1 −1 1 0
R4 −20R1 , R2 +R1 , 0 0 0 0
−−−−−−−−−→ 0 10 25
.
90
0 30 −20 80
Interchanging the 2nd and the 3rd rows, we obtain
1 −1 1 0
R ←→R3
−−2−−−→ 0 10 25 90.
0 0 0 0
0 30 −20 80
Finally, subtracting 3 times the 2nd row from the 4th row and
interchanging the 3rd and the 4th rows, we arrive at
1 −1 1 0
R4 −3R2 , R3 ←→R4 0 10 25 90
−−−−−−−−−−→ 0 0 −95
.
−190
0 0 0 0
The upper triangular nature of the 3 × 3 matrix on the top left
enables back substitution.
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
Row Echelon Form
We shall now consider a general form of a matrix for which the
method of back substitution works.
Let A ∈ Rm×n , that is, A is an m × n matrix with real entries.
A row of A is said to be zero if all its entries are zero.
If a row is not zero, then its first nonzero entry (from the left)
is called the pivot.Thus all entries to the left of a pivot equal 0.
Suppose A has r nonzero rows and m − r zero rows.
Then 0 ≤ r ≤ m. Clearly, r = 0 ⇐⇒ A = O.
Example
0 1 4
If A = 0 0 0, then m = n = 3 and r = 2.
5 6 7
The pivot in the 1st row is 1 and the pivot in the 3rd row is 5.
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
A matrix A is said to be in a row echelon form (REF)1 if the
following conditions are satisfied.
(i) The nonzero rows of A precede the zero rows of A.
(ii) If A has r nonzero rows, where r ∈ N, and the pivot in
row 1 appears in the column k1 , the pivot in row 2 appears in
the column k2 , and so on the pivot in row r appears in the
column kr , then k1 < k2 < · · · < kr .
Examples
0 4 0 1 4
1 0 1 4
The matrices 0
0
0 , 5 6 7 , 0
5 7
5 7 6
0 0 0 0 0 0
5 6 7
are not in REF. The matrix 0 1 4 is in a
REF.
0 0 0
1
In French, echelon means level.
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
Pivotal Columns
(i) Suppose a matrix A ∈ Rm×n is in a REF. If A has exactly r
nonzero rows, then there are exactly r pivots. A column of A
containing a pivot, is called a pivotal column. Thus there are
exactly r pivotal columns, and so 0 ≤ r ≤ n.
(We have already noted that 0 ≤ r ≤ m.)
(ii) In a pivotal column, all entries below the pivot equal 0.
Here is a typical example of how back substitution works when
a matrix A is in a REF. Let
0 a12 a13 a14 a15 a16 b1
0 0 0 a24 a25 a26 b2 .
A := 0 0 and b := b3
0 0 a35 a36
0 0 0 0 0 0 b4
where a12 , a24 , a35 are nonzero. They are the pivots.
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
Here m = 4, n = 6, r = 3, pivotal columns: 2 , 4 and 5 .
T
Suppose there is x := x1 · · · x6 ∈ R6×1 such that Ax = b.
Then 0x1 + · · · + 0x6 = b4 , that is, b4 must be equal to 0.
Next, a35 x5 + a36 x6 = b3 , that is, x5 = (b3 − a36 x6 )/a35 , where
we can assign an arbitrary value to the unknown x6 .
Next, a24 x4 + a25 x5 + a26 x6 = b2 , that is,
x4 = (b2 − a25 x5 − a26 x6 )/a24 , where we back substitute the
values of x5 and x6 .
Finally, a12 x2 + a13 x3 + a14 x4 + a15 x5 + a16 x6 = b1 , that is,
x2 = (b1 − a13 x3 − a14 x4 − a15 x5 − a16 x6 )/a12 , where we can
assign an arbitrary value to the variable x3 , and back
substitute the values of x4 , x5 and x6 .
Also, we can assign an arbitrary value to the variable x1 .
The variables x1 , x3 and x6 to which we can assign arbitrary
values correspond to the nonpivotal columns 1 , 3 and 6 .
Prof. S. R. Ghorpade, IIT Bombay Linear Algebra: Lecture 02
Suppose an m×n matrix A is in a REF, and there are r
nonzero rows. Let the r pivots be in the columns k1 , . . . , kr
with k1 < · · · < kr , and let the columns `1 , . . . , `n−r be
nonpivotal. Then xk1 , . . . , xkr are called the pivotal
variables and x`1 , . . . , x`n−r are called the free variables.
Let b := [b1 · · · br br +1 · · · bm ]T , and consider the linear system
Ax = b.
Important Observations
Example
0 2 1 0 2 5 0
1 .
0 0 0 3 5 0
Let A :=
0 and b := 2
0 0 0 1 2
0 0 0 0 0 0 0