Notes on Linear Algebra

Peeyush Chandra, A. K. Lal, G. Santhanam
V. raghavendra

July 11, 2011

Contents

1 Introduction to Matrices
 1.1 Definition of a Matrix
  1.1.1 Special Matrices
 1.2 Operations on Matrices
  1.2.1 Multiplication of Matrices
  1.2.2 Inverse of a Matrix
 1.3 Some More Special Matrices
  1.3.1 Submatrix of a Matrix
 1.4 Summary
2 System of Linear Equations
 2.1 Introduction
  2.1.1 A Solution Method
  2.1.2 Gauss Elimination Method
  2.1.3 Gauss-Jordan Elimination
 2.2 Elementary Matrices
 2.3 Rank of a Matrix
 2.4 Existence of Solution of Ax = b
 2.5 Determinant
  2.5.1 Adjoint of a Matrix
  2.5.2 Cramer’s Rule
 2.6 Miscellaneous Exercises
 2.7 Summary
3 Finite Dimensional Vector Spaces
 3.1 Finite Dimensional Vector Spaces
  3.1.1 Subspaces
  3.1.2 Linear Span
 3.2 Linear Independence
 3.3 Bases
  3.3.1 Dimension of a Finite Dimensional Vector Space
  3.3.2 Application to the study of n
 3.4 Ordered Bases
 3.5 Summary
4 Linear Transformations
 4.1 Definitions and Basic Properties
 4.2 Matrix of a linear transformation
 4.3 Rank-Nullity Theorem
 4.4 Similarity of Matrices
 4.5 Change of Basis
 4.6 Summary
5 Inner Product Spaces
 5.1 Introduction
 5.2 Definition and Basic Properties
  5.2.1 Basic Results on Orthogonal Vectors
 5.3 Gram-Schmidt Orthogonalization Process
 5.4 Orthogonal Projections and Applications
  5.4.1 Matrix of the Orthogonal Projection
 5.5 QR Decomposition*
6 Eigenvalues, Eigenvectors and Diagonalization
 6.1 Introduction and Definitions
 6.2 Diagonalization
 6.3 Diagonalizable Matrices
 6.4 Sylvester’s Law of Inertia and Applications
I  Ordinary Differential Equation
7 Differential Equations
 7.1 Introduction and Preliminaries
 7.2 Separable Equations
  7.2.1 Equations Reducible to Separable Form
 7.3 Exact Equations
  7.3.1 Integrating Factors
 7.4 Linear Equations
 7.5 Miscellaneous Remarks
 7.6 Initial Value Problems
  7.6.1 Orthogonal Trajectories
 7.7 Numerical Methods
8 Second Order and Higher Order Equations
 8.1 Introduction
 8.2 More on Second Order Equations
  8.2.1 Wronskian
  8.2.2 Method of Reduction of Order
 8.3 Second Order equations with Constant Coefficients
 8.4 Non Homogeneous Equations
 8.5 Variation of Parameters
 8.6 Higher Order Equations with Constant Coefficients
 8.7 Method of Undetermined Coefficients
9 Solutions Based on Power Series
 9.1 Introduction
  9.1.1 Properties of Power Series
 9.2 Solutions in terms of Power Series
 9.3 Statement of Frobenius Theorem for Regular (Ordinary) Point
 9.4 Legendre Equations and Legendre Polynomials
  9.4.1 Introduction
  9.4.2 Legendre Polynomials
II  Laplace Transform
10 Laplace Transform
 10.1 Introduction
 10.2 Definitions and Examples
  10.2.1 Examples
 10.3 Properties of Laplace Transform
  10.3.1 Inverse Transforms of Rational Functions
  10.3.2 Transform of Unit Step Function
 10.4 Some Useful Results
  10.4.1 Limiting Theorems
 10.5 Application to Differential Equations
 10.6 Transform of the Unit-Impulse Function
11 Appendix
 11.1 Permutation/Symmetric Groups
 11.2 Properties of Determinant
 11.3 Dimension of M + N
 11.4 Condition for Exactness

Chapter 1
Introduction to Matrices

1.1 Definition of a Matrix

Definition 1.1.1 (Matrix) A rectangular array of numbers is called a matrix.

The horizontal arrays of a matrix are called its rows and the vertical arrays are called its columns. A matrix is said to have the order m × n if it has m rows and n columns. An m × n matrix A can be represented in either of the following forms:

    ⌊a11  a12  ⋅⋅⋅  a1n⌋       ( a11  a12  ⋅⋅⋅  a1n)
    |a21  a22  ⋅⋅⋅  a2n|       | a21  a22  ⋅⋅⋅  a2n|
A = || .    .   .     . || or A = || .     .   .    . || ,
    ⌈ ..    ..    ..   .. ⌉       (  ..     ..   ..   .. )
     am1  am2  ⋅⋅⋅ amn           am1  am2  ⋅⋅⋅  amn
where aij is the entry at the intersection of the ith row and jth column. In a more concise manner, we also write Am×n = [aij] or A = [aij]m×n or A = [aij]. We shall mostly be concerned with matrices having real numbers, denoted , as entries. For example, if A = [      ]
 1 3  7
 4 5  6 then a11 = 1, a12 = 3,a13 = 7,a21 = 4,a22 = 5, and a23 = 6.

A matrix having only one column is called a column vector; and a matrix with only one row is called a row vector. Whenever a vector is used, it should be understood from the context whether it is a row vector or a column vector. Also, all the vectors will be represented by bold letters.

Definition 1.1.2 (Equality of two Matrices) Two matrices A = [aij] and B = [bij] having the same order m × n are equal if aij = bij for each i = 1,2,,m and j = 1,2,,n.

In other words, two matrices are said to be equal if they have the same order and their corresponding entries are equal.

Example 1.1.3 The linear system of equations 2x + 3y = 5 and 3x + 2y = 5 can be identified with the matrix [         ]
 2  3  : 5
 3  2  : 5. Note that x and y are indeterminate and we can think of x being associated with the first column and y being associated with the second column.

1.1.1 Special Matrices

Definition 1.1.4

  1. A matrix in which each entry is zero is called a zero-matrix, denoted by 0. For example,
          [0  0]           [0  0  0]
02×2 = 0  0  and 02×3 = 0  0  0 .
  2. A matrix that has the same number of rows as the number of columns, is called a square matrix. A square matrix is said to have order n if it is an n × n matrix.
  3. The entries a11,a22,,ann of an n×n square matrix A = [aij] are called the diagonal entries (the principal diagonal) of A.
  4. A square matrix A = [aij] is said to be a diagonal matrix if aij = 0 for ij. In other words, the non-zero entries appear only on the principal diagonal. For example, the zero matrix 0n and [    ]
 4  0
 0  1 are a few diagonal matrices.

    A diagonal matrix D of order n with the diagonal entries d1,d2,,dn is denoted by D = diag(d1,,dn). If di = d for all i = 1,2,,n then the diagonal matrix D is called a scalar matrix.

  5. A scalar matrix A of order n is called an identity matrix if d = 1. This matrix is denoted by In.

    For example, I2 = [    ]
 1  0
 0  1 and I3 = ⌊1  0  0⌋
⌈0  1  0⌉
 0  0  1. The subscript n is suppressed in case the order is clear from the context or if no confusion arises.

  6. A square matrix A = [aij] is said to be an upper triangular matrix if aij = 0 for i > j.

    A square matrix A = [aij] is said to be a lower triangular matrix if aij = 0 for i < j.

    A square matrix A is said to be triangular if it is an upper or a lower triangular matrix.

For example, ⌊        ⌋
 0  1   4
⌈0  3  - 1⌉
 0  0  - 2 is upper triangular, ⌊       ⌋
 0  0  0
⌈1  0  0⌉
 0  1  1 is lower triangular.

Exercise 1.1.5 Are the following matrices upper triangular, lower triangular or both?

  1. ⌊a11  a12  ⋅⋅⋅  a1n⌋
|0   a22  ⋅⋅⋅  a2n|
||.    .  .     . ||
⌈..    ..   ..   .. ⌉
0    0  ⋅⋅⋅  ann
  2. The square matrices 0 and I or order n.
  3. The matrix diag(1,-1,0,1).

1.2 Operations on Matrices

Definition 1.2.1 (Transpose of a Matrix) The transpose of an m × n matrix A = [aij] is defined as the n × m matrix B = [bij], with bij = aji for 1 i m and 1 j n. The transpose of A is denoted by At.

That is, if A = [       ]
 1  4  5
 0  1  2 then At = ⌊1  0⌋
⌈4  1⌉
 5  2. Thus, the transpose of a row vector is a column vector and vice-versa.

Theorem 1.2.2 For any matrix A, (At)t = A.

Proof.  Let A = [aij],At = [bij] and (At)t = [cij]. Then, the definition of transpose gives

cij = bji = aij for all i,j
and the result follows.

Definition 1.2.3 (Addition of Matrices) let A = [aij] and B = [bij] be two m × n matrices. Then the sum A + B is defined to be the matrix C = [cij] with cij = aij + bij.

Note that, we define the sum of two matrices only when the order of the two matrices are same.

Definition 1.2.4 (Multiplying a Scalar to a Matrix) Let A = [aij] be an m × n matrix. Then for any element k , we define kA = [kaij].

For example, if A = [1  4 5]
 0  1 2 and k = 5, then 5A = [5  20  25]
 0   5  10.

Theorem 1.2.5 Let A,B and C be matrices of order m × n, and let k,ℓ . Then

  1. A + B = B + A      (commutativity).
  2. (A + B) + C = A + (B + C)     (associativity).
  3. k(ℓA) = (kℓ)A.
  4. (k + )A = kA + ℓA.

Proof.  Part 1.
Let A = [aij] and B = [bij]. Then

A + B = [aij]+ [bij] = [aij + bij] = [bij + aij] = [bij]+ [aij] = B + A
as real numbers commute.

The reader is required to prove the other parts as all the results follow from the properties of real numbers.

Definition 1.2.6 (Additive Inverse) Let A be an m × n matrix.

  1. Then there exists a matrix B with A + B = 0. This matrix B is called the additive inverse of A, and is denoted by -A = (-1)A.
  2. Also, for the matrix 0m×n, A+0 = 0+A = A. Hence, the matrix 0m×n is called the additive identity.

Exercise 1.2.7

  1. Find a 3 × 3 non-zero matrix A satisfying A = At.
  2. Find a 3 × 3 non-zero matrix A such that At = -A.
  3. Find the 3 × 3 matrix A = [aij] satisfying aij = 1 if ij and 2 otherwise.
  4. Find the 3 × 3 matrix A = [aij] satisfying aij = 1 if |i - j|≤ 1 and 0 otherwise.
  5. Find the 4 × 4 matrix A = [aij] satisfying aij = i + j.
  6. Find the 4 × 4 matrix A = [aij] satisfying aij = 2i+j.
  7. Suppose A + B = A. Then show that B = 0.
  8. Suppose A + B = 0. Then show that B = (-1)A = [-aij].
  9. Let A = ⌊      ⌋
⌈1  - 1⌉
 2   3
 0   1 and B = [        ]
 2  3  - 1
 1  1   2. Compute A + Bt and B + At.

1.2.1 Multiplication of Matrices

Definition 1.2.8 (Matrix Multiplication / Product) Let A = [aij] be an m×n matrix and B = [bij ] be an n × r matrix. The product AB is a matrix C = [cij] of order m × r, with

     n∑
cij =    aikbkj = ai1b1j + ai2b2j + ⋅⋅⋅+ ainbnj.
     k=1

That is, if Am×n = ⌊                  ⌋
  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅
|| ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅ ||
|| a    a   ⋅⋅⋅ a   ||
|⌈  i1   i2        in |⌉
  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅
  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅  ⋅⋅⋅ and Bn×r = ⌊          ⌋
  ...  b1j  ...
|| .       .||
|| ..  b2j  ..||
|| ...   ...   ...||
⌈ .       .⌉
  ..  bmj   .. then

AB  = [(AB )ij]m×r and (AB )ij = ai1b1j + ai2b2j + ⋅⋅⋅+ ainbnj.

Observe that the product AB is defined if and only if
the number of columns of A = the number of rows of B.

For example, if A = [       ]
 a  b  c
 d  e  f and B = ⌊ α  β  γ  δ⌋
⌈ x  y  z  t⌉
  u  v  w  s then

     [                                                 ]
AB =   aα+ bx +cu   aβ + by+ cv aγ + bz + cw aδ + bt + cs  .
      dα + ex+ fu  dβ + ey+ fv  dγ + ez + fw  dδ +et+ f s
(1.2.1)

Observe that in Equation (1.2.1), the first row of AB can be re-written as

   [          ]    [         ]    [          ]
a ⋅α   β  γ  δ + b⋅ x  y  z t + c⋅ u  v  w  s .
That is, if Rowi(B) denotes the i-th row of B for 1 i 3, then the matrix product AB can be re-written as
        [                                    ]
         a ⋅ Row1 (B)+ b⋅ Row2 (B )+ c⋅ Row3(B )
AB   =   d ⋅ Row1 (B )+ e⋅ Row2(B )+ f ⋅ Row3(B ) .         (1.2.2)
Similarly, observe that if Colj(A) denotes the j-th column of A for 1 j 3, then the matrix product AB can be re-written as
        [
AB   =    Col1(A )⋅α +Col2(A) ⋅x + Col3(A )⋅u,
            Col (A)⋅β + Col (A )⋅y+ Col (A)⋅v,
               1           2          3
                Col1(A)⋅γ + Col2(A )⋅z + Col3(A)⋅w
                     Col1(A )⋅δ+ Col2(A )⋅t+ Col3(A )⋅s].        (1.2.3)

Remark 1.2.9 Observe the following:

  1. In this example, while AB is defined, the product BA is not defined.

    However, for square matrices A and B of the same order, both the product AB and BA are defined.

  2. The product AB corresponds to operating on the rows of the matrix B (see Equation (1.2.2)). This is row method for calculating the matrix product.
  3. The product AB also corresponds to operating on the columns of the matrix A (see Equation (1.2.3)). This is column method for calculating the matrix product.
  4. Let A = [aij] and B = [bij] be two matrices. Suppose _1,_2,,_n are the rows of A and b1,b2,,bp are the columns of B. If the product AB is defined, then check that
                                ⌊    ⌋
                             a1B
                            ||a2B ||
AB   =  [Ab1,Ab2, ...,Abp ] = |⌈ .. |⌉.
                               .
                             anB

Example 1.2.10 Let A = ⌊         ⌋
  1  2   0
⌈ 1  0   1⌉
  0  - 1 1 and B = ⌊          ⌋
 1   0   - 1
⌈0   0   1 ⌉
 0  - 1  1. Use the row/column method of matrix multiplication to

  1. find the second row of the matrix AB.
    Solution: Observe that the second row of AB is obtained by multiplying the second row of A with B. Hence, the second row of AB is
    1⋅[1,0,- 1]+ 0 ⋅[0,0,1]+ 1⋅[0,- 1,1] = [1,- 1,0].
  2. find the third column of the matrix AB.
    Solution: Observe that the third column of AB is obtained by multiplying A with the third column of B. Hence, the third column of AB is
        ⌊ ⌋     ⌊   ⌋     ⌊ ⌋   ⌊ ⌋
    ⌈1⌉     ⌈ 2 ⌉     ⌈0⌉   ⌈1⌉
- 1⋅  1 + 1⋅  0   + 1⋅ 1  =  0  .
      0       - 1      1     0

Definition 1.2.11 (Commutativity of Matrix Product) Two square matrices A and B are said to commute if AB = BA.

Remark 1.2.12 Note that if A is a square matrix of order n and if B is a scalar matrix of order n then AB = BA. In general, the matrix product is not commutative. For example, consider A = [11]
00 and B = [1  0]
 1  0. Then check that the matrix product

     [2  0]   [1  1]
AB =        ⁄=       = BA.
      0  0     1  1

Theorem 1.2.13 Suppose that the matrices A,B and C are so chosen that the matrix multiplications are defined.

  1. Then (AB)C = A(BC). That is, the matrix multiplication is associative.
  2. For any k ,(kA)B = k(AB) = A(kB).
  3. Then A(B + C) = AB + AC. That is, multiplication distributes over addition.
  4. If A is an n × n matrix then AIn = InA = A.
  5. For any square matrix A of order n and D = diag(d1,d2,,dn), we have
    • the first row of DA is d1 times the first row of A;
    • for 1 i n, the ith row of DA is di times the ith row of A.

    A similar statement holds for the columns of A when A is multiplied on the right by D.

Proof.  Part 1. Let A = [aij]m×n,B = [bij]n×p and C = [cij]p×q. Then

          p                   n
(BC )  = ∑  b c  and (AB )  = ∑  a b  .
    kj   ℓ=1 kℓ ℓj         iℓ  k=1 ikkℓ
Therefore,
              ∑n            ∑n    ∑p
(A (BC ))ij =      aik(BC )kj =   aik(  bkℓcℓj)
              k=1 p         k=1   ℓ=p1
              ∑n ∑             ∑n ∑
          =         aik(bkℓcℓj) =      (aikbkℓ)cℓj
              k=p1ℓ=n1           k=t1ℓ=1
          =   ∑ (∑  a  b )c  = ∑ (AB ) c
              ℓ=1 k=1 ik kℓ  ℓj   ℓ=1     iℓ ℓj

          =   ((AB )C)ij.

Part 5. For all j = 1,2,,n, we have

        ∑n
(DA )ij =    dikakj = diaij
        k=1
as dik = 0 whenever ik. Hence, the required result follows.

The reader is required to prove the other parts.

Exercise 1.2.14

  1. Find a 2 × 2 non-zero matrix A satisfying A2 = 0.
  2. Find a 2 × 2 non-zero matrix A satisfying A2 = A and AI2.
  3. Find 2 × 2 non-zero matrices A,B and C satisfying AB = AC but BC. That is, the cancelation law doesn’t hold.
  4. Let A = ⌊       ⌋
⌈0  1  0⌉
 0  0  1
 1  0  0. Compute A + 3A2 - A3 and aA3 + bA + cA2.
  5. Let A and B be two matrices. If the matrix addition A + B is defined, then prove that (A+B)t = At+Bt. Also, if the matrix product AB is defined then prove that (AB)t = BtAt.
  6. Let A = [a1,a2,,an] and Bt = [b1,b2,,bn]. Then check that order of AB is 1 × 1, whereas BA has order n × n. Determine the matrix products AB and BA.
  7. Let A and B be two matrices such that the matrix product AB is defined.
    1. If the first row of A consists entirely of zeros, prove that the first row of AB also consists entirely of zeros.
    2. If the first column of B consists entirely of zeros, prove that the first column of AB also consists entirely of zeros.
    3. If A has two identical rows then the corresponding rows of AB are also identical.
    4. If B has two identical columns then the corresponding columns of AB are also identical.
  8. Let A = ⌊          ⌋
 1   1   - 2
⌈1  - 2  1 ⌉
 0   1   1 and B = ⌊      ⌋
  1   0
⌈ 0   1⌉
  - 1 1. Use the row/column method of matrix multiplication to compute the
    1. first row of the matrix AB.
    2. third row of the matrix AB.
    3. first column of the matrix AB.
    4. second column of the matrix AB.
    5. first column of BtAt.
    6. third column of BtAt.
    7. first row of BtAt.
    8. second row of BtAt.
  9. Let A and B be the matrices given in Exercise 1.2.14.8. Compute A - At,(3AB)t - 4BtA and 3A - 2At.
  10. Let n be a positive integer. Compute An for the following matrices:
    [    ]     ⌊1  1  1⌋     ⌊1  1 1⌋
 1  1 ,    ⌈0  1  1⌉,    ⌈1  1 1⌉ .
 0  1       0  0  1       1  1 1
    Can you guess a formula for An and prove it by induction?
  11. Construct the matrices A and B satisfying the following statements.
    1. The matrix product AB is defined but BA is not defined.
    2. The matrix products AB and BA are defined but they have different orders.
    3. The matrix products AB and BA are defined and they have the same order but ABBA.
  12. Let A be a 3 × 3 matrix satisfying A⌊a⌋
⌈ b⌉
  c = ⌊a + b⌋
⌈b - c⌉
   0. Determine the matrix A.
  13. Let A be a 2 × 2 matrix satisfying A[a]
 b = [a ⋅b]
  a. Can you construct the matrix A satisfying the above? Why!

1.2.2 Inverse of a Matrix

Definition 1.2.15 (Inverse of a Matrix) Let A be a square matrix of order n.

  1. A square matrix B is said to be a left inverse of A if BA = In.
  2. A square matrix C is called a right inverse of A, if AC = In.
  3. A matrix A is said to be invertible (or is said to have an inverse) if there exists a matrix B such that AB = BA = In.

Lemma 1.2.16 Let A be an n×n matrix. Suppose that there exist n×n matrices B and C such that AB = In and CA = In, then B = C.

Proof.  Note that

C = CIn = C (AB ) = (CA )B = InB = B.

Remark 1.2.17

  1. From the above lemma, we observe that if a matrix A is invertible, then the inverse is unique.
  2. As the inverse of a matrix A is unique, we denote it by A-1. That is, AA-1 = A-1A = I.

Example 1.2.18

  1. Let A = [    ]
 a  b
 c  d.
    1. If ad - bc0. Then verify that A-1 = --1--
ad-bc[       ]
  d  - b
 - c  a.
    2. If ad - bc = 0 then prove that either [ab] = α[cd] for some α or [ac] = β[bd] for some β . Hence, prove that A is not invertible.
    3. In particular, the inverse of [2  3]
 4  7 equals 1
2[ 7   - 3]
 - 4  2. Also, the matrices [    ]
 1  2
 0  0,[    ]
 1  0
 4  0 and [   ]
 4 2
 6 3do not have inverses.
  2. Let A = ⌊       ⌋
 1  2  3
⌈2  3  4⌉
 3  4  6. Then A-1 = ⌊            ⌋
 - 2   0   1
⌈ 0    3  - 2⌉
  1   - 2  1.

Theorem 1.2.19 Let A and B be two matrices with inverses A-1 and B-1, respectively. Then

  1. (A-1)-1 = A.
  2. (AB)-1 = B-1A-1.
  3. (At)-1 = (A-1)t.

Proof.  Proof of Part 1.
By definition AA-1 = A-1A = I. Hence, if we denote A-1 by B, then we get AB = BA = I. Thus, the definition, implies B-1 = A, or equivalently (A-1)-1 = A.

Proof of Part 2.
Verify that (AB)(B-1A-1) = I = (B-1A-1)(AB).

Proof of Part 3.
We know AA-1 = A-1A = I. Taking transpose, we get

(AA- 1)t = (A -1A)t = It ⇐ ⇒ (A- 1)tAt = At(A -1)t = I.
Hence, by definition (At)-1 = (A-1)t.

We will again come back to the study of invertible matrices in Sections 2.2 and 2.5.

Exercise 1.2.20

  1. Let A be an invertible matrix and let r be a positive integer. Prove that (A-1)r = A-r.
  2. Find the inverse of [              ]
 - cos(θ)  sin (θ)
  sin(θ)   cos(θ) and [              ]
  cos(θ)   sin(θ)
 - sin(θ)  cos(θ).
  3. Let A1,A2,,Ar be invertible matrices. Prove that the product A1A2⋅⋅⋅Ar is also an invertible matrix.
  4. Let xt = [1,2,3] and yt = [2,-1,4]. Prove that xyt is not invertible even though xty is invertible.
  5. Let A be an n × n invertible matrix. Then prove that
    1. A cannot have a row or column consisting entirely of zeros.
    2. any two rows of A cannot be equal.
    3. any two columns of A cannot be equal.
    4. the third row of A cannot be equal to the sum of the first two rows, whenever n 3.
    5. the third column of A cannot be equal to the first column minus the second column, whenever n 3.
  6. Suppose A is a 2 × 2 matrix satisfying (I + 3A)-1 = [    ]
 1  2
 2  1. Determine the matrix A.
  7. Let A be a 3 × 3 matrix such that (I -A)-1 = ⌊           ⌋
⌈- 2  0   1 ⌉
  0   3   - 2
  1  - 2  1. Determine the matrix A [Hint: See Example 1.2.18.2 and Theorem 1.2.19.1].
  8. Let A be a square matrix satisfying A3 + A - 2I = 0. Prove that A-1 = 1
2( 2   )
A  + I.
  9. Let A = [aij] be an invertible matrix and let p be a nonzero real number. Then determine the inverse of the matrix B = [pi-jaij].

1.3 Some More Special Matrices

Definition 1.3.1

  1. A matrix A over is called symmetric if At = A and skew-symmetric if At = -A.
  2. A matrix A is said to be orthogonal if AAt = AtA = I.

Example 1.3.2

  1. Let A = ⌊ 1  2   3 ⌋
⌈          ⌉
  2  4   - 1
  3 - 1  4 and B = ⌊ 0  1   2 ⌋
⌈          ⌉
 - 1 0  - 3
 - 2 3   0. Then A is a symmetric matrix and B is a skew-symmetric matrix.
  2. Let A = ⌊               ⌋
  1√3-  1√3-   1√3-
|⌈ 1√-- -√1-   0  |⌉
  1√2-  1√-2  -√2-
   6    6      6. Then A is an orthogonal matrix.
  3. Let A = [aij] be an n × n matrix with aij equal to 1 if i - j = 1 and 0, otherwise. Then An = 0 and A0 for 1 n-1. The matrices A for which a positive integer k exists such that Ak = 0 are called nilpotent matrices. The least positive integer k for which Ak = 0 is called the order of nilpotency.
  4. Let A = [1  1]
 2  2
 12  12. Then A2 = A. The matrices that satisfy the condition that A2 = A are called idempotent matrices.

Exercise 1.3.3

  1. Let A be a real square matrix. Then S = 12(A + At) is symmetric, T = 12(A - At) is skew-symmetric, and A = S + T.
  2. Show that the product of two lower triangular matrices is a lower triangular matrix. A similar statement holds for upper triangular matrices.
  3. Let A and B be symmetric matrices. Show that AB is symmetric if and only if AB = BA.
  4. Show that the diagonal entries of a skew-symmetric matrix are zero.
  5. Let A,B be skew-symmetric matrices with AB = BA. Is the matrix AB symmetric or skew-symmetric?
  6. Let A be a symmetric matrix of order n with A2 = 0. Is it necessarily true that A = 0?
  7. Let A be a nilpotent matrix. Prove that there exists a matrix B such that B(I + A) = I = (I + A)B [ Hint: If Ak = 0 then look at I - A + A2 -⋅⋅⋅ + (-1)k-1Ak-1].

1.3.1 Submatrix of a Matrix

Definition 1.3.4 A matrix obtained by deleting some of the rows and/or columns of a matrix is said to be a submatrix of the given matrix.

For example, if A = [1 4  5]
 0 1  2, a few submatrices of A are

      [ ]     [    ]
[1],[2], 1 ,[15], 1  5 ,A.
       0       0  2

But the matrices [    ]
 1  4
 1  0 and [    ]
 1  4
 0  2 are not submatrices of A. (The reader is advised to give reasons.)

Let A be an n × m matrix and B be an m × p matrix. Suppose r < m. Then, we can decompose the matrices A and B as A = [PQ] and B = [ ]
 H
 K; where P has order n×r and H has order r ×p. That is, the matrices P and Q are submatrices of A and P consists of the first r columns of A and Q consists of the last m - r columns of A. Similarly, H and K are submatrices of B and H consists of the first r rows of B and K consists of the last m - r rows of B. We now prove the following important theorem.

Theorem 1.3.5 Let A = [aij] = [PQ] and B = [bij] = [  ]
 H
 K be defined as above. Then

AB  = PH + QK.

Proof.  First note that the matrices PH and QK are each of order n × p. The matrix products PH and QK are valid as the order of the matrices P,H,Q and K are respectively, n × r,r × p,n × (m - r) and (m - r) × p. Let P = [Pij],Q = [Qij],H = [Hij], and K = [kij]. Then, for 1 i n and 1 j p, we have

           m∑         ∑r          m∑
(AB )ij =      aikbkj =   aikbkj +     aikbkj
           k=r1       k=1m       k=r+1
       =   ∑  P H   +  ∑   Q  K
           k=1 ik kj  k=r+1  ik  kj

       =   (P H )ij + (QK )ij = (P H + QK )ij.

Remark 1.3.6 Theorem 1.3.5 is very useful due to the following reasons:

  1. The order of the matrices P,Q,H and K are smaller than that of A or B.
  2. It may be possible to block the matrix in such a way that a few blocks are either identity matrices or zero matrices. In this case, it may be easy to handle the matrix product using the block form.
  3. Or when we want to prove results using induction, then we may assume the result for r × r submatrices and then look for (r + 1) × (r + 1) submatrices, etc.

For example, if A = [       ]
 1  2  0
 2  5  0 and B = ⌊a  b⌋
⌈ c d⌉
 e  f, Then

     [    ][    ]   [ ]      [              ]
AB =  1  2  a  b  +  0 [ef] =  a+ 2c   b+ 2d  .
      2  5   c d     0        2a+ 5c  2b + 5d

If A = ⌊0   - 1  2 ⌋
⌈3    1   4 ⌉
-2   5  - 3, then A can be decomposed as follows:

A = ⌊0  |- 1  2  ⌋
|3  | 1   4  |
⌈--|--------⌉
-2 | 5  - 3, or A = ⌊  0   - 1| 2 ⌋
|  3   1  | 4 |
⌈---------|---⌉
  - 2  5  |- 3, or
A = ⌊      |    ⌋
|0---- 1|-2--|
⌈3    1 | 4  ⌉
-2   5 |- 3 and so on.

Suppose A =

m1m2
n1
n2
[     ]
 P   Q
 R   S
and B =
s1s2
r1
r2
[      ]
  E   F
  G  H
. Then the matrices P,Q,R,S and E,F,G,H, are called the blocks of the matrices A and B, respectively.

Even if A + B is defined, the orders of P and E may not be same and hence, we may not be able to add A and B in the block form. But, if A + B and P + E is defined then A + B = [            ]
 P + E  Q + F
 R+ G   S + H.

Similarly, if the product AB is defined, the product PE need not be defined. Therefore, we can talk of matrix product AB as block product of matrices, if both the products AB and PE are defined. And in this case, we have AB = [                   ]
 P E + QG   PF + QH
  RE + SG   RF + SH.

That is, once a partition of A is fixed, the partition of B has to be properly chosen for purposes of block addition or multiplication.

Exercise 1.3.7

  1. Complete the proofs of Theorems 1.2.5 and 1.2.13.
  2. Let A = ⌊         ⌋
⌈1∕2  0  0⌉
  0   1  0
  0   0  1,B = ⌊        ⌋
⌈ 1  0  0⌉
 - 2 1  0
 - 3 0  1 and C = ⌊          ⌋
⌈2  2  2  6⌉
 2  1  2  5
 3  3  4 10. Compute
    1. the first row of AC,
    2. the first row of B(AC),
    3. the second row of B(AC), and
    4. the third row of B(AC).
    5. Let xt = [1,1,1,-1]. Compute the matrix product Cx.
  3. Let x = [x1]
 x2 and y = [y1]
 y2. Determine the 2 × 2 matrix
    1. A such that the y = Ax gives rise to counter-clockwise rotation through an angle α.
    2. B such that y = Bx gives rise to the reflection along the line y = (tanγ)x.

      Now, let C and D be two 2×2 matrices such that y = Cx gives rise to counter-clockwise rotation through an angle β and y = Dx gives rise to the reflection along the line y = (tanδ)x, respectively. Then prove that

    3. y = (AC)x or y = (CA)x give rise to counter-clockwise rotation through an angle α+β.
    4. y = (BD)x or y = (DB)x give rise to rotations. Which angles do they represent?
    5. What can you say about y = (AB)x or y = (BA)x ?
  4. Let A = [1   0]
 0  - 1,B = [cosα  - sinα ]
 sin α   cosα and C = [cos θ - sin θ]
 sinθ   cosθ. If x = [x1]
 x
  2 and y = [y1]
 y
  2 then geometrically interpret the following:
    1. y = Ax,y = Bx and y = Cx.
    2. y = (BC)x,y = (CB)x,y = (BA)x and y = (AB)x.
  5. Consider the two coordinate transformations
    x1
    = a11y1 + a12y2
    x2
    = a21y1 + a22y2
    and
    y1
    = b11z1 + b12z2
    y2
    = b21z1 + b22z2
    .
    1. Compose the two transformations to express x1,x2 in terms of z1,z2.
    2. If xt = [x1,x2],yt = [y1,y2] and zt = [z1,z2] then find matrices A,B and C such that x = Ay,y = Bz and x = Cz.
    3. Is C = AB?
  6. Let A be an n × n matrix. Then trace of A, denoted tr(A), is defined as
    tr(A ) = a + a  + ⋅⋅⋅a  .
        11   22     nn
    1. Let A = [    ]
 3  2
 2  2 and B = [       ]
  4   - 3
 - 5  1. Compute tr(A) and tr(B).
    2. Then for two square matrices, A and B of the same order, prove that
      1. tr (A + B) = tr (A) + tr (B).
      2. tr (AB) = tr (BA).
    3. Prove that there do not exist matrices A and B such that AB - BA = cIn for any c0.
  7. Let A and B be two m × n matrices with real entries. Then prove that
    1. Ax = 0 for all n × 1 vector x with real entries implies A = 0, the zero matrix.
    2. Ax = Bx for all n × 1 vector x with real entries implies A = B.
  8. Let A be an n×n matrix such that AB = BA for all n×n matrices B. Show that A = αI for some α .
  9. Let A = [1  2  3]
 2  1  1.
    1. Find a matrix B such that AB = I2.
    2. What can you say about the number of such matrices? Give reasons for your answer.
    3. Does there exist a matrix C such that CA = I3? Give reasons for your answer.
  10. Let A = ⌊ 1  0 |0  1 ⌋
| 0  1 |1  1 |
||------|-----||
⌈ 0  1 |1  0 ⌉
  0  1 |0  1 and B = ⌊  1  2 | 2   1⌋
|  1  1 | 2   1|
||-------|------||
⌈  1  1 | 1   1⌉
  - 1 1 |- 1  1. Compute the matrix product AB using the block matrix multiplication.
  11. Let A = [     ]
 P  Q
 R   S. If P,Q,R and S are symmetric, is the matrix A symmetric? If A is symmetric, is it necessary that the matrices P,Q,R and S are symmetric?
  12. Let A be a 3 × 3 matrix and let A = [        ]
 A11  A12
 A21   c, where A11 is a 2 × 2 invertible matrix and c is a real number.
    1. If p = c - A21A11-1A12 is non-zero, prove that B = [B    B  ]
  11   1-21
 B21  p is the inverse of A, where B11 = A11-1 + A11-1A12p-1A21A11-1, B12 = -A11-1A12p-1 and B21 = -p-1A21A11-1.
    2. Find the inverse of the matrices ⌊         |  ⌋
   0   - 1|2
|⌈  1    1 |4 |⌉
  -- 2--1-|1--
          | and ⌊         |   ⌋
   0   - 1| 2
|⌈  3   1  | 4 |⌉
 ---2--5--|--3-
          |.
  13. Let x be an n × 1 matrix satisfying xtx = 1.
    1. Define A = In - 2xxt. Prove that A is symmetric and A2 = I. The matrix A is commonly known as the Householder matrix.
    2. Let α1 be a real number and define A = In - αxxt. Prove that A is symmetric and invertible [Hint: the inverse is also of the form In + βxxt for some value of β].
  14. Let A be an n × n invertible matrix and let x and y be two n × 1 matrices. Also, let β be a real number such that α = 1 + βytA-1x0. Then prove the famous Shermon-Morrison formula
    (A + βxyt)-1 = A -1 - β-A- 1xytA -1.
                    α
    This formula gives the information about the inverse when an invertible matrix is modified by a rank one matrix.
  15. Let J be an n × n matrix having each entry 1.
    1. Prove that J2 = nJ.
    2. Let α1212 . Prove that there exist α33 such that
      (α1In + β1J)⋅(α2In + β2J) = α3In + β3J.
    3. Let α,β R with α0 and α+0 and define A = αIn+βJ. Prove that A is invertible.
  16. Let A be an upper triangular matrix. If A*A = AA* then prove that A is a diagonal matrix. The same holds for lower triangular matrix.

1.4 Summary

In this chapter, we started with the definition of a matrix and came across lots of examples. In particular, the following examples were important:

  1. The zero matrix of size m × n, denoted 0m×n or 0.
  2. The identity matrix of size n × n, denoted In or I.
  3. Triangular matrices
  4. Hermitian/Symmetric matrices
  5. Skew-Hermitian/skew-symmetric matrices
  6. Unitary/Orthogonal matrices

We also learnt product of two matrices. Even though it seemed complicated, it basically tells the following:

  1. Multiplying by a matrix on the left to a matrix A is same as row operations.
  2. Multiplying by a matrix on the right to a matrix A is same as column operations.

Chapter 2
System of Linear Equations

2.1 Introduction

Let us look at some examples of linear systems.

  1. Suppose a,b . Consider the system ax = b.
    1. If a0 then the system has a unique solution x =  b
a.
    2. If a = 0 and
      1. b0 then the system has no solution.
      2. b = 0 then the system has infinite number of solutions, namely all x .
  2. Consider a system with 2 equations in 2 unknowns. The equation ax + by = c represents a line in 2 if either a0 or b0. Thus the solution set of the system
    a1x+ b1y = c1,a2x+ b2y = c2
    is given by the points of intersection of the two lines. The different cases are illustrated by examples (see Figure 1).
    1. Unique Solution
      x + 2y = 1 and x + 3y = 1. The unique solution is (x,y)t = (1,0)t.
      Observe that in this case, a1b2 - a2b10.
    2. Infinite Number of Solutions
      x + 2y = 1 and 2x + 4y = 2. The solution set is (x,y)t = (1 - 2y,y)t = (1,0)t + y(-2,1)t with y arbitrary as both the equations represent the same line. Observe the following:
      1. Here, a1b2 - a2b1 = 0,a1c2 - a2c1 = 0 and b1c2 - b2c1 = 0.
      2. The vector (1,0)t corresponds to the solution x = 1,y = 0 of the given system whereas the vector (-2,1)t corresponds to the solution x = -2,y = 1 of the system x + 2y = 0,2x + 4y = 0.
    3. No Solution
      x + 2y = 1 and 2x + 4y = 3. The equations represent a pair of parallel lines and hence there is no point of intersection. Observe that in this case, a1b2 - a2b1 = 0 but a1c2 - a2c10.

    PIC

  3. As a last example, consider 3 equations in 3 unknowns.
    A linear equation ax + by + cz = d represent a plane in 3 provided (a,b,c)(0,0,0). Here, we have to look at the points of intersection of the three given planes.

    1. Unique Solution
      Consider the system x + y + z = 3,x + 4y + 2z = 7 and 4x + 10y - z = 13. The unique solution to this system is (x,y,z)t = (1,1,1)t; i.e. the three planes intersect at a point.
    2. Infinite Number of Solutions
      Consider the system x + y + z = 3,x + 2y + 2z = 5 and 3x + 4y + 4z = 11. The solution set is (x,y,z)t = (1,2 - z,z)t = (1,2,0)t + z(0,-1,1)t, with z arbitrary. Observe the following:
      1. Here, the three planes intersect in a line.
      2. The vector (1,2,0)t corresponds to the solution x = 1,y = 2 and z = 0 of the linear system x + y + z = 3,x + 2y + 2z = 5 and 3x + 4y + 4z = 11. Also, the vector (0,-1,1)t corresponds to the solution x = 0,y = -1 and z = 1 of the linear system x + y + z = 0,x + 2y + 2z = 0 and 3x + 4y + 4z = 0.
    3. No Solution
      The system x + y + z = 3,x + 2y + 2z = 5 and 3x + 4y + 4z = 13 has no solution. In this case, we get three parallel lines as intersections of the above planes, namely
      1. a line passing through (1,2,0) with direction ratios (0,-1,1),
      2. a line passing through (3,1,0) with direction ratios (0,-1,1), and
      3. a line passing through (-1,4,0) with direction ratios (0,-1,1).

      The readers are advised to supply the proof.

Definition 2.1.1 (Linear System) A system of m linear equations in n unknowns x1,x2,,xn is a set of equations of the form

  a11x1 + a12x2 + ⋅⋅⋅+a1nxn =  b1
  a  x + a  x + ⋅⋅⋅+a  x   =   b
   21. 1   22 2       2n n      .2
    ..                          ..                    (2.1.1)

am1x1 + am2x2 + ⋅⋅⋅+ amnxn =   bm
where for 1 i n, and 1 j m;aij,bi . Linear System (2.1.1) is called homogeneous if b1 = 0 = b2 = ⋅⋅⋅ = bm and non-homogeneous otherwise.

We rewrite the above equations in the form Ax = b, where
A = ⌊               ⌋
|a11  a12  ⋅⋅⋅  a1n |
||a21  a22  ⋅⋅⋅  a2n ||
⌈...   ...   ...   ... ⌉
am1  am2  ⋅⋅⋅ amn,x = ⌊   ⌋
| x1|
|| x2||
⌈ ... ⌉
 xn, and b = ⌊   ⌋
| b1|
|| b2||
⌈ ... ⌉
 bm

The matrix A is called the coefficient matrix and the block matrix [Ab ], is called the augmented matrix of the linear system (2.1.1).

Remark 2.1.2

  1. The first column of the augmented matrix corresponds to the coefficients of the variable x1.
  2. In general, the jth column of the augmented matrix corresponds to the coefficients of the variable xj, for j = 1,2,,n.
  3. The (n + 1)th column of the augmented matrix consists of the vector b.
  4. The ith row of the augmented matrix represents the ith equation for i = 1,2,,m.

    That is, for i = 1,2,,m and j = 1,2,,n, the entry aij of the coefficient matrix A corresponds to the ith linear equation and the jth variable xj.

Definition 2.1.3 For a system of linear equations Ax = b, the system Ax = 0 is called the associated homogeneous system.

Definition 2.1.4 (Solution of a Linear System) A solution of Ax = b is a column vector y with entries y1,y2,,yn such that the linear system (2.1.1) is satisfied by substituting yi in place of xi . The collection of all solutions is called the solution set of the system.

That is, if yt = [y1,y2,,yn] is a solution of the linear system Ax = b then Ay = b holds. For example, from Example 3.3a, we see that the vector yt = [1,1,1] is a solution of the system Ax = b, where A = ⌊1   1   1⌋
⌈1   4   2⌉

 4  10  - 1,xt = [x,y,z] and bt = [3,7,13].

We now state a theorem about the solution set of a homogeneous system. The readers are advised to supply the proof.

Theorem 2.1.5 Consider the homogeneous linear system Ax = 0. Then

  1. The zero vector, 0 = (0,,0)t, is always a solution, called the trivial solution.
  2. Suppose x1,x2 are two solutions of Ax = 0. Then k1x1 + k2x2 is also a solution of Ax = 0 for any k1,k2 .

Remark 2.1.6

  1. A non-zero solution of Ax = 0 is called a non-trivial solution.
  2. If Ax = 0 has a non-trivial solution, say y0 then z = cy for every c is also a solution. Thus, the existence of a non-trivial solution of Ax = 0 is equivalent to having an infinite number of solutions for the system Ax = 0.
  3. If u,v are two distinct solutions of Ax = b then one has the following:
    1. u - v is a solution of the system Ax = 0.
    2. Define xh = u - v. Then xh is a solution of the homogeneous system Ax = 0.
    3. That is, any two solutions of Ax = b differ by a solution of the associated homogeneous system Ax = 0.
    4. Or equivalently, the set of solutions of the system Ax = b is of the form, {x0+xh}; where x0 is a particular solution of Ax = b and xh is a solution of the associated homogeneous system Ax = 0.

2.1.1 A Solution Method

Example 2.1.7 Solve the linear system y + z = 2,2x + 3z = 5,x + y + z = 3.

Solution: In this case, the augmented matrix is ⌊          ⌋
  0 1  1  2
⌈ 2 0  3  5⌉
  1 1  1  3 and the solution method proceeds along the following steps.

  1. Interchange 1st and 2nd equation.
    2x + 3z  = 5               ⌊2  0  3  5⌋
                           ⌈          ⌉
 y + z   = 2                0  1  1  2  .
x+ y+ z  = 3                1  1  1  3
  2. Replace 1st equation by 1st equation times 1
2.
     x + 3z   = 5               ⌊1  0  3  5⌋
  y+ 2z    = 22               ⌈0  1  21  22⌉ .
x + y+ z  = 3                1  1  1  3
  3. Replace 3rd equation by 3rd equation minus the 1st equation.
    x + 3z  = 5               ⌊ 1 0   3   5⌋
 y +2z   = 22               ⌈ 0 1   21   22⌉ .
    1     1                        1  1
 y- 2z  = 2                 0 1  - 2  2
  4. Replace 3rd equation by 3rd equation minus the 2nd equation.
    x + 3z   = 5               ⌊ 1 0   3    5 ⌋
 y+ 2z    = 22               ⌈ 0 1   21    22 ⌉.
   3       3                        3    3
 - 2z   = -2                 0 0  - 2  - 2
  5. Replace 3rd equation by 3rd equation times -2
 3.
    x + 32z  = 52               ⌊1  0  32  52⌋
 y+ z   = 2               ⌈0  1  1  2⌉ .
   z    = 1                0  0  1  1

The last equation gives z = 1. Using this, the second equation gives y = 1. Finally, the first equation gives x = 1. Hence the solution set is {(x,y,z)t : (x,y,z) = (1,1,1)}, a unique solution.

In Example 2.1.7, observe that certain operations on equations (rows of the augmented matrix) helped us in getting a system in Item 5, which was easily solvable. We use this idea to define elementary row operations and equivalence of two linear systems.

Definition 2.1.8 (Elementary Row Operations) Let A be an m×n matrix. Then the elementary row operations are defined as follows:

  1. Rij : Interchange of the ith and the jth row of A.
  2. For c0, Rk(c): Multiply the kth row of A by c.
  3. For c0, Rij(c): Replace the jth row of A by the jth row of A plus c times the ith row of A.

Definition 2.1.9 (Equivalent Linear Systems) Let [Ab] and [Cd] be augmented matrices of two linear systems. Then the two linear systems are said to be equivalent if [Cd] can be obtained from [Ab] by application of a finite number of elementary row operations.

Definition 2.1.10 (Row Equivalent Matrices) Two matrices are said to be row-equivalent if one can be obtained from the other by a finite number of elementary row operations.

Thus, note that linear systems at each step in Example 2.1.7 are equivalent to each other. We also prove the following result that relates elementary row operations with the solution set of a linear system.

Lemma 2.1.11 Let Cx = d be the linear system obtained from Ax = b by application of a single elementary row operation. Then Ax = b and Cx = d have the same solution set.

Proof.  We prove the result for the elementary row operation Rjk(c) with c0. The reader is advised to prove the result for other elementary operations.

In this case, the systems Ax = b and Cx = d vary only in the kth equation. Let (α12,n) be a solution of the linear system Ax = b. Then substituting for αi’s in place of xi’s in the kth and jth equations, we get

a  α + a  α + ⋅⋅⋅a  α  = b,and a α  + a α  + ⋅⋅⋅a  α  = b .
 k1 1   k2 2      kn n   k      j1 1   j2 2     jn n    j
Therefore,
(ak1 + caj1)α1 + (ak2 + caj2)α2 + ⋅⋅⋅+ (akn + cajn)αn = bk + cbj.
(2.1.2)

But then the kth equation of the linear system Cx = d is

(ak1 + caj1)x1 + (ak2 + caj2)x2 + ⋅⋅⋅+ (akn + cajn)xn = bk + cbj.
(2.1.3)

Therefore, using Equation (2.1.2), (α12,n) is also a solution for kth Equation (2.1.3).

Use a similar argument to show that if (β12,n) is a solution of the linear system Cx = d then it is also a solution of the linear system Ax = b. Hence, the required result follows.

The readers are advised to use Lemma 2.1.11 as an induction step to prove the main result of this subsection which is stated next.

Theorem 2.1.12 Two equivalent linear systems have the same solution set.

2.1.2 Gauss Elimination Method

We first define the Gauss elimination method and give a few examples to understand the method.

Definition 2.1.13 (Forward/Gauss Elimination Method) The Gaussian elimination method is a procedure for solving a linear system Ax = b (consisting of m equations in n unknowns) by bringing the augmented matrix

                                      |
      ⌊  a11  a12  ⋅⋅⋅  a1m   ⋅⋅⋅  a1n  |b1 ⌋
      |  a21  a22  ⋅⋅⋅  a2m   ⋅⋅⋅  a2n  |b2 |
[Ab] = ||  ..    ..   ..    ..         ..  | .. ||
      ⌈   .    .     .   .         .  | . ⌉
         am1  am2  ⋅⋅⋅ amm   ⋅⋅⋅ amn  |bm
to an upper triangular form
⌊                             |   ⌋
  c11  c12  ⋅⋅⋅  c1m   ⋅⋅⋅  c1n  |d1
||  0   c22  ⋅⋅⋅  c2m   ⋅⋅⋅  c2n  |d2 ||
|⌈  ..    ..  ..    ..         ..  |..  |⌉
   .    .    .   .         .  |.
   0   0   ⋅⋅⋅ cmm   ⋅⋅⋅ cmn  |dm
by application of elementary row operations. This elimination process is also called the forward elimination method.

We have already seen an example before defining the notion of row equivalence. We give two more examples to illustrate the Gauss elimination method.

Example 2.1.14 Solve the following linear system by Gauss elimination method.

x + y+ z = 3,x + 2y+ 2z = 5,3x + 4y+ 4z = 11

Solution: Let A = ⌊       ⌋
 1  1  1
⌈1  2  2⌉
 3  4  4 and b = ⌊  ⌋
  3
⌈ 5⌉
 11. The Gauss Elimination method starts with the augmented matrix [Ab] and proceeds as follows:

  1. Replace 2nd equation by 2nd equation minus the 1st equation.
                                    ⌊          ⌋
  x+ y+ z     = 3               ⌈1  1  1  3⌉
   y + z      = 2                0  1  1  2  .
3x + 4y+ 4z  = 11                3  4  4 11
  2. Replace 3rd equation by 3rd equation minus 3 times 1st equation.
                               ⌊          ⌋
x+ y+ z  = 3               ⌈1  1  1  3⌉
 y + z   = 2                0  1  1  2  .
 y + z   = 2                0  1  1  2
  3. Replace 3rd equation by 3rd equation minus the 2nd equation.
                               ⌊          ⌋
x+ y+ z  = 3                1  1  1  3
 y + z   = 2               ⌈0  1  1  2⌉ .
                            0  0  0  0

Thus, the solution set is {(x,y,z)t : (x,y,z) = (1,2-z,z)} or equivalently {(x,y,z)t : (x,y,z) = (1,2,0)+z(0,-1,1)}, with z arbitrary. In other words, the system has infinite number of solutions. Observe that the vector yt = (1,2,0) satisfies Ay = b and the vector zt = (0,-1,1) is a solution of the homogeneous system Ax = 0.

Example 2.1.15 Solve the following linear system by Gauss elimination method.

x + y+ z = 3,x + 2y+ 2z = 5,3x + 4y+ 4z = 12

Solution: Let A = ⌊       ⌋
 1  1  1
⌈1  2  2⌉
 3  4  4 and b = ⌊  ⌋
  3
⌈ 5⌉
 12. The Gauss Elimination method starts with the augmented matrix [Ab] and proceeds as follows:

  1. Replace 2nd equation by 2nd equation minus the 1st equation.
                                    ⌊          ⌋
  x+ y+ z     = 3               ⌈1  1  1  3⌉
   y + z      = 2                0  1  1  2  .
3x + 4y+ 4z  = 12                3  4  4 12
  2. Replace 3rd equation by 3rd equation minus 3 times 1st equation.
    x+ y+ z  = 3               ⌊1  1  1  3⌋
 y + z   = 2               ⌈0  1  1  2⌉ .
 y + z   = 3                0  1  1  3
  3. Replace 3rd equation by 3rd equation minus the 2nd equation.
    x+ y+ z  = 3               ⌊1  1  1  3⌋
 y + z   = 2               ⌈0  1  1  2⌉ .
   0     = 1                0  0  0  1

The third equation in the last step is

0x + 0y+ 0z = 1.
This can never hold for any value of x,y,z. Hence, the system has no solution.

Remark 2.1.16 Note that to solve a linear system Ax = b, one needs to apply only the row operations to the augmented matrix [Ab].

Definition 2.1.17 (Row Echelon Form of a Matrix) A matrix C is said to be in the row echelon form if

  1. the rows consisting entirely of zeros appears after the non-zero rows,
  2. the first non-zero entry in a non-zero row is 1. This term is called the leading term or a leading 1. The column containing this term is called the leading column.
  3. In any two successive non-rows, the leading 1 in the lower row occurs farther to the right than the leading 1 in the higher row.

Example 2.1.18 The matrices ⌊              ⌋
 0   1    4   2
|⌈0   0    1   1|⌉

 0   0    0   0 and ⌊                  ⌋
  1   1  0  2    3
|| 0   0  0  1    4 ||
⌈                  ⌉
  0   0  0  0    1 are in row-echelon form. Whereas, the matrices

                  ⌊                   ⌋     ⌊                   ⌋
⌊ 0   1   4   2⌋    1   1  0   2    3         1   1  0   2    3
|              |  ||                   ||     ||                   ||
⌈ 0   0   0   0⌉ ,⌈ 0   0  0   1    4 ⌉ and ⌈ 0   0  0   0    1 ⌉
  0   0   1   1     0   0  0   0    2         0   0  0   1    4
are not in row-echelon form.

Definition 2.1.19 (Basic, Free Variables) Let Ax = b be a linear system consisting of m equations in n unknowns. Suppose the application of Gauss elimination method to the augmented matrix [Ab] yields the matrix [Cd].

  1. Then the variables corresponding to the leading columns (in the first n columns of [Cd]) are called the basic variables.
  2. The variables which are not basic are called free variables.

The free variables are called so as they can be assigned arbitrary values. Also, the basic variables can be written in terms of the free variables and hence the value of basic variables in the solution set depend on the values of the free variables.

Remark 2.1.20 Observe the following:

  1. In Example 2.1.14, the solution set was given by
    (x,y,z) = (1,2 - z,z) = (1,2,0)+ z(0,- 1,1), with z arbitrary.
    That is, we had x,y as two basic variables and z as a free variable.
  2. Example 2.1.15 didn’t have any solution because the row-echelon form of the augmented matrix had a row of the form [0,0,0,1].
  3. Suppose the application of row operations to [Ab] yields the matrix [Cd] which is in row echelon form. If [Cd] has r non-zero rows then [Cd] will consist of r leading terms or r leading columns. Therefore, the linear system Ax = b will have r basic variables and n-r free variables.

Before proceeding further, we have the following definition.

Definition 2.1.21 (Consistent, Inconsistent) A linear system is called consistent if it admits a solution and is called inconsistent if it admits no solution.

We are now ready to prove conditions under which the linear system Ax = b is consistent or inconsistent.

Theorem 2.1.22 Consider the linear system Ax = b, where A is an m × n matrix and xt = (x1 , x2,,xn). If one obtains [Cd] as the row-echelon form of [Ab] with dt = (d1,d2,,dm) then

  1. Ax = b is inconsistent (has no solution) if [Cd] has a row of the form [0t1], where 0t = (0,,0).
  2. Ax = b is consistent (has a solution) if [Cd] has no row of the form [0t1]. Furthermore,
    1. if the number of variables equals the number of leading terms then Ax = b has a unique solution.
    2. if the number of variables is strictly greater than the number of leading terms then Ax = b has infinite number of solutions.

Proof.  Part 1: The linear equation corresponding to the row [0t1] equals

0x1 + 0x2 + ⋅⋅⋅+ 0xn = 1.
Obviously, this equation has no solution and hence the system Cx = d has no solution. Thus, by Theorem 2.1.12, Ax = b has no solution. That is, Ax = b is inconsistent.

Part 2: Suppose [Cd] has r non-zero rows. As [Cd] is in row echelon form there exist positive integers 1 i1 < i2 < < ir n such that entries cℓi for 1 r are leading terms. This in turn implies that the variables xij, for 1 j r are the basic variables and the remaining n - r variables, say xt1,xt2,,xtn-r, are free variables. So for each ℓ,1 r, one obtains xi + k>icℓkxk = d (k > i in the summation as [Cd] is an upper triangular matrix). Or equivalently,

           r         n-r
x  = d -  ∑   c x  - ∑  c  x  for 1 ≤ l ≤ r.
 iℓ   ℓ  j=ℓ+1 ℓij ij  s=1 ℓts ts
Hence, a solution of the system Cx = d is given by
                                                             ∑r
xts= 0 for s = 1,...,n - r and xir = dr,xir-1 = dr-1 - dr,...,xi1 = d1 - cℓijdj.
                                                             j=2
Thus, by Theorem 2.1.12 the system Ax = b is consistent. In case of Part 2a, there are no free variables and hence the unique solution is given by
                                    n
x = d  ,x    = d   - d ,...,x = d - ∑  c  d .
 n   n  n- 1   n-1   n      1   1  j=2 ℓij j
In case of Part 2b, there is at least one free variable and hence Ax = b has infinite number of solutions. Thus, the proof of the theorem is complete.

We omit the proof of the next result as it directly follows from Theorem 2.1.22.

Corollary 2.1.23 Consider the homogeneous system Ax = 0. Then

  1. Ax = 0 is always consistent as 0 is a solution.
  2. If m < n then n - m > 0 and there will be at least n - m free variables. Thus Ax = 0 has infinite number of solutions. Or equivalently, Ax = 0 has a non-trivial solution.

We end this subsection with some applications related to geometry.

Example 2.1.24

  1. Determine the equation of the line/circle that passes through the points (-1,4),(0,1) and (1,4).
    Solution: The general equation of a line/circle in 2-dimensional plane is given by a(x2 + y2) + bx + cy + d = 0, where a,b,c and d are the unknowns. Since this curve passes through the given points, we have
          2   2
a((- 1) + 4 )+ (- 1)b+ 4c+ d = = 0
   a((0)2 +12)+ (0)b+ 1c+ d  =  = 0
   a((1)2 +42)+ (1)b+ 4c+ d  =  = 0.
    Solving this system, we get (a,b,c,d) = (3-
13d,0,-16
13d,d). Hence, taking d = 13, the equation of the required circle is
    3(x2 + y2)- 16y + 13 = 0.
  2. Determine the equation of the plane that contains the points (1,1,1),(1,3,2) and (2,-1,2).
    Solution: The general equation of a plane in 3-dimensional space is given by ax + by + cz + d = 0, where a,b,c and d are the unknowns. Since this plane passes through the given points, we have
      a+ b+ c+ d  =   = 0
a+ 3b+ 2c+ d  =   = 0

2a- b+ 2c+ d  =   = 0.
    Solving this system, we get (a,b,c,d) = (-4
3d,-d
3,-2
3d,d). Hence, taking d = 3, the equation of the required plane is -4x - y + 2z + 3 = 0.
  3. Let A = ⌊ 2  3   4⌋
⌈ 0  - 1 0⌉

  0  - 3 4.
    1. Find a non-zero xt 3 such that Ax = 2x.
    2. Does there exist a non-zero vector yt 3 such that Ay = 4y?

    Solution of Part 3a: Solving for Ax = 2x is same as solving for (A - 2I)x = 0. This leads to the augmented matrix ⌊            ⌋
  0  3   4  0
⌈ 0 - 3  0  0⌉
  0  4   2  0. Check that a non-zero solution is given by xt = (1,0,0).

    Solution of Part 3b: Solving for Ay = 4y is same as solving for (A - 4I)y = 0. This leads to the augmented matrix ⌊             ⌋
⌈- 2  3   4  0⌉
  0   - 5 0  0
  0   - 3 0  0. Check that a non-zero solution is given by yt = (2,0,1).

Exercise 2.1.25

  1. Determine the equation of the curve y = ax2 + bx + c that passes through the points (-1,4),(0,1) and (1,4).
  2. Solve the following linear system.
    1. x + y + z + w = 0,x - y + z + w = 0 and -x + y + 3z + 3w = 0.
    2. x + 2y = 1,x + y + z = 4 and 3y + 2z = 1.
    3. x + y + z = 3,x + y - z = 1 and x + y + 7z = 6.
    4. x + y + z = 3,x + y - z = 1 and x + y + 4z = 6.
    5. x + y + z = 3,x + y - z = 1,x + y + 4z = 6 and x + y - 4z = -1.
  3. For what values of c and k, the following systems have i) no solution, ii) a unique solution and iii) infinite number of solutions.
    1. x + y + z = 3,x + 2y + cz = 4,2x + 3y + 2cz = k.
    2. x + y + z = 3,x + y + 2cz = 7,x + 2y + 3cz = k.
    3. x + y + 2z = 3,x + 2y + cz = 5,x + 2y + 4z = k.
    4. kx + y + z = 1,x + ky + z = 1,x + y + kz = 1.
    5. x + 2y - z = 1,2x + 3y + kz = 3,x + ky + 3z = 2.
    6. x - 2y = 1,x - y + kz = 1,ky + 4z = 6.
  4. For what values of a, does the following systems have i) no solution, ii) a unique solution and iii) infinite number of solutions.
    1. x + 2y + 3z = 4,2x + 5y + 5z = 6,2x + (a2 - 6)z = a + 20.
    2. x + y + z = 3,2x + 5y + 4z = a,3x + (a2 - 8)z = 12.
  5. Find the condition(s) on x,y,z so that the system of linear equations given below (in the unknowns a, b and c) is consistent?
    1. a + 2b - 3c = x,2a + 6b - 11c = y,a - 2b + 7c = z
    2. a + b + 5c = x,a + 3c = y,2a - b + 4c = z
    3. a + 2b + 3c = x,2a + 4b + 6c = y,3a + 6b + 9c = z
  6. Let A be an n×n matrix. If the system A2x = 0 has a non trivial solution then show that Ax = 0 also has a non trivial solution.
  7. Prove that we need to have 5 set of distinct points to specify a general conic in 2-dimensional plane.
  8. Let ut = (1,1,-2) and vt = (-1,2,3). Find condition on x,y and z such that the system cut + dvt = (x,y,z) in the unknowns c and d is consistent.

2.1.3 Gauss-Jordan Elimination

The Gauss-Jordan method consists of first applying the Gauss Elimination method to get the row-echelon form of the matrix [Ab] and then further applying the row operations as follows. For example, consider Example 2.1.7. We start with Step 5 and apply row operations once again. But this time, we start with the 3rd row.

  1. Replace 2nd equation by 2nd equation minus the 3rd equation.
        3     5               ⌊      3  5⌋
x + 2z  = 2               ⌈1  0  2  2⌉
   y    = 2                0  1  0  1  .
   z    = 1                0  0  1  1
  2. Replace 1st equation by 1st equation minus 3
2 times 3rd equation.
    x  = 1               ⌊1  0  0  1⌋
                     ⌈          ⌉.
y  = 1                0  1  0  1
z  = 1                0  0  1  1
  3. Thus, the solution set equals {(x,y,z)t : (x,y,z) = (1,1,1)}.

Definition 2.1.26 (Row-Reduced Echelon Form) A matrix C is said to be in the row-reduced echelon form or reduced row echelon form if

  1. C is already in the row echelon form;
  2. the leading column containing the leading 1 has every other entry zero.

A matrix which is in the row-reduced echelon form is also called a row-reduced echelon matrix.

Example 2.1.27 Let A = ⌊              ⌋
| 0  1    4   2|
⌈ 0  0    1   1⌉
  0  0    0   0 and B = ⌊                   ⌋
|  1   1 0   2    3 |
|⌈  0   0 0   1    4 |⌉
   0   0 0   0    1. Then A and B are in row echelon form. If C and D are the row-reduced echelon forms of A and B, respectively then C = ⌊               ⌋
|0   1    0   - 2|
⌈0   0    1   1 ⌉
 0   0    0   0 and D = ⌊ 1   1  0  0    0 ⌋
||                  ||
⌈ 0   0  0  1    0 ⌉
  0   0  0  0    1.

Definition 2.1.28 (Back Substitution/Gauss-Jordan Method) The procedure to get The row-reduced echelon matrix from the row-echelon matrix is called the back substitution. The elimination process applied to obtain the row-reduced echelon form of the augmented matrix is called the Gauss-Jordan elimination method.

That is, the Gauss-Jordan elimination method consists of both the forward elimination and the backward substitution.

Remark 2.1.29 Note that the row reduction involves only row operations and proceeds from left to right. Hence, if A is a matrix consisting of first s columns of a matrix C, then the row-reduced form of A will consist of the first s columns of the row-reduced form of C.

The proof of the following theorem is beyond the scope of this book and is omitted.

Theorem 2.1.30 The row-reduced echelon form of a matrix is unique.

Remark 2.1.31 Consider the linear system Ax = b. Then Theorem 2.1.30 implies the following:

  1. The application of the Gauss Elimination method to the augmented matrix may yield different matrices even though it leads to the same solution set.
  2. The application of the Gauss-Jordan method to the augmented matrix yields the same matrix and also the same solution set even though we may have used different sequence of row operations.

Example 2.1.32 Consider Ax = b, where A is a 3 × 3 matrix. Let [Cd] be the row-reduced echelon form of [Ab]. Also, assume that the first column of A has a non-zero entry. Then the possible choices for the matrix [Cd] with respective solution sets are given below:

  1. ⌊         ⌋
⌈1 0  0  d1⌉
0 1  0  d2
0 0  1  d3. Ax = b has a unique solution, (x,y,z) = (d1,d2,d3).
  2. ⌊         ⌋
1 0  α  d1
⌈0 1  β  d2⌉
0 0  0   1,⌊           ⌋
 1  α  0  d1
⌈0  0  1  d2⌉
 0  0  0  1 or ⌊           ⌋
 1  α  β  d1
⌈0  0  0   1⌉
 0  0  0   0. Ax = b has no solution for any choice of α,β.
  3. ⌊         ⌋
1 0  α  d1
⌈0 1  β  d2⌉
0 0  0   0,⌊           ⌋
 1  α  0  d1
⌈0  0  1  d2⌉
 0  0  0  0,⌊           ⌋
 1  α  β  d1
⌈0  0  0  0 ⌉
 0  0  0  0. Ax = b has Infinite number of solutions for every choice of α,β.

Exercise 2.1.33

  1. Let Ax = b be a linear system in 2 unknowns. What are the possible choices for the row-reduced echelon form of the augmented matrix [Ab]?
  2. Find the row-reduced echelon form of the following matrices:
    ⌊       ⌋  ⌊          ⌋ ⌊          ⌋  ⌊- 1  - 1 - 2  3 ⌋
 0  0  1    0  1  1  3    0   - 1 1   |                |
⌈1  0  3⌉ ,⌈0  0  1  3⌉,⌈ - 2  0  3⌉ ,|⌈ 3   3   - 3 - 3|⌉.
 3  0  7    1  1  0  0    - 5  1  0     1   1    2   2
                                       - 1  - 1  2  - 2
  3. Find all the solutions of the following system of equations using Gauss-Jordan method. No other method will be accepted.

    x+ y – 2 u+ v = 2
    z+ u+ 2 v = 3
    v + w = 3
    v + 2 w= 5

2.2 Elementary Matrices

In the previous section, we solved a system of linear equations with the help of either the Gauss Elimination method or the Gauss-Jordan method. These methods required us to make row operations on the augmented matrix. Also, we know that (see Section 1.2.1 ) the row-operations correspond to multiplying a matrix on the left. So, in this section, we try to understand the matrices which helped us in performing the row-operations and also use this understanding to get some important results in the theory of square matrices.

Definition 2.2.1 A square matrix E of order n is called an elementary matrix if it is obtained by applying exactly one row operation to the identity matrix, In.

Remark 2.2.2 Fix a positive integer n. Then the elementary matrices of order n are of three types and are as follows:

  1. Eij corresponds to the interchange of the ith and the jth row of In.
  2. For c0, Ek(c) is obtained by multiplying the kth row of In by c.
  3. For c0, Eij(c) is obtained by replacing the jth row of In by the jth row of In plus c times the ith row of In.

Example 2.2.3

  1. In particular, for n = 3 and a real number c0, one has
         ⌊       ⌋         ⌊       ⌋             ⌊       ⌋
     ⌈1  0  0⌉         ⌈c  0  0⌉             ⌈1  0  0⌉
E23 = 0  0  1  ,E1 (c) =  0  1  0 , and E32(c) = 0 1  c  .
      0  1  0           0  0  1               0  0  1
  2. Let A = ⌊          ⌋
 1  2  3  0
⌈2  0  3  4⌉
 3  4  5  6 and B = ⌊         ⌋
 1  2  3  0
⌈3  4  5  6⌉
 2  0  3  4. Then B is obtained from A by the interchange of 2nd and 3rd row. Verify that
           ⌊      ⌋ ⌊          ⌋   ⌊         ⌋
       ⌈1  0 0⌉ ⌈1  2  3  0⌉   ⌈1  2  3 0⌉
E23A =  0  0 1   2  0  3  4  =  3  4  5 6  = B.
        0  1 0   3  4  5  6     2  0  3 4
  3. Let A = ⌊         ⌋
 0  1  1  2
⌈2  0  3  5⌉
 1  1  1  3. Then B = ⌊          ⌋
 1  0  0  1
⌈0  1  0  1⌉
 0  0  1  1 is the row-reduced echelon form of A. The readers are advised to verify that
    B = E32(- 1) ⋅E21(- 1)⋅E3(1∕3)⋅E23(2)⋅E23 ⋅E12(- 2)⋅E13 ⋅A.
    Or equivalently, check that
                       ⌊          ⌋                  ⌊             ⌋
                    1  1  1  3                    1   1  1   3
     E13A  =  A1 = ⌈2  0  3  5⌉,E12(- 2)A1 = A2 = ⌈0  - 2 1  - 1⌉,
                    0  1  1  2                    0   1  1   2
                   ⌊1   1   1  3 ⌋                ⌊ 1  1 1  3⌋
                   ⌈             ⌉                ⌈          ⌉
    E23A2  =  A3 =  0   1   1  2  ,E23(2)A3 = A4 =  0  1 1  2  ,
                    0  - 2  1 - 1                   0  0 3  3
                   ⌊1  1  1  3⌋                  ⌊1  0  0  1⌋
E3(1∕3)A4  =  A5 = ⌈0  1  1  2⌉,E21(- 1)A5 = A6 = ⌈0  1  1  2⌉,
                    0  0  1  1                    0  0  1  1
                  ⌊          ⌋
                    1 0  0  1
E32(- 1)A6 =  B = ⌈ 0 1  0  1⌉ .
                    0 0  1  1

Remark 2.2.4 Observe the following:

  1. The inverse of the elementary matrix Eij is the matrix Eij itself. That is, EijEij = I = Eij Eij.
  2. Let c0. Then the inverse of the elementary matrix Ek(c) is the matrix Ek(1∕c). That is, Ek (c)Ek(1∕c) = I = Ek(1∕c)Ek(c).
  3. Let c0. Then the inverse of the elementary matrix Eij(c) is the matrix Eij(-c). That is, Eij (c)Eij(-c) = I = Eij(-c)Eij(c).

    That is, all the elementary matrices are invertible and the inverses are also elementary matrices.

  4. Suppose the row-reduced echelon form of the augmented matrix [Ab] is the matrix [Cd]. As row operations correspond to multiplying on the left with elementary matrices, we can find elementary matrices, say E1,E2,,Ek, such that
    Ek ⋅Ek-1⋅⋅⋅E2 ⋅E1 ⋅[Ab] = [Cd ].
    That is, the Gauss-Jordan method (or Gauss Elimination method) is equivalent to multiplying by a finite number of elementary matrices on the left to [Ab].

We are now ready to prove a equivalent statements in the study of invertible matrices.

Theorem 2.2.5 Let A be a square matrix of order n. Then the following statements are equivalent.

  1. A is invertible.
  2. The homogeneous system Ax = 0 has only the trivial solution.
  3. The row-reduced echelon form of A is In.
  4. A is a product of elementary matrices.

Proof.  1 =⇒2

As A is invertible, we have A-1A = In = AA-1. Let x0 be a solution of the homogeneous system Ax = 0. Then, Ax0 = 0 and Thus, we see that 0 is the only solution of the homogeneous system Ax = 0.

2 =⇒ 3

Let xt = [x1,x2,,xn]. As 0 is the only solution of the linear system Ax = 0, the final equations are x1 = 0, x2 = 0,,xn = 0. These equations can be rewritten as

1⋅x1 +0 ⋅x2 + 0⋅x3 + ⋅⋅⋅+ 0 ⋅xn  =  0
0⋅x1 +1 ⋅x2 + 0⋅x3 + ⋅⋅⋅+ 0 ⋅xn  =  0
0⋅x  +0 ⋅x + 1⋅x  + ⋅⋅⋅+ 0 ⋅x    =  0
   1      2     3           n
                            ...  =  ...

0⋅x1 +0 ⋅x2 + 0⋅x3 + ⋅⋅⋅+ 1 ⋅xn  =  0.
That is, the final system of homogeneous system is given by In x = 0. Or equivalently, the row-reduced echelon form of the augmented matrix [A0] is [In0]. That is, the row-reduced echelon form of A is In .

3 =⇒ 4

Suppose that the row-reduced echelon form of A is In. Then using Remark 2.2.4.4, there exist elementary matrices E1,E2,,Ek such that

E1E2⋅⋅⋅EkA = In.
(2.2.4)

Now, using Remark 2.2.4, the matrix Ej-1 is an elementary matrix and is the inverse of Ej for 1 j k. Therefore, successively multiplying Equation (2.2.4) on the left by E1-1,E2-1,,Ek-1, we get

A = E-k1E -k-11⋅⋅⋅E -21E-1 1
and thus A is a product of elementary matrices.

4 =⇒ 1

Suppose A = E1E2⋅⋅⋅Ek; where the Ei’s are elementary matrices. As the elementary matrices are invertible (see Remark 2.2.4) and the product of invertible matrices is also invertible, we get the required result.

As an immediate consequence of Theorem 2.2.5, we have the following important result.

Theorem 2.2.6 Let A be a square matrix of order n.

  1. Suppose there exists a matrix C such that CA = In. Then A-1 exists.
  2. Suppose there exists a matrix B such that AB = In. Then A-1 exists.

Proof.  Suppose there exists a matrix C such that CA = In. Let x0 be a solution of the homogeneous system Ax = 0. Then Ax0 = 0 and

x0 = In ⋅x0 = (CA )x0 = C (Ax0) = C0 = 0.
That is, the homogeneous system Ax = 0 has only the trivial solution. Hence, using Theorem 2.2.5, the matrix A is invertible.

Using the first part, it is clear that the matrix B in the second part, is invertible. Hence

AB = In = BA.
Thus, A is invertible as well.

Remark 2.2.7 Theorem 2.2.6 implies the following:

  1. “if we want to show that a square matrix A of order n is invertible, it is enough to show the existence of
    1. either a matrix B such that AB = In
    2. or a matrix C such that CA = In.
  2. Let A be an invertible matrix of order n. Suppose there exist elementary matrices E1,E2,,Ek such that E1E2⋅⋅⋅EkA = In. Then A-1 = E1E2⋅⋅⋅Ek.

Remark 2.2.7 gives the following method of computing the inverse of a matrix.
Summary: Let A be an n×n matrix. Apply the Gauss-Jordan method to the matrix [AIn]. Suppose the row-reduced echelon form of the matrix [AIn] is [BC]. If B = In, then A-1 = C or else A is not invertible.

Example 2.2.8 Find the inverse of the matrix ⌊       ⌋
⌈0  0  1⌉
 0  1  1
 1  1  1 using the Gauss-Jordan method.
Solution: let us apply the Gauss-Jordan method to the matrix ⌊         |        ⌋
  0  0  1 |1  0  0
⌈ 0  1  1 |0  1  0 ⌉
  1  1  1 |0  0  1.

  1.        |
⌊0 0  1 |1  0  0 ⌋
⌈0 1  1 |0  1  0 ⌉
1 1  1 |0  0  1
       |-R-→13         |
⌊ 1  1  1|0  0  1 ⌋
⌈ 0  1  1|0  1  0 ⌉
  0  0  1|1  0  0
         |
  2.        |
⌊1 1  1 |0  0  1 ⌋
⌈0 1  1 |0  1  0 ⌉
0 0  1 |1  0  0
       |
    -----→
R31(- 1)
    -----→
R32(- 1)
             |
⌊ 1  1 0 |- 1  0  1⌋
⌈ 0  1 0 |- 1  1  0⌉
  0  0 1 | 1   0  0
         |
  3. ⌊1 1  0 |- 1 0  1 ⌋
⌈0 1  0 |- 1 1  0 ⌉
       |
0 0  1 | 1  0  0-R---(--→1)
 21⌊ 1  0  0 | 0  - 1 1 ⌋
⌈ 0  1  0 |- 1  1  0 ⌉
          |
  0  0  1 | 1   0  0.

Thus, the inverse of the given matrix is ⌊ 0   - 1 1⌋
⌈- 1   1  0⌉

  1    0  0.

Exercise 2.2.9

  1. Find the inverse of the following matrices using the Gauss-Jordan method.
    (i)⌊      ⌋
 1 2  3
⌈1 3  2⌉
 2 4  7, (ii)⌊       ⌋
 1  3  3
⌈2  3  2⌉
 2  4  7, (iii)⌊       ⌋
 2  1  1
⌈1  2  1⌉
 1  1  2,(iv)⌊      ⌋
 0  0 2
⌈0  2 1⌉
 2  1 1.
  2. Which of the following matrices are elementary?
    ⌊       ⌋ ⌊       ⌋  ⌊        ⌋ ⌊       ⌋  ⌊       ⌋ ⌊       ⌋
 2  0  1   12  0  0    1  - 1 0    1  0 0    0  0  1   0  0  1
⌈0  1  0⌉,⌈0  1  0⌉ ,⌈0  1   0⌉ ,⌈ 5  1 0⌉ ,⌈0  1  0⌉,⌈1  0  0⌉ .
 0  0  1   0  0  1    0  0   1    0  0 1    1  0  0   0  1  0
  3. Let A = [    ]
 2  1
 1  2. Find the elementary matrices E1,E2,E3 and E4 such that E4 E3 E2 E1 A = I2.
  4. Let B = ⌊       ⌋
 1  1  1
⌈0  1  1⌉
 0  0  3. Determine elementary matrices E1,E2 and E3 such that E3 E2 E1 B = I3.
  5. In Exercise 2.2.9.3, let C = E4 E3 E2 E1. Then check that AC = I2.
  6. In Exercise 2.2.9.4, let C = E3 E2 E1. Then check that BC = I3.
  7. Find the inverse of the three matrices given in Example 2.2.3.3.
  8. Show that a triangular matrix A is invertible if and only if each diagonal entry of A is non-zero.
  9. Let A be a 1 × 2 matrix and B be a 2 × 1 matrix having positive entries. Which of BA or AB is invertible? Give reasons.
  10. Let A be an n × m matrix and B be an m × n matrix. Prove that
    1. the matrix I -BA is invertible if and only if the matrix I -AB is invertible [Hint: Use Theorem 2.2.5.2].
    2. (I - BA)-1 = I + B(I - AB)-1A whenever I - AB is invertible.
    3. (I - BA)-1B = B(I - AB)-1 whenever I - AB is invertible.
    4. (A-1 + B-1)-1 = A(A + B)-1B whenever A,B and A + B are all invertible.

We end this section by giving two more equivalent conditions for a matrix to be invertible.

Theorem 2.2.10 The following statements are equivalent for an n × n matrix A.

  1. A is invertible.
  2. The system Ax = b has a unique solution for every b.
  3. The system Ax = b is consistent for every b.

Proof.  1 =⇒2

Observe that x0 = A-1b is the unique solution of the system Ax = b.

2 =⇒ 3

The system Ax = b has a solution and hence by definition, the system is consistent.

3 =⇒ 1

For 1 i n, define ei = (0,,0,◟1◝◜◞ ith position,0,,0)t, and consider the linear system Ax = ei . By assumption, this system has a solution, say xi, for each i,1 i n. Define a matrix B = [x1,x2,,xn]. That is, the ith column of B is the solution of the system Ax = ei. Then

AB  = A[x1,x2...,xn] = [Ax1, Ax2...,Axn] = [e1,e2...,en] = In.
Therefore, by Theorem 2.2.6, the matrix A is invertible.

We now state another important result whose proof is immediate from Theorem 2.2.10 and Theorem 2.2.5 and hence the proof is omitted.

Theorem 2.2.11 Let A be an n × n matrix. Then the two statements given below cannot hold together.

  1. The system Ax = b has a unique solution for every b.
  2. The system Ax = 0 has a non-trivial solution.

Exercise 2.2.12

  1. Let A and B be two square matrices of the same order such that B = PA. Prove that A is invertible if and only if B is invertible.
  2. Let A and B be two m×n matrices. Then prove that the two matrices A,B are row-equivalent if and only if B = PA, where P is product of elementary matrices. When is this P unique?
  3. Let bt = [1,2,-1,-2]. Suppose A is a 4 × 4 matrix such that the linear system Ax = b has no solution. Mark each of the statements given below as true or false?
    1. The homogeneous system Ax = 0 has only the trivial solution.
    2. The matrix A is invertible.
    3. Let ct = [-1,-2,1,2]. Then the system Ax = c has no solution.
    4. Let B be the row-reduced echelon form of A. Then
      1. the fourth row of B is [0,0,0,0].
      2. the fourth row of B is [0,0,0,1].
      3. the third row of B is necessarily of the form [0,0,0,0].
      4. the third row of B is necessarily of the form [0,0,0,1].
      5. the third row of B is necessarily of the form [0,0,1], where α is any real number.

2.3 Rank of a Matrix

In the previous section, we gave a few equivalent conditions for a square matrix to be invertible. We also used the Gauss-Jordan method and the elementary matrices to compute the inverse of a square matrix A. In this section and the subsequent sections, we will mostly be concerned with m × n matrices.

Let A by an m×n matrix. Suppose that C is the row-reduced echelon form of A. Then the matrix C is unique (see Theorem 2.1.30). Hence, we use the matrix C to define the rank of the matrix A.

Definition 2.3.1 (Row Rank of a Matrix) Let C be the row-reduced echelon form of a matrix A. The number of non-zero rows in C is called the row-rank of A.

For a matrix A, we write ‘row-rank (A)’ to denote the row-rank of A. By the very definition, it is clear that row-equivalent matrices have the same row-rank. Thus, the number of non-zero rows in either the row echelon form or the row-reduced echelon form of a matrix are equal. Therefore, we just need to get the row echelon form of the matrix to know its rank.

Example 2.3.2

  1. Determine the row-rank of A = ⌊         ⌋
 1  2  1 1
⌈2  3  1 2⌉
 1  1  2 1.
    Solution: The row-reduced echelon form of A is obtained as follows:
    ⌊          ⌋    ⌊             ⌋   ⌊          ⌋    ⌊          ⌋
⌈1  2  1  1⌉    ⌈1   2   1   1⌉   ⌈1  2  1  1⌉    ⌈1  0  0  1⌉
 2  3  1  2  →   0  - 1 - 1  0  →   0 1  1  0  →   0  1  0  0 .
 1  1  2  1      0  - 1  1   0      0 0  2  0      0  0  1  0
    The final matrix has 3 non-zero rows. Thus row-rank(A)  =  3. This also follows from the third matrix.
  2. Determine the row-rank of A = ⌊            ⌋
 1  2  1 1  1
⌈2  3  1 2  2⌉
 1  1  0 1  1.
    Solution: row-rank(A) = 2 as one has the following:
    ⌊             ⌋      ⌊                ⌋    ⌊            ⌋
  1  2 1  1  1        1   2   1   1  1      1  2  1 1  1
⌈ 2  3 1  2  2⌉  →   ⌈0  - 1  - 1 0  0⌉ →  ⌈0  1  1 0  0⌉ .
  1  1 0  1  1        0  - 1  - 1 0  0      0  0  0 0  0

The following remark related to the augmented matrix is immediate as computing the rank only involves the row operations (also see Remark 2.1.29).

Remark 2.3.3 Let Ax = b be a linear system with m equations in n unknowns. Then the row-reduced echelon form of A agrees with the first n columns of [Ab], and hence

row- rank(A) ≤ row-rank([Ab ]).

Now, consider an m × n matrix A and an elementary matrix E of order n. Then the product AE corresponds to applying column transformation on the matrix A. Therefore, for each elementary matrix, there is a corresponding column transformation as well. We summarize these ideas as follows.

Definition 2.3.4 The column transformations obtained by right multiplication of elementary matrices are called column operations.

Example 2.3.5 Let A = ⌊          ⌋
  1 2  3  1
⌈ 2 0  3  2⌉
  3 4  5  3. Then

 ⌊ 1  0 0  0⌋   ⌊          ⌋       ⌊1  0  0 - 1⌋   ⌊         ⌋
 | 0  0 1  0|    1  3  2  1        |0  1  0  0 |    1  2  3  0
A|⌈ 0  1 0  0|⌉ = ⌈2  3  0  2⌉ and A |⌈0  0  1  0 |⌉ = ⌈2  0  3  0⌉ .
   0  0 0  1     3  5  4  3         0  0  0  1      3  4  5  0

Remark 2.3.6 After application of a finite number of elementary column operations (see Definition 2.3.4) to a matrix A, we can obtain a matrix B having the following properties:

  1. The first nonzero entry in each column is 1, called the leading term.
  2. Column(s) containing only 0’s comes after all columns with at least one non-zero entry.
  3. The first non-zero entry (the leading term) in each non-zero column moves down in successive columns.

We define column-rank of A as the number of non-zero columns in B.

It will be proved later that row-rank(A) = column-rank(A). Thus we are led to the following definition.

Definition 2.3.7 The number of non-zero rows in the row-reduced echelon form of a matrix A is called the rank of A, denoted rank(A).

we are now ready to prove a few results associated with the rank of a matrix.

Theorem 2.3.8 Let A be a matrix of rank r. Then there exist a finite number of elementary matrices E1,E2,,Es and F1,F2,,F such that

                      [     ]
                       Ir  0
E1E2...EsAF1F2 ...Fℓ = 0   0 .

Proof.  Let C be the row-reduced echelon matrix of A. As rank(A) = r, the first r rows of C are non-zero rows. So by Theorem 2.1.22, C will have r leading columns, say i1,i2,,ir. Note that, for 1 s r, the is th column will have 1 in the sth row and zero, elsewhere.

We now apply column operations to the matrix C. Let D be the matrix obtained from C by successively interchanging the sth and isth column of C for 1 s r. Then D has the form [Ir  B]
 0   0, where B is a matrix of an appropriate size. As the (1,1) block of D is an identity matrix, the block (1,2) can be made the zero matrix by application of column operations to D. This gives the required result.

The next result is a corollary of Theorem 2.3.8. It gives the solution set of a homogeneous system Ax = 0. One can also obtain this result as a particular case of Corollary 2.1.23.2 as by definition rank(A) m, the number of rows of A.

Corollary 2.3.9 Let A be an m × n matrix. Suppose rank(A) = r < n. Then Ax = 0 has infinite number of solutions. In particular, Ax = 0 has a non-trivial solution.

Proof.  By Theorem 2.3.8, there exist elementary matrices E1,,Es and F1,,F such that E1 E2 ⋅⋅⋅ EsAF1F2⋅⋅⋅F = [    ]
 Ir  0
 0  0. Define P = E1E2⋅⋅⋅Es and Q = F1F2⋅⋅⋅F. Then the matrix PAQ = [Ir 0]
 0  0. As Ei’s for 1 i s correspond only to row operations, we get AQ = [C |0 ]
  |, where C is a matrix of size m × r. Let Q1,Q2,,Qn be the columns of the matrix Q. Then check that AQi = 0 for i = r + 1,,n. Hence, the required results follows (use Theorem 2.1.5).

Exercise 2.3.10

  1. Determine ranks of the coefficient and the augmented matrices that appear in Exercise 2.1.25.2.
  2. Let P and Q be invertible matrices such that the matrix product PAQ is defined. Prove that rank(PAQ) = rank(A).
  3. Let A = [       ]
 2  4  8
 1  3  2 and B = [       ]
 1  0  0
 0  1  0. Find P and Q such that B = PAQ.
  4. Let A and B be two matrices. Prove that
    1. if A + B is defined, then rank(A + B) rank(A) + rank(B),
    2. if AB is defined, then rank(AB) rank(A) and rank(AB) rank(B).
  5. Let A be a matrix of rank r. Then prove that there exists invertible matrices Bi,Ci such that
    B1 A = [      ]
 R1  R2
 0   0,AC1 = [     ]
 S1  0
 S3  0,B2AC2 = [     ]
 A1  0
  0  0 and B3AC3 = [     ]
 Ir  0
 0   0, where the (1,1) block of each matrix is of size r × r. Also, prove that A1 is an invertible matrix.
  6. Let A be an m × n matrix of rank r. Then prove that A can be written as A = BC, where both B and C have rank r and B is of size m × r and C is of size r × n.
  7. Let A and B be two matrices such that AB is defined and rank(A) = rank(AB). Then prove that A = ABX for some matrix X. Similarly, if BA is defined and rank (A) = rank (BA), then A = Y BA for some matrix Y. [Hint: Choose invertible matrices P,Q satisfying PAQ = [     ]
 A1  0
 0   0, P(AB) = (PAQ)(Q-1B) = [      ]
 A2  A3
 0   0. Now find R an invertible matrix with P(AB)R = [    ]
 C  0
 0  0. Define X = R[  -1     ]
 C   A1  0
    0    0Q-1.]
  8. Suppose the matrices B and C are invertible and the involved partitioned products are defined, then prove that
    [     ]- 1  [                ]
 A   B    =   0       C-1     .
 C   0       B -1 - B -1AC- 1
  9. Suppose A-1 = B with A = [A    A  ]
   11   12
 A21  A22 and B = [B    B  ]
   11   12
 B21  B22. Also, assume that A11 is invertible and define P = A22 - A21A11-1A12. Then prove that
    1. A is row-equivalent to the matrix [                    ]
 A11        A12
  0   A22 - A21A-111 A12,
    2. P is invertible and B = [                                          ]
 A -111 + (A-111 A12)P -1(A21A -111 ) - (A-111 A12)P- 1
        - P -1(A21A-111 )           P-1.

We end this section by giving another equivalent condition for a square matrix to be invertible. To do so, we need the following definition.

Definition 2.3.11 A n × n matrix A is said to be of full rank if rank(A) = n.

Theorem 2.3.12 Let A be a square matrix of order n. Then the following statements are equivalent.

  1. A is invertible.
  2. A has full rank.
  3. The row-reduced form of A is In.

Proof.  1 =⇒2

Let if possible rank(A) = r < n. Then there exists an invertible matrix P (a product of elementary matrices) such that PA = [B1  B2]
 0   0, where B1 is an r ×r matrix. Since A is invertible, let A-1 = [C1]
 C
  2, where C1 is an r × n matrix. Then

                               [       ][  ]   [           ]
P = P I = P (AA - 1) = (P A)A- 1 = B1  B2   C1  =  B1C1 + B2C2 .
       n                         0   0   C2          0
Thus, P has n-r rows consisting of only zeros. Hence, P cannot be invertible. A contradiction. Thus, A is of full rank.

2 =⇒ 3

Suppose A is of full rank. This implies, the row-reduced echelon form of A has all non-zero rows. But A has as many columns as rows and therefore, the last row of the row-reduced echelon form of A is [0, 0, , 0, 1]. Hence, the row-reduced echelon form of A is In.

3 =⇒ 1

Using Theorem 2.2.5.3, the required result follows.

2.4 Existence of Solution of Ax = b

In Section 2.2, we studied the system of linear equations in which the matrix A was a square matrix. We will now use the rank of a matrix to study the system of linear equations even when A is not a square matrix. Before proceeding with our main result, we give an example for motivation and observations. Based on these observations, we will arrive at a better understanding, related to the existence and uniqueness results for the linear system Ax = b.

Consider a linear system Ax = b. Suppose the application of the Gauss-Jordan method has reduced the augmented matrix [Ab] to

      ⌊ 1    0   2  - 1  0    0    2  8⌋
      ||                                ||
      || 0    1   1   3   0    0    5  1||
[Cd ] = || 0   0   0   0   1    0   - 1 2|| .
      || 0    0   0   0   0    1    1  4||
      |                                |
      ⌈ 0    0   0   0   0    0    0  0⌉
        0    0   0   0   0    0    0  0
Then to get the solution set, we observe the following.
Observations:
  1. The number of non-zero rows in C is 4. This number is also equal to the number of non-zero rows in [Cd]. So, there are 4 leading columns/basic variables.
  2. The leading terms appear in columns 1,2,5 and 6. Thus, the respective variables x1,x2,x5 and x6 are the basic variables.
  3. The remaining variables, x3,x4 and x7 are free variables.

Hence, the solution set is given by

⌊x1⌋      ⌊8- 2x3 + x4 - 2x7⌋ ⌊ 8⌋    ⌊ - 2⌋    ⌊ 1 ⌋     ⌊- 2⌋
||x2||      ||1- x3 - 3x4 - 5x7|| || 1||    || - 1||    ||- 3||     ||- 5||
||x3||      ||       x3       ||  || 0||    || 1 ||     || 0 ||     || 0||
||x ||  =   ||       x        ||= || 0||+ x || 0 || + x || 1 ||+ x  || 0|| ,
|| 4||      ||        4       ||  ||  ||   3||   ||    4||   ||   7 ||  ||
|x5|      |     2+ x7      |  | 2|    | 0 |     | 0 |     | 1|
⌈x6⌉      ⌈     4- x7      ⌉  ⌈ 4⌉    ⌈ 0 ⌉     ⌈ 0 ⌉     ⌈- 1⌉
 x7               x7            0       0         0         1
where x3 ,x4 and x7 are arbitrary.
Let x0 = ⌊  ⌋
  8
|| 1||
|| 0||
|| 0||
||  ||
|⌈ 2|⌉
  4
  0,u1 = ⌊   ⌋
 - 2
||- 1||
|| 1 ||
|| 0 ||
||   ||
|⌈ 0 |⌉
  0
  0,u2 = ⌊   ⌋
  1
||- 3||
|| 0 ||
|| 1 ||
||   ||
|⌈ 0 |⌉
  0
  0 and u3 = ⌊  ⌋
 - 2
||- 5||
|| 0||
|| 0||
||  ||
|⌈ 1|⌉
 - 1
  1.
Then it can easily be verified that Cx0 = d, and for 1 i 3, Cui = 0. Hence, it follows that Ax0 = d, and for 1 i 3, Aui = 0.

A similar idea is used in the proof of the next theorem and is omitted. The proof appears on page § as Theorem 3.3.26.

Theorem 2.4.1 (Existence/Non-Existence Result) Consider a linear system Ax = b, where A is an m × n matrix, and x,b are vectors of orders n× 1, and m× 1, respectively. Suppose rank (A) = r and rank([Ab]) = ra. Then exactly one of the following statement holds:

  1. If r < ra, the linear system has no solution.
  2. if ra = r, then the linear system is consistent. Furthermore,
    1. if r = n then the solution set contains a unique vector x0 satisfying Ax0 = b.
    2. if r < n then the solution set has the form
      {x0 +k1u1 + k2u2 + ⋅⋅⋅+ kn- run-r : ki ∈ ℝ,1 ≤ i ≤ n - r},
      where Ax0 = b and Aui = 0 for 1 i n - r.

Remark 2.4.2 Let A be an m × n matrix. Then Theorem 2.4.1 implies that

  1. the linear system Ax = b is consistent if and only if rank(A) = rank([Ab]).
  2. the vectors ui, for 1 i n - r, correspond to each of the free variables.

Exercise 2.4.3 In the introduction, we gave 3 figures (see Figure 2) to show the cases that arise in the Euclidean plane (2 equations in 2 unknowns). It is well known that in the case of Euclidean space (3 equations in 3 unknowns), there

  1. is a figure to indicate the system has a unique solution.
  2. are 4 distinct figures to indicate the system has no solution.
  3. are 3 distinct figures to indicate the system has infinite number of solutions.

Determine all the figures.

2.5 Determinant

In this section, we associate a number with each square matrix. To do so, we start with the following notation. Let A be an n × n matrix. Then for each positive integers αi’s 1 i k and βj ’s for 1 j , we write A(α1,k||β1,) to mean that submatrix of A, that is obtained by deleting the rows corresponding to αi’s and the columns corresponding to βj’s of A.

Example 2.5.1 Let A = ⌊       ⌋
 1  2  3
⌈1  3  2⌉
 2  4  7. Then A(1|2) = [    ]
 1  2
 2  7, A(1|3) = [   ]
 1 3
 2 4 and A(1, 2|1, 3) = [4].

With the notations as above, we have the following inductive definition of determinant of a matrix. This definition is commonly known as the expansion of the determinant along the first row. The students with a knowledge of symmetric groups/permutations can find the definition of the determinant in Appendix 11.1.15. It is also proved in Appendix that the definition given below does correspond to the expansion of determinant along the first row.

Definition 2.5.2 (Determinant of a Square Matrix) Let A be a square matrix of order n. The determinant of A, denoted det(A) (or |A|) is defined by

        (
        {  a,n             (     )  if A = [a](n = 1),
det(A) = ( ∑  (- 1)1+ja1jdet A(1|j) ,     otherwise.
           j=1

Example 2.5.3

  1. Let A = [-2]. Then det(A) = |A| = -2.
  2. Let A = [   ]
 a  b
 c d. Then, det(A) = |A| = a||A(1|1)||- b||A(1|2)|| = ad - bc. For example, if A = [1  2]
 3  5 then det(A) = ||1 2||
||3 5|| = 1 5 - 2 3 = -1.
  3. Let A = ⌊            ⌋
⌈a11  a12 a13⌉
 a21  a22 a23
 a31  a32 a33. Then,
    det(A ) = |A | =  a  det(A(1|1))- a  det(A(1|2))+ a  det(A (1|3))
                 11 |      |    12|       |     1|3      |
            =   a11 ||a22  a23||- a12||a21 a23||+ a13||a21  a22||
                   |a32  a33|     |a31 a33|     |a31  a32|
            =   a11(a22a33 - a23a32)- a12(a21a33 - a31a23)

                             +a13(a21a32 - a31a22)               (2.5.1)
    Let A = ⌊ 1  2 3⌋
⌈       ⌉
  2  3 1
  1  2 2. Then |A| = 1 |   |
||3 1||
|2 2| - 2 |    |
||2  1||
|1  2| + 3 |   |
||2  3||
|1  2| = 4 - 2(3) + 3(1) = 1.

Exercise 2.5.4 Find the determinant of the following matrices.
i)⌊127  8⌋
|043  2|
|⌈002  3|⌉

000  5,ii)⌊ 3  0   0  1⌋
| 0  2   0  5|
|⌈ 6  - 7 1  0|⌉

  3  2   0  6,iii)⌊        ⌋
 1  a  a2
⌈1  b  b2⌉
 1  c  c2.

Definition 2.5.5 (Singular, Non-Singular) A matrix A is said to be a singular if det(A) = 0. It is called non-singular if det(A)0.

We omit the proof of the next theorem that relates the determinant of a square matrix with row operations. The interested reader is advised to go through Appendix 11.2.

Theorem 2.5.6 Let A be an n × n matrix. If

  1. B is obtained from A by interchanging two rows then det(B) = -det(A),
  2. B is obtained from A by multiplying a row by c then det(B) = cdet(A),
  3. B is obtained from A by replacing the jth row by jth row plus c times the ith row, where ij then det(B) = det(A),
  4. all the elements of one row or column of A are 0 then det(A) = 0,
  5. two rows of A are equal then det(A) = 0.
  6. A is a triangular matrix then det(A) is product of diagonal entries.

Since det(In) = 1, where In is the n×n identity matrix, the following remark gives the determinant of the elementary matrices. The proof is omitted as it is a direct application of Theorem 2.5.6.

Remark 2.5.7 Fix a positive integer n. Then

  1. det(Eij) = -1, where Eij corresponds to the interchange of the ith and the jth row of In.
  2. For c0, det(Ek(c)) = c, where Ek(c) is obtained by multiplying the kth row of In by c.
  3. For c0, det(Eij(c)) = 1, where Eij(c) is obtained by replacing the jth row of In by the jth row of In plus c times the ith row of In.

Remark 2.5.8 Theorem 2.5.6.1 implies that “one can also calculate the determinant by expanding along any row.” Hence, the computation of determinant using the k-th row for 1 k n is given by

        ∑n             (      )
det(A) =   (- 1)k+jakjdetA (k |j) .
        j=1

Example 2.5.9

  1. Let A = ⌊       ⌋
 2  2  6
⌈1  3  2⌉
 1  1  2. Determine det(A).
    Solution: Check that ||2  2  6||
||       ||
||1  3  2||
 1  1  2--R-→(2)
 1||1  1  3||
||      ||
||1  3  2||
1  1  2
    -- ---→
R21(- 1)
    -R-3-1-(--→ 1)
                     ||1  1  3 ||
                 ||        ||
                 ||0  2 - 1||
                  0  0 - 1. Thus, using Theorem 2.5.6, det(A) = 2 1 2 (-1) = -4.
  2. Let A = ⌊2  2  6  8⌋
|1  1  2  4|
|⌈1  3  2  6|⌉

 3  3  5  8. Determine det(A).
    Solution: The successive application of row operations R1(2),R21(-1),R31(-1), R41(-3),R23 and R34(-4) and the application of Theorem 2.5.6 implies
                    ||1  1  3    4||
                ||0  2  - 1  2||
det(A) = 2⋅(- 1)⋅||           ||= - 16.
                ||0  0  - 1  0||
                 0  0  0   - 4
    Observe that the row operation R1(2) gives 2 as the first product and the row operation R23 gives -1 as the second product.

Remark 2.5.10

  1. Let ut = (u1,u2) and vt = (v1,v2) be two vectors in 2. Consider the parallelogram on vertices P = (0,0)t,Q = u,R = u + v and S = v (see Figure 3). Then Area(PQRS) = |u1 v2 - u2v1|, the absolute value of ||u  u ||
||v1  v2||
  1  2.

    PIC

    Recall the following: The dot product of ut = (u1,u2) and vt = (v1,v2), denoted u v, equals u v = u1v1 + u2v2, and the length of a vector u, denoted (u) equals (u) =   -------
∘ u21 + u22. Also, if θ is the angle between u and v then we know that cos(θ) = -u∙v--
ℓ(u)ℓ(v). Therefore

                                          ∘ ---------------
                                           ( -u-∙v--)2
Area(PQRS )  =   ℓ(u)ℓ(v)sin(θ) = ℓ(u)ℓ(v) 1-   ℓ(u )ℓ(v)
                 ∘--------------------   ∘ -------------
             =    ℓ(u)2 + ℓ(v)2 - (u ∙v)2 =  (u1v2 - u2v1)2
             =   |u1v2 - u2v1|.
    That is, in 2, the determinant is ± times the area of the parallelogram.
  2. Consider Figure 3 again. Let ut = (u1,u2,u3),vt = (v1,v2,v3) and wt = (w1,w2,w3) be three vectors in 3. Then u v = u1v1 + u2v2 + u3v3 and the cross product of u and v, denoted u × v, equals
    u × v = (u2v3 - u3v2,u3v1 - u1v3,u1v2 - u2v1).
    The vector u × v is perpendicular to the plane containing both u and v. Note that if u3 = v3 = 0, then we can think of u and v as vectors in the XY -plane and in this case (u × v) = |u1v2 - u2v1| = Area(PQRS). Hence, if γ is the angle between the vector w and the vector u × v, then
                                                   ||w   w   w  ||
                                               || 1   2   3||
volume (P) = Area(P QRS )⋅height = |w ∙(u × v)| = ± ||u1 u2   u3||.
                                               v1   v2   v3

In general, for any n×n matrix A, it can be proved that |det(A)| is indeed equal to the volume of the n-dimensional parallelepiped. The actual proof is beyond the scope of this book.

Exercise 2.5.11 In each of the questions given below, use Theorem 2.5.6 to arrive at your answer.

  1. Let A = ⌊       ⌋
 a   b c
⌈e  f  g⌉
 h  j  ℓ,B = ⌊         ⌋
  a  b  αc
⌈ e f   αg⌉
 h   j  αℓ and C = ⌊                ⌋
 a  b   αa+ βb+ c
⌈e  f  αe + βf +g⌉
 h  j  αh + βj +ℓ for some complex numbers α and β. Prove that det(B) = α det(A) and det(C) = det(A).
  2. Let A = ⌊       ⌋
 1  3  2
⌈2  3  1⌉
 1  5  3 and B = ⌊          ⌋
  1  - 1  0
⌈ 1  0   - 1⌉
  0  - 1  1. Prove that 3 divides det(A) and det(B) = 0.

2.5.1 Adjoint of a Matrix

Definition 2.5.12 (Minor, Cofactor of a Matrix) The number det(A(i|j)) is called the (i, j)th minor of A. We write Aij = det(A(i|j)). The (i,j)th cofactor of A, denoted Cij, is the number (-1)i+jAij.

Definition 2.5.13 (Adjoint of a Matrix) Let A be an n × n matrix. The matrix B = [bij] with bij = Cji, for 1 i,j n is called the Adjoint of A, denoted Adj(A).

Example 2.5.14 Let A = ⌊ 1  2 3⌋
⌈ 2  3 1⌉
  1  2 2. Then Adj(A) = ⌊ 4   2   - 7⌋
⌈- 3  - 1  5⌉
  1   0   - 1 as

C11 = (- 1)1+1A11 = 4,C21 = (- 1)2+1A21 = 2,...,C33 = (- 1)3+3A33 = - 1.

Theorem 2.5.15 Let A be an n × n matrix. Then

  1. for 1 i n, j=1naijCij = j=1naij(-1)i+jAij = det(A),
  2. for iℓ, j=1naijCℓj = j=1naij(-1)+jAℓj = 0, and
  3. A(Adj(A)) = det(A)In. Thus,
    wheneverdet(A ) ⁄= 0 one has A -1 =-1-Adj (A ).
                               det(A )
    (2.5.2)

Proof.  Part 1: It directly follows from Remark 2.5.8 and the definition of the cofactor.

Part 2: Fix positive integers i,ℓ with 1 in. And let B = [bij] be a square matrix whose th row equals the ith row of A and the remaining rows of B are the same as that of A.

Then by construction, the ith and th rows of B are equal. Thus, by Theorem 2.5.6.5, det(B) = 0. As A(|j) = B(|j) for 1 j n, using Remark 2.5.8, we have

               n                       n
              ∑      ℓ+j      (     )  ∑      ℓ+j      (     )
0 = det(B ) =  j=1(- 1) bℓjdetB (ℓ|j) = j=1(- 1) aijdet B(ℓ|j)
               n                       n
           =  ∑  (- 1)ℓ+ja det(A (ℓ|j)) = ∑ a C  .                  (2.5.3)
              j=1       ij            j=1 ij ℓj
This completes the proof of Part 2.

Part 3:, Using Equation (2.5.3) and Remark 2.5.8, observe that

[         ]    ∑n               ∑n         {
 A(Adj(A))   =    aik(Adj(A))  =    aikCjk =     0,    if i ⁄= j,
           ij   k=1          kj  k=1           det(A),  if i = j.
Thus, A(Adj(A)) = det(A)In. Therefore, if det(A)0 then A(           )
  -1--Adj(A)
  det(A) = In. Hence, by Theorem 2.2.6,
A -1 = --1--Adj(A ).
       det(A)

Example 2.5.16 For A = ⌊1  - 1  0⌋
⌈         ⌉
 0   1   1
 1   2   1, Adj(A) = ⌊- 1  1   - 1⌋
⌈           ⌉
  1   1   - 1
 - 1 - 3  1 and det(A) = -2. Thus, by Theorem 2.5.15.3, A-1 = ⌊                 ⌋
  1∕2  - 1∕2  1∕2
⌈- 1∕2 - 1∕2  1∕2 ⌉
  1∕2   3∕2  - 1∕2.

The next corollary is a direct consequence of Theorem 2.5.15.3 and hence the proof is omitted.

Corollary 2.5.17 Let A be a non-singular matrix. Then

(      )                ∑n        {  det(A ),  if j = k,
 Adj(A) A = det(A)In and    aijCik =
                        i=1             0,    if j ⁄= k.

The next result gives another equivalent condition for a square matrix to be invertible.

Theorem 2.5.18 A square matrix A is non-singular if and only if A is invertible.

Proof.  Let A be non-singular. Then det(A)0 and hence A-1 = --1--
det(A)Adj(A) as .

Now, let us assume that A is invertible. Then, using Theorem 2.2.5, A = E1E2⋅⋅⋅Ek, a product of elementary matrices. Also, by Remark 2.5.7, det(Ei)0 for each i,1 i k. Thus, by a repeated application of the first three parts of Theorem 2.5.6 gives det(A)0. Hence, the required result follows.

We are now ready to prove a very important result that related the determinant of product of two matrices with their determinants.

Theorem 2.5.19 Let A and B be square matrices of order n. Then

det(AB ) = det(A )det(B ) = det(BA ).

Proof.  Step 1. Let A be non-singular. Then by Theorem 2.5.15.3, A is invertible. Hence, using Theorem 2.2.5, A = E1E2⋅⋅⋅Ek, a product of elementary matrices. Then a repeated application of the first three parts of Theorem 2.5.6 gives

det(AB )  =  det(E1E2 ⋅⋅⋅EkB ) = det(E1) det(E2 ⋅⋅⋅EkB )
         =  det(E1 )det(E2)det(E3⋅⋅⋅EkB )
         =  det(E  E )det(E  )det(E  ⋅⋅⋅E B )
                 1 2      3     4    k
         =  ...

         =  det(E1E2 ⋅⋅⋅Ek)det(B ) = det(A)det(B).
Thus, if A is non-singular then det(AB) = det(A)det(B). This will be used in the second step.

Step 2. Let A be singular. Then using Theorem 2.5.18 A is not invertible. Hence, there exists an invertible matrix P such that PA = C, where C = [   ]
 C1
  0. So, A = P-1C and therefore

                                             (    [    ])
det(AB )  =  det((P -1C)B ) = det(P -1(CB )) = det P -1 C1B
                                                    0
                        ( [C1B])
         =  det(P-1)⋅det    0     as P -1 is non-singular

         =  det(P)⋅0 = 0 = 0 ⋅det(B) = det(A )det(B ).
Thus, the proof of the theorem is complete.

The next result relates the determinant of a matrix with the determinant of its transpose. As an application of this result, determinant can be computed by expanding along any column as well.

Theorem 2.5.20 Let A be a square matrix. Then det(A) = det(At).

Proof.  If A is a non-singular, Corollary 2.5.17 gives det(A) = det(At).

If A is singular, then by Theorem 2.5.18, A is not invertible. Therefore, At is also not invertible (as At is invertible implies A-1 = ((At)-1)t)). Thus, using Theorem 2.5.18 again, det(At) = 0 = det(A). Hence the required result follows.

2.5.2 Cramer’s Rule

Let A be a square matrix. Then using Theorem 2.2.10 and Theorem 2.5.18, one has the following result.

Theorem 2.5.21 Let A be a square matrix. Then the following statements are equivalent:

  1. A is invertible.
  2. T he linear system Ax = b has a unique solution for every b.
  3. det(A)0.

Thus, Ax = b has a unique solution for every b if and only if det(A)0. The next theorem gives a direct method of finding the solution of the linear system Ax = b when det(A)0.

Theorem 2.5.22 (Cramer’s Rule) Let A be an n × n matrix. If det(A)0 then the unique solution of the linear system Ax = b is

xj = det(Aj), for j = 1,2,...,n,
     det(A )
where Aj is the matrix obtained from A by replacing the jth column of A by the column vector b.

Proof.  Since det(A)0, A-1 = --1---
det(A )Adj(A). Thus, the linear system Ax = b has the solution x = 1-
det(A)Adj(A)b. Hence xj, the jth coordinate of x is given by

xj = b1C1j +-b2C2j +-⋅⋅⋅+-bnCnj-= det(Aj).
             det(A )            det(A )

In Theorem 2.5.22 A1 = ⌊                 ⌋
  b1  a12  ⋅⋅⋅  a1n
|| b2  a22  ⋅⋅⋅  a2n ||
|⌈ ..    ..  ..    .. |⌉
  .    .    .   .
  bn  an2  ⋅⋅⋅  ann, A2 = ⌊                     ⌋
  a11  b1  a13  ⋅⋅⋅ a1n
|| a21  b2  a23  ⋅⋅⋅ a2n||
|⌈  ..   ..   ..   ..    ..|⌉
   .   .   .     .   .
  an1 bn  an3  ⋅⋅⋅ ann and so on till An = ⌊a11 ⋅⋅⋅  a1n-1  b1⌋
|a12 ⋅⋅⋅  a2n-1  b2|
||..   ..     ..    .. ||
⌈.    .    .    . ⌉
a1n  ⋅⋅⋅  ann-1  bn.

Example 2.5.23 Solve Ax = b using Cramer’s rule, where A = ⌊ 1 2  3⌋
⌈       ⌉
  2 3  1
  1 2  2 and b = ⌊ 1⌋
⌈ ⌉
  1
  1.
Solution: Check that det(A) = 1 and xt = (-1,1,0) as

    ||1  2  3||         ||1  1  3||             ||1  2  1||
x = ||1  3  1||= - 1,x = ||2 1  1||= 1, and x = ||2  3  1||= 0.
 1  ||       ||      2  ||       ||         3   ||      ||
     1  2  2           1  1  2              1  2  1

2.6 Miscellaneous Exercises

Exercise 2.6.1

  1. Let A be an orthogonal matrix. Prove that detA = ±1.
  2. Prove that every 2 × 2 matrix A satisfying tr(A) = 0 and det(A) = 0 is a nilpotent matrix.
  3. Let A and B be two non-singular matrices. Are the matrices A+B and A-B non-singular? Justify your answer.
  4. Let A be an n × n matrix. Prove that the following statements are equivalent:
    1. A is not invertible.
    2. rank(A)n.
    3. det(A) = 0.
    4. A is not row-equivalent to In.
    5. The homogeneous system Ax = 0 has a non-trivial solution.
    6. The system Ax = b is either inconsistent or it is consistent and in this case it has an infinite number of solutions.
    7. A is not a product of elementary matrices.
  5. For what value(s) of λ does the following systems have non-trivial solutions? Also, for each value of λ, determine a non-trivial solution.
    1. (λ - 2)x + y = 0,x + (λ + 2)y = 0.
    2. λx + 3y = 0,(λ + 6)y = 0.
  6. Let x1,x2,,xn be fixed reals numbers and define A = [a