Linear Algebra Week 2
Linear Algebra Week 2
Definition 1 (Rank)
Let A be an m × n matrix and  be any of its row echelon forms. The
rank of A is the number of pivots in Â.
This definition is ad-hoc and not rigorously justified since REF is not
unique.
The justification will be given in due course. We will denote the rank of A
by rank(A). Immediate to observe that
Theorem 2
Let Ax = b be a given system of linear equations. Let A+ = [A|b] denote
the augmented matrix.
1 (Existence) The solution set is non-empty if and only if
rank(A) = rank(A+ ).
2 (Uniqueness) The system has a unique solution if and only if
rank(A) = rank(A+ ) = n.
3 (Non-uniqueness) The system has infinitely many solutions if and only
if rank(A) = rank(A+ ) < n.
4 (Gauss elimination or Completeness) If rank(A) = rank(A+ ), Gauss
elimination method gives the complete set of solutions.
0 = pivot 6= 0
Example 4
Solve the following system of linear equations in the unknowns x1 , . . . , x5
by GEM:
2x3 −2x4 +x5 = 2
2x2 −8x3 +14x4 −5x5 = 2
x2 +3x3 +x5 = α
0 0 2 −2 1 2
Augmented matrix is 0 2 −8 14 −5 2 .
0 1 3 0 1 α
S = p + N.
January 9, 2017 10 / 1
Example
Example 5
For a < b, consider the system of equations:
x + y + z = 1
ax + by + 2z = 3
a2 x + b2 y + 4z = 9.
Find the pairs (a, b) for which the system has infinitely many solutions.
For non-uniqueness, the 3rd entry in the 3rd row must vanish and THEN
for existence, the last entry of the third row should also be zero. Therefore
Discussion:
(i) If (2 − a)(2 − b) 6= 0, there is exactly one solution.
(ii) If (2 − a)(2 − b) = 0 and (3 − a)(3 − b) 6= 0, then there will be NO solution.
Hence both must vanish. [1.0]
January 9, 2017 12 / 1
Comparing solution sets
Example 6
Let x +y −z =0 be a system and
x + 2y − z = 0
2x − y = 0
Solutions:
First system: x = z − y ; (y , z) arbitrary.
Second system: x = 2z/5, y = 4z/5; z arbitrary.
Both solution sets are infinite, so which is larger?
Since the first solution set is a plane and second is a line we feel that the
first system has “more” solutions or the set is “larger”.
January 9, 2017 13 / 1
Rn , vector spaces in Rn
v, w ∈ V , a, b ∈ R =⇒ av + bw ∈ V .
January 9, 2017 14 / 1
Linear span
A third and the last method to produce vector spaces is via linear spans.
Theorem 9
L(S) is a vector space in Rn .
January 9, 2017 15 / 1
Redundancy in S
Example 10
2 1 3
Let v1 = , v2 = , v3 = be 3 vectors in R2 . Let
−4 9 5
S = {v1 , v2 , v3 }. Show that
1
Any one of the vj can be dropped w.o. affecting the linear span.
But two of them can not be dropped. The linear span shrinks to a line.
[1.5]
January 9, 2017 16 / 1
Linear independence
Remark: The set of all the linear combinations above is the span L(S) of
S. Verify that S ⊂ L(S).
c1 v1 + c2 v2 + · · · + ck vk = 0 =⇒ c1 = c2 = · · · = ck = 0.
January 9, 2017 18 / 1
Bases and dimensions
Definition 13 (Basis)
Let V ⊆ Rn be any vector space. A (finite) subset B ⊂ V is called a basis
of V if
1 B is a linearly independent set and
2 L(B) = V i.e. each v ∈ V is a linear combination of elements of B.
Definition 14 (Dimension)
The number of elements in a basis of V is called the dimension of V .
This is exactly the “size” of a vector space we were looking for.
The systems x + y − z = 0 and x + 2y − z = 0, 2x − y = 0, have the
solution spaces of dimensions 2 and 1 respectively;
as intutively felt.
T T T
Bases are {[−1 1 0] , [1 0 1] } and {[2 4 5] }. [2.0]
January 9, 2017 19 / 1
Row-rank of a matrix
Definition 16 (Row-rank)
The dimension of the row space R(A) of A is called the row-rank of A.
January 9, 2017 20 / 1
Column rank
C(A) = ARn .
Theorem 19
Let A be an m × n real matrix. If B is obtained from A by an elementary
row operation, then rank(A) = rank(B).
Proof:
Clearly each row of B is in R(A)-the row space of A. Hence
R(B) ⊆ R(A) =⇒ rank(B) ≤ rank(A). Since A can be recovered from B
by the inverse row operations, rank(B) ≥ rank(A). Proved.
Corollary 20
If  denotes a row echelon form of A, then rank(A) = rank(Â). Moreover,
rank(Â) equals the number of pivots in Â.
This neatly ties up our ad hoc rank with the standard definition.
January 9, 2017 22 / 1
Invariance under the row operations-col. rank
Theorem 21
Let A be an m × n real matrix. If B is obtained from A by an elementary
row operation, then rankc (A) = rankc (B).
Proof:
If B = EA then B k = EAk holds for the columns of A and B. If
{Ak1 , Ak2 , , ..., Akr , } is a l.i. set of columns of A, then so is
{B k1 , B k2 , ..., B kr } and vice versa (due to the inverse row operation
applied to B). Hence rankc (A) = rankc (B). (c1 B k1 + · · · + cr B kr = 0 =⇒
E (c1 Ak1 + · · · + cr Akr ) = 0 =⇒ c1 Ak1 + · · · + cr Akr = 0 =⇒ each cj = 0
due to l.i. of {Ak1 , ..., Akr })
Proved.
Corollary 22
If  denotes a row echelon form of A, then rankc (A) = rankc (Â).
January 9, 2017 23 / 1
Equality of row-rank and column-rank
Theorem 23
For any matrix A, its row rank equals its column rank.
Proof:
Consider the reduced REF Â. Let r = rank(A). The pivotal columns are
{e1 , e2 , ..., er } and they are clearly linearly independent. We conclude
January 9, 2017 24 / 1
Equality of row and column ranks
In particular the column rank of A equals any of its REF Â. Since
rank(A) = rankc (A), the pivotal columns form a maximal linearly
independent set of columns of Â. So do the corresponding columns of A.
January 9, 2017 25 / 1
Linear (in)dependence and row echelon form
If {v1 , v2 , ..., vk } is a set of vectors in Rn , then take the obvious n × k
matrix V = [v1 v2 ... vk ].
Let in any REF of V there be r pivots. Then
If r < k the set is linearly dependent.
If r = k the set is linearly INdependent.
If r > k then what? Does the test FAIL?
Example 24
0 1
For S = 0 , −2 ⊂ R3 .
1 0
0 1 1 0 1 0
V = 0 −2 7→ 0 −2 7→ 0 -2 .
1 0 0 1 0 0
January 9, 2017 27 / 1
Invertibility via rank
Theorem 27
A square matrix A is invertible if and only if it is of full rank.
Proof: Gauss-Jordan method of finding A−1 shows that the inverse will
exist if and only if the reduced row echelon form of the n × n matrix A
becomes the identity matrix In which has n pivots.
January 9, 2017 28 / 1
Nullity and the rank-nullity theorem
Definition 28 (Nullity)
If A is any m × n real matrix, the dimension of the null-space N (A) of A is
called the nullity of A and is denoted null(A).
January 9, 2017 29 / 1
Proof of the rank-nullity theorem
Lemma 30
The rank of A is the number of pivots in any of its REF.
null(A) = n − rank(A).
On ”solving” we get
rank(A) + null(A) = n.
January 9, 2017 30 / 1
Am example of the rank-nullity equation
Consider
the augmented matrix
of a homogeneous system
1 3 1 −2 −3 0
1 3
3 −1 −4 0
2 6 −4 −7 −3 0
3 9 1 −7 −8 0
Performing
ERO 0 s yields:
1 3 1 −2 −3 0
1 3
3 −1 −4 0
2 6 −4 −7 −3 0
3 9 1 −7 −8 0
1 3 1 −2 −3 0
E21 (−1),E31 (−2),E42 (−3) 0 2 1 −1 0
7−→
0 0 −6
−3 3 0
0 0 −2 −1 10 0
January 9, 2017 31 / 1
Example contd.
1 3 1 −2 −3 0
E32 (3),E42 (1)
0
02 1 −1 0
7−→ 0
(REF )
0 0 0 0 0
0 0 0 0 0 0
−6x2 + 5x 4 + 5x5
2x
2
⊂ R5 . Here x2 , x4 , x5
The solution set is N (A) = −x4 + x5
2x4
2x5
take arbitrary values and we note that the second, fourth and fifth
columns are pivot-free.
Finally, null(A) = 3, rank(A) = 2 and null(A) + rank(A) = 5 which is the
no. of variables or the number of columns of A.
January 9, 2017 32 / 1
Example extended
1 3 1 −2 −3
1 3 3 −1 −4
Given A = 2 6 −4 −7 −3, find a basis of the null space N (A) of
3 9 1 −7 −8
A. The null space is described in the previous slide. Since the real triple
(x2 , x4 , x5 ) can take any value (in R3 ),
let usassign values
(1, 0, 0),(0,1, 0)
−6 5 5
2 0 0
and (0, 0, 1) successively, to find v1 = 0 , v2 = −1 , v3 = 1 as
0 2 0
0 0 2
three linearly independent elements of N (A) which form a basis.
We have parametrized N (A) by R3 and also used its standard basis to find
a basis of N (A).
January 9, 2017 33 / 1
A geometric viewpoint
January 9, 2017 34 / 1