Download as pdf or txt
Download as pdf or txt
You are on page 1of 149

Lecture Notes in Linear Algebra

Dr. Abdullah Al-Azemi


Mathematics Department
Kuwait University

February 4, 2017
Contents

1 Linear Equations and Matrices 1

1.2 Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1.2.1 Special types of matrices: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2.2 Matrix Operation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

1.3 Dot Product and Matrix Multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

1.4 Properties of Matrix Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

1.4.1 Properties of matrix-scalar multiplication . . . . . . . . . . . . . . . . . . . . . . 13

1.4.2 Properties of Matrix Addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

1.4.3 Properties of Matrix Multiplication . . . . . . . . . . . . . . . . . . . . . . . . . 14

1.4.4 Properties of Matrix Transpose . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

1.4.5 Symmetric and Skew-Symmetric Matrices . . . . . . . . . . . . . . . . . . . . . 16

1.6 Solutions of Linear System of Equations . . . . . . . . . . . . . . . . . . . . . . . . . . 20

1.6.1 Solving System of Linear Equations . . . . . . . . . . . . . . . . . . . . . . . . . 22

1.7 The Inverse of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2 Determinants 43

2.1 Determinants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

2.2 Cofactor Expansion and Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

3 Vectors in Rn 65

3.2 Vectors in Rn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

i
ii CONTENTS

3.2.1 Vectors Operations: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

3.2.2 The Dot Product of Vectors: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

3.2.3 Properties of Dot Product: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

3.2.4 The Angle Between Two Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . 68

3.2.5 Principle of Unit Vectors in Rn . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

5 Real Vector Spaces 77

5.1 Real Vector Spaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

5.2 Real Vector Subspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

5.3 Linear Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

5.4 Basis and Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

5.5 Homogenous System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

5.6 The Rank of a Matrix and its Application . . . . . . . . . . . . . . . . . . . . . . . . . 103

6 Diagonalization 111

6.1 Eigenvalues and Eigenvectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

6.2 Diagonalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

6.2.1 Case 1: Diagonalization of a Matrix with Distinct Eigenvalues . . . . . . . . . . 118

6.2.2 Case 2: Diagonalization of a Matrix with Repeated Eigenvalues . . . . . . . . . 119

4 Vectors in Rn 125

4.1 The Cross Product in Rn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

4.2 Planes and Lines in R3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132


Chapter

1 Linear Equations and Matrices

1.2 Matrices

Definition 1.2.1

An m × n matrix A is a rectangular array of m · n real numbers arranged in m horizontal rows


and n vertical columns. That is,
⎡ ⎤
⎢ a11 a12 ... a1j ... a1n ⎥
⎢ ⎥
⎢ a21 a22 ... a2j ... a2n ⎥
⎢ . .. .. .. .. .. ⎥
⎢ .
. . . . . . ⎥
A=⎢

⎢ a


⎢ i1 ai2 ... aij ... ain ⎥

⎢ .. .. .. .. .. .. ⎥
⎢ . . . . . . ⎥
⎣ ⎦
am1 am2 ... amj ... amn

In the matrix A above, we have:


• a11 , a12 , . . . , amn are called elements (or entries) of the matrix.
• The entry aij lies in the intersection of row i and column j.
• The size (or order) of A is m by n, written as m × n.
• The matrix is called a square matrix if m = n.
• We write Mm×n for the class of all real matrices of size m × n.
If a matrix A is of size 1 × n, then we say that A is a vector of size (length) n and we write A ∈ Rn .
In addition, if A is of size n × 1, we say that A ∈ Rn .

Example 1.2.1

A matrix A ∈ M2×3 and another matrix B ∈ M3×3 .


⎡ ⎤
⎡ ⎤
3 0 1
2 3 −2 ⎦ ⎢ ⎥
A=⎣ B=⎢
⎢ 4 2 0


4 1 −1 ⎣ ⎦
2×3 −1 4 1
3×3

1
2 Chapter 1. Linear Equations and Matrices

An m × n matrix can be represented by the following ways:

• A = (aij ) for 1 ≤ i ≤ m and 1 ≤ j ≤ n,


⎡ ⎤
⎢ row 1 ⎥
⎢ ⎥
⎢ row 2 ⎥
• A=⎢
⎢ .. ⎥, where row i = [ai1 ai2
⎥ . . . ain ], for 1 ≤ i ≤ m, or


. ⎥

row m
⎡ ⎤
⎢ a1j ⎥
⎢ ⎥
⎢ a2j ⎥
• A = [col 1 col 2 . . . col n], where col j = ⎢
⎢ ..
⎥ for 1 ≤ j ≤ n.

⎢ . ⎥
⎣ ⎦
amj

Example 1.2.2

List all of the entries of the matrix A = (aij ) ∈ R3 , for 1 ≤ i ≤ 3 and 1 ≤ j ≤ 3, where







i + j, if i > j


aij = 0, if i = j






⎩i − j,
⎪ if i < j

Solution:

We list the entries of A in the following way:


⎡ ⎤ ⎡ ⎤
⎢a11 a12 a13 ⎥ ⎢0 −1 −2⎥
⎢ ⎥ ⎢ ⎥
A = ⎢a21 a22 a23 ⎥ = ⎢3 0 −1⎥
⎣ ⎦ ⎣ ⎦
a31 a32 a33 4 5 0

1.2.1 Special types of matrices:

1. The ”zero matrix”, say O, is an m × n matrix whose entries are all equal to 0.
⎡ ⎤
⎢0 ··· 0⎥
. ... .. ⎥
⎢ ..
O=⎢ .⎥
⎣ ⎦
0 ··· 0
1.2. Matrices 3

2. The ”diagonal matrix”, D, is a square matrix in Rn , where D = (dij ) so that dij = 0 for all
i ̸= j. ⎡ ⎤
⎢d11
...
0 ⎥⎥
D=⎢
⎢ ⎥

0 dnn

3. The ”scalar matrix” is a diagonal matrix S whose all diagonal entries are equal to some a scalar
c. ⎡ ⎤
⎢c
...
0⎥⎥
S=⎢
⎢ ⎥

0 c

4. The ”identity matrix” (or unit matrix) is a scalar matrix In whose all diagonal entries are
equal to 1. ⎡ ⎤
⎢1
⎢ ...
0⎥⎥
In = ⎢ ⎥

0 1

5. The ”lower triangular matrix”, L, is a square matrix in Rn , where L = (lij ) so that lij = 0 for
all i < j. ⎡ ⎤
⎢ l11
. ...
0 ⎥⎥
⎢ ..
L=⎢ ⎥
⎣ ⎦
ln1 ... lnn
6. The ”upper triangular matrix”, U , is a square matrix in Rn , where U = (uij ) so that uij = 0
for all i > j. ⎡ ⎤
⎢u11 ... u1n ⎥
... .. ⎥
U =⎢
⎢ . ⎥

0 unn

Remark 1.2.1. Two m × n matrices A = (aij ) and B = (bij ) are said to be equal if aij = bij for all
1 ≤ i ≤ m and 1 ≤ j ≤ n.

Example 1.2.3

Find the values of a, b, c, and d if


⎡ ⎤ ⎡ ⎤
⎣a + b c + d⎦ ⎣ 1
=
2⎦
.
c−d a−b −2 1

Solution:
4 Chapter 1. Linear Equations and Matrices

Since the two matrices are equal. Then



a+b=1 ⎬
+ =⇒ 2a = 2 =⇒ a = 1 and hence b = 0.
a−b=1 ⎭

c+d=2 ⎬
+ =⇒ 2c = 0 =⇒ c = 0 and hence d = 2.
c − d = −2 ⎭

1.2.2 Matrix Operation:

• Matrix transpose

Definition 1.2.2

If A = (aij ) is an m × n matrix, then the n × m matrix AT = (aji ), where 1 ≤ j ≤ n and


1 ≤ i ≤ m, is called the transpose of A.

⎡ ⎤
⎢a d⎥
⎡ ⎤
a b c⎦ T
Example 1.2.1. If A = ⎣ , then A = ⎢
⎢b e⎥

.
d e f ⎣ ⎦
2×3 c f
3×2

Example 1.2.4
. /
Q#6
pg. 20
If A is an n × n lower triangular matrix, then AT is an n × n upper triangular matrix.

Solution:

Since A is a lower triangular, then aij = 0 for all i < j. Therefore, the transpose of A, AT = (aji )
has entries aji = 0 if j > i and thus it is an upper triangular.

• Matrix addition and substraction

To add two m × n matrices A = (aij ) and B = (bij ), we must have the size(A) = size(B). Then,
A ± B = C, where C = (cij ) with cij = aij ± bij , for all 1 ≤ i ≤ m and 1 ≤ j ≤ n.
1.2. Matrices 5

Example 1.2.5

If possible, find A + B and AT − B, where


⎡ ⎤
⎢ 2 1⎥ ⎡ ⎤
1 2 4⎦
A=⎢
⎢ 3

0⎥ , and B = ⎣ .
⎣ ⎦ 5 1 1
−1 1 2×3
3×2

Solution:

Clearly, A+B is not possible as they have different sizes. On the other hand, size(AT ) = size(B),
and ⎡ ⎤ ⎡ ⎤ ⎡ ⎤
2 3 −1⎦ 1 2 4⎦ 1 1 −5⎦
AT − B = ⎣ −⎣ =⎣ .
1 0 1 5 1 1 −4 −1 0
2×3 2×3 2×3

Example 1.2.6
. /
Q#5
pg.20
Show that the sum and the difference of two lower triangular matrices is a lower triangular
matrix.

Solution:

Let A = (aij ) and B = (bij ) be two n × n matrices so that both are lower triangular matrices.
Thus, aij = 0 and bij = 0 for all i < j. If (cij ) = C = A ± B with cij = aij ± bij , then cij = 0 for
all i < j. Therefore, C is again a lower triangular matrix.

Remark 1.2.1

The sum and the difference of two upper triangular matrices is an upper triangular matrix.

• Scalar multiplication

If A = (aij ) is an m × n matrix and c is a real number, then c A = (c · aij ) for all 1 ≤ i ≤ m and
1 ≤ j ≤ n.
6 Chapter 1. Linear Equations and Matrices

1.3 Dot Product and Matrix Multiplication

Definition 1.3.1

The dot (inner) product of the n-vectors x = (x1 x2 · · · xn ) and y = (y1 y2 · · · yn ) is


defined by
n
0
x · y = x1 y1 + x2 y2 + · · · + xn yn = xi yi . (1.3.1)
i=1

An n-vector x = (x1 x2 · · · xn ) can be written as x = (x1 , x2 , · · · , xn ).

Example 1.3.1

Find x · y if x = (1, 0, 2, −1) and y = (3, 5, −1, 4).

Solution:

Clearly, x · y = 3 + 0 + (−2) + (−4) = −3.

Definition 1.3.2

Let A = (aij ) be an m × p matrix and B = (bij ) be a p × n matrix. Then, the product of A and
B, (AB), is the m × n matrix C = (cij ) = rowi (A) · colj (B) where
p
0
cij = ai1 b1j + ai2 b2j + · · · + aip bpj = aik bkj , for 1 ≤ i ≤ m and 1 ≤ j ≤ n.
k=1

Note that the entry (i, j) of the product AB equals to the dot product of rowi (A) by the colj (B).

Remark 1.3.1

To get the product AB, we must have ”# of columns in A = # of rows in B”.


1.3. Dot Product and Matrix Multiplication 7

Example 1.3.2
⎡ ⎤
⎢b11 b12 ⎥
⎡ ⎤
a a12 a13 ⎦
If A = ⎣ 11 , and B = ⎢
⎢b21

b22 ⎥ , then
a21 a22 a23 ⎣ ⎦
2×3 b31 b32
3×2
⎡ ⎤
a b + a12 b21 + a13 b31 a11 b12 + a12 b22 + a13 b32 ⎦
AB = ⎣ 11 11
a21 b11 + a22 b21 + a23 b31 a21 b12 + a22 b22 + a23 b32
2×2

Example 1.3.3

Find AB, AB T , and AT B if possible, where


⎡ ⎤ ⎡ ⎤
1 0 2⎦ 4 1 −1⎦
A=⎣ , and B = ⎣ .
1 −2 0 2 5 1

Solution:

• Clearly, AB is not possible to compute since # columns in A is not the same as # rows of
B.

• AB T : excercise.
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 1⎥ 4+2 1+5 −1 + 1⎥ ⎢ 6 6 0⎥
⎡ ⎤
⎥ ⎣4 1 −1⎦ ⎢
• AT B = ⎢ =⎢ ⎥
⎢0 −2⎥ ⎢ −4 −10 −2 ⎥ =⎢
⎢−4 −10

−2⎥
⎣ ⎦ 2 5 1 ⎣ ⎦ ⎣ ⎦
2 0 8 2 −2 8 2 −2

Remark 1.3.2
⎡ ⎤ ⎡ ⎤
⎢1 0⎥ ⎢0 0⎥
In general, AB ̸= BA. For instance, consider A = ⎣ ⎦ and B = ⎣ ⎦. Check it yourself!!
1 0 1 1
It is always true that AB = BA if A = In or that A = B.
8 Chapter 1. Linear Equations and Matrices

Example 1.3.4
1 2
Let A = 1 −2 0 . Find all values of c so that c A · AT = 15.

Solution:
⎡ ⎤
1 2 ⎢ 1 ⎥
T ⎢ ⎥
Note that cA · A = c 1 −2 0 ·⎢−2⎥ = 5c. Therefore, 5c = 15 and hence c = 3.
⎣ ⎦
0

Example 1.3.5
⎡ ⎤ ⎡ ⎤
⎢1 −2 3⎥ ⎢ 1 4⎥
Let A = ⎢
⎢4 2 1⎥

, and B = ⎢
⎢ 3 −1⎥

. Compute the (3, 2)-entry of AB.
⎣ ⎦ ⎣ ⎦
0 1 −2 −2 2

Solution:

The (3, 2)-entry = row3 (A) · col2 (B) = [0 1 − 2] · [4 − 1 2] = −1 − 4 = −5.

Definition 1.3.3

Let A be an m × n matrix and x ∈ Rn (be an n-vector), then


⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢ a11 a12 ··· a1n ⎥ ⎢ x1 ⎥ ⎢ a11 x1 + a12 x2 + · · · + a1n xn ⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
⎢ a21 a22 ··· a2n ⎥ ⎢ x2 ⎥ ⎢ a21 x1 + a22 x2 + · · · + a2n xn ⎥
Ax = ⎢
⎢ .. .. ... .. ⎥ ⎢ .. ⎥ = ⎢
⎥ ⎢ ⎥ ⎢ .. ⎥

⎢ . . . ⎥ ⎢ . ⎥ ⎢ . ⎥
⎣ ⎦⎣ ⎦ ⎣ ⎦
am1 am2 ··· amn xn am1 x1 + am2 x2 + · · · + amn xn
⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢ row1 (A) · x ⎥ ⎢ a11 ⎥ ⎢ a12 ⎥ ⎢ a1n ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎢ row2 (A) · x ⎥ ⎢ a21 ⎥ ⎢ a22 ⎥ ⎢ a2n ⎥
=⎢
⎢ .. ⎥
⎥ = x 1 ⎢ .. ⎥
⎢ ⎥ + x 2 ⎢ .. ⎥
⎢ ⎥ + · · · + x n ⎢ .. ⎥
⎢ ⎥


. ⎥

⎢ . ⎥
⎣ ⎦
⎢ . ⎥
⎣ ⎦
⎢ . ⎥
⎣ ⎦
rowm (A) · x am1 am2 amn

= x1 col1 (A) + x2 col2 (A) + · · · + xn coln (A).

That is, Ax is a linear combination of columns of A and the entries of x are the coefficients.
1.3. Dot Product and Matrix Multiplication 9

Example 1.3.6

Write the following product as a linear combination of the columns of the first matrix.
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 3⎥ ⎡ ⎤ ⎢1⎥ ⎢3⎥
⎢ ⎥⎣ 3 ⎦
= 3 ⎢2⎥ + (−2) ⎢
⎢ ⎥ ⎥
⎢2 1⎥ ⎢1⎥ .
⎣ ⎦ −2 ⎣ ⎦ ⎣ ⎦
4 2 4 2

Example 1.3.7
. /
Q#9
pg.38
If A is an m × p matrix and B is a p × n matrix, then

(a) Show that colj (AB) = A colj (B).


. /
(b) Show that rowi (AB) = rowi (A) B.

Solution:

(a) Let C = AB. Clearly for 1 ≤ j ≤ n,


⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢ c1j ⎥ ⎢ row1 (A) · colj (B) ⎥ ⎢ row1 (A) ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎢ c2j ⎥ ⎢ row2 (A) · colj (B) ⎥ ⎢ row2 (A) ⎥
colj (AB) = colj (C) = ⎢ .. ⎥ = ⎢
⎢ ⎥ ⎢ .. ⎥=⎢
⎥ ⎢ .. ⎥ · colj (B) = A · colj (B).

⎢ . ⎥ ⎢ . ⎥ ⎢ . ⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
cmj rowm (A) · colj (B) rowm (A)

(b) Let C = AB. Clearly for 1 ≤ i ≤ m,


1 2
rowi (AB) = rowi (C) = ci1 ci2 ··· cin
1 2
= rowi (A) · col1 (B) rowi (A) · col2 (B) ··· rowi (A) · coln (B)
1 2
= rowi (A) · col1 (B) col2 (B) ··· coln (B)
. /
= rowi (A) · B.

TRUE or FALSE:
⋆ If a matrix B has a column of zeros, then the product AB has a column of zeros as well. (TRUE).
reason: Assume that column j of B is a column of zero. Then, colj (AB) = A colj (B) = 0.
10 Chapter 1. Linear Equations and Matrices

Example 1.3.8
⎡ ⎤
⎢ 1 2⎥ ⎡ ⎤
−2 3 4⎦
Let A = ⎢
⎢ 3 4⎥

and B = ⎣ . Find the columns of AB as a linear combination
⎣ ⎦ 3 2 1
−1 5 2×3
3×2
of columns of A.

Solution:

Clearly,
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢ 1 2⎥ ⎢ 1 ⎥ ⎢2⎥
⎡ ⎤
⎥ ⎣−2⎦
• col1 (AB) = A col1 (B) = ⎢
⎢ 3 4⎥
⎢ ⎥
= −2 ⎢ 3 ⎥ + 3 ⎢ ⎥
⎢4⎥
⎣ ⎦ 3 ⎣ ⎦ ⎣ ⎦
−1 5 −1 5
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢ 1 2⎥ ⎢ 1 ⎥ ⎢2⎥
⎡ ⎤

• col2 (AB) = A col2 (B) = ⎢


⎢ 3

4⎥ ⎣3⎦ = 3 ⎢ ⎥ ⎢ ⎥
⎢ 3 ⎥ + 2 ⎢4⎥
⎣ ⎦ 2 ⎣ ⎦ ⎣ ⎦
−1 5 −1 5
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢ 1 2⎥ ⎢ 1 ⎥ ⎢2⎥
⎡ ⎤
⎢ ⎥ ⎣4⎦ ⎢ ⎥ ⎢ ⎥
• col3 (AB) = A col3 (B) = ⎢ 3 4⎦
⎥ = 4 ⎢ 3⎦⎥ + 1 ⎢4⎥
⎣ 1 ⎣ ⎣ ⎦
−1 5 −1 5

Example 1.3.9
⎡ ⎤
1 1⎦
Compute A2017 , where A = ⎣ .
0 1

Solution:

Here, we will compute some powers of the matrix A to look for a pattern. That is,
⎡ ⎤⎡ ⎤ ⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
2 1 1⎦ ⎣1 1⎦ ⎣1 2⎦ 3 1 2 2⎦ ⎣1 1⎦ ⎣1 3⎦
A = AA = ⎣ = , A =A A=⎣ =
0 1 0 1 0 1 0 1 0 1 0 1
⎡ ⎤⎡ ⎤ ⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
1 3⎦ ⎣1 1⎦ ⎣1 4⎦ 1 (n − 1)⎦ ⎣1 1⎦ ⎣1 n⎦
A4 = A3 A = ⎣ = , · · · An = An−1 A = ⎣ = .
0 1 0 1 0 1 0 1 0 1 0 1
⎡ ⎤
1 2017⎦
Therefore, A2017 = A2016 A=⎣ .
0 1
1.3. Dot Product and Matrix Multiplication 11

Matrix Form of Linear System of Equations:


Given a linear system of equation on n variables as in (1.3.2)

a11 x1 + a12 x2 + a13 x3 + ··· + a1n xn = b1


a21 x1 + a22 x2 + a23 x3 + ··· + a2n xn = b2
.. (1.3.2)
.
am1 x1 + am2 x2 + am3 x3 + ··· + amn xn = bm

we transform this system into the matrix form as in (1.3.3)


⎛ ⎞⎛ ⎞ ⎛ ⎞
⎜ a11 a12 ··· a1n ⎟ ⎜ x1 ⎟ ⎜ b1 ⎟
⎜ ⎟⎜ ⎟ ⎜ ⎟
⎜ a21 a22 ··· a2n ⎟ ⎜ x2
⎟ = ⎜ b.2
⎟ ⎜ ⎟
⎜ .
⎜ . .. .. .. ⎟⎜ .
⎟⎜ . ⎟ ⎜ .

⎟ (1.3.3)
⎜ . . . . ⎟⎜ . ⎟ ⎜ . ⎟
⎝ ⎠⎝ ⎠ ⎝ ⎠
am1 am2 ··· amn xn bm

We say that the form of (1.3.3) is the matrix form A x = B, where x is called the vector of
unknowns. Moreover, we define the augmented form as
9 :
A|B . (1.3.4)

Example 1.3.10

Write the following system of linear equations in the matrix form and in the augmented form.

2x − z + 3w = 1
x + 5y = −1
x + y + z = 0

Solution:

The matrix form is: ⎡ ⎤


⎡ ⎤ ⎡ ⎤
⎢ x ⎥
⎢ 2 0 −1 3 ⎥⎢ ⎥ 1 ⎥
⎢ ⎥⎢ y ⎥ ⎢
⎢ ⎥
⎢ 1 5 0 0 ⎦⎢
⎥ ⎢ ⎥
⎥ = ⎢ −1 ⎥
⎣ ⎢ z ⎥ ⎣ ⎦
1 1 1 0 ⎣ ⎦ 0
w
while the augmented form is given by
⎡ ⎤
⎢ 2 0 −1 3 1 ⎥
⎢ ⎥
⎢ 1 5 0 0 −1 ⎥.
⎣ ⎦
1 1 1 0 0
12 Chapter 1. Linear Equations and Matrices

Exercise 1.3.1
⎡ ⎤
1 2⎦
1. Let A = ⎣ . Compute A2 + I2 .
0 −1
. /
Q#6
2. pg.31
: The product of two upper triangular matrices is an upper triangular matrix.
Solution: The proof is NOT required.

⎡ ⎤
⎢1 2⎥ ⎡ ⎤
0 1 −3⎦
3. Let A = ⎢
⎢4

5⎥ and B = ⎣ . Express the third row of AB as a linear
⎣ ⎦ −3 1 4
3 6
combination of the rows of B.
⎡ ⎤
⎢1 1⎥ ⎡ ⎤
4 1 −1⎦
4. Let A = ⎢
⎢0

2⎥ and B = ⎣ . Find AB and express the second column of AB
⎣ ⎦ 2 5 1
2 0
as a linear combination of the columns of A.
1.4. Properties of Matrix Operations 13

1.4 Properties of Matrix Operations

In what follows, let A, B, and C be matrices of appropriate sizes, and let r, s ∈ R.

1.4.1 Properties of matrix-scalar multiplication

1. r (s A) = (rs) A,

2. (r + s) A = r A + s A,

3. r (A + B) = r A + r B,

4. A(r B) = (r A)B = r (AB).

Example 1.4.1
. /
Q#32
pg.51
If the m × n linear system A x = B has more than one solution, then it has infinitely
many solutions.

Solution:

Let y and z be two solutions to the system A x = B. Then, for r, s ∈ R, we have

Ay = B

rAy = rB

A(r y) = r B. (1.4.1)

Similarly, we have

A(s z) = s B. (1.4.2)

Adding up (1.4.1) and (1.4.2), we got

A(r y + s z) = (r + s)B.

Therefore, (r y + s z) is a solution to the system whenever, r + s = 1. The result follows.


14 Chapter 1. Linear Equations and Matrices

TRUE or FALSE:

⋆ If x1 and x2 are two solutions for Ax = B, then 23 x1 − 2x2 is also a solution. (FALSE).
3 −1
reason: Since 2
−2 = 2
̸= 1.

1.4.2 Properties of Matrix Addition

1. A + B = B + A,

2. (A + B) + C = A + (B + C),

3. there is a unique matrix O such that O + A = A + O = A, the matrix O is called the


additive identity,

4. there is a unique matrix D such that A + D = D + A = O. In particular, D = −A is called


the additive inverse of A.

1.4.3 Properties of Matrix Multiplication

1. A(BC) = (AB)C,

2. A(B + C) = AB + AC,

3. (A + B)C = AC + BC,

4. there is a unique (identity) matrix I such that AI = IA = A.

Remark 1.4.1

Let p, q, and r be rational numbers and let A, B ∈ Mm×n , then

1. Ap Aq = Ap+q ,

2. (Ap )q = Apq ,

3. AB ̸= BA,
1.4. Properties of Matrix Operations 15

4. (AB)p ̸= Ap B p ,

5. for a, b ∈ R: ab = 0 only if a = 0 or b = 0. This is not true ingeneral for matrices. For


instance, if A = [ 00 11 ] , and B = [ 10 10 ], then AB = O where A and B are both non-zero
matrices.

1.4.4 Properties of Matrix Transpose

1. (AT )T = A,

2. (A + B)T = AT + B T ,

3. (AB)T = B T AT ,

4. for any real number r ∈ R, (rA)T = rAT ,

Note That: Property 3 can be generalized to (ABC · · · XY Z)T = Z T Y T X T · · · C T B T AT .

Example 1.4.2
⎛ ⎞ ⎛ ⎞
2 0⎠ 1 4⎠
Let A = ⎝ and B = ⎝ . Find AT , B T , AB, (AB)T , and B T AT .
1 −1 3 5

Solution:
⎛ ⎞ ⎛ ⎞
2 1⎠ 1 3⎠
Clearly, AT = ⎝ and B T = ⎝ .
0 −1 4 5
⎛ ⎞ ⎛ ⎞ ⎛ ⎞
2+0 8 + 0⎠ ⎝ 2 8⎠ 2 −2⎠
AB = ⎝ = ⇒ (AB)T = ⎝
1−3 4−5 −2 −1 8 −1

Moreover, ⎛ ⎞ ⎛ ⎞
2+0 1 − 3⎠ ⎝2 −2⎠
B T AT = ⎝ =
8+0 4−5 8 −1
16 Chapter 1. Linear Equations and Matrices

Example 1.4.3
⎛ ⎞
.
T #9
/ 1 2⎠
pg.51
Find a 2 × 2 matrix B ̸= O and B ̸= I2 so that AB = BA if A = ⎝
0 1

Solution:
⎛ ⎞
a b⎠
Let B = ⎝ . Therefore,
c d
⎛ ⎞ ⎛ ⎞

AB = BA ⇒ ⎝a + 2c b + 2d⎠ ⎝a
=
2a + b⎠
,
c d c 2c + d

thus a = ⎛a + 2c⎞→ c = 0 and b + 2d = 2a + b → a = d. Let s, t ∈ R so that a = s and b = t to


s t⎠
get B = ⎝ . Note that s and t can not be both 0 since B ̸= O, and the case of t = 0 and
0 s
s = 1 can NOT be hold since B ̸= I.

1.4.5 Symmetric and Skew-Symmetric Matrices

Definition 1.4.1

Let A ∈ Mn×n . A is called symmetric matrix whenever AT = A, and it is called skew-


symmetric matrix whenever AT = −A.

⎛ ⎞
⎜1 2 3⎟ ⎛ ⎞
0 2⎠
For instance, A = ⎜
⎜2 4

5⎟ is a symmetric matrix; where B = ⎝ is a skew-symmetric
⎝ ⎠ −2 0
3 5 0
matrix.

Example 1.4.4
. /
T #23
pg.51
Let A and B be two symetric matrices. Show that

(a) A + B is symmetric.

(b) AB is symmetric (↔) if and only if AB = BA.


1.4. Properties of Matrix Operations 17

Solution:

Since A and B are both symmetirc, then AT = A and B T = B.


(a): Clearly, (A + B)T = AT + B T = A + B. Therefore, A + B is symmetric.
(b): We first prove (→). Let AB be symmetirc. Thus AB = (AB)T = B T AT = BA which
shows that AB = BA. To show the other direction (←), assume that AB = BA. Thus,
(AB)T = B T AT = BA = AB which shows that AB is symmetric.

Example 1.4.5

If A and B are skew-symmetric matrices and AB = BA, then AB is symmetric.

Solution:

It is given that AT = −A and B T = −B; thus, (AB)T = B T AT = (−B)(−A) = BA = AB.


Therefore, AB is symmetric.

Example 1.4.6
. /
T #26
pg.51
Show that AT A and AAT are both symmetric matrices.

Solution:

It is clear that (AT A)T = AT (AT )T = AT A which shows that AT A is symmetric. In addition,
(AAT )T = (AT )T AT = AAT shows that AAT is also symmetric.

Example 1.4.7
. /
T #27
pg.51
Let A ∈ Mn×n . Show that

(a) AT + A is symmetirc.

(b) A − AT is skew-symmetric.

Solution:

[(a)]: (AT + A)T = (AT )T + AT = A + AT = AT + A. Therefore, AT + A is symmetric.


[(b)]: (A − AT )T = AT − (AT )T = AT − A = −(A − AT ). Therefore, A − AT is skew-symmetric.
18 Chapter 1. Linear Equations and Matrices

Example 1.4.8
. /
T #28
pg.51
Let A ∈ Mn×n . Then A can be written as A = S + K, where S is symmetric matrix and
K is skew-symmetric matrix.

Solution:

From Example 1.4.7, we know that AT + A is symmetric and that A − AT is skew-symmetric.


If S = 21 (AT + A) which is symmetric and K = 12 (A − AT ) which is skew-symmetric, then

1 1 1 1 1 1
S + K = (AT + A) + (A − AT ) = AT + A + A − AT = A.
2 2 2 2 2 2
1.4. Properties of Matrix Operations 19

Exercise 1.4.1
⎡ ⎤
1 1⎦
1. Let A = ⎣ .
0 1

(a) Find A1977 .

(b) Find all matrices B such that AB = BA.


⎡ ⎤
1 1
2. Let A = ⎣2
1
2 ⎦.
1
Find A100 .
2 2

3. Show that if A and B are symmetric matrices, then AB − BA is a skew-symmetric matrix.

4. Let A be 2 × 2 skew-symmetric matrix. If A2 = A, then A = 0.


⎡ ⎤
⎢ 1⎥
⎢ ⎥
⎢ 3⎥ T
5. Let A = ⎢ ⎥

⎥. Find all constants c ∈ R such that (cA) · (cA) = 5.
⎢−1⎥
⎣ ⎦
3
⎡ ⎤
⎢2 −1 3⎥
⎢ ⎥
6. Let A = ⎢0 4 1⎥. Find a symmetric matrix S and a skew symmetric matrix K
⎣ ⎦
1 −2 −3
such that A = S + K.
20 Chapter 1. Linear Equations and Matrices

1.6 Solutions of Linear System of Equations

Definition 1.6.1

A matrix A ∈ Mm×n is said to be in the reduced row echelon form (r.r.e.f. for short) if it
satisfies the following conditions:

1. the row of zeros (if any) should be at the bottom of A,


2. the leading (first) entry of a non-zero row should be 1,
3. the leading entry of row i + 1 should be on the right of the leading entry of row i,
4. the columns that contain a leading entry 1, all its other entries are zeros.

The matrix A is said to be in the row echelon form (r.e.f.) if it does not satisfy the last Condition.

Example 1.6.1

Here are⎡some examples of some


⎤ matrices to clarify the previous conditions:
⎢1 0 0 3 0⎥
(1) A = ⎢
⎣ 0 0 1 −3 0⎦ is r.r.e.f.

⎡0 0 0 0 ⎤ 0
⎢1 3 0 4⎥
(2) B = ⎢
⎢0 0 0 0⎥

is not r.r.e.f. since it has a row of zeros in the second row.
⎣ ⎦
0 0 1 −2
⎡ ⎤
⎢1 0 4 5⎥
(3) C = ⎢
⎢0 2 −2

3⎥ is not r.r.e.f. since the leading entry in the second row is not 1.
⎣ ⎦
0 0 1 2
⎡ ⎤
⎢1 0 0 2⎥
(4) D = ⎢ ⎢0 0 1 3⎥

is not r.r.e.f. since the leading entry of the third row is on the left
⎣ ⎦
0 1 0 0
of the leading entry of the second row. Switch 2nd and 3rd rows to get the r.r.e.f. form.
1.6. Solutions of Linear System of Equations 21

⋆ Given a matrix A ∈ Mm×n , we define the following elementary row operations:

1. interchanging a row by another row,


2. multiplying a row by a non-zero scalar,
3. adding a multiple of a row to another row. That is,
replace ai1 , ai2 , · · · , ain by ai1 + cak1 , ai2 + cak2 , · · · , ain + cakn , for 1 ≤ i, k ≤ n.

Definition 1.6.2

An m × n matrix A is called row equivalent to an m × n matrix B if B can be obtained by


applying a finite sequence of elementary row operation to A. In this case, we write A ≈ B.

⋆ Properties of matrix equivalence: For any m × n matrices A, B, and C we have

1. A ≈ A,
2. A ≈ B ⇒ B ≈ A,
3. A ≈ B and B ≈ C ⇒ A ≈ C.

Theorem 1.6.1

Every non-zero m × n matrix is row equivalent to a unique matrix in the r.r.e.f.

Example 1.6.2
⎡ ⎤
⎢1 2 3 9⎥
⎢ ⎥
Find the matrix B which is in r.r.e.f. and is row equivalent to A = ⎢2 −1 1 8⎥.
⎣ ⎦
3 0 −1 3

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 2 3 9 ⎥ 1 ⎢1 2 3 9⎥ ⎢1 0 1 5⎥
r2 −2r1 →r2 ⎢ ⎥ − 5 r2 →r2 ⎢ ⎥ r1 −2r2 →r1 ⎢ ⎥
A −−−−−−→ ⎢0 −5 −5 −10⎥ −−−−−→ ⎢0 1 1 2⎥ −−−−−−→ ⎢0 1 1 2⎥
r3 −3r1 →r3 ⎣ ⎦ − 1 r3 →r3 ⎣ ⎦ r3 −3r2 →r3 ⎣ ⎦
2
0 −6 −10 −24 0 3 5 12 0 0 2 6
22 Chapter 1. Linear Equations and Matrices

⎡ ⎤ ⎡ ⎤
1
1 0 1 5⎥ ⎢1 0 0 2⎥
r3 →r3 ⎢ ⎥ r1 −r3 →r1 ⎢
−2−−−→ ⎢0
⎢ ⎥
1 1 −
− −− − −

2⎦ r −r →r ⎢
⎥ 0 1 0 −1⎥ = B (in r.r.e.f.) ≈ A.
⎣ 2 3 2 ⎣ ⎦
0 0 1 3 0 0 1 3

Example 1.6.3
⎡ ⎤
⎢2 4 6 0⎥
Find the matrix B which is in r.r.e.f. and is row equivalent to A = ⎢
⎢1 2 4

0⎥
⎣ ⎦
1 3 3 1

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
1
1 2 3 0⎥ ⎢1 2 3 0⎥ ⎢1 2 3 0⎥
r →r1 ⎢
2 1 ⎢ ⎥ r2 −r1 →r2 ⎢ ⎥ r2 ↔r3 ⎢ ⎥ r1 −2r2 →r1
A −−−−→ ⎢1 2 4 0⎥ −−−−−−→ ⎢0 0 1 0⎥ −−−→ ⎢0 1 0 1⎥ −−−−−−→
⎣ ⎦ r3 −r1 →r3 ⎣ ⎦ ⎣ ⎦
1 3 3 1 0 1 0 1 0 0 1 0
⎡ ⎤ ⎡ ⎤
⎢1 0 3 −2⎥ ⎢1 0 0 −2⎥
⎢ ⎥ r1 −3r3 →r1 ⎢ ⎥
⎢0 1 0 1⎥ −−−−−−→ ⎢0 1 0 1⎥ = B (in r.r.e.f.) ≈ A.
⎣ ⎦ ⎣ ⎦
0 0 1 0 0 0 1 0

1.6.1 Solving System of Linear Equations

Solving Ax = B

Ax = B where B ̸= O (non-homogenous) Ax = O (homogenous)

unique sol no sol infinite sol trivial sol non-trivial sol

Remark 1.6.1

⋆ Guass-Jordan method for solving Ax = B:


9 :
1. Find the r.r.e.f. of augmented matrix A | B ,
2. Solve the reduced system.

Note that, the solution of the reduced system is the solution of the original one.
1.6. Solutions of Linear System of Equations 23

Theorem 1.6.2

Let Ax = B and Cx = D be two linear systems of equations. If [ A | B ] ≈ [ C | D ], then the two


system have the same solutions.

(α) Solving Non-Homogenous System Ax = B with B ̸= O

Example 1.6.4

Solve the following system using the Guass-Jordan method.

x + 2y + 3z = 9
2x − y + z = 8
3x − z = 3

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 2 3 9⎥ ⎢1 2 3 9⎥ 1 ⎢1 2 3 9⎥
⎢ ⎥ r2 −2r1 →r2 ⎢ ⎥ − 5 r2 →r2 ⎢ ⎥ r1 −2r2 →r1
⎢2 −1 1 8⎥ −−−−−−→ ⎢0 −5 −5 −10⎥ −−−−−→ ⎢0 1 1 2⎥ −−−−−−→
⎣ ⎦ r3 −3r1 →r3 ⎣ ⎦ − 1 r3 →r3 ⎣ ⎦ r3 −3r2 →r3
2
3 0 −1 3 0 −6 −10 −24 0 3 5 12
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 0 1 5⎥ 1 ⎢1 0 1 5⎥ ⎢1 0 0 2⎥
⎢ ⎥ 2 r3 →r3 ⎢ ⎥ r1 −r3 →r1 ⎢ ⎥
⎢0 1 1 2⎥ −−−−→ ⎢0 1 1 2⎥ −−−−−−→ ⎢0 1 0 −1⎥
⎣ ⎦ ⎣ ⎦ r2 −r3 →r2 ⎣ ⎦
0 0 2 6 0 0 1 3 0 0 1 3
⎡ ⎤
⎢ 2 ⎥
Therefore, the reduced system is: x = 2, y = −1, and z = 3. Thus, x = ⎢ ⎥
⎢−1⎥ is a unique
⎣ ⎦
3
solution to the system.

Remark 1.6.2

The system Ax = B has a unique solution if and only if A ≈ I.


24 Chapter 1. Linear Equations and Matrices

Example 1.6.5

Solve the following system using the Guass-Jordan method.

x1 + x2 − x3 + 4x4 = 1
+ x2 − 3x3 + 4x4 = 0
2x1 + 2x2 − 2x3 + 8x4 = 2

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 1 −1 4 1⎥ ⎢1 1 −1 4 1⎥ ⎢1 0 2 0 1⎥
⎢ ⎥ r3 −2r1 →r3 ⎢ ⎥ r1 −r2 →r1 ⎢ ⎥
⎢0 1 −3 4 0⎥ −−−−−−→ ⎢0 1 −3 4 0⎥ −−−−−−→ ⎢0 1 −3 4 0⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
2 2 −2 8 2 0 0 0 0 0 0 0 0 0 0
Therefor, the reduced system is:

x1 + 2x3 = 1 x1 = 1 − 2x3

x2 − 3x3 + 4x4 = 0 x2 = 3x3 − 4x4

We now fix x3 = r and x4 = t for r, t ∈ R to get the following infinite many solutions:
⎡ ⎤
⎢ 1 − 2r ⎥
⎢ ⎥
x1 = 1 − 2r ⎢3r − 4t⎥
⇒ x=⎢
⎢ ⎥ for all r, t ∈ R.

x2 = 3r − 4t ⎢

r ⎥ ⎦
t

Remark 1.6.3

The system Ax = B has infinity many solutions if the number of unknowns is more than the
number of equations.

Example 1.6.6

Solve the following system using the Guass-Jordan method.

x1 + x2 − x3 + 4x4 = 1
+ x2 − 3x3 + 4x4 = 0
2x1 + 2x2 − 2x3 + 8x4 = 3

Solution:
1.6. Solutions of Linear System of Equations 25

⎡ ⎤ ⎡ ⎤
⎢1 1 −1 4 1⎥ ⎢1 1 −1 4 1⎥
⎢ ⎥ r3 −2r1 →r3 ⎢ ⎥
⎢0 1 −3 4 0⎦
⎥ −− −− − −→ ⎢0 1 −3 4 0⎥
⎣ ⎣ ⎦
2 2 −2 8 2 0 0 0 0 1
At this point, it can be seen that the third row suggests that 0 = 1 which is not possible.
Therefore, this system has no solution.

Remark 1.6.4

The system Ax = B has no solution whenever A ≈ a matrix with a row of zeros while [ A | B ] ≈
a matrix with no rows of zeros.

Example 1.6.7

Consider the system:


x + y + z = 2
x + 2y − z = 2
2
x + 2y + (a − 5)z = a
Find all values of a so that the system has:

(a) a unique solution.


(b) infinite many solutions.
(c) no solution.

Solution:

In this kind of questions, it is not necessary to get the r.r.e.f. So, we will try to focus on the last
row which contains the
⎡ ⎤ term ”a”⎡as follows: ⎤ ⎡ ⎤
⎢ 1 1 1 2⎥ ⎢1 1 1 2⎥ ⎢1 1 1 2⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥ r3 −r2 →r3 ⎢ ⎥
⎢ 1 2 −1 2⎥ −−−−−−→ ⎢0 1 −2 0⎥ −−−−−−→ ⎢0 1 −2 0⎥
⎣ ⎦ r3 −r1 →r3 ⎣ ⎦ ⎣ ⎦
2 2 2
1 2 a −5 a 0 1 a −6 a−2 0 0 a −4 a−2
At this point, we have:

(a) a unique solution if a2 − 4 ̸= 0 ⇐⇒ a ̸= ±2 ⇐⇒ a ∈ R\{−2, +2}.


; < ; <
(b) infinite solutions if a2 − 4 = 0 and a − 2 = 0 ⇐⇒ a = ±2 and a = +2 ⇐⇒ a = +2.
; < ; <
(c) no solution if a2 − 4 = 0 and a − 2 ̸= 0 ⇐⇒ a = ±2 and a ̸= +2 ⇐⇒ a = −2.
26 Chapter 1. Linear Equations and Matrices

(β) Solving Homogenous System Ax = O

Example 1.6.8

Solve the following system using the Guass-Jordan method.

x + 2y + 3z = 0
x + 3y + 2z = 0
2x + y − 2z = 0

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 2 3 0⎥ ⎢1 2 3 0⎥ ⎢1 0 5 0⎥ −1
r3 →r3
r −r →r
2 r −2r →r

⎢1 3 2

0⎥ −− −−1−−→
2 ⎢
⎢0 1 −1

0⎥
1
−− −−2−−→
1 ⎢
⎢0 1 −1 0⎥

−11
−−−−→
⎣ ⎦ r3 −2r1 →r3 ⎣ ⎦ r3 +3r2 →r3 ⎣ ⎦
2 1 −2 0 0 −3 −8 0 0 0 −11 0
⎡ ⎤ ⎡ ⎤
⎢1 0 5 0⎥ ⎢1 0 0 0⎥
⎢ ⎥ r1 −5r3 →r1 ⎢ ⎥
⎢0 1 −1 0⎥ −−−−−−→ ⎢0 1 0 0⎥
⎣ ⎦ r2 +r3 →r2 ⎣ ⎦
0 0 1 0 0 0 1 0
⎡ ⎤
⎢0⎥
Therefore, the reduced system is: x = 0, y = 0, and z = 0. Thus, x = ⎢ ⎥
⎢0⎥ is a trivial solution.
⎣ ⎦
0

Remark 1.6.5

The system Ax = O has a trivial solution whenever A ≈ I.

Example 1.6.9

Solve the following system using the Guass-Jordan method.

x1 + x2 − x3 + 4x4 = 0
+ x2 − 3x3 + 4x4 = 0
2x1 + 2x2 − 2x3 + 8x4 = 0

Solution:
1.6. Solutions of Linear System of Equations 27

⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 1 −1 4 0⎥ ⎢1 1 −1 4 0⎥ ⎢1 0 2 0 0⎥
⎢ ⎥ r3 −2r1 →r3 ⎢ ⎥ r1 −r2 →r1 ⎢ ⎥
⎢0 1 −3 4 0⎦⎥ −− −− − −→ ⎢0 1 −3 4 0⎦
⎥ −
− − − − −
→ ⎢0 1 −3 4 0⎥
⎣ ⎣ ⎣ ⎦
2 2 −2 8 0 0 0 0 0 0 0 0 0 0 0
Therefor, the reduced system is:

x1 + 2x3 = 0 x1 = −2x3

x2 − 3x3 + 4x4 = 0 x2 = 3x3 − 4x4

We now fix x3 = r and x4 = t for r, t ∈ R to get the following non-trivial solution:


⎡ ⎤
⎢ −2r ⎥
⎢ ⎥
x1 = −2r ⎢3r − 4t⎥
⇒ x=⎢
⎢ ⎥ for all r, t ∈ R.

x2 = 3r − 4t ⎢

r ⎥ ⎦
t

Remark 1.6.6

The system Ax = O has a non-trivial solution if the number of unknowns is greater than the
number of equations in the reduced system.

Definition 1.6.3

Linear systems with at least one solution are called consistent, and linear system with no
solutions are called inconsistent.

Example 1.6.10

Discuss the consistency of the following homogenous system:

x + y − z = 0
x − y + 3z = 0
2
x + y + (a − 5)z = 0

Solution:
⎡ ⎤ ⎡ ⎤
⎢1 1 −1 0⎥ ⎢1 1 −1 0⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥
⎢1 −1 3 0⎥ −−−−−−→ ⎢0 −2 4 0⎥ .
⎣ ⎦ r3 −r1 →r3 ⎣ ⎦
2 2
1 1 a −5 0 0 0 a −4 0
The system has:
28 Chapter 1. Linear Equations and Matrices

(a) trivial solution when a2 − 4 ̸= 0 ⇐⇒ a ̸= ±2 ⇐⇒ a ∈ R\{±2},


(b) non-trivial solution when a2 − 4 = 0 ⇐⇒ a = ±2.

Example 1.6.11

Discuss the consistency of the following non-homogenous system:

x + 3y + kz = 4
2x + ky + 12z = 6

Solution:
⎡ ⎤ ⎡ ⎤
⎣1 3 k 4⎦ r2 −2r1 →r2 ⎣1
−−−−−−→
3 k 4⎦
.
2 k 12 6 0 k−6 12 − 2k −2
The system:

(a) can not have a unique solution (not equivalent to I because it is not square matrix!!),
(b) has infinite solutions when k ̸= 6,
(c) has no solutions when k = 6.

Example 1.6.12
. /
T #11
pg.89
Let u and v be two solutions of the homogenous system Ax = O. Show that ru + sv
(for r, s ∈ R) is a solution to the same system.

Solution:

Since u and v are two solution of Ax = O, then Au = O and Av = O (respectively). We need


to show that A(ru + sv) = O. Clearly,

A(ru + sv) = A(ru) + A(sv) = r(Au) + s(Av) = O + O = O.

Therefore, ru + sv is also a solution to the system.


1.6. Solutions of Linear System of Equations 29

Example 1.6.13
. /
T #12
pg.89
Let u and v be two solutions of the non-homogenous system Ax = B. Show that u − v
is a solution to the homogenous system Ax = O.

Solution:

Since u and v are two solution of Ax = B, then Au = B and Av = B (respectively). We need


to show that A(u − v) = O. Clearly,

A(u − v) = Au − Av = B − B = O.

Therefore, u − v is a solution to the system Ax = O.


30 Chapter 1. Linear Equations and Matrices

Exercise 1.6.1
⎡ ⎤
⎢ 1 ⎥
⎢ ⎥
⎢ 3 ⎥ T
1. Let A = ⎢ ⎥

⎥. Find all constants c ∈ R such that (cA) · (cA) = 5.
⎢−1⎥
⎣ ⎦
3

2. Find the reduced row echelon form (r.r.e.f.) of the following matrix:
⎡ ⎤
⎢2 4 6 0⎥
⎢ ⎥
⎢1 2 4 0⎥
⎣ ⎦
1 3 3 1

⎡ ⎤ ⎡ ⎤
⎢1 0 3 3 ⎥ ⎢ 1 ⎥
⎢ ⎥ ⎢ ⎥
⎢0 1 1 −1 ⎥ ⎢ 0 ⎥
3. Let A = ⎢

⎥ and B =



⎥. Find all value(s) of a such that the

⎢1 −2 3 1 ⎥ ⎢ 0 ⎥
⎣ ⎦ ⎣ ⎦
0 2 0 a2 + 1 a+2
system Ax = B has at least one solution.

4. Solve the system


x + y + z = 0
x + 2y + 3z = 0
x + 3y + 4z = 0
x + 4y + 5z = 0.

5. Find all value(s) of a for which the system

x − y + (a + 3)z = a3 − a − 7
−x + ay − az = a
2(a − 1)y + (a2 + 2)z = 8a − 14.

has (a) no solution, (b) unique solution, and (c) infinite many solutions.

6. Show that if C1 and C2 are solutions of the system Ax = B, then 4C1 − 3C2 is also a
solution of this system.
1.7. The Inverse of a Matrix 31

1.7 The Inverse of a Matrix

Unless otherwise specified, all matrices in this section are considered to be square matrices.

Definition 1.7.1

A matrix A ∈ Mn×n is called non-singular or invertable if there exists a matrix B ∈ Mn×n


such that
A B = B A = In .

In particular, B is called the inverse of A and is denoted by A−1 . If there is no such B, we


say that A is singular which means that A has no inverse.

Example 1.7.1

Here is an example of a 2 × 2 matrix along with its inverse.


⎡ ⎤⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
⎣1 1⎦ ⎣ 3 −1⎦ ⎣ 3
=
−1⎦ ⎣1 1⎦ ⎣1
=
0⎦
= I2 .
2 3 −2 1 −2 1 2 3 0 1

Theorem 1.7.1

If a matrix has an inverse, then its inverse is unique.

Proof:

Assume that A ∈ Mn×n is a matrix with two inverses B and C, then

B = B In = B (A C) = (B A) C = In C = C.

Therefore, A has a unique inverse.

Remark 1.7.1

⋆ How to find A−1 for a given A ∈ Mn×n :

1. form the augmented matrix [ A | In ],


32 Chapter 1. Linear Equations and Matrices

2. find the r.r.e.f. of [ A | In ], say [ C | B ]:

(a) if C = In , then A is non-singular and A−1 = B,


(b) if C ̸= In , then C has a row of zeros and A is singular matrix with no inverse.

Example 1.7.2
⎡ ⎤
1 1⎦
Find, if possible, A−1 for A = ⎣
2 3

Solution:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎣1 1 1 0⎦ r2 −2r1 →r2 ⎣1
−−−−−−→
1 1 0⎦ r1 −r2 →r1 ⎣1
−−−−−−→
0 3 −1⎦
.
2 3 0 1 0 1 −2 1 0 1 −2 1
⎡ ⎤
3 −1⎦
Therefore, A is non-singular and A−1 =⎣ .
−2 1

Example 1.7.3
⎡ ⎤
⎢1 0 1⎥
Find, if possible, A−1 for A = ⎢
⎢1 1

2⎥
⎣ ⎦
2 0 1

Solution:
⎡ ⎤ ⎡ ⎤
⎢1 0 1 1 0 0⎥ ⎢1 0 1 1 0 0⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥ −r3
⎢1 1 2 0 1 0⎥ −−−−−−→ ⎢0 1 1 −1 1 0⎥ −−→
⎣ ⎦ r3 −2r1 →r3 ⎣ ⎦
2 0 1 0 0 1 0 0 −1 −2 0 1
⎡ ⎤ ⎡ ⎤
⎢1 0 1 1 0 0⎥ ⎢1 0 0 −1 0 1⎥
⎢ ⎥ r1 −r3 →r1 ⎢ ⎥
⎢0 1 1 −1 1 0⎥ −−−−−−→ ⎢0 1 0 −3 1 1⎥ .
⎣ ⎦ r2 −r3 →r2 ⎣ ⎦
0 0 1 2 0 −1 0 0 1 2 0 −1
⎡ ⎤
⎢−1 0 1⎥
Therefore, A is non-singular and A−1 = ⎢
⎢−3 1 1⎥

.
⎣ ⎦
2 0 −1
1.7. The Inverse of a Matrix 33

Example 1.7.4
⎡ ⎤
⎢1 2 −3⎥
Find, if possible, A−1 for A = ⎢
⎢1 −2

1⎥
⎣ ⎦
5 −2 −3

Solution:
⎡ ⎤ ⎡ ⎤
⎢1 2 −3 1 0 0⎥ ⎢1 2 −3 1 0 0⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥ r3 −3r2 →r3
⎢1 −2 1 0 1 0⎥ −−−−−−→ ⎢0 −4 4 −1 1 0⎥ −−−−−−→
⎣ ⎦ r3 −5r1 →r3 ⎣ ⎦
5 −2 −3 0 0 1 0 −12 12 −5 0 1
⎡ ⎤
⎢ 1 2 −3 1 0 0⎥
⎢ ⎥
⎢ 0 −4 4 −1 1 0⎥ .
⎣ ⎦
0 0 0 −2 −3 1
At this point, we can conclude that this matrix is singular with no inverse because of the fact
that the third row in the first part is a zero row. In particular, A−1 does not exist.

Remark 1.7.2

Let A be an n × n matrix:

1. if A is row equivalent to In , then it is non-singular,

Example 1.7.5
⎡ ⎤
−3 0⎦
A=⎣ is row equivalent to I2 .
0 5

2. if A is row equivalent to a matrix with a row of zeros, then it is singular.

Example 1.7.6
⎡ ⎤
−1 1⎦
A=⎣ is row equivalent to a matrix with a row of zeros.
0 0

TRUE or FALSE:
34 Chapter 1. Linear Equations and Matrices

⋆ If A and B are

singular

matrices,

then⎤ so is A + B. ⎡ ⎤
(FALSE).
1 0 0 0 ⎦ are two singular matrices, while A + B = ⎣1 0⎦
reason: A = ⎣ ⎦ and B = ⎣ is a non-
0 0 0 1 0 1
singular.

⋆ If A and B are

non-singular

matrices,

then

so is A + B. ⎡
(FALSE).

1 0⎦ −1 0⎦ 0 0⎦
reason: A = ⎣ and B = ⎣ are two non-singular matrices, while A + B = ⎣ is a
0 1 0 −1 0 0
singular.

Theorem 1.7.2

If A is non-singular, then A−1 is non-singular and (A−1 )−1 = A.

Proof:

If A is non-singular, then A A−1 = A−1 A = I, or A−1 A = A A−1 = I. Therefore, A−1 is


non-singular and (A−1 )−1 = A.

Theorem 1.7.3

If A and B are non-singular matrices, then A B is non-singular and (A B)−1 = B −1 A−1 .

Proof:

Since both A and B are non-singular, then both A−1 and B −1 exist. Thus

A B (B −1 A−1 ) = A (B B −1 ) A−1 = A I A−1 = A A−1 = I.

A B (B −1 A−1 ) = A (B B −1 ) A−1 = A I A−1 = A A−1 = I.

Thus, A B is non-singular and (A B)−1 = B −1 A−1 .

Theorem 1.7.4

If A is non-singular, then AT is non-singular and (AT )−1 = (A−1 )T .

Proof:

A is non-singular, and thus A A−1 = I = A−1 A. Taking the transpose for the whole thing, we
get
1.7. The Inverse of a Matrix 35

(A A−1 )T = I = (A−1 A)T =


⇒ AT is non-singular and (AT )−1 = (A−1 )T .
−1 T T T −1 T
(A ) A = I = A (A )

⋆ Inverses and System of Linear Equations

Remark 1.7.3

Assume that A is a non-singular n × n matrix. Then the non-homogenous system Ax = B has


a unique solution since
A−1 A x = A−1 B
In x = A−1 B
x = A−1 B

Remark 1.7.4

Assume that A is a non-singular n × n matrix. Then the homogenous system Ax = O has a


trivial solution since
A−1 A x = A−1 O
x = O

Remark 1.7.5

Assume that A is a singular n×n matrix. Then the homogenous system Ax = O has a non-trivial
solution.

Example 1.7.7

Solve the following system ”A x = B”


⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢1 0 1⎥ ⎢x⎥ ⎢ 0⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
⎢1 1 2⎥ ⎢y ⎥ = ⎢ 1⎥
⎣ ⎦⎣ ⎦ ⎣ ⎦
2 0 1 z −1

Solution:
36 Chapter 1. Linear Equations and Matrices

We can find the inverse of A as in Example 1.7.3, to get


⎡ ⎤
⎢−1 0 1⎥
A−1 = ⎢
⎢−3 1 1⎥

⎣ ⎦
2 0 −1

Then, using Remark 1.7.3,


⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢x⎥ ⎢−1 0 1⎥ ⎢ 0⎥ ⎢−1⎥
−1
⎢ ⎥
x = ⎢y⎥ = A B = ⎢
⎢−3 1
⎥⎢
1⎥
⎥ ⎢ ⎥
⎢ 1⎥ = ⎢ 0⎥
⎣ ⎦ ⎣ ⎦⎣ ⎦ ⎣ ⎦
z 2 0 −1 −1 1

which is a unique solution.

Example 1.7.8

Solve the following system ”A x = O”


⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢1 0 1⎥ ⎢x⎥ ⎢0⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
⎢1 1 2⎥ ⎢y ⎥ = ⎢0⎥
⎣ ⎦⎣ ⎦ ⎣ ⎦
2 0 1 z 0

Solution:

We can find the inverse of A as in Example 1.7.3, to get


⎡ ⎤
⎢−1 0 1⎥
A−1 =⎢
⎢−3 1 1⎥

⎣ ⎦
2 0 −1

Then, using Remark 1.7.4,


⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢x⎥ ⎢−1 0 1⎥ ⎢0⎥ ⎢0⎥
⎢ ⎥ −1 ⎢ ⎥⎢ ⎥ ⎢ ⎥
x = ⎢ y ⎥ = A O = ⎢−3 1 1⎥ ⎢0⎥ = ⎢0⎥
⎣ ⎦ ⎣ ⎦⎣ ⎦ ⎣ ⎦
z 2 0 −1 0 0

which is a trivial solution.


1.7. The Inverse of a Matrix 37

Example 1.7.9

Solve the following system ”A x = O”


⎡ ⎤⎡ ⎤ ⎡ ⎤
⎢1 2 −3⎥ ⎢x⎥ ⎢0⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
⎢1 −2 1⎥ ⎢y ⎥ = ⎢0⎥
⎣ ⎦⎣ ⎦ ⎣ ⎦
5 −2 −3 z 0

Solution:

Since A is singular as we have seen in Example 1.7.4, we can not follow Remark 1.7.4. Therefore,
we use the usual Guass-Jordan method to solve this system, knowing that this system has
nontrivial solution as in Remark 1.7.5.
⎡ ⎤ ⎡ ⎤
⎢1 2 −3 0⎥ ⎢1 0 −1 0⎥
⎢ ⎥
⎢1 −2 1 0⎥ ≈ ··· ≈⎢
⎢0 1 −1

0⎥
⎣ ⎦ ⎣ ⎦
5 −2 −3 0 0 0 0 0
⎡ ⎤
⎧ ⎫
⎢t⎥
x

− z = 0⎬
Thus, the reduced system is ⎩ . Let z = t ∈ R. Therefore, x = ⎢ ⎥
⎢t⎥
y − z = 0⎭ ⎣ ⎦
t

Remark 1.7.6

For any A ∈ Mn×n , we have

1. A is non-singular ⇐⇒ A ≈ In ⇐⇒ A−1 exits ⇐⇒ A x = B has a unique solution ⇐⇒


A x = O has a trivial solution.

2. A is singular ⇐⇒ A ≈ a matrix with a row of zeros ⇐⇒ A−1 Does Not Exist ⇐⇒ A x = O


has a non-trivial solution.
38 Chapter 1. Linear Equations and Matrices

Exercise 1.7.1
⎡ ⎤
⎢1 0 1⎥
T
1. Let A = ⎢
⎢1 1

0⎥. Find (2A)−1 .
⎣ ⎦
2 0 1
9
Hint: If c is a nonzero constant, then what is (cA)−1 ?]
⎡ ⎤ ⎡ ⎤
1 2⎦ 1 −1 2⎦
2. Let A = ⎣ , and B = ⎣ . Find C if (B T + C)A−1 = B T .
1 3 3 2 0
⎡ ⎤ ⎡ ⎤
⎢1 2 0⎥ ⎢1 1 0⎥
3. Let A−1 = ⎢0 . Find C if A C = B T .
⎢ ⎥ ⎢ ⎥
1 −1⎦
⎥ and B = ⎢1 0 0⎥
⎣ ⎣ ⎦
2 0 1 0 1 1
9
Hint: Consider multiplying both sides from the left with A−1 .]
⎡ ⎤
⎢1 2 3⎥ 1 2 1 2
−1
4. Let A =⎢
⎢0 1

2⎥. Find all x, y, z ∈ R such that x y z A= 1 2 3 .
⎣ ⎦
0 0 1
⎡ ⎤ ⎡ ⎤
⎢0 1 −1⎥ ⎢1 2 −1⎥
5. Let A = ⎢
⎢1 1

0⎥ and B = ⎢
⎢1 3

0⎥.
⎣ ⎦ ⎣ ⎦
0 1 2 1 1 −1

(a) find B −1 .

(b) Find C if A = B C.

6. Let A, B, and C be n × n matrices such that D = AB + AC is non-singular.

(a) Find A−1 if possible.

(b) Find (B + C)−1 if possible.

7. Let A be an n × n matrix such that A3 = O. Prove or disprove that

(In − A)−1 = A2 + A + In .
1.7. The Inverse of a Matrix 39

CHAPTER 1 REVISION

Revision of Chapter 1 ... Have Fun :-)


⎡ ⎤
5 −10⎦
1. Let A = ⎣ . Find all values of a such that A2 = A.
a −4

2. Find the matrix A satisfying


⎛ ⎡ ⎤⎞T ⎡ ⎤
⎝2AT − 3 ⎣ 1 2⎦⎠
=⎣
2 3⎦
.
−1 1 −1 2

⎡ ⎤ ⎡ ⎤
1 −3⎦ 5
3. Let A = ⎣ and X = ⎣ ⎦. Compute, if possible, X T AT , AT X T , X T X, and XX T .
−2 4 3
⎡ ⎤
⎢1 1⎥ ⎡ ⎤
4 1 −1⎦
4. Let A = ⎢
⎢0

2⎥ and B = ⎣ .
⎣ ⎦ 2 5 1
2 0

(a) Find, if possible, AB and AT B.


(b) Express the second column of AB as a linear combination of the columns of A.
(c) Express the second row of AB as a linear combination of the rows of B.

5. ⋆ Let A be a square matrix. Show that if A = 2AT , then A = O.


⎡ ⎤
⎢1 −1 2⎥
6. Let A = ⎢
⎢2 1

1⎥.
⎣ ⎦
1 1 0
⎡ ⎤ ⎡ ⎤
⎢x⎥ ⎢1⎥
⎢ ⎥ ⎢ ⎥
(a) Find all solution, if any, to the system A ⎢y ⎥ = ⎢8⎥.
⎣ ⎦ ⎣ ⎦
z 7
⎡ ⎤ ⎡ ⎤
⎢x⎥ ⎢0⎥
⎢ ⎥
(b) Find all solution to the homogenous system A ⎢y ⎥ = ⎢ ⎥
⎢0⎥.
⎣ ⎦ ⎣ ⎦
z 0
40 Chapter 1. Linear Equations and Matrices

7. Find all values of a such that the following system has at least one solution.

x + y + z = 1
x + 3y + 2z = 2 .
2
x + y + (a − 3)z = a−1

⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 2 −1⎥ ⎢1 3⎥ ⎢2 −1⎥
8. Let A = ⎢
⎢1 3

0⎥,B=⎢
⎢2 0⎥

, and C = ⎢
⎢1 1⎥

.
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
1 1 −1 1 −2 0 3

(a) Find A−1 .


(b) Find a matrix X such that AX + B = C.
(c) Is it possible to find a matrix Y such that Y A + B = C? Explain.

9. Let A and B be skew symmetric matrices. Show that AB is symmetric iff AB = BA.

10. Let A and B be two square matrices such that AB = O. If B is non-singular, find A.
⎡ ⎤ ⎡ ⎤
−1 1⎦ 2 −1⎦
11. Find a 2×2 matrix C such that AT CB = I2 , where A−1 =⎣ and B −1 = ⎣ .
1 0 0 1
⎡ ⎤ ⎡ ⎤
⎢1 0 2⎥ ⎢ 1 2 −2⎥
12. Let P = ⎢
⎢1 1

0⎥ and Q = ⎢
⎢−1 −1 2⎥

.
⎣ ⎦ ⎣ ⎦
1 1 1 0 −1 1

(a) Compute P Q.
(b) Is P singular or non-singular matrix? Explain.

13. ⋆ Consider the system


3x +2y −z −w = 0
−x −y +3z −5w = 0
,
5y +2z −4w = 0
x −y −z +w = 0

(a) Determine whether (1, 0, 2, 1) is a solution to the above system.


(b) Does the above system has infinitely many solutions? Explain.
(c) Let A be the coefficient matrix of the above system. Is A singular? Explain.
1.7. The Inverse of a Matrix 41

⎡ ⎤
⎢1 2 3⎥ 1 2 1 2
14. Let A−1 = ⎢
⎢0 1

2⎦
⎥. Find all x, y, z ∈ R such that x y z A= 1 2 3 .

0 0 1

15. Let A, B, and C be n × n matrices such that D = AB + AC is non-singular.

(a) Find A−1 if possible.


(b) Find (B + C)−1 if possible.

16. Let A be an n × n matrix such that A3 = O. Prove or disprove that

(In − A)−1 = A2 + A + In .

17. ⋆ Let A be an n × n matrix and let U and V be two n × 1 column matrices. Show that if
AU = AV and U ̸= V , then A is singular.

18. Solve the following linear system

x +3y −z +w = 1
2x −y −2z +2w = 2 .
3x +y −z +w = 1

⎡ ⎤ ⎡ ⎤
⎢1 2 4⎥ ⎢ 2 ⎥
19. Let A = ⎢ ⎥
and C = ⎢ ⎥
⎢3 −2 0⎥ ⎢−5⎥.
⎣ ⎦ ⎣ ⎦
4 3 9 1

(a) If possible, compute (AC + I3 )T .


(b) Write AC as a linear combination of the columns of A.
(c) Find a 3 × 3 matrix B, if any, such that A−1 B + I3 = A.
⎡ ⎤ ⎡ ⎤
1 2⎦ 1 −1 2⎦
20. Let A = ⎣ and B = ⎣ .
1 3 3 2 0

(a) If possible, find A2 − (3A)T .


(b) Find C, if any, such that (B T + C)A−1 = B T .
42 Chapter 1. Linear Equations and Matrices
Chapter

2 Determinants

2.1 Determinants

Definition 2.1.1

Let S = {1, 2, · · · , n} be a set of integers from 1 to n. A rearrangement of j1 , j2 , · · · , jn of


elements of S is called permutation of S.

Example 2.1.1

For S = {1, 2}, we have 2 permutations:

1 2, and 2 1.

While, for S = {1, 2, 3}, we have the following 6 permutations:

1 2 3, 1 3 2, 2 1 3, 2 3 1, 3 1 2, and 3 2 1.

In general, for S = {1, 2, · · · , n}, we have n! = n(n − 1)(n − 2) · · · 3 · 2 · 1 permutations.

Definition 2.1.2

A permutation j1 j2 · · · jn of the set S = {1, 2, · · · , n} is said to have an inversion if a larger


integer jr preceedes a smaller one js for r, s ∈ S. A permutation is called even with a positive
”+” sign or odd with a negative ”−” sign according to whether the total number of inversions
in it is even or odd, respectively.

43
44 Chapter 2. Determinants

Example 2.1.2

If S = {1, 2, 3}, then


permutation #inversions even-odd sign inversions

123 0 even + 12 13 23
132 1 odd − 13 12 3 2
213 1 odd − 2 1 23 13
231 2 even + 23 2 1 3 1
312 2 even + 3 1 3 2 12
321 3 odd − 3 2 3 1 2 1

TRUE or FALSE:

⋆ The permutation 5 2 1 3 4 has a positive sign. (FALSE).


reason: The number of inversions is 5 which are 5 2, 5 1, 5 3, 5 4, and 2 1. So, this permutation has an
odd number of inversions and a negative sign.

Definition 2.1.3
> >
Let A = (aij ) ∈ Mn×n . Then, the determinant of A, denoted by det(A) or >> A >>, is
0
det(A) = (±)a1j1 a2j2 a3j3 · · · anjn

where the summation ranges over all permutations j1 j2 · · · jn of the set S = {1, 2, · · · , n}. The
sign is taken as + or − according to the sign of the permutation.

Example 2.1.3
⎡ ⎤
a a12 ⎦
Compute the determinant of A = ⎣ 11 .
a21 a22

Solution:
?
Using the definition, we have det(A) = (±)a1j1 a2j2 , where j1 j2 is a permutation of S = {1, 2}.
Thus, j1 j2 ∈ {1 2, 2 1} and
det(A) = + a11 a22 − a12 a21 .
2.1. Determinants 45

Example 2.1.4
⎡ ⎤
⎢a11 a12 a13 ⎥
⎢ ⎥
Compute the determinant of A = ⎢a21 a22 a23 ⎥.
⎣ ⎦
a31 a32 a33

Solution:
?
Using the definition, we have det(A) = (±)a1j1 a2j2 a3j3 , where j1 j2 j3 is a permutation of S =
{1, 2, 3}. Thus, j1 j2 j3 ∈ {1 2 3, 1 3 2, 2 1 3, 2 3 1, 3 1 2, 3 2 1} and

det(A) = + a11 a22 a33 − a11 a23 a32 − a12 a21 a33 + a12 a23 a31 + a13 a21 a32 − a13 a22 a31 .

Moreover, this formula can be found by taking the sum of the positive product of the diagonal
entries and the negative product of the anti-diagonal entries in the following matrix:

+ + +− − −
a11 a12 a13 a11 a12

a21 a22 a23 a21 a22

a31 a32 a33 a31 a32

Example 2.1.5

Find det(A) for ⎡ ⎤


2 3⎦
A=⎣ .
1 5

Solution:
> >
> >
> A > = (2)(5) − (1)(3) = 10 − 3 = 7.
46 Chapter 2. Determinants

Example 2.1.6

Find det(A) for ⎡ ⎤


⎢ 2 0 1⎥
A=⎢
⎢−2 3

4⎥ .
⎣ ⎦
5 1 2

Solution:

We calculate the det(A) using the following diagram:

+ + +− − −
2 0 1 2 0

−2 3 4 −2 3

5 1 2 5 1

In particular,
> >
> >
>A> = (2)(3)(2) + (0)(4)(5) + (1)(−2)(1)
−(1)(3)(2) − (2)(4)(1) − (0)(−2)(2) = 12 + 0 + (−2) − 15 − 8 − 0 = −13.

⋆ Properties of Determinants:

> > > >


1. >> A >> = >> AT >>.
> > > >
2. If B is obtained from A by interchanging two rows (or two columns), then >> B >> = −>> A >>.
> >
> >
3. If A has two equal rows (or columns), then > A > = 0.
> >
4. If A has a row (or a column) of zeros, then >> A >> = 0.

5. If B is obtained from A by adding a multiple of a row (or a column) to another row (or column,
> > > >
respectively), then >> A >> = >> B >>.
> > > >
6. If B is obtained from A by multiplying a row (or a column) by a scalar c, then >> B >> = c >> A >>.
2.1. Determinants 47

Remark 2.1.1
> > > >
In general, for A ∈ Mn×n , we have >> c A >> = cn >> A >>.

7. The determinant of lower triangular, upper triangular, diagonal, and scalar matrices can be com-
puted as follows.

Theorem 2.1.1

The determinant of lower triangular, upper triangular, diagonal, and scalar matrices equal
the product of elements of the diagonal.

> > > >> >


> > > >> >
8. For any A, B ∈ Mn×n , we have > A B > = > A > > B >.

9.
Theorem 2.1.2
> > > >
1
If A is an n × n non-singular matrix, then >> A >> ̸= 0 and >> A−1 >> = |A|
. This statement
> >
suggests that if >> A >> = 0, then A is singular matrix.

Proof:

Since A is non-singular, A−1 exists, then

AA−1 = In (take the determinant for both sides)


> > > >
>A A−1 >
> > > >
= > In >
> >> >
> > > −1 >
>A>>A > = 1.
> > > >
1
Thus, >> A >> ̸= 0 and >> A−1 >> = |A|
.

Example 2.1.7

Let A, B ∈ Mn×n . Show that, if A B = In , then B A = In .

Solution:
48 Chapter 2. Determinants

> > > >


If A B = In , then >> A >> ̸= 0 and >> B >> ̸= 0.

A−1 A B = A−1 In
In B = A−1
BA = A−1 A = In

Thus, A B = In = B A.

Example 2.1.8
. / > >
T #16 > >
pg.195
Show that if A ∈ Mn×n is skew-symmetric matrix and n is odd, then > A > = 0.

Solution:

Since A is skew-symmetric, then AT = −A and taking the determinant for both sides
> > > >
> T > > >
>A > = > − A>
> > > >
> T
(−1)n > A >, where n is odd and (−1)n = −1.
> > >
>A > =
> > > > > >
> A > = > AT
> > > >
> = −>> A >>.
> > > > > >
Therefore, >> A >> = −>> A >> which means that >> A >> = 0.

TRUE or FALSE:
> > > >
⋆ If A, B ∈ Mn×n with >> A >> = >> B >>, then A = B. (FALSE).
> > > > > >
reason: I2 ̸= −I2 while >> I2 >> = 1 and >> − I2 >> = (−1)2 >> I2 >> = 1.

Example 2.1.9
. / > > > >
T #5
pg.194
If |A B| = 0, then either >> A >> = 0 or >> B >> = 0.

Solution:
> >> > > > > >
Clearly, |A B| = >> A >> >> B >> = 0. Then, >> A >> = 0 or >> B >> = 0.
2.1. Determinants 49

Example 2.1.10
. / > > > >
T #8
pg.194
If A B = In , then >> A >> ̸= 0 and >> B >> ̸= 0.

Solution:
> >> > > > > >
> >> > > > > >
|A B| = |In | =⇒ |A B| = 1 which implies that > A > > B > = 1 and both > A > and > B > can not be
zero.

Example 2.1.11
. / > > > >
T #9(b)
pg.194
Show that if A−1 = AT , then >> A >> = 1 or >> A >> = −1.

Solution:

Since A−1 = AT , we have

1 > > > >2 > >


|A−1 | = |AT | ⇐⇒ = >> A >> ⇐⇒ >> A >> = 1 ⇐⇒ >> A >> = ±1.
|A|

Example 2.1.12
. / > >
T #10
pg.194
Show that if A is non-singular and A2 = A, then >> A >> = 1.

Solution:

Since A is non-singular, A−1 exists and


> > > >
A2 = A ⇐⇒ A = In ⇐⇒ >> A >> = |In | ⇐⇒ >> A >> = 1.

Example 2.1.13
. / > >
T #10 > >
pg.210
Show that for any A, B, C ∈ Mn×n , if A B = A C and > A > ̸= 0, then B = C.

Solution:
> >
Since >> A >> ̸= 0, then A−1 exists and thus

AB = AC ⇐⇒ A−1 AB = A−1 AC ⇐⇒ B = C.
50 Chapter 2. Determinants

Example 2.1.14
> > > > > >
Let A, B ∈ M3×3 with > A > = 2 and > B > = −2. Find > 2 A−1 (B 2 )T >.
> > > > > >

Solution:

> > > >> > 1 >> >> >> >>


> 2 A−1 (B 2 )T > 23 >> A−1 >> >> B 2 >> = 8
> >
= >B>>B>
|A|
1
= 8 ( ) (−2)(−2) = 16.
2

Example 2.1.15

Evaluate the determinant of the matrix A via reduction to triangular form , where
⎡ ⎤
⎢2 −2 5⎥
A=⎢
⎢0 3

1⎥ .
⎣ ⎦
1 4 2

Solution:

The idea here


> is to compute
> the determinant
> of A by
> applying the method
> of Theorem
> 2.1.1.
> > > > > >
>2 −2 5> >1 4 2>> >1 4 2>>
> > > > > >
> > r1 ↔r3 r3 −2r1 →r3 c2 ↔c3
= >>0 > > > > >
>A> 3 1>> −−−→ (−1) >>0 3 1>> −−−−−−→ (−1) >>0 3 1>> −−−→
>
>
>1 4 2>> >
>2 −2 5>
> >
>0 −10 1>
>
> > > >
> > > >
>1 2 4>> > 1 2 4>>
> >
> r3 −r2 →r3
(−1)(−1) >>0 1 3>> −−−−−−→
>
> 0 1
>
3>> = (1)(1)(−13) = −13.
@ AB C >> >
−10>> > 0 0 -13 >>
>
=+1 >0 1

Example 2.1.16
> > > >
> > > >
> a1 b1 c1 >> > a1 a2 a3 >>
> >
> > > >
Let >>a2 b2 c2 >> = 3. Find >> −2b1 −2b2 −2b3 >>.
>
> a3 b3 c3 >> >
>3a1 − c1 3a2 − c2 3a3 − c3 >>

Solution:

We solve this question in the following two ways (either one works):
2.1. Determinants 51

⋆> solution 1:> > > > >


> > > > > >
> a1 b 1 c 1 > > a1 a2 a3 >> > a1 a2 a3 >>
> > transpose
> (−2)r2 →r2
>
> > > > > >
> a2 b 2 c 2 > = 3 −−−−−→ > b1 b2 b3 >> = 3 −−−−−−→ >−2b1 −2b2 −2b3 >> =
> > > (−1)r3 →r3 >
> > >
> a3 b 3 c 3 > > c1 c2 c3 >> >
> −c1 −c2 −c3 >>
> >
> >
>
> a1 a2 a3 >>
r3 +3r1 →r3 > >
(−1)(−2)3 −−−−−−→ >> −2b1 −2b2 −2b3 >> = 6.
>
>3a1 − c1 3a2 − c2 3a3 − c3 >>
⋆> solution 2: > > >
> > > >
>
> a1 a2 a3 >> >
> a1 a2 a3 >>
r +3r →r
3
>
> −2b1 −2b2 −2b3 >>
>
= >
(−2)(−1) >> b1 b2 b3 >>
>
−− −−1−−→
3
>
>
>3a1 − c1 3a2 − c2 3a3 − c3 >> >
>c1 − 3a1 c2 − 3a2 c3 − 3a3 >>
> > > >
> > > >
> a1 a2 a3 >> > a1 b1 c1 >>
> >
> transpose
2 >>> b1 b2
>
b3 >> −−−−−→ 2 >>a2 b2
>
c2 >> = 2(3) = 6.
>
> c1 c2 c3 >> >
> a3 b3 c3 >>
52 Chapter 2. Determinants

Exercise 2.1.1
⎡ ⎤
⎢0 4 4 0⎥
⎢ ⎥
⎢1 1 2 0⎥ > >
1. Let D = ⎢ ⎥. Evaluate >>D >>.
⎢ ⎥
⎢1 3 5 3⎥
⎣ ⎦
0 1 2 6
9
Hint: |D| = −12.]
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
a+e b + f⎦ a b⎦ e f⎦ > > > > > >
2. Let A = ⎣ ,B=⎣ , and C = ⎣ . Show that >> A >> = >> B >> + >> C >>.
c d c d c d
> > > >
> > > >
> a1 b1 c1 >> > b1 b2 b1 − 3b3 >>
> >
3. Given that >>>a2 b2
> >
c2 >> = 7, evaluate >>a1 a2
>
a1 − 3a3 >>.
>
> a3 b3 c3 >> >
> c1 c2 c1 − 3c3 >>
9
Hint: The result is 21.]
⎡ ⎤ ⎡ ⎤
⎢a1 a2 a3 ⎥ ⎢ 2a3 2a2 2a1 ⎥ > > > >
4. Let A = ⎢
⎢ b1 b2

b3 ⎥

, and B = ⎢ b3 − a3 b 2 − a2

b 1 − a1 ⎥. If >>A>> = −4, find >>B >>.
⎣ ⎦ ⎣ ⎦
c1 c2 c3 c3 + 3b3 c2 + 3b2 c1 + 3b1
9
Hint: The result is 8.]
⎡ ⎤
⎢7 1 0 3⎥
⎢ ⎥
⎢2 0 0 0⎥
5. Let A be a matrix with A−1 =⎢

⎥. Find det (A).

⎢1 3 5 4⎥
⎣ ⎦
6 2 0 5
⎡ ⎤
⎢1 2 4⎥
⎢ ⎥
6. Find all values of α for which the matrix ⎢1 3 9⎥ is singular.
⎣ ⎦
2
1 α α

7. Let A and B be two n × n matrices such that A is invertible and B is singular. Prove that
A−1 B is singular.
> >
8. If A and B are 2 × 2 matrices with det (A) = 2 and det (B) = 5, compute >>3 A2 (AB −1 )T >>.
2.2. Cofactor Expansion and Applications 53

2.2 Cofactor Expansion and Applications

Definition 2.2.1

Let A = (aij ) be an n × n matrix. Let Mij be the (n − 1) × (n − 1) submatrix of A obtained by


deleting the ith row and the j th column of A. The determinant, det(Mij ), is called the minor
of aij . The cofactor denoted by Aij of aij is defined by

Aij = (−1)i+j det(Mij ).

Moreover, the cofactor matrix denoted by coef(A) = (Aij ) where 1 ≤ i, j ≤ n.

Example 2.2.1
⎡ ⎤
⎢1 2 1⎥
Compute the minors, cofactors, and the coef(A) for A = ⎢
⎢0 1

−1⎥.
⎣ ⎦
3 1 −2

Solution:

minors:
> >
cofactors:
> >
>1 −1>>
det(M11 ) = >
> > = -1 =⇒ A11 = (−1)2 (−1) = -1
>1 −2>
> >
> >
>0 −1>>
det(M12 ) = >
> > = 3 =⇒ A12 = (−1)3 (3) = -3
>3 −2>
> >
> >
>0 1>>
det(M13 ) = >
> > = -3 =⇒ A13 = (−1)4 (−3) = -3
>3 1>
> >
> >
>2 1>>
det(M21 ) = >
> > = -5 =⇒ A21 = (−1)3 (−5) = 5
>1 −2>
> >
> >
>1 1>>
det(M22 ) = >
> > = -5 =⇒ A22 = (−1)4 (−5) = -5
>3 −2>
> >
> >
>1 2>>
det(M23 ) = >
> > = -5 =⇒ A23 = (−1)5 (−5) = 5
>3 1>
54 Chapter 2. Determinants

> >
> >
>2 1>>
det(M31 ) = >
> > = -3 =⇒ A31 = (−1)4 (−3) = -3
>1 −1>
> >
> >
>1 1>>
det(M32 ) = >
> > = -1 =⇒ A32 = (−1)5 (−1) = 1
>0 −1>
> >
> >
>1 2>>
det(M33 ) = >
> > = 1 =⇒ A33 = (−1)6 (1) = 1
>0 1>
⎡ ⎤
⎢−1 −3 −3⎥
Therefore, coef(A) = ⎢
⎢ 5 −5

5⎥.
⎣ ⎦
−3 1 1

Theorem 2.2.1

Let A = (aij ) be an n × n matrix with cofactors Aij for all 1 ≤ i, j ≤ n, then for each 1 ≤ i ≤ n
we have ⎧
⎪> >
⎪> >
⎨>A> if i = k,
ai1 Ak1 + ai2 Ak2 + · · · + ain Akn =⎪
⎩0
⎪ if i ̸= k.

and for each 1 ≤ j ≤ n



⎪ > >

⎨>> A >> if j = k,
a1j A1k + a2j A2k + · · · + anj Ank =⎪
⎩0
⎪ if j ̸= k.

Example 2.2.2

Compute the determinant of A by using the cofactor expansion method, where A is given in
Example 2.2.1.

Solution:

Computing the determinant of A using the first row of A, we have


> >
> >
> A > = a11 A11 + a12 A12 + a13 A13 = (1)(−1) + (2)(−3) + (1)(−3) = −10.

Moreover, we can get the same result using (for instance) the second column of A,
> >
> >
> A > = a12 A12 + a22 A22 + a32 A32 = (2)(−3) + (1)(−5) + (1)(1) = −10.
2.2. Cofactor Expansion and Applications 55

Note that, if we choose the first row of A and the cofactors of (for instance) the second row of
A, we get
a11 A21 + a12 A22 + a13 A23 = (1)(5) + (2)(−5) + (1)(5) = 0.

Example 2.2.3
> >
> >
>0 3 0 1>>
>
> >
>2 1 1 2>>
Compute >> > using the cofactor expansion method.
>0 0 1 2>>
>
>0 1 0 1>>
>

Solution:

We solve this problem by choosing the row or the column with the maximum number of zeros
as this will ease the computations: Choosing the first column, we have

> >
> >
>A> = a11 A11 + a21 A21 + a31 A31 + a41 A41
> > choose 2nd column
> > B> C@ A>
> 0 3 0 1 > > >
> − > >3
> > 0 1>>
✘✘ + (0) ✘✘ + > 2 ✘✘
>
✘ ✘
> 1 1 2>> + (0)
✘✘A41 = (−2)
> >
= (0)
✘ A 11 ✘ A 21 > > >0
> 1 2>>
> 0 0 1 2>> >
>
> > >1 0 1>>
> 0 1 0 1>
⎧ ⎫
⎪ =O =O ⎪

⎪ B
> C@ A> > > B
> C@ >⎪
A ⎪

⎪ > − > > > > > ⎪

⎪ ⎪

⎪>3

>
0 1>
>
>
>
> 3 0 1 >
>
>
> 3 0 1>
>



⎨> > + > > >⎬
= (−2) >0 2>> + >>0 2>> + >>0 1 2>
> > > > > >
⎪>

1 1 − >⎪⎪
⎪ >⎪
⎪>>1

⎪ 0 1 >
>
>
> 1 0 1 >
>
>
> 1 0 1>




⎪ ⎪


⎩ ⎪

⎧ > >⎫
> >

⎨ >3 1>⎪ ⎬
> >
= (−2) ⎪(+1) >> > = (−2) [3 − 1] = (−2)(2) = −4.
>⎪
⎩ >1 1>⎭
56 Chapter 2. Determinants

Definition 2.2.2

Let A = (aij ) ∈ Mn×n . The adjoint matrix of A, denoted by adj(A), is given by

adj(A) = (coef(A))T .

Example 2.2.4

Compute the adjoint of A, where A as given in Example 2.2.1:


⎡ ⎤
⎢1 2 1⎥
A=⎢
⎢0 1 −1⎥

.
⎣ ⎦
3 1 −2

Solution:

Here, we use the result of Example 2.2.1, where


⎡ ⎤
⎢−1 −3 −3⎥
⎢ ⎥
coef(A) = ⎢ 5 −5 5⎥ .
⎣ ⎦
−3 1 1

Therefore, ⎡ ⎤
⎢−1 5 −3⎥
adj(A) = (coef(A))T = ⎢
⎢−3 −5

1⎥ .
⎣ ⎦
−3 5 1

Theorem 2.2.2

Let A = (aij ) ∈ Mn×n . Then,


> >
A · adj(A) = adj(A) · A = >> A >> In .

Proof:
2.2. Cofactor Expansion and Applications 57

> >
We first prove that A · adj(A) = >> A >> · In ,
⎡ ⎤⎡ ⎤
⎢ a11 a12 ··· a1n ⎥ ⎢ A11 A21 ··· An1 ⎥
⎢ ⎥⎢ ⎥
⎢ a21 a22 ··· a2n ⎥ ⎢ A12 A22 ··· An2 ⎥
⎢ ⎢
⎥ ⎥
A · adj(A) = ⎢
⎢ . .. ...

.. ⎥

⎢ . .. ...

.. ⎥
⎢ .. . . ⎥ ⎢ .
⎢ ⎥⎢ . . . ⎥ ⎥
⎣ ⎦⎣ ⎦
an1 an2 ··· ann A1n A2n ··· Ann
⎡> > ⎤ ⎡ ⎤
⎢ 1
> >
⎢> A > 0 0 ··· 0 ⎥ ⎥
...
0
⎢ > > ⎥ ⎢ ⎥
⎢ > > ⎥ ⎢ ⎥
⎢ 0 >A> 0 ··· 0 ⎥ ⎢ ⎥
⎢ ⎥ > > ⎢ ⎥
⎢ ... ... .. ⎥ > > ⎢
⎥ ⎥ > >
⎥ = >> A >> · In .
= ⎢ 0
⎢ 0 . ⎥ = >A> ⎢
⎢ 1 ⎥
⎢ ⎥ ⎢ ⎥
⎢ ..
⎢ .


..
.
... ...
0 ⎥
> >⎦






0 ... ⎥



> >
0 0 ··· 0 >A> 1
> >
The proof of adj(A) · A = >> A >> · In is similar.

Example 2.2.5
⎡ ⎤
1 2⎦
Let adj(A) = ⎣ . Find A.
4 6

Solution:
⎡ ⎤ ⎡ ⎤
x y⎦ w −z ⎦
Assume that A = ⎣ . Then coef(A) = ⎣ . Therefore,
z w −y x
⎡ ⎤ ⎡ ⎤
w T −y ⎦ ⎣1 2⎦
adj(A) = (coef(A)) = ⎣ = .
−z x 4 6
⎡ ⎤
6 −2⎦
Thus, x = 6, y = −2, z = −4, and w = 1, and A = ⎣
−4 1
58 Chapter 2. Determinants

Theorem 2.2.3
1
If A is non-singular, then A−1 = |A|
adj(A).

Proof:
> >
A is non-singular so that >> A >> ̸= 0 and A−1 exists. Then, by Theorem 2.2.2,
> >
A adj(A) = > >
> A > In multiply from left by A−1
> >
A−1 · A adj(A) = A−1 · >> A >> In
> >
> > −1
adj(A) = > A >A
1
A−1 = adj(A).
|A|

Remark 2.2.1
⎡ ⎤
a b⎦
Let A = ⎣ be any 2 × 2 non-singular matrix. Thus, ad − bc ̸= 0, and
c d
⎡ ⎤
1 1 ⎣ d −b⎦
A−1 = adj(A) = .
|A| ad − bc −c a

Confirmation:
⎡ ⎤ ⎡ ⎤
1 ⎣ad − bc −ab + ab⎦ ⎣1 0⎦
A · A−1 = = = I2 .
ad − bc cd − cd −cb + ad 0 1

Example 2.2.6
⎡ ⎤
1 2⎦
Find the inverse of A = ⎣ .
4 6

Solution:
⎡ ⎤

By Remark 2.2.1, we have A−1 = −1 ⎣ 6 −2⎦


. The reader can check the solution by confirm-
2
−4 1
ing that either (which leads to both) A A−1 = I2 or A−1 A = I2 .
2.2. Cofactor Expansion and Applications 59

Example 2.2.7
. /
T #8
pg.210
Show that if A is a non-singular n × n matrix, then
> > > >n−1
> > > >
> adj(A) > = > A > .

Solution:
> >
Given that >> A >> ̸= 0, we use Theorem 2.2.2 to get

A adj(A) = |A| In
> > > >
> > > >
>A adj(A)> = >|A| In >
> >> > > >n
> >> > > >
> A > > adj(A) > = > A > |In |
> > > >n−1
> > > >
> adj(A) > = >A>

Example 2.2.8
. /
T #12
pg.210
Show that if A is non-singular, then adj(A) is non-singular and
. /−1 1
adj(A) = A = adj(A−1 ).
|A|

Solution:
> >
Since A is non-singular, >> A >> ̸= 0. We use Theorem 2.2.2 to get
> >
> >
adj(A) A = A adj(A) = > A > In
. / 1 1 . /
adj(A) A = A adj(A) = In
|A| |A|

which shows that adj(A) is non-singular and


. /−1 1
adj(A) = A. (2.2.1)
|A|
Now, if we replace A by A−1 in Theorem 2.2.2, we get
> >
adj(A−1 ) A−1 = A−1 adj(A−1 ) = >> A−1 >> In .
60 Chapter 2. Determinants

Thus,

1
adj(A−1 ) · A−1 = In
|A|
1
adj(A−1 ) · A−1 · A = In · A
|A|
1
adj(A−1 ) = A (2.2.2)
|A|

Adding Equation 2.2.1 and Equation 2.2.2, we get


. /−1 1
adj(A) = A = adj(A−1 ).
|A|

Example 2.2.9
> >
Let A be a non-singular 4 × 4 matrix with >> A−1 >> = −2. Find
> >
> >
(a) > adj(A) >, and
> >
(b) >> 21 AT adj(A−1 )>.
>

Solution:
> > > >
−1
We have >> A >> = 2
since >> A−1 >> = −2. Then
> > > > > >
. /3
> >4−1 3
(a): >> adj(A) >> = > A > = >> A >> = −1
2
= −1
8
.

(b):
> > D E4 >
>1 T > 1 >> >
> A adj(A−1 )> =
> T> >
>A > >adj(A−1 )>
>
2
> >
2
1 >> >> >> −1 >>3
= >A> >A >
24
1 −1 1
= 4
· · (−2)3 = .
2 2 4
2.2. Cofactor Expansion and Applications 61

Example 2.2.10
> >
Let A be a 4 × 4 matrix with >> adj(A) >> = −8. Find 2A adj(2A).

Solution:

By Theorem 2.2.2, we have

(2A) · adj(2A) = adj(2A) · (2A) = |2A| I4 .


> > > >
Since >> adj(A) >> = −8, we have >> A >> = −2. Thus,

2A adj(2A) = |2A| I4
> >
= (2)4 >> A >> I4
= (16) (−2) I4 = −32 I4 .
62 Chapter 2. Determinants

Exercise 2.2.1
⎡ ⎤
2 8⎦
1. Let adj(A) = ⎣ . Find A.
1 4

2. Let A be a nonsingular n × n matrix.

(a) Show that adj(A) is nonsingular.


1
(b) Prove that adj(A−1 ) = det (A)
A.
⎡ ⎤
⎢1 4 2⎥
⎢ ⎥
3. Let A = ⎢5 −3 6⎥. Compute the cofactors A11 , A12 , and A13 , and show that 5A11 −
⎣ ⎦
2 3 2
3A12 + 6A13 = 0.
⎡ ⎤
⎢ 1 −1 2⎥
4. Let A = ⎢
⎢ 0 3

1⎥.
⎣ ⎦
−1 3 1

(a) Compute det (A) using a cofactor expansion along row 2.


(b) Find A adj(A).
(c) Find det (2A−1 adj(A)).
⎡ ⎤
⎢ 1 −1 2⎥
5. Let A = ⎢
⎢ 0 3

1⎥.
⎣ ⎦
−1 3 1

(a) Find |A| using a cofactor expansion along row 2.

(b) Find A adj(A).

(c) Find |2A−1 adj(A)|.


2.2. Cofactor Expansion and Applications 63

CHAPTER 2 REVISION
Revision of Chapter 2 ... Have Fun :-)
> >
1. Find all 3 × 3 matrices A, if any, such that >>adj(A)>> = −3.

2. Let A and B be two 4 × 4 nonsingular matrices such that det (2A−1 B 2 ) = 32 and
> > > >
det (B −1 adj(A)) = 4. Find >> A >> and >> B >>.

3. Let A be a nonsingular n × n matrix. Prove that det (adj(A)) = [det (A)]n−1 .

4. Show that if A is a nonsingular matrix, then adj(A) is nonsingular and

1
(adj(A))−1 = A = adj(A−1 ).
det (A)
⎡ ⎤
⎢1 2 −2 3⎥
⎢ ⎥
⎢0 −1 3 1⎥
5. Let A = ⎢

⎥. Find det(A) by:

⎢0 2 −6 1⎥
⎣ ⎦
2 4 −3 0

(a) reducing A to triangular form.


(b) using a cofactor expansion of det(A).
(c) using the cofactor expansion on the fourth row of A.
⎡ ⎤
⎢0 0 6 0⎥
⎢ ⎥
1
⎢3 0 7 0⎥
6. Let A be a matrix with adj(A) = ⎢ ⎥. Find A−1 .
2 ⎢ ⎥
⎢1 4 8 0⎥
⎣ ⎦
7 1 9 6
⎡ ⎤
⎢ 1 1 1 1⎥
⎢ ⎥
⎢−1 7 6 4⎥
7. Find adj(A), given that A−1 =⎢

⎥.

⎢ 4 4 4 0⎥
⎣ ⎦
0 1 1 1
⎡ ⎤
⎢1 4 2⎥
⎢ ⎥
8. Let A = ⎢5 −3 6⎥. Compute the cofactors A11 , A12 , and A13 , and show that 5A11 −
⎣ ⎦
2 3 2
3A12 + 6A13 = 0.
64 Chapter 2. Determinants

⎡ ⎤
⎢ 1 −1 2⎥
9. Let A = ⎢
⎢ 0 3

1⎥.
⎣ ⎦
−1 3 1

(a) Compute det (A) using a cofactor expansion along row 2.


(b) Find A adj(A).
(c) Find det (2A−1 adj(A)).

10. Let A be an n × n non-singular matrix. Show that if A is symmetric, then adj(A) is


symmetric.
⎡ ⎤
⎢ 1 −1 2⎥
11. Let A = ⎢
⎢ 0 3

1⎥.
⎣ ⎦
−1 3 1

(a) Find |A| using a cofactor expansion along row 2.

(b) Find A adj(A).

(c) Find |2A−1 adj(A)|.

12. Answer each of the following as True or False (Justify your answer):

(a) If A and B are 2 × 2 matrices such that det (A) = −2 and det (B) = 8, then
. /
det 2AT adj(B −1 ) = 1.
(b) if A and B are two 2 × 2 matrices such that det (adj(A)) = det (adj(B)), then A = B.
⎡ ⎤
⎢1 0 2⎥
13. Let A = ⎢
⎢2 1

1⎥.
⎣ ⎦
0 1 1

(a) Find det(adj(A)).


(b) Find A2 adj(A).
⎡ ⎤
⎢1 2 3 1⎥
⎢ ⎥
⎢1 4 6 0⎥
14. Let A−1 =⎢

⎥.

⎢0 2 0 0⎥
⎣ ⎦
2 3 2 3

(a) Find det(A) and A adj(A).


(b) Find adj(A).
Chapter

3 Vectors in Rn

3.2 Vectors in Rn

In this chapter, we deal with vectors in Rn , or sometimes we simply call them n-vectors. For instance,

⎡ ⎤
⎢ y1 ⎥
1 2 ⎢ ⎥
⎢ y2 ⎥
x = x1 x2 ··· xn , y = ⎢ . ⎥ , and z = ⟨z1 , z2 , · · · , zn ⟩ are vectors in Rn .
⎢ . ⎥
⎢ . ⎥
⎣ ⎦
yn

Vecors in R3 can be manipulated by arrows starting at tail and pointing at head. For instance, vector
u = ⟨3, −2, 4⟩ and −u (which is of the same size in the opposite direction) both have their tail at the
origin O(0, 0, 0) and can be drawn as in the following figure (left). While vector v = ⟨−1, −1, 1⟩ has its
tail P (1, 2, 0) and its head Q(0, 1, 1), see the following figure (right).

y y

P (1, 2, 0)
v = ⟨−1, −1, 1⟩
−u = ⟨−3, 2, −4⟩
Q(0, 1, 1)
3
x x
O(0, 0, 0) O(0, 0, 0)
4
u = ⟨3, −2, 4⟩
−2

z z

3.2.1 Vectors Operations:

Let x, y, z ∈ Rn and c, d ∈ R, then

65
66 Chapter 3. Vectors in Rn

1. Adding or substracting two vectors, they must have the same number of components:
⎡ ⎤
⎢ x1 ± y1 ⎥
⎢ ⎥
⎢ x2 ± y2 ⎥ n
x±y=⎢
⎢ .. ⎥ ⎥∈R .


. ⎥ ⎦
xn ± yn
2. Multiplying a vector by a scalar: ⎡ ⎤
⎢ c x1 ⎥
⎢ ⎥
⎢ c x2 ⎥ n
cx = ⎢
⎢ .. ⎥ ∈ R .

⎢ . ⎥
⎣ ⎦
c xn
3. R is closed under vector addition (i.e. x + y ∈ Rn , ∀ x, y ∈ Rn ):
n

(a) x + y = y + x,

(b) x + (y + z) = (x + y) + z,

(c) ∃ a vector O ∈ Rn such that x + O = O + x = x. ”additive identity”

(d) for any x ∈ Rn , ∃(−x) such that x + (−x) = (−x) + x = O. ”additive inverse”

4. Rn is closed under scalar multiplication (i.e. c x ∈ Rn , ∀ x ∈ Rn and c ∈ R):

(a) c (x + y) = c x + c y,

(b) (c + d)x = c x + d x,

(c) c (d x) = (c d) x,

(d) 1 x = x where 1 ∈ R.

3.2.2 The Dot Product of Vectors:

Definition 3.2.1

The dot (or inner or scalar) product of two vectors x = (x1 , x2 , · · · , xn ) and y = (y1 , y2 , · · · , yn )
in Rn is
n
0
x·y= xi yi = x1 y1 + x2 y2 + · · · + xn yn .
i=1
3.2. Vectors in Rn 67

Definition 3.2.2

The length (or norm) of the vector x = (x1 , x2 , · · · , xn ) ∈ Rn is


F
∥x∥ = x21 + x22 + · · · + x2n .

While, the distance between the points P (x1 , x2 , · · · , xn ) and Q(y1 , y2 , · · · , yn ) is the length of
−→
the vector z = P Q = Q − P . That is,
F
∥z∥ = (x1 − y1 )2 + (x2 − y2 )2 + · · · + (xn − yn )2 .

Remark 3.2.1

We note that, ∥x∥2 = x21 + x22 + · · · + x2n = x · x =⇒ ∥x∥2 = x · x.

Example 3.2.1
⎡ ⎤ ⎡ ⎤
⎢2⎥ ⎢5⎥
⎢ ⎥ ⎢ ⎥
⎢4⎥ ⎢3⎥ 4
Let x = ⎢ ⎥ and y = ⎢
⎢ ⎥
⎢ ⎥ be two vectors in R . Find ∥y − x∥.

⎢3⎥ ⎢2⎥
⎣ ⎦ ⎣ ⎦
1 1

Solution:
⎡ ⎤
⎢ 3⎥
⎢ ⎥
⎢−1⎥ √ √
Clearly, y − x = ⎢ ⎥

⎥ =⇒ ∥y − x∥ = 9+1+1+0= 11.
⎢−1⎥
⎣ ⎦
0
68 Chapter 3. Vectors in Rn

3.2.3 Properties of Dot Product:

Theorem 3.2.1

If x, y, z ∈ Rn and c ∈ R. Then,

1. x · x > 0 if x ̸= 0 and x · x = 0 if x = 0,

2. x · y = y · x,

3. (x + y) · z = x · z + y · z,

4. (c x) · y = x · (c y) = c (x · y).

Example 3.2.2
. /
T #9
pg.246
If x ∈ Rn and c ∈ R, then ∥c x∥ = | c | ∥x∥.

Solution:

Let x = (x1 , x2 , · · · , xn ) =⇒ c x = (c x1 , c x2 , · · · , c xn ). Thus,


F
∥c x∥ = (c x1 )2 + (c x2 )2 + · · · + (cxn )2
F
= c2 (x21 + x22 + · · · + x2n )
F
= |c| x21 + x22 + · · · + x2n

= | c | ∥x∥.

3.2.4 The Angle Between Two Vectors

θ
x
3.2. Vectors in Rn 69

It can be shown that the angle between two vectors x, y ∈ Rn satisfies

x·y
cos θ = where 0 ≤ θ ≤ π. (3.2.1)
∥x∥ ∥y∥

Since, −1 ≤ cos θ ≤ 1, we can rewrite Equation 3.2.1 as

x·y
−1 ≤ ≤ 1. (3.2.2)
∥x∥ ∥y∥

Remark 3.2.2

Let x, y ∈ Rn and 0 ≤ θ ≤ π, then

π
1. x ⊥ y (orthogonal or perpendicular) ⇐⇒ θ = 2
⇐⇒ cos θ = 0 ⇐⇒ x · y = 0.

2. x // y (parallel in the same direction) ⇐⇒ θ = 0 ⇐⇒ cos θ = 1 ⇐⇒ x · y = ∥x∥ ∥y∥ ⇐⇒


y = c x with c > 0.

3. x // y (parallel in the opposite direction) ⇐⇒ θ = π ⇐⇒ cos θ = −1 ⇐⇒ x · y =


−∥x∥ ∥y∥ ⇐⇒ y = c x with c < 0.

Example 3.2.3

Find all values of c so that x = (c, 2, 1, c) and y = (c, −1, −2, −3) are orthogonal.

Solution:

By Remark 3.2.2, we have x ⊥ y ⇐⇒ x · y = 0. That is,

x·y = 0
c2 − 2 − 2 − 3c = 0
c2 − 3c − 4 = 0
(c − 4)(c + 1) = 0 c = 4 or c = −1.

Example 3.2.4

Find all vectors in R4 that are orthogonal to both

x = (1, 1, 1, 1) and y = (1, 1, −1, −1).


70 Chapter 3. Vectors in Rn

Solution:

Let z = (a, b, c, d) ∈ R4 so that z · x = z · y = 0. Therefore, we get the following homogenous


system:

⎡ ⎤ ⎡ ⎤
a+b+c+d=0 ⎣1 1 1 1 0⎦ ⎣1 1 0 0 0⎦
=⇒ ∼
a+b−c−d=0 1 1 −1 −1 0 0 0 1 1 0
Solving this system, we get a = −b and c = −d. Let b = r and d = s where r, s ∈ R to get
z = (−r, r, −s, s) which is the form of any vector in R4 that is orthogonal to both x and y.

Example 3.2.5

Show that the triangle with vertices P1 (2, 3, −4), P2 (3, 1, 2), and P3 (7, 0, 1) is a right triangle.

Solution:

P3 P3 P1

−−−→ −−−→
P1 P 3 P2 P3
−−−→
P1 P2
P1 P2 P1 P2 P3 P2
Figure 1 Figure 2 Figure 3

We start with Figure 1 as we do not know if there is a right angle. We create three vectors,
namely
−−→
x = P1 P2 = P2 − P1 = (1, −2, 6)
−−→
y = P1 P3 = P3 − P1 = (5, −3, 5)
−−→
z = P2 P3 = P3 − P2 = (4, −1, −1)
This is draw in Figure 2. Then, we want to find two vectors whose dot product is zero which is
valid by considering x and z. That is

x · z = 4 + 2 − 6 = 0.

Therefore, this triangle has a right angle at P2 and it is drawn at Figure 3.


3.2. Vectors in Rn 71

Example 3.2.6

Find the angle between x = (0, 1, 1, 0) and y = (1, 1, 0, 0).

Solution:
x·y
By Equation 3.2.1, we have cos θ = ∥x∥ ∥y∥
where x · y = 0 + 1 + 0 + 0 = 1 and
√ √
∥x∥ = 02 + 12 + 12 + 02 = 2 = ∥y∥.

1
Therefore, cos θ = 2
which implies that θ = π3 .

Theorem 3.2.2: Cauchy-Schwarz Inequality

If x and y are in Rn , then |x · y| ≤ ∥x∥ ∥y∥.

Proof:
x·y
By Equation 3.2.1, we have cos θ = ∥x∥ ∥y∥
for 0 ≤ θ ≤ π. Thus,
> >
> x·y >
> >
> >
> ∥x∥ ∥y∥ >
= | cos θ| ≤ 1 where ∥x∥ ∥y∥ is always non-negative

|x · y|
≤ 1 =⇒ |x · y| ≤ ∥x∥ ∥y∥.
∥x∥ ∥y∥

Theorem 3.2.3: Triangle Inequality

If x and y are in Rn , then ∥x + y∥ ≤ ∥x∥ + ∥y∥.

Proof:

By Remark 3.2.1, we have

∥x + y∥2 = (x + y) · (x + y)
= x·x+x·y+y·x+y·y

= ∥x∥2 + 2x · y + ∥y∥2 take absolute value for both sides.

∥x + y∥2 = ∥x∥2 + 2|x · y| + ∥y∥2 use Cauchy-Schwarz Inequality.

≤ ∥x∥2 + 2∥x∥∥y∥ + ∥y∥2


72 Chapter 3. Vectors in Rn

≤ (∥x∥ + ∥y∥)2 take square root for both sides.

∥x + y∥ ≤ ∥x∥ + ∥y∥.

Remark 3.2.3
> >
n
> >
If x and y are in R , then ∥x − y∥ ≥ >∥x∥ − ∥y∥>>.
>

Proof:
D E
We simply show that ∥x − y∥ ≥ ± ∥x∥ − ∥y∥ . First

∥ x ∥ = ∥ (x − y) + y ∥ ≤ ∥ x − y ∥ + ∥ y ∥ → ∥ x ∥ − ∥ y ∥ ≤ ∥ x − y ∥.

On the other hand, we have

− (∥ x ∥ − ∥ y ∥) = ∥ y ∥ − ∥ x ∥ ≤ ∥ y − x ∥ = ∥ x − y ∥.

TRUE or FALSE:

⋆ There are X, Y ∈ Rn with ∥X∥ = 2 and ∥Y ∥ = 4 and ∥X − Y ∥ = 1. (FALSE).


> > > >
> > > >
reason: By the previous remark: 1 = ∥X − Y ∥ ≥ >∥X∥ − ∥Y ∥> = >2 − 4>> = 2 which is not true.
> > >

Definition 3.2.3

The unit vector in Rn is a vector with length 1, i.e. u is a unit vector if ∥u∥ = 1.

Remark 3.2.4

1
Given a non-zero vector x ∈ Rn , u = x is a unit vector in the direction of x.
∥x∥

Example 3.2.7

Find a vector of length 3 in the opposite direction of x = (2, 2, −2).

Solution:
3.2. Vectors in Rn 73

We first find a unit vector in the direction of x and then multiply it by ”−3” to get a vector of
length 3 in the opposite direction. That is,

1 1 1 1 1 −1
u= x= √ (2, 2, −2) = √ (2, 2, −2) = ( √ , √ , √ ).
∥x∥ 4+4+4 2 3 3 3 3

By Remark 3.2.4, u is a unit vector in the same direction of x. Therefore, y = −3u =


√ √ √
(− 3, − 3, 3) is a vector of length 3 in the opposite direction of x.

Example 3.2.8

Show that if x and y are orthogonal unit vectors in Rn , then



∥a x + b y∥ = a2 + b 2 .

Solution:

By Remark 3.2.1, we have

∥a x + b y∥2 = (a x + b y) · (a x + b y)
1 ✯1
= a2 ✟ ✟✟
∥x∥

2
+ 2 a b✘ ✿ 0 2 ✟✟
y)✘
(x✘· ✘ ∥y∥2
+b ✟ x · y = 0 and ∥x∥2 = ∥y∥2 = 1
@ AB C @ AB C
orthogonal unit vectors

= a2 + b 2

Therefore, by taking the square root for both sides, we get ∥a x + b y∥ = a2 + b 2 .

3.2.5 Principle of Unit Vectors in Rn

⋆ Principle of Unit Vectors in R2 :

Any vector x = (x1 , x2 ) ∈ R2 can be written as


j
x = x1 i + x2 j, where i = (1, 0), j = (0, 1) ∈ R2 . x
O(0, 0) i
74 Chapter 3. Vectors in Rn

⋆ Principle of Unit Vectors in R3 :

Any vector x = (x1 , x2 , x3 ) ∈ R3 can be written


j
as x = x1 i + x2 j + x3 k, where i = (1, 0, 0), j = O(0, 0, 0)
x
i
(0, 1, 0), k = (0, 0, 1) ∈ R3 . k

⋆ Principle of Unit Vectors in Rn :

Any vector x = (x1 , x2 , · · · , xn ) ∈ Rn can be written as x = x1 E1 + x2 E2 + · · · + xn En , where


E1 = (1, 0, · · · , 0), E2 = (0, 1, 0, · · · , 0), · · · , En = (0, · · · , 0, 1) ∈ Rn .
3.2. Vectors in Rn 75

CHAPTER 3 REVISION
Revision of Chapter 3 ... Have Fun :-)

1. (From the book) Show that U · (V + W ) = U · V + U · W , for any vectors U, V, W ∈ Rn .


2. (From the book) Show that ∥ U + V ∥2 + ∥ U − V ∥2 = 2∥ U ∥2 + 2∥ V ∥2 , for any vectors
U, V ∈ Rn .
3. Show that if x and y are orthogonal unit vectors in Rn , then

∥ 4x + 3y ∥ = 5.

4. Let x, y ∈

Rn with ∥ x ∥ = ∥⎤y ∥. Show that x − y and x + y are orthogonal.
cos (α) sin (α) ⎦
5. Let A = ⎣ where α ∈ R. Show that if X ∈ R2 , then ∥ X ∥ = ∥ AX ∥.
− sin (α) cos (α)
6. Let x, y ∈ Rn such that ∥ x ∥ = 2 and ∥ y ∥ = 3 and the angle between them is π3 . Evaluate
∥ x − y ∥.
7. Let x, y, and z be three unit vectors in Rn such that each vector is orthogonal to the other

two vectors. Show that ∥ x + y + z ∥ = 3.
8. If ∥ x ∥ = 2 and ∥ y ∥ = 3. What are the largest and the smallest possible values for
∥ x − y ∥?
9. Use Cauchy-Schwarz’s inequality to show that

(ab − cd + xy)2 ≤ (a2 + d2 + y 2 )(b2 + c2 + x2 )

for all real numbers a, b, c, d, x, and y.


10. Find all vectors in R4 which are perpendicular to the vectors X = (1, 1, 2, 2) and Y =
(2, 3, 5, 5).
11. Let U, V ∈ Rn be unit vectors. Prove that (U + 2V ) · (2U − V ) ≤ 3.
12. Verify that the triangle with vertices A(1, 1, 2), B(1, 2, 3), and C(3, 0, 3) is a right triangle.
13. Let θ be the angle between the vectors U = (4, −2, 1, 2) and V = (4, 2, 5, 2). Find cos θ.
14. For any vectors X and Y in Rn , show that ∥X∥ ≤ ∥X − 2Y ∥ + 2∥Y ∥.
15. Let x and y be two vectors in Rn . Prove that ∥x − y∥ ≤ ∥x∥ + ∥y∥.
16. Find all values of a for which X = (a2 − a, −3, −1) and Y = (2, a − 1, 2a) are othogonal.
76 Chapter 3. Vectors in Rn

17. Find a vector X, of length 6, in the opposite direction of Y = (1, 2, −2).


18. Let X and Y be vectors in Rn such that ∥X∥ = ∥Y ∥. Show that X + Y and X − Y are
orthogonal vectors.
19. Find all x, y ∈ R such that the vectors U = (x, 1, 3) and V = (4, x + y, 9) are parallel.
[Hint: U and V are parallel iff there is r ∈ R such that U = rV .]
20. Let U and V be two vectors in R3 such that ∥U ∥ = 2 and ∥V ∥ = 3.

(a) Find the maximum possible value for ∥2U + 3V ∥.


(b) If U and V are orthogonal, find ∥2U + 3V ∥.

21. Let X, Y ∈ Rn . Find X · Y given that ∥X + Y ∥ = 1 and ∥X − Y ∥ = 5.


22. Answer each of the following as True or False:

(a) If U and V are two unit vectors in Rn , then ∥U − 6V ∥ ≥ 5.


(b) There exist X, Y ∈ R4 such that ∥X∥ = ∥Y ∥ = 2 and X · Y = 6.
Chapter

5 Real Vector Spaces

5.1 Real Vector Spaces

Definition 5.1.1

A real vector space V is a set of elements with two operations ⊕ and ⊙ satisfying the following
conditions. For short, we write (V, ⊕, ⊙) is a vector space if

(α) if x, y ∈ V, then x ⊕ y ∈ V, that is ”V is closed under ⊕”: for all x, y, z ∈ V

(a) x ⊕ y = y ⊕ x,

(b) x ⊕ (y ⊕ z) = (x ⊕ y) ⊕ z,

(c) there exists 0 ∈ V such that x ⊕ 0 = 0 ⊕ x = x,

(d) for each x ∈ V, there exists e ∈ V such that e ⊕ x = x ⊕ e = 0.

(β) if x ∈ V and c ∈ R, then c ⊙ x ∈ V, that is ”V is closed under ⊙”: for all x, y ∈ V and for
all c, d ∈ R

(a) c ⊙ (x ⊕ y) = c ⊙ x ⊕ c ⊙ y,

(b) (c + d) ⊙ x = c ⊙ x ⊕ d ⊙ x,

(c) c ⊙ (d ⊙ x) = (c d) ⊙ x,

(d) 1 ⊙ x = x ⊙ 1 = x.

Remark 5.1.1

(Rn , +, ·) is a vector space. That is, Rn with vector addition and scalar multiplication is a vector
space.

77
78 Chapter 5. Real Vector Spaces

Example 5.1.1

Consider V = {(x, y, z) : x, y, z ∈ R} with

(x1 , y1 , z1 ) ⊕ (x2 , y2 , z2 ) = (x1 + x2 , y1 + y2 , z1 + z2 ),

and
c ⊙ (x, y, z) = (cx, cy, 0).

Is (V, ⊕, ⊙) a vector space? Explain.

Solution:

Clearly, the α conditions are satisfied because this is the usual vector addition and hence V is
closed under ⊕. Thus, we only check on the β conditions. Let x = (x1 , y1 , z1 ), y = (x2 , y2 , z2 )
be any two vectors in V, then

1. c ⊙ (x + y) = c ⊙ (x1 + x2 , y1 + y2 , z1 + z2 ) = (cx1 + cx2 , cy1 + cy2 , 0) = (cx1 , cy1 , 0) +


(cx2 , cy2 , 0) = c ⊙ x + c ⊙ y. This condition is satisfied.

2. (c + d) ⊙ x = ((c + d)x1 , (c + d)y1 , 0) = (cx1 , cy1 , 0) + (dx1 , dy1 , 0) = c ⊙ x + d ⊙ x. This


condition is satisfied.

3. c ⊙ (d ⊙ x) = c ⊙ (dx1 , dy1 , 0) = (cdx1 , cdy1 , 0) = (cd) ⊙ x. This condition is satisfied.

4. 1 ⊙ x = (x1 , y1 , 0) ̸= (x1 , y1 , z1 ). This condition is NOT satisfied.

Therefore, (V, ⊕, ⊙) is not a vector space.

Example 5.1.2

Let V = {(x, y, z) : x, y, z ∈ R and z > 0} associated with the operations:

(x1 , y1 , z1 ) ⊕ (x2 , y2 , z2 ) = (x1 + x2 , y1 + y2 , z1 + z2 ), and c ⊙ (x, y, z) = (cx, cy, cz).

Is (V, ⊕, ⊙) a vector space? Explain.

Solution:

No. If c ∈ R with c < 0, then c ⊙ (x, y, z) = (cx, cy, cz) ̸∈ V since cz < 0.
5.1. Real Vector Spaces 79

Example 5.1.3

Is the set of real numbers under the substraction and scalar multiplication a vector space?
Explain.

Solution:

NO. Clearly, for x, y ∈ R, x ⊕ y = x − y ̸= y − x = y ⊕ x.


80 Chapter 5. Real Vector Spaces

Exercise 5.1.1

1. Let V = {(x, y, 0) | x, y ∈ R}, be associated with the operations:

(x1 , y1 , 0) ⊕ (x2 , y2 , 0) = (x1 + x2 , y1 + y2 , 0), and c ⊙ (x, y, 0) = (cx, cy, 0).

Is (V, ⊕, ⊙) form a vector space? Explain. (This is a Vector Space!!).


2. Let V = {(x, y) | x, y ∈ R}. Define addition and scalar multiplication on V as follows: for
each (x, y), (x′ , y ′ ) ∈ V and a ∈ R,

(x, y) ⊕ (x′ , y ′ ) = (x + x′ , y + y ′ ) and a ⊙ (x, y) = (ay, ax).

Determine whether V with the given operations is a vector space. Justify your answer.
3. Consider R2 with the operations ⊕ and ⊙ where (x, y) ⊕ (x′ , y ′ ) = (2x − x′ , 2y − y ′ ) and
c ⊙ (x, y) = c(x, y). Does the property (c + d) ⊙ X = c ⊙ X ⊕ d ⊙ X hold for all c, d ∈ R
and all X ∈ R2 ? Explain.
4. Consider the set V = {(x, y, z) : x, y, z ∈ R} with the following operations

(x1 , y1 , z1 ) ⊕ (x2 , y2 , z2 ) = (x1 + x2 , y1 + y2 , z1 + z2 ) and c ⊙ (x, y, z) = (z, y, x).

Is V a vector space? Explain.


5. Let V = {(x, y, z) : x, y, z ∈ R} and define

(x, y, z) ⊕ (a, b, c) = (x + a, y + b, z + c) and k ⊙ (x, y, z) = (kx, ky, 0).

Show that V is not a vector space.


6. Consider the set V = {(x, y) | x, y ∈ R} with the following operations

(x, y) ⊕ (x′ , y ′ ) = (x − x′ , y − y ′ ) and k ⊙ (x, y) = (kx, ky).

Determine whether (V, ⊕, ⊙) is a vector space (justify your answer).


7. Answer each of the following as True or False:

(a) (T) V = {(x, y) ∈ R2 : y < 0} is closed under the operation c ⊙ (x, y) = (cx, y).

(b) (F) V = {(x, y) ∈ R2 : y < 0} is closed under the operation c ⊙ (x, y) = (cy, x).
5.2. Real Vector Subspaces 81

5.2 Real Vector Subspaces

Definition 5.2.1

Let (V, ⊕, ⊙) be a vector space and let W ⊆ V be non-empty. If (W, ⊕, ⊙) is a vector space,
then W is a subspace of V.

Remark 5.2.1

If V is a vector space, then V and {0} are subspaces of V. They are called trivial subspaces
of V.

Theorem 5.2.1

Let (V, ⊕, ⊙) be a vector space and let W be a subset of V. Then, W is a subspace of V if and
only if the following conditions hold:

1. W ̸= φ,
2. for all x, y ∈ W, x ⊕ y ∈ W,
3. for all x ∈ W and c ∈ R, c ⊙ x ∈ W.

Example 5.2.1

Is W = {(x, y, 0, z 2 ) : x, y ∈ R and z ∈ Z} a subspace of R4 ? Explain.

Solution:

1. (0, 0, 0, 0) ∈ W and hence W is non-empty.


2. let (x1 , y1 , 0, z12 ), (x2 , y2 , 0, z22 ) ∈ W, then

(x1 , y1 , 0, z12 ) + (x2 , y2 , 0, z22 ) = (x1 + x2 , y1 + y2 , 0, z12 + z22 ) ̸∈ W since z12 + z22 ̸= (z1 + z2 )2 .

For example, (0, 0, 0, 4), (0, 0, 0, 9) ∈ W while the sum of them (0, 0, 0, 15) ̸∈ W. Therefore, W is
not a subspace of R4 .
82 Chapter 5. Real Vector Spaces

Example 5.2.2

Is W = {(x, y, z) : x + y + z = 1, where x, y, z ∈ R} a subspace of R3 ? Explain.

Solution:

Clearly, (0, 0, 0) ̸∈ W and hence W is not a vector space and it is not a subspace of R3 .

Example 5.2.3

Let W = {(a, b, c, d) : d = 2a − b and c = a}. Is (W, +, ·) a subspace of R4 ? Explain.

Solution:

1. (0, 0, 0, 0) ∈ W, then W ̸= φ,
2. let x = (a1 , b1 , a1 , 2a1 − b1 ) and y = (a2 , b2 , a2 , 2a2 − b2 ). Then,

x+y = (a1 , b1 , a1 , 2a1 − b1 ) + (a2 , b2 , a2 , 2a2 − b2 )


= (a1 + a2 , b1 + b2 , a1 + a2 , 2(a1 + a2 ) − (b1 + b2 )) ∈ W.

3. for x = (a, b, a, 2a−b) ∈ W and k ∈ R, we have k(a, b, a, 2a−b) = (ka, kb, ka, 2(ka), −kb) ∈
W.

Therefore, W is a subspace of R4 .

Example 5.2.4

Let x, y ∈ Rn and W = {z : z = ax + by, for a, b ∈ R}. Is W a subspace of Rn ? Explain.

Solution:
1. z = 0x + 0y = O ∈ W, implies that W ̸= φ,
2. let z1 = ax + by and z2 = cx + dy be two vectors in W. Then,

z1 + z2 = (ax + by) + (cx + dy)


= (a + c)x + (b + d)y =⇒ ∈ W,

3. for c ∈ R and z = ax + by ∈ W, we have

cz = cax + cby ∈ W for ca, cb ∈ R.


5.2. Real Vector Subspaces 83

Therefore, W is a subspace of Rn .

Definition 5.2.2

Let Ax = O be a homogenous system for A ∈ Mm×n and x ∈ Rn . We define the null space (or
the solution space of Ax = O) by

W = { x : Ax = O } ⊆ Rn ,

and we show that W is a subspace of Rn in the following example.

Example 5.2.5

Let Ax = O for A ∈ Mm×n and x ∈ Rn . Show that (the null space) W = {x | Ax = O} is a


subspace of Rn .

Solution:

1. W ̸= φ since Ax = O always has a solution (either trivial or non-trivial),


2. let x, y ∈ W, then Ax = O and Ay = O. But, A(x + y) = Ax + Ay = O + O = O. Thus,
x + y ∈ W,
3. for any c ∈ R and x ∈ W, we have A(cx) = cAx = cO = O, thus cx ∈ W.

Therefore, W is a subsapce of Rn .

Example 5.2.6

Let Ax = B with B ̸= O and A ∈ Mm×n and x ∈ Rn . Let W = {x : Ax = B} ⊆ Rn . Determine


whether W is a subspace of Rn .

Solution:

Clearly, W might be empty ”φ” if the system Ax = B has no solution. Thus, W is not a subspace
of Rn .
84 Chapter 5. Real Vector Spaces

⋆ Linear Combination:

Definition 5.2.3

Let x1 , x2 , · · · , xn be vectors in a vector space V, a vector x ∈ V is called a linear combination


of the vectors x1 , x2 , · · · , xn if and only if x = c1 x1 + c2 x2 + · · · + cn xn for some real numbers
c1 , c2 , · · · , cn .

Example 5.2.7

Determine whether the vector x = (2, 1, 5) is a linear combination of the set of vectors {x1 , x2 , x3 }
where x1 = (1, 2, 1), x2 = (1, 0, 2), and x3 = (1, 1, 0).

Solution:

x is a linear combination of x1 , x2 , x3 if we find numbers c1 , c2 , c3 so that x = c1 x1 + c2 x2 + c3 x3 .


Consider c1 (1, 2, 1) + c2 (1, 0, 2) + c3 (1, 1, 0) = (2, 1, 5), this is a system in three unknowns:

c1 + c2 + c3 = 2
2c1 + 0 + c3 = 1
c1 + 2c2 + 0 = 5

So,
⎡ we solve the
⎤ system: ⎡ ⎤ ⎡ ⎤
⎢1 1 1 2⎥ ⎢1 1 1 2⎥ ⎢1 1 1 2⎥
⎢ ⎥ r2 −2r1 →r2 ⎢ ⎥ r2 ↔r3 ⎢ ⎥ r1 −r2 →r1
⎢2 0 1 1⎥ −−−−−−→ ⎢0 −2 −1 −3⎥ −−−→ ⎢0 1 −1 3⎥ −−−−−−→
⎣ ⎦ r3 −r1 →r3 ⎣ ⎦ ⎣ ⎦ r3 +2r2 →r3
1 2 0 5 0 1 −1 3 0 −2 −1 −3
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 0 2 −1⎥ 1 ⎢1 0 2 −1⎥ ⎢1 0 0 1⎥
⎢ ⎥ − 3 r3 →r3 ⎢ ⎥ r1 −2r3 →r1 ⎢ ⎥
⎢0 1 −1 3⎥ −−−−−→ ⎢0 1 −1 3⎥ −−−−−−→ ⎢0 1 0 2⎥
⎣ ⎦ ⎣ ⎦ r2 +r3 →r2 ⎣ ⎦
0 0 −3 3 0 0 1 −1 0 0 1 −1
⎡ ⎤ ⎡ ⎤
⎢c1 ⎥ ⎢ 1⎥
Therefore, ⎢c2 ⎥ = ⎢
⎢ ⎥ ⎥
⎢ 2⎥ is a solution. Thus, x = x1 + 2x2 − x3 (check!).
⎣ ⎦ ⎣ ⎦
c3 −1
5.2. Real Vector Subspaces 85

⋆ The Span:

Definition 5.2.4

Let S = {x1 , x2 , · · · , xk } be a subset of a vector space V. Then, the set of all vectors in V that
are linear combination of the vectors in S is denoted by span S or span{x1 , x2 , · · · , xk }.

Example 5.2.8

Let S = {(1, 1, 0, 1), (1, −1, 0, 1), (0, 1, 2, 1)}. Determine whether

(a) x = (2, 3, 2, 3), and


(b) y = (0, 1, 2, 3)

belongs to span S.

Solution:
(a) Clearly, x belongs to span S only if x is a linear combination of S. Consider the system

c1 (1, 1, 0, 1) + c2 (1, −1, 0, 1) + c3 (0, 1, 2, 1) = (2, 3, 2, 3).


⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 1 0 2⎥ ⎢1 1 0 2⎥ ⎢1 1 0 2⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ 1
⎢1 −1 1 3⎥ r2 −r1 →r2 ⎢0 −2 1 1⎥ ⎢0 −2 0 0⎥ − r →r2
⎥− ⎥ −r−
2 −r4 →r2 ⎥ −−2−2−−→
⎥ r−−−−−→ ⎢ −−−−→ ⎢

⎢ ⎢
4 −r1 →r4 ⎢0
⎥ r3 −2r ⎢ ⎥ r3 ↔r4
⎢0 0 2 2⎥ 0 2 2⎥ 4 →r3 ⎢0 0 0 0⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
1 1 1 3 0 0 1 1 0 0 1 1
⎡ ⎤ ⎡ ⎤
⎢1 1 0 2⎥ ⎢1 0 0 2⎥
⎢ ⎥ ⎢ ⎥
⎢0 1 0 0⎥
⎢ ⎥− − − − −
→ ⎢0
r1 −r2 →r1 ⎢

1 0 0⎥⎥
⎢ ⎥ ⎢ ⎥
⎢0 0 1 1⎥ ⎢0 0 1 1⎥
⎣ ⎦ ⎣ ⎦
0 0 0 0 0 0 0 0
Therefore, the system has a solution and x is a linear combination of S. Thus, x ∈ span S.

(b) We do the same thing for y by considering

c1 (1, 1, 0, 1) + c2 (1, −1, 0, 1) + c3 (0, 1, 2, 1) = (0, 1, 2, 3).


⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 1 0 0⎥ ⎢1 1 0 0⎥ ⎢1 1 0 2⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎢1 −1 1 1⎥ r2 −r1 →r2 ⎢ 0 −2 1 1⎥ ⎢0 −2 0 −2⎥
⎥− ⎥ −r−
2 −r4 →r2
⎥ r− −−−−→ ⎢ −−−−→ ⎢
⎢ ⎥
⎢ −r →r ⎢ ⎥ r3 −2r ⎢ ⎥
⎢0 0 2 2⎥ 4 1 4 ⎢0 0 2 2⎥ 4 →r3 ⎢0 0 0 −4⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
1 1 1 3 0 0 1 3 0 0 1 3
86 Chapter 5. Real Vector Spaces

The third row suggests that 0 = −4 which is impossible. Thus this system has no solution
and y is not linear combination of S. Thus, y ̸∈ span S.

Theorem 5.2.2

Let S = {x1 , x2 , · · · , xk } be a set of vectors of a vector space V, then span S is a subspace of


V.

Proof:

Let W = span S = {z : z = c1 x1 + c2 x2 + · · · + ck xk } ⊆ V. Then,

1. W ̸= φ since z = x1 + x2 + · · · + xk ∈ W for ci = 1 for all i = 1, 2, · · · , k,


2. let z1 = c1 x1 + c2 x2 + · · · + ck xk and z2 = d1 x1 + d2 x2 + · · · + dk xk be two elements in W,
then
z1 + z2 = (c1 + d1 )x1 + (c2 + d2 )x2 + · · · + (ck + dk )xk ∈ W,

3. for c ∈ R and z = c1 x1 + c2 x2 + · · · + ck xk ∈ W, we have

z = c c1 x1 + c c2 x2 + · · · + c ck xk ∈ W.

Therefore, W = span S is a subspace of V.

We now go back to show how can we solve Example 5.2.3 by three different method. One method
was already shown in that example.

Example 5.2.9

Let W = {(a, b, c, d) : d = 2a − b and c = a}. Is (W, +, ·) a subspace of R4 ? Explain.

Solution: Definition

We simply show it by the meaning of the definition of subspaces. Look at the Example 5.2.3.

Solution: Null Space

W = { (a, b, c, d) : 2a − b − d = 0 and a − c = 0 }.
5.2. Real Vector Subspaces 87

⎡ ⎤
2 −1 0 −1⎦
That is W is the solution space of Ax = O where A = ⎣ and x = (a, b, c, d).
1 0 −1 0
4
Therefore, W is a subspace of R .

Solution: The Span

W = { (a, b, a, 2a − b) : a, b ∈ R } = { a (1, 0, 1, 2) + b (0, 1, 0, −1) : a, b ∈ R }.

Therefore W = span{ (1, 0, 1, 2), (0, 1, 0, −1) }. That is W is a subspace of R4 .


88 Chapter 5. Real Vector Spaces

5.3 Linear Independence

Definition 5.3.1

Let S = {x1 , x2 , · · · , xn } be a set of vectors in a vector space V, if every vector in V is a linear


combination of S, then we say that S spans V or that V is spanned by S.

Example 5.3.1

Let S = {x1 , x2 , x3 } where x1 = (1, 2, 1), x2 = (1, 0, 2), and x3 = (1, 1, 0). Does S spans R3 ?
Explain.

Solution:

Let x = (a, b, c) be any vector in R3 . Consider

c1 (1, 2, 1) + c2 (1, 0, 2) + c3 (1, 1, 0) = (a, b, c).

One way to decide if x is a linear combination of vectors of S is to solve this system as we have
seen in Example 5.2.7.
An easier way (since this is a square coefficient matrix) is by computing the determinant and
> >
make sure that the >> A >> ̸= 0 where A is the matrix of coefficient. That is,
> >
> > > > > >
>1 1 1 > > > > >
> >
> >
>
>
>
> >2 0>> >>1 1>>
> A > = >2 0 1 > = >> >−> > = 4 − 1 = 3 ̸= 0.
>
>
>
> >1 2> >1 2>
>1 2 0 >
> >
Since >> A >> ̸= 0, the system has a unique solution and x = (a, b, c) is a linear combination of
vectors in S. Therefore, S spans R3 .

Example 5.3.2

Let S = {x1 , x2 } where x1 = (1, 1, 0), and x2 = (1, 1, 1). Does S spans R3 ? Explain.

Solution:
5.3. Linear Independence 89

Let x = (a, b, c) be any vector in R3 . Consider

c1 (1, 1, 0) + c2 (1, 1, 1) = (a, b, c).

Note that we can not use the determinant argument here since we have no square matrix. Thus,
solving the system, we get
⎡ ⎤ ⎡ ⎤
⎢1 1 a⎥ ⎢1 1 a⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥
⎢1 1 b⎥ −−−−−−→ ⎢0 0 b − a⎥ .
⎣ ⎦ ⎣ ⎦
0 1 c 0 1 c

This system has no solution if b − a ̸= 0. Therefore, x is not a linear combination of S and S


does not span R3 .

Remark 5.3.1

The following statements can be shown easily:

1. the vectors i = (1, 0), j = (0, 1) spans R2 ,


2. the vectors i = (1, 0, 0), j = (0, 1, 0), k = (0, 0, 1) spans R3 ,
3. the vectors E1 = (1, 0, · · · , 0), E2 = (0, 1, 0, · · · , 0), · · · , En = (0, · · · , 0, 1) spans Rn .

Definition 5.3.2

The set of vectors S = {x1 , x2 , · · · , xn } in a vector space V is said to be linearly dependent


if there exist constants c1 , c2 , · · · , cn not all zeros, such that

c1 x1 + c2 x2 + · · · + cn xn = 0.

Otherwise, S is said to be linearly independent. That is, x1 , x2 , · · · , xn are linearly indepen-


dent if whenever, c1 x1 + c2 x2 + · · · + cn xn = 0, we must have c1 = c2 = · · · = cn = 0.
90 Chapter 5. Real Vector Spaces

Example 5.3.3

Determine whether x1 = (1, 0, 1, 2), x2 = (0, 1, 1, 2), and x3 = (1, 1, 1, 3) in R4 are linearly
independent or linearly dependent? Explain.

Solution:

We solve the homogenous


⎡ ⎤ system: c1 x1 +⎤ c2 x2 + c3 x3⎡= 0. That is, ⎤
⎡ ⎡ ⎤
⎢1 0 1 0⎥ ⎢1 0 1 0⎥ ⎢1 0 1 0⎥ ⎢1 0 1 0⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎢0 1 1 0⎥ ⎢0 1 1 0⎥ ⎢0 1 1 0⎥
⎢ ⎥ −r−
3 −r1 →r3
− − − −→ ⎢ ⎥ −r−
3 −r2 →r3
− − − −→ ⎢ ⎥− −− −→ ⎢0
−r3 →r3 ⎢ 1 1 0⎥

⎢ ⎥ r4 −2r1 →r4 ⎢ ⎥ r4 −2r2 →r4 ⎢ ⎥ −r4 →r4 ⎢ ⎥
⎢1 1 1 0⎥ ⎢0 1 0 0⎥ ⎢0 0 −1 0⎥ ⎢0 0 1 0⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦
2 2 3 0 0 2 1 0 0 0 −1 0 0 0 1 0
⎡ ⎤
r −r →r1 ⎢1 0 0 0⎥
−−1−−3−−→ ⎢
⎢0 1

r2 −r3 →r2 0 0⎥
−−−−−−−→ ⎢ ⎥
r4 −r3 →r4 ⎢
⎢0 0 1

0⎥
⎣ ⎦
0 0 0 0
Therefore, c1 = c2 = c3 = 0 and thus x1 , x2 , x3 are linearly independent.

Example 5.3.4

Determine whether the vectors x1 = (1, 2, −1), x2 = (1, −2, 1), x3 = (−3, 2, −1), and x4 =
(2, 0, 0) in R3 is linearly independent or linearly dependent? Explain.

Solution:

Consider the homogenous system: c1 x1 + c2 x2 + c3 x3 + c4 x4 = 0. This system has a non-trivial


solutions because the number of unknowns (4) is greater than the number of equations (3).
Therefore, x1 , x2 , x3 , x4 are linearly dependent.
In addition, we can show that this set is linearly dependent by the mean of r.r.e.f. as follows:
⎡ ⎤ ⎡ ⎤
⎢ 1 1 −3 2 0⎥ ⎢1 0 −1 1 0⎥
⎢ ⎥ ⎢ ⎥
⎢ 2 −2 2 0 0⎦
⎥ → · · · → ⎢0 1 −2 1 0⎥ .
⎣ ⎣ ⎦
−1 1 −1 0 0 0 0 0 0 0

From the reduced system above, we see that (from the third column) x3 = −x1 − 2x2 and that
(from the fourth column) x4 = x1 + x2 .
5.3. Linear Independence 91

Remark 5.3.2

Let S = {x1 , x2 , · · · , xn } be a set of vectors in Rn and let A be an n × n matrix whose columns


are the n-vectors of S. Then,

1. if A is singular, then S is linearly dependent,


2. if A is non-singular, then S is linearly independent.

Example 5.3.5

For what values of α are the vectors (−1, 0, −1), (2, 1, 2), (1, 1, α) in R3 linearly dependent?
Explain.

Solution:

We want the vectors to be linearly dependent, so consider the system c1 (−1, 0, −1) + c2 (2, 1, 2) +
> >
c3 (1, 1, α) = (0, 0, 0). This system has non-trivial solutions only if >> A >> = 0, where A is the
matrix whose columns are [−1, 0, −1]T , [2, 1, 2]T , and [1, 1, α]T . That is,
> >
> >
> -1 2 1>>
> > >
> > > >
>A> = > 0 1 1>> = 0 ⇐⇒ −(α − 2) − (2 − 1) = 0 ⇐⇒ 2 − α − 1 = 0 ⇐⇒ α = 1.
>
>
> -1 2 α>>

Therefore, if α = 1 the vectors are linearly dependent. Otherwise if α ∈ R\{1}, the vectors are
linearly independent.

Example 5.3.6

Suppose that S = {v1 , v2 , v3 } is a linearly independent set of vectors in a vector space V. Show
that T = {w1 , w2 , w3 } is also linearly independent set, where w1 = v1 + v2 + v3 , w2 = v2 + v3 ,
and w3 = v3

Solution:
92 Chapter 5. Real Vector Spaces

Consider the system c1 w1 + c2 w2 + c3 w3 = 0. Therefore,

c1 w1 + c2 w2 + c3 w3 = 0
c1 (v1 + v2 + v3 ) + c2 (v2 + v3 ) + c3 (v3 ) = 0
c1 v1 + c1 v2 + c1 v3 + c2 v2 + c2 v3 + c3 v3 = 0
(c1 )v1 + (c1 + c2 )v2 + (c1 + c2 + c3 )v3 = 0
But v1 , v2 , v3 are linearly independent, thus c1 = c1 + c2 = c1 + c2 + c3 = 0. Therefore,
c1 = c2 = c3 = 0 and hence T is linealry independent.

Example 5.3.7

Suppose that S = {v1 , v2 , v3 } is a linearly dependent set of vectors in a vector space V. Show
that T = {w1 , w2 , w3 } is also linearly dependent set, where w1 = v1 , w2 = v1 + v2 , and
w3 = v1 + v2 + v3

Solution:

Consider the system c1 w1 + c2 w2 + c3 w3 = 0. Therefore,

c1 w1 + c2 w2 + c3 w3 = 0
c1 (v1 ) + c2 (v1 + v2 ) + c3 (v1 + v2 + v3 ) = 0
(c1 + c2 + c3 )v1 + (c2 + c3 )v2 + (c3 )v3 = 0
But v1 , v2 , v3 are linearly dependent, thus at least one of c1 + c2 + c3 , c2 + c3 , and c3 is non-zero.
Therefore, one of c1 , c2 , c3 is non-zero and hence T is linealry dependent.

Theorem 5.3.1

If {x1 , x2 } is a linearly dependent set, then x1 //x2 .

Proof:

If {x1 , x2 } is linearly dependent, then c1 x1 + c2 x2 = 0 where c1 or c2 is non-zero. Assume that


−c1
c2 ̸= 0, then x2 = c2
x1 which implies that x1 //x2 .
5.3. Linear Independence 93

Theorem 5.3.2

Any subset of a vector space V contains the zero vector is a linearly dependent set.

Proof:

Assume that S = {x1 , x2 , · · · , xn } ⊆ V with xk = 0, then let ci = 0 for all i = 1, 2, · · · , n and


let ck = 1. Then, the system c1 x1 + c2 x2 + · · · + cn xn = 0 holds with ck is a non-zero. That is,
S is a linearly dependent set.

Theorem 5.3.3

If {x1 , x2 , · · · , xn } is a linearly dependent set, then we can express one of the vectors in terms
of the others.

Proof:

Consider the system c1 x1 + c2 x2 + · · · + cn xn = 0 with not all ci zeros, say ck ̸= 0. Then, clearly
D E D E D E D E D E
−c1 −c2 −ck−1 −ck+1 −cn
xk = x1 + x2 + · · · + xk−1 + xk+1 + · · · + xn .
ck ck ck ck ck

Remark 5.3.3

The set of linearly independent vectors should be non-zeros distinct vectors.

Remark 5.3.4

Let S1 , S2 be two subsets of a vector space V with S1 ⊆ S2 . Then,

1. if S1 is linearly dependent, then S2 is linearly dependent,


2. if S2 is linearly independent, then S1 is linearly independent.
94 Chapter 5. Real Vector Spaces

5.4 Basis and Dimension

Definition 5.4.1

A set S = {x1 , x2 , · · · , xn } of distinct non-zero vectors in a vector space V is said to be a basis


if and only if

1. S spans V (V = span S),


2. S is linearly independent set.

The dimension of V is the number of vectors in its basis and is denoted by dim(V).

Remark 5.4.1

The following sets are called standard basis:

1. {(1, 0), (0, 1)} ∈ R2 ,


2. {(1, 0, 0), (0, 1, 0), (0, 0, 1)} ∈ R3 ,
3. {E1 = (1, 0, · · · , 0), E2 = (0, 1, 0, · · · , 0), · · · , En = (0, · · · , 0, 1)} ∈ Rn .

Example 5.4.1

Show that the set S = {x1 , x2 , x3 , x4 } is a basis for R4 , where

x1 = (1, 0, 1, 0), x2 = (0, 1, −1, 2), x3 = (0, 2, 2, 1), and x4 = (1, 0, 0, 1).

Solution:

To show that S is a basis for R4 , we show that S is linearly independent and that S spans R4 .

1. S is linealy independent? Consider the homogenous system

c1 (1, 0, 1, 0) + c2 (0, 1, −1, 2) + c3 (0, 2, 2, 1) + c4 (1, 0, 0, 1) = (0, 0, 0, 0).


> >
This system has a trivial solution if >> A >> ̸= 0, where A is the matrix of coefficients. That
5.4. Basis and Dimension 95

is,
> > > >
> > > > > >
>1 0 0 1>> > 0 0 0 1 >> >> >
> >
> > > > 0 1 2 >>
>0 1 2 0>> c1 −c4 →c1 > 0 1 2 0>> >> >
|A| = >> > = >
> >=> 1 −1 2>> = · · · = 1 ̸= 0.
>1 −1 2 0>> > 1 −1 2 0>> >>
> > > −1 2 1>>
>0 2 1 1>> > −1 2 1 1>>
> >

Therefore, the system has trivial solution and thus S is linearly independent.

2. S spans R4 ? Let x = (a, b, c, d) ∈ R4 . Consider the non-homogenous system:

c1 (1, 0, 1, 0) + c2 (0, 1, −1, 2) + c3 (0, 2, 2, 1) + c4 (1, 0, 0, 1) = (a, b, c, d).


> >
> >
Since the > A > ̸= 0 where A is the matrix of coefficients, then this system has a unique
solution and thus S spans R4 .

Therefore, S is a basis for R4 .

Theorem 5.4.1

Let S = {x1 , x2 , · · · , xn } be a basis for a vector space V. Then, every vector in V can be written
in one and only one way as a linear combination of the vectors in S.

Proof:

Let x ∈ V. Since S is a basis of V, then S spans V. That is, we can write

x = c1 x1 + c2 x2 + · · · + cn xn , and (5.4.1)
x = d1 x1 + d2 x2 + · · · + dn xn . (5.4.2)

By substracting Equation 5.4.2 out of Equation 5.4.1, we get

0 = (c1 − d1 )x1 + (c2 − d2 )x2 + · · · + (cn − dn )xn .

But S is linearly independent set (it is a basis). Thus,

c1 − d1 = 0, c2 − d2 = 0, · · · , cn − dn = 0.

Therefore,
c1 = d1 , c2 = d2 , · · · , cn = dn
96 Chapter 5. Real Vector Spaces

and hence x can be written in one and only one way as a linear combination of vectors in S.

Theorem 5.4.2

Let S = {x1 , x2 , · · · , xn } be a set of non-zero vectors of a vector space V and let W = span S.
Then, some subset of S is a basis for W.

5.4.2: ⋆ How to construct a basis?

Let V be a vector space and S = {x1 , x2 , · · · , xn } is a subset of V. The procedure to find a


subset of S that is a basis for W = span S is:

1. form the linear combination c1 x1 + c2 x2 + · · · + cn xn = 0,


2. form the augmented matrix of the homogenous system in step (1),
3. find the r.r.e.f. of the augmented matrix,
4. the vectors in S that are corresponding to columns which contains the leading 1’s form a
basis for W = span S.

Example 5.4.2

Let S = {x1 , x2 , x3 , x4 , x5 } be a set of R4 where x1 = (1, 2, −2, 1), x2 = (−3, 0, −4, 3), x3 =
(2, 1, 1, −1), x4 = (−3, 3, −9, 6), and x5 = (9, 3, 7, −6). Find a subset of S that is a basis for
W = span S. Find dim(W).

Solution:

We consider the homogenous system: c1 x1 + c2 x2 + c3 x3 + c4 x4 + c5 x5 = 0 to find a linearly


independent subset of S:
⎡ ⎤ ⎡ ⎤
1 3 3
⎢ 1 −3 2 −3 9 0⎥ ⎢ 1 0 2 2 2
0⎥
⎢ ⎥ ⎢ ⎥
⎢ 2 0 1 3 3 0⎥
⎥ ≈ · r.r.e.f.
⎢ 0 1 − 21 3
− 25 0⎥

⎢ ⎥ · · · · · ≈ ⎢

2 ⎥

⎢−2 −4 1 −9 7 0⎥ ⎢ 0 0 0 0 0 0⎥
⎣ ⎦ ⎣ ⎦
1 3 −1 6 −6 0 0 0 0 0 0 0

The leading entries are pointing (appear) on the first two columns, namely columns 1 and
2. Therefore, {x1 , x2 } is linearly independent and it spans W. Thus, {x1 , x2 } is a basis for
5.4. Basis and Dimension 97

W = span S and dim(W) = 2.

Remark 5.4.3

If W is a subspace of a vector space V, then dim(W) ≤ dim(V).

Theorem 5.4.3

If S = {x1 , x2 , · · · , xn } is a basis for a vector space V and T = {y1 , y2 , · · · , ym } is a linearly


independent set of V. Then m ≤ n

Theorem 5.4.4

If S = {x1 , x2 , · · · , xn } and T = {y1 , y2 , · · · , ym } are two bases for a vector space V, then
m = n.

Theorem 5.4.5

If S is a linearly independent set of vectors in a finite dimensional vector space V, then there is
a basis T for V which contains S.

Example 5.4.3

Find a basis for R4 that contains the vectors x1 = (1, 0, 1, 0) and x2 = (−1, 1, −1, 0).

Solution:

Consider the set S = {x1 , x2 , E1 , E2 , E3 , E4 }. The set S spans R4 but it contains some linearly
dependent vectors. In order to delete those, we follow the following procedure:
⎡ ⎤ ⎡ ⎤
⎢1 −1 1 0 0 0 0⎥ ⎢ 1 0 0 1 1 0 0⎥
⎢ ⎥ ⎢ ⎥
⎢0 1 0 1 0 0 0⎥ ⎢ 0 1 0 1 0 0 0⎥
⎢ ⎥ ≈ · r.r.e.f.
····· ≈ ⎢ ⎥
⎢ ⎥ ⎢ ⎥
⎢1 −1 0 0 1 0 0⎥ ⎢ 0 0 1 0 −1 0 0⎥
⎣ ⎦ ⎣ ⎦
0 0 0 0 0 1 0 0 0 0 0 0 1 0

The leading entries pointing on the columns 1, 2, 3, and 6. Therefore, the set {x1 , x2 , E1 , E4 } is
a basis for R4 containing x1 and x2 .
98 Chapter 5. Real Vector Spaces

Theorem 5.4.6

Let V be an n -dimensional vector space and let S = {x1 , x2 , · · · , x n } be a set in V. Then,

1. if S is linearly independent, then it is a basis for V,


2. if S spans V, then it is a basis for V.

Example 5.4.4

Find all values of a for which S = {(a2 , 0, 1), (0, a, 2), (1, 0, 1)} is a basis for R3 .

Solution:

Since dim(R3 ) = 3 = size of S, it is enough to show that S is linearly independent (or it spans
R3 ) to show that it is a basis for R3 . Consider

c1 (a2 , 0, 1) + c2 (0, a, 2) + c3 (1, 0, 1) = (0, 0, 0).


> >
> >
Clearly, S is linearly independent if > A > ̸= 0, where A is the coefficient matrix. That is,
> >
> 2 >
>a 0 1 >
> >
> = a(a2 − 1) ̸= 0
> >
> 0 a 0 =⇒ a ̸= 0 and a ̸= ±1.
> >
> >
> 1 2 1 >

Therefore, S is a basis for R3 if a ∈ R\{−1, 0, 1}.

Example 5.4.5

Find the dimension of the subspace of all vectors of the form (a, b, c, d) where c = a − b and
d = a + b (for a, b ∈ R).

Solution:

Let W = {(a, b, a − b, a + b) | a, b ∈ R} ⊆ R4 . Let x be any vector of W, then

x = (a, b, a − b, a + b) = a(1, 0, 1, 1) + b(0, 1, −1, 1) ∈ W.

Therefore, S = {(1, 0, 1, 1), (0, 1, −1, 1)} spans W.


Clearly, c1 (1, 0, 1, 1) + c2 (0, 1, −1, 1) = (0, 0, 0, 0) holds only if c1 = c2 = 0 which shows that S is
5.4. Basis and Dimension 99

linearly independent. That is, S is a basis for W and dim(W) = 2.

Example 5.4.6

Find the dimension of the subspace of all vectors of the form (a + c, a + b + 2c, a + c, a − b) where
a, b, c ∈ R.

Solution:

Let W = {(a + c, a + b + 2c, a + c, a − b) | a, b, c ∈ R} ⊆ R4 . Let x be any vector of W, then

x = (a + c, a + b + 2c, a + c, a − b) = a(1, 1, 1, 1) + b(0, 1, 0, −1) + c(1, 2, 1, 0) ∈ W.

Therefore, S = {(1, 1, 1, 1), (0, 1, 0, −1), (1, 2, 1, 0)} spans W.


Consider c1 (1, 1, 1, 1) + c2 (0, 1, 0, −1) + c3 (1, 2, 1, 0) = 0. Thus,
⎡ ⎤ ⎡ ⎤
⎢1 0 1⎥ ⎢ 1 0 1⎥
⎢ ⎥ ⎢ ⎥
⎢1 1 2⎥ ⎢ 0 1 1⎥
⎢ ⎥ ≈ · r.r.e.f.
····· ≈ ⎢ ⎥
⎢ ⎥ ⎢ ⎥
⎢1 0 1⎥ ⎢ 0 0 0⎥
⎣ ⎦ ⎣ ⎦
1 −1 0 0 0 0

The leading entries pointing on the columns 1 and 2. Therefore, the set {(1, 1, 1, 1), (0, 1, 0, −1)}
is a basis for W containing two vectors. Thus, the dimension of W is 2.

Example 5.4.7

Let S = {x1 , x2 , x3 } be a basis for a vector space V. Show that T = {y1 , y2 , y3 } is also a basis
for V, where y1 = x1 + x2 + x3 , y2 = x2 + x3 , and y3 = x3 .

Solution:

Since S is a basis for V, then dim(V) = 3. But the size of T is also 3. Thus, it is enough to
show that T is linearly independent to show that it is a basis for V as well.
Consider the system c1 y1 + c2 y2 + c3 y3 = 0. Therefore,

c1 y1 + c2 y2 + c3 y3 = 0
c1 (x1 + x2 + x3 ) + c2 (x2 + x3 ) + c3 (x3 ) = 0
(c1 )x1 + (c1 + c2 )x2 + (c1 + c2 + c3 )x3 = 0
100 Chapter 5. Real Vector Spaces

But x1 , x2 , x3 are linearly independent, thus c1 = c1 + c2 = c1 + c2 + c3 = 0. Therefore,


c1 = c2 = c3 = 0 and hence T is linealry independent.
5.5. Homogenous System 101

5.5 Homogenous System

Definition 5.5.1

The null space of A (the solution space of Ax = 0) is the set

{x : Ax = 0}.

Remark 5.5.1

To find a basis for the null space of A in Ax = 0, we do the following:

1. use the Guass-Jordan method to solve the homogenous system Ax = 0,


> >
2. if the solutions of Ax = 0 is trivial, then the null space of A = {0}, when >> A >> ̸= 0, and
dim(null space of A) = 0,
3. if the solution of Ax = 0 is non-trivial with solutions x1 , x2 , · · · , xr , then any vector x in
the null space of A can be written as x = c1 x1 +c2 x2 +· · ·+cr xr . Therefore, {x1 , x2 , · · · , xr }
spans the null space of A, and it is a basis. The dimension of the null space of A is called
the nullity of A.

Example 5.5.1

Find a basis for the solution space of Ax = 0, where


⎡ ⎤
⎢ 1 1 0 2⎥
A=⎢
⎢−2 −2 1

−5⎥
⎣ ⎦
1 1 −1 3

Solution:

We
⎡ first solve the homogenous
⎤ system:⎡ ⎤ ⎡ ⎤
⎢ 1 1 0 2 0⎥ ⎢1 1 0 2 0⎥ ⎢1 1 0 2 0⎥
⎢ ⎥ r2 +2r1 →r2 ⎢ ⎥ r3 +r2 →r3 ⎢ ⎥
⎢−2 −2 −− −−
1 −5 0⎦ r −r →r ⎢
⎥ −−→ 0 0 1 −1 0⎦⎥ −
− − − − −
→ ⎢0 0 1 −1 0⎥
⎣ 3 1 3 ⎣ ⎣ ⎦
1 1 −1 3 0 0 0 −1 1 0 0 0 0 0 0
The reduced system is

x1 + x2 + 2x4 = 0
102 Chapter 5. Real Vector Spaces

x3 − x4 = 0

Let x4 = t and x2 = r for r, t ∈ R so that we get x3 = t and x1 = −r − 2t. Thus,


⎡ ⎤
⎢−r − 2t⎥
⎢ ⎥
⎢ r ⎥
x=⎢
⎢ ⎥ , where r, t ∈ R



t ⎥

t

Therefore, ⎡ ⎤ ⎡ ⎤
⎢−1⎥ ⎢−2⎥
⎢ ⎥ ⎢ ⎥
⎢ 1⎥ ⎢ 0⎥
x=r ⎢ ⎥

⎥+t


⎥.

⎢ 0⎥ ⎢ 1⎥
⎣ ⎦ ⎣ ⎦
0 1
; <
Thus, [−1 1 0 0]T , [−2 0 1 1]T spans the null space of A and it is a linearly independent
set, so it is a basis for the null space of A and the nullity of A is 2.

Example 5.5.2

Find a basis for the solution space of Ax = 0, where


⎡ ⎤
⎢1 0 0⎥
A=⎢
⎢1 4

−1⎥ .
⎣ ⎦
2 0 1

What is the nullity of A.

Solution:

We
⎡ solve the homogenous
⎤ system
⎡ Ax = 0: ⎤ ⎡ ⎤ ⎡ ⎤
⎢1 0 0 0⎥ ⎢1 0 0 0⎥ ⎢1 0 0 0⎥ 1 ⎢1 0 0 0⎥
⎢ ⎥ r2 −r1 →r2 ⎢ ⎥ r2 +r3 →r2 ⎢ ⎥ 4 r2 →r2 ⎢ ⎥
⎢1 4 −1 0⎥ −−−−−−→ ⎢0 4 −1 0⎥ − −−−−−→ ⎢0 4 0 0⎦ ⎥ −− − −→ ⎢0 1 0 0⎥
⎣ ⎦ r3 −2r1 →r3 ⎣ ⎦ ⎣ ⎣ ⎦
2 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0
We have a trivial solution. Therefore, the null space of A is {0} and the nullity is 0.
5.6. The Rank of a Matrix and its Application 103

5.6 The Rank of a Matrix and its Application

Definition 5.6.1
⎡ ⎤
⎢ a11 a12 ··· a1n ⎥
⎢ ⎥
⎢a a22 ··· a2n ⎥
21
Let A = ⎢
⎢ . .. ...

.. ⎥ ∈ Mm×n .
⎢ .. . . ⎥
⎢ ⎥
⎣ ⎦
am1 am2 · · · amn
The set of rows of A are:

x1 = (a11 a12 ··· a1n ) ⎪






x2 = (a21 a22 ··· a2n ) ⎬
.. .. ∈ Rn
. . ⎪






xm = (am1 am2 ··· amn ) ⎭

These rows span a subspace of Rn which is called the row space of A. Moreover, the row
rank of A = dim(row space of A).
Similarly, the columns of A are:
⎡ ⎤ ⎡ ⎤ ⎡ ⎤⎫

⎢ a11 ⎥ ⎢ a12 ⎥ ⎢ a1n ⎥ ⎪


⎢ ⎥ ⎢ ⎥ ⎢ ⎥⎪⎪
⎢ a21 ⎥ ⎢ a22 ⎥ ⎢ a2n ⎥ ⎬
y1 = ⎢ .. ⎥ , y2 = ⎢ .. ⎥
⎢ ⎥ ⎢
⎥, · · · , yn = ⎢ .. ⎥ ⎪ ∈ Rm .
⎢ ⎥
⎢ . ⎥ ⎢ . ⎥ ⎢ . ⎥⎪
⎣ ⎦ ⎣ ⎦ ⎣ ⎦⎪⎪

am1 am2 amn ⎪ ⎭

These columns span a subspace of Rm which is called the column space of A. Moreover, the
column rank of A = dim(column space of A).

Remark 5.6.1

Let A be any m × n matrix, then

1. the row rank of A = the column rank of A = the rank of A,


2. n = the nullity of A + the rank of A.
104 Chapter 5. Real Vector Spaces

Theorem 5.6.1

If A and B are two m × n row equivalent matrices, then they have the same row space.

In Example 5.6.1, we illustrate how to find bases for the row and column spaces of a given matrix.

Example 5.6.1
⎡ ⎤
⎢ 1 −2 0 3 −4⎥
⎢ ⎥
⎢ 3 2 8 1 4⎥
Let A = ⎢

⎥.

⎢ 2 3 7 2 3⎥
⎣ ⎦
−1 2 0 4 −3
1. find a basis for the row space of A,
2. find a basis for the column space of A,
3. find a basis for the row space that contains only rows of A,
4. find a basis for the column space that contains only columns of A.

Solution:
1. To find a basis for the row space of A, we have to find the r.r.e.f. of A, then the set of
non-zero rows of the r.r.e.f. forms a basis for the row space.
⎡ ⎤
⎢ 1 −2 0 3 −4⎥ ⎡ ⎤

⎢ 3 2 8 1

4⎥ ⎢1 0 2 0 1 ⎥←
⎥ ≈ · r.r.e.f.
····· ≈ ⎢
⎢0


⎢ ⎥ 1 1 0 1 ⎥←
⎢ 2 3 7 2 3⎥ ⎢
⎢0

⎣ ⎦ ⎣ 0 0 1 −1 ⎥←

−1 2 0 4 −3
0 0 0 0 0
Therefore, the set {(1, 0, 2, 0, 1), (0, 1, 1, 0, 1), (0, 0, 0, 1, −1)} forms a basis for the row space
of A. Note that the row rank of A = 3. (That is, nullity of A = 5 - 3 = 2).

2. To find a basis for the column space of A, we have to find a basis for the row space of AT .
Therefore,
⎡ ⎤
⎢ 1 3 2 −1⎥ ⎡ ⎤
11

⎢−2 2 3 2⎥
⎥ ⎢1 0 0 24 ⎥←
⎢ −49

T
⎢ ⎥ r.r.e.f. ⎢0 1 0 ⎥←
A =⎢
⎢ 0 8 7 ⎥ ≈ ······ ≈
0⎥ ⎢
⎢ 24
7



⎢ 3
⎥ ⎢0 0 1 3
⎥←
1 2 4⎥ ⎢
⎢0

⎣ ⎦ 0 0 0 ⎥
−4 4 3 −3 ⎣ ⎦
0 0 0 0
5.6. The Rank of a Matrix and its Application 105

; <
Therefore, the set (1, 0, 0, 11
24
), (0, 1, 0, −49
24
), (0, 0, 1, 37 ) is a basis for the row space of AT
and it is a basis for the column space of A. The column rank of A = 3. (That is, nullity
of A = 5 - 3 = 2).

3. To find a basis for the row space of A that containsonly rows of A, we do as follows:

⎡ ⎤
⎢ 1 3 2 −1⎥ ⎡ ⎤
⎢ ⎢1 0 0 11 24 ⎥
⎢−2 2 3 2⎥⎥ ⎢ −49⎥
T
⎢ ⎥ ⎢0
r.r.e.f. 1 0 24 ⎥
A =⎢
⎢ 0 8 7 0⎥⎥ ≈ ······ ≈

⎢0 7⎥


⎢ 3
⎥ ⎢ 0 1 3⎥
1 2 4⎥ ⎢
⎢0

⎣ ⎦ 0 0 0⎥
−4 4 3 −3 ⎣
0 0 0 0

↑ ↑ ↑
Then, the leading entries are pointing to column 1, column 2 , and column 3 in the r.r.e.f.
of AT which correspond to row 1, row 2, and row 3 in A. Thus,

{(1, −2, 0, 3, −4), (3, 2, 8, 1, 4), (2, 3, 7, 2, 3)}

forms a basis for the row space of A containing only rows of A.

4. To find a basis for the column space of A that only contains columns of A, we do the
following:
⎡ ⎤
⎡ ⎤
⎢ 1 −2 0 3 −4⎥

⎢ 3
⎥ ⎢1 0 2 0 1⎥
2 8 1 4⎥⎥ ≈ · r.r.e.f.
⎢ ⎥

⎢ ⎥ ····· ≈
⎢0 1 1 0 1⎥
⎢ 2 3 7 2 3⎥ ⎢ ⎥
⎢0 0 0 1 −1⎥
⎣ ⎦ ⎢

−1 2 0 4 −3 ⎣
0 0 0 0 0

↑ ↑ ↑
Then, the leading entries are pointing to column 1, column 2 , and column 3 in the r.r.e.f.
of A . Thus,
{(1, 3, 2, −1), (−2, 2, 3, 3), (3, 1, 2, 4)}

forms a basis for the column space of A containing only columns of A.


106 Chapter 5. Real Vector Spaces

⋆ Rank and Singularity:

Theorem 5.6.2

An n × n matrix A is non-singular if and only if rank(A) = n.

Theorem 5.6.3
> >
If A is an n × n matrix, then rank(A) = n if and only if >> A >> ̸= 0.

Theorem 5.6.4

Let A be an n × n matrix. The non-homogenous system Ax = B has a unique solution for every
n × 1 matrix B if and only if rank(A) = n.

Theorem 5.6.5

Let S = {x1 , x2 , · · · , xn } be a set of n vectors in Rn and let A be the matrix whose rows
> >
(columns) are the vectors of S. Then, S is linearly independent if and only if >> A >> ̸= 0.

Theorem 5.6.6

Let A be an m × n matrix. The homogenous system Ax = 0 has a non-trivial solutions if and


only if rank(A) < n.

Example 5.6.2
⎡ ⎤
⎢1 1 4 1 2⎥

⎢0 1 2 1 1⎥

⎢ ⎥
Let A = ⎢
⎢0 0 0 1 ⎥. Find the rank of A and the nullity of A.
2⎥
⎢ ⎥
⎢1 −1 0 0 2⎥
⎣ ⎦
2 1 6 0 1

Solution:
5.6. The Rank of a Matrix and its Application 107

To find the rank and the nullity of A, we find any basis of any kind of A. So,
⎡ ⎤
⎢1 1 4 1 2⎥ ⎡ ⎤

⎢0 1 2 1 1⎥
⎥ ⎢1 0 2 0 1 ⎥←
⎢ ⎥
⎢0 1 2 0 −1 ⎥
⎥←
⎢ ⎥ r.r.e.f.
⎥ ≈ ······ ≈
⎢0 0 0 1 2⎥ ⎢

⎢0 0 0 1 2 ⎥⎥←
⎢ ⎥ ⎢
⎢1 −1 0 0 2⎥ ⎢ ⎥
⎣ ⎦ ⎢0 0 0 0 0 ⎥
2 1 6 0 1 ⎣
0 0 0 0 0

Therefore {(1, 0, 2, 0, 1), (0, 1, 2, 0, −1), (0, 0, 0, 1, 2)} is a basis for the row space of A and rank(A)
= 3 which implies that nullity of A = 5 − 3 = 2.

Example 5.6.3

If A is a 3 × 7 matrix, what is the largest possible rank of A (or what is the largest possible
number of linearly independent columns of A)?

Solution:

The largest possible row rank of A is 3 while the largest possible column rank of A is 7, but row
rank of A = column rank of A. Therefore, the largest possible rank of A is 3. The same thing
applies for the largest possible number of linearly independent columns of A.

Example 5.6.4

If A is a 5 × 3 matrix, show that A has linearly dependent rows.

Solution:

The largest possible rank of A is 3 and thus A must has at least two linearly dependent rows.

Example 5.6.5
⎡ ⎤
⎢ 1 −2 0 3 −4⎥
⎢ ⎥
⎢ 3 2 8 1 4⎥
Let A = ⎢

⎥.

⎢ 2 3 7 2 3⎥
⎣ ⎦
−1 2 0 4 −3
108 Chapter 5. Real Vector Spaces

1. Find bases for the row and column spaces of A,


2. Find a basis for the null space of A.
3. Does x = (1, 2, 4, 3, 0) belong to the row space of A? Explain.

Solution:
1. To get bases for the row space and column spaces of A, we do the following:
⎡ ⎤
⎡ ⎤
⎢ 1 −2 0 3 −4⎥

⎢ 3
⎥ ⎢1 0 2 0 1 ⎥←
2 8 1 4⎥⎥ ≈ · r.r.e.f. ⎢ ⎥

⎢ ⎥ ····· ≈ ⎢0 1 1 0 1 ⎥←
⎢ 2 3 7 2 3⎥ ⎢ ⎥
⎢0 0 0 1 −1 ⎥←
⎣ ⎦ ⎢ ⎥
−1 2 0 4 −3 ⎣
0 0 0 0 0

↑ ↑ ↑
On one hand, the set {(1, 0, 2, 0, 1), (0, 1, 1, 0, 1), (0, 0, 0, 1, −1)} forms a basis for the row
space of A. On the other hand, the set {(1, 3, 2, −1), (−2, 2, 3, 2), (3, 1, 2, 4)} forms a basis
for the column space of A that only contains columns of A, but this is fine since there is
no restrictions on the basis of column space of A mentioned in the question.
2. To find a basis for the null space of A, we use the r.r.e.f. of A found in part(1) to find the
reduced homogenous system:

x1 + 2x3 + x5 = 0
x2 + x3 + x5 = 0
x4 − x5 = 0

Let x5 = t, x3 = r, where t, r ∈ R to get


⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢−2r − t⎥ ⎢−2⎥ ⎢−1⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎢ −r − t ⎥ ⎢−1⎥ ⎢−1⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
x=⎢
⎢ r ⎥ ⎥=r
⎢ 1 ⎥ + t ⎢ 0 ⎥.
⎢ ⎥ ⎢ ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥

⎣ t ⎥ ⎦
⎢ 0 ⎥
⎣ ⎦
⎢ 1 ⎥
⎣ ⎦
t 0 1
Therefore, {(−2, −1, 1, 0, 0), (−1, −1, 0, 1, 1)} is a basis for the null space of A. The nullity
of A is 2 while the rank(A) = 3.
3. Yes. It is clear that x = (1)(1, 0, 2, 0, 1) + (2)(0, 1, 1, 0, 1) + (3)(0, 0, 0, 1, −1) where those
vectors are the vectors of the basis of the row space that were found in (1). It is also
possible to consider the non-homogenous system x = c1 (1, 0, 2, 0, 1) + c2 (0, 1, 1, 0, 1) +
c3 (0, 0, 0, 1, −1) to find the same answer.
5.6. The Rank of a Matrix and its Application 109

CHAPTER 5 REVISION
Revision of Chapter 5 ... Have Fun :-)

1. Consider V = { (x, y) : xy = 0 } with the usual vector addition and scalar multiplication
in R2 . Is (V, +, ·) a vector space? Explain.
110 Chapter 5. Real Vector Spaces
Chapter

6 Diagonalization

6.1 Eigenvalues and Eigenvectors

Definition 6.1.1

Let A ∈ Mn×n . The real number λ is called an eigenvalue of A if there exists a nonzero vector
x ∈ Rn so that
Ax = λx x ̸= 0.

In this case, x is called an eigenvector associated with λ. This is called the eigenproblem.
Note that if A is non-singular, then A−1 X = λ1 X.

⎡ ⎤ ⎡ ⎤
1 −1⎦ 1
For example, let A = ⎣ and x = ⎣ ⎦. Then,
−1 1 −1
⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡ ⎤
1 −1⎦ ⎣ 1 ⎦ ⎣ 2 ⎦ 1
Ax = ⎣ = = 2 ⎣ ⎦ = 2x.
−1 1 −1 −2 −1
Therefore, λ = 2 is an eigenvalue of A associated with eigenvector x.

Definition 6.1.2

Let A = (aij ), 1 ≤ i, j ≤ n, then fA (λ) = |λIn − A| is called the characteristic polynomial.

⋆ Finding eigenvalues and eigenvectors of a given A ∈ Mn×n

Remark 6.1.1

Ax = λx, x ̸= 0,
λx − Ax = 0, x ̸= 0,
(λIn − A)x = 0, x ̸= 0,

111
112 Chapter 6. Diagonalization

This system has non-trivial solutions if (λIn − A) is singular. Therefore,

|λIn − A| = 0 ⇐⇒ fA (λ) = 0.

The eigenvalues are the roots of fA (λ).

Example 6.1.1
⎡ ⎤
⎢1 0 2⎥
Let A = ⎢
⎢1 0 0⎥

. Find the eigenvalues and the associated eigenvectors.
⎣ ⎦
0 0 −1

Solution:

We first compute the characteristic polynomial fA (λ) = |λI3 − A| = 0 as follows:


> >
> > > >
>λ − 1 0 −2 >> > >
>
> > >λ − 1 −2 >>
> −1 λ 0 >> = λ >> > = λ(λ − 1)(λ + 1) = 0.
>
> > 0 λ + 1>
> 0 0 λ + 1>>

which implies that


λ1 = −1 , λ2 = 0 , λ3 = 1 .

To find the associate eigenvectors, say x1 , x2 , x3 , we solve the homogenous system


⎡ ⎤
⎢λi − 1 0 −2 0⎥
⎢ ⎥
⎢ −1 λi 0 0⎥ (6.1.1)
⎣ ⎦
0 0 λi + 1 0

for i = 1, 2, 3, as follows:

1. λ1 = −1 ⇒ (λ1 I3 − A)x1 = 0, x1 = (a, b, c) ̸= (0, 0, 0). Substitute λ1 = −1 in Equation


6.1.1 to get:
⎡ ⎤ ⎡ ⎤
⎢−2 0 −2 0⎥ ⎢1 0 1 0⎥
⎢ ⎥ ⎢ ⎥
⎢−1 −1 0 0⎥ → · · · → ⎢0 −1 1 0⎥ .
⎣ ⎦ ⎣ ⎦
0 0 0 0 0 0 0 0
Thus,
a + c = 0, and − b + c = 0 =⇒ a = −c, and b = c.
6.1. Eigenvalues and Eigenvectors 113

Let c = t ∈ R\{0} to get


⎡ ⎤ ⎡ ⎤
⎢−t⎥ ⎢−1⎥
⎢ ⎥ ⎢ ⎥
x1 = ⎢ t ⎥ for t = 1, we get x1 = ⎢ 1 ⎥ .
⎣ ⎦ ⎣ ⎦
t 1

2. λ2 = 0 ⇒ (λ2 I3 − A)x2 = 0, x2 = (a, b, c) ̸= (0, 0, 0). Substitute λ2 = 0 in Equation


6.1.1 to get: ⎡ ⎤ ⎡ ⎤
⎢−1 0 −2 0⎥ ⎢1 0 0 0⎥
⎢ ⎥
⎢−1 0 0 0⎥ → ··· → ⎢
⎢0 0 1

0⎥ .
⎣ ⎦ ⎣ ⎦
0 0 1 0 0 0 0 0
Thus, we get a = c = 0. Let b = t ∈ R\{0}. So,
⎡ ⎤ ⎡ ⎤
⎢0⎥ ⎢0⎥
x2 = ⎢ t ⎥ for t = 1, we get x2 = ⎢
⎢ ⎥ ⎥
⎢1⎥ .
⎣ ⎦ ⎣ ⎦
0 0

3. λ3 = 1 ⇒ (λ3 I3 − A)x3 = 0, x3 = (a, b, c) ̸= (0, 0, 0). Substitute λ3 = 1 in Equation


6.1.1 to get: ⎡ ⎤ ⎡ ⎤
⎢ 0 0 −2 0⎥ ⎢1 −1 0 0⎥
⎢ ⎥
⎢−1 1 0 0⎥ → ··· → ⎢
⎢0 0 1 0⎥

.
⎣ ⎦ ⎣ ⎦
0 0 2 0 0 0 0 0
Thus, a − b = 0, and c = 0. If b = t ∈ R\{0}, then a = t as well. So,
⎡ ⎤ ⎡ ⎤
⎢t⎥ ⎢1⎥
x3 = ⎢ ⎥ ⎢ ⎥
⎢ t ⎥ for t = 1, we get x3 = ⎢1⎥ .
⎣ ⎦ ⎣ ⎦
0 0

Example 6.1.2

Let A ∈ Mn×n . Show that


> >
1. the >> A >> is the product of the eigenvalues of A,
2. the matrix is singular if and only if one of its eigenvalues is zero.

Solution:
114 Chapter 6. Diagonalization

1. Let λ1 , λ2 , · · · , λn be the eigenvalues of A. Thus,

fA (λ) = |λIn − A| = (λ − λ1 )(λ − λ2 ) · · · (λ − λn ),


setting λ = 0, fA (0) = |−A| = (−λ1 )(−λ2 ) · · · (−λn ),
> >
(−1)n > A > (−1)n λ1 λ2 · · · λn ,
> >
=
> >
> >
>A> = λ1 λ2 · · · λn .
> >
2. (⇒) if A is singular, then >> A >> = 0 = λ1 λ2 · · · λn . Therefore, λ1 = 0, λ2 = 0, · · · , or λn = 0.
Thus, A has at least one zero eigenvalue.
(⇐) if A has a zero eigenvalue, say λi where 1 ≤ i ≤ n, then
> >
> >
> A > = λ1 λ2 · · · λi · · · λn = 0.

Therefore, A is singular.

Example 6.1.3

Show that if A is an upper (lower) triangular matrix, then the eigenvalues of A are the diagonal
entries.

Solution:

Let A = (aij ) where 1 ≤ i, j ≤ n be an upper triangular matrix, i.e. aij = 0 for all i > j. Recall
that the determinant of an upper triangular matrix is the product of its diagonal entries. Thus,

fA (λ) = |λIn − A| = (λ − a11 )(λ − a22 ) · · · (λ − ann ) = 0.

Therefore, λ1 = a11 , λ2 = a22 , · · · , λn = ann . Similar idea for the case of a lower triangular
matrix.

Example 6.1.4

Show that A and AT have the same eigenvalues.

Solution:
6.1. Eigenvalues and Eigenvectors 115

Let A be an n × n matrix. Clearly,


> > > > > >
fA (λ) = |λIn − A| = >>(λIn − A)T >> = >>λInT − AT >> = >>λIn − AT >> = fAT (λ).

The characteristic polynomial of A is the same as that of AT , thus A and AT have the same
eigenvalues.
116 Chapter 6. Diagonalization

6.2 Diagonalization

Definition 6.2.1

A matrix B is said to be similar to matrix A, denoted by B ≡ A, if there exists a non-singular


matrix P such that B = P −1 AP.

⋆ Properties of Similar Matrices:

1. A ≡ A since A = I −1 AI.
2. if B ≡ A, then A ≡ B.

Proof. If B ≡ A, then ∃ P, P −1 such that B = P −1 AP or P BP −1 = A. Let Q = P −1 to get


A = Q−1 BQ. Thus, A ≡ B.

3. if A ≡ B and B ≡ C, then A ≡ C.

Proof.

A≡B ⇒ ∃ P, P −1 such that A = P −1 BP,


B≡C ⇒ ∃ Q, Q−1 such that B = Q−1 CQ.

Therefore,
A = P −1 BP = P −1 Q−1 C QP = (QP )−1 C (QP ) ⇒ A ≡ C.

> > > >


4. if A ≡ B, then >> A >> = >> B >>.

Proof. If A ≡ B, then there exists P, P −1 such that B = P −1 A P with |P | =


̸ 0. Therefore,
> > > > > > 1 ✓>> >> ✚ >> >>
> B > = >P −1 A P > = |P −1 | > A > |P | = ✓ > A > ✚
> > > > > >
|P | = > A >.
✓|P |

5. if A ≡ B, then AT ≡ B T .
6.2. Diagonalization 117

Proof. If A ≡ B, then there exist P, P −1 such that B = P −1 A P . Thus,

B = P −1 A P,
BT = (P −1 A P )T ,
BT = P T AT (P −1 )T ,
BT = P T AT (P T )−1 .

Let Q−1 = P T , to get B T = Q−1 AT Q. Therefore, B T ≡ AT .

Theorem 6.2.1

Similar matrices have the same eigenvalues.

Proof:

Let A and B be two similar n × n matrices. Then, there are P, P −1 such that B = P −1 A P .
Then,
> >
fB (λ) = |λIn − B| = >>λIn − P −1 A P >>
> >
> −1
>P (λP P −1 − A)P >
>
=

= |P✟

−1
|P✚|
| |λIn − A| ✚

= |λIn − A|

= fA (λ).

Therefore, A and B have the same set of eigenvalues since they have the same characteristic
polynomial.

Definition 6.2.2

A matrix A is diagonalizable if and only if A is similar to a diagonal matrix D, i.e.

D = P −1 A P with |P | =
̸ 0.

D: its diagonal entries are the eigenvalues of A,


P: its columns are the linearly independent eigenvectors of A.
118 Chapter 6. Diagonalization

Theorem 6.2.2

A matrix A has linearly independent eigenvectors if all of its eigenvalues are real and distinct.

Theorem 6.2.3

A matrix A is diagonalizable if and only if it has linearly independent eigenvectors.

6.2.1 Case 1: Diagonalization of a Matrix with Distinct Eigenvalues

Example 6.2.1
⎡ ⎤
⎢1 0 2⎥
Let A = ⎢
⎢1 0 0⎥

. If possible, find matrices P and D so that A is diagonalizable.
⎣ ⎦
0 0 −1

Solution:

Recall that in Example 6.1.1, we found that

λ1 = −1, λ2 = 0, λ3 = 1,
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢−1⎥ ⎢0⎥ ⎢1⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
x1 = ⎢ 1 ⎥ , x2 = ⎢1⎥ , x3 = ⎢1⎥ .
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
1 0 0

Since, we have real and distinct eigenvalues, the eigenvectors x1 , x2 , and x3 are linearly inde-
pendent. Thus, A is diagonalizable and
⎡ ⎤ ⎡ ⎤
⎢−1 0 0⎥ ⎢−1 0 1⎥
D=⎢
⎢ 0 0

0⎥ and P = ⎢
⎢ 1 1

1⎥ .
⎣ ⎦ ⎣ ⎦
0 0 1 1 0 0
6.2. Diagonalization 119

6.2.2 Case 2: Diagonalization of a Matrix with Repeated Eigenvalues

Example 6.2.2

Find, if possible, matrices D and P so that D = P −1 A P , where


⎡ ⎤
⎢0 0 1⎥
A=⎢
⎢0 1

2⎥ .
⎣ ⎦
0 0 1

Solution:

We first compute the characteristic polynomial fA (λ) = |λI3 − A| = 0 as follows:


> >
> >
>λ 0 −1 >>
>
> >
>0
> λ−1 −2 >> = 0
>
>0 0 λ − 1>>

λ(λ − 1)(λ − 1) = 0

which implies that


λ1 = 1 , λ2 = 1 , λ3 = 0 .

To find the associate eigenvectors, say x1 , x2 , x3 , we solve the homogenous system


⎡ ⎤
⎢λi 0 −1 0⎥
⎢ ⎥
⎢0 λi − 1 −2 0⎥ (6.2.1)
⎣ ⎦
0 0 λi − 1 0

for i = 1, 2, 3, as follows:

1. λ1 = λ2 = 1 ⇒ (λ1 I3 − A)x1 = 0, x1 = (a, b, c) ̸= (0, 0, 0). Substitute λ1 = λ2 = 1 in


Equation 6.2.1 to get:
⎡ ⎤
⎢1 0 −1 0⎥
⎢ ⎥
⎢0 0 −2 0⎥ .
⎣ ⎦
0 0 0 0
Thus,

a−c = 0 ⇒ a = c,
120 Chapter 6. Diagonalization

−2c = 0.

Let b = t ∈ R\{0} to get


⎡ ⎤ ⎡ ⎤
⎢0⎥ ⎢0⎥
⎢ ⎥
x1 = ⎢ t ⎥ for t = 1, we get x1 = ⎢ ⎥
⎢1⎥
⎣ ⎦ ⎣ ⎦
0 0

At this point, we see that we have only one eigenvector associated to two eigenvalues. That is,
the eigenvectors are linearly dependent and there is no matrices P and D so that D = P −1 A P .
Thus, A is not diagonalizable.

Example 6.2.3

Find, if possible, matrices D and P so that D = P −1 A P , where


⎡ ⎤
⎢ 1 0 0⎥
A=⎢
⎢ 0 0

0⎥ .
⎣ ⎦
−1 0 0

Solution:

We first compute the characteristic polynomial fA (λ) = |λI3 − A| = 0 as follows:


> >
> >
>λ − 1 0 0 >>
>
> >
> 0
> λ 0 >> = 0
>
> 1 0 λ>>

λλ(λ − 1) = 0

which implies that


λ1 = 0 , λ2 = 0 , λ3 = 1 .

To find the associate eigenvectors, say x1 , x2 , x3 , we solve the homogenous system


⎡ ⎤
⎢λi − 1 0 0 0⎥
⎢ ⎥
⎢ 0 λi 0 0⎥ (6.2.2)
⎣ ⎦
1 0 λi 0

for i = 1, 2, 3, as follows:
6.2. Diagonalization 121

1. λ1 = λ2 = 0 ⇒ (λ1 I3 − A)x1 = 0, x1 = (a, b, c) ̸= (0, 0, 0). Substitute λ1 = λ2 = 0 in


Equation 6.2.2 to get:
⎡ ⎤
⎢−1 0 0 0⎥
⎢ ⎥
⎢ 0 0 0 0⎥ .
⎣ ⎦
1 0 0 0
Thus,

−a = 0,
a = 0.

Let b = t and c = r (not both zeros) be two real numbers to get


⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎢0⎥ ⎢0⎥ ⎢0⎥ ⎢0⎥ ⎢0⎥
G H G H
t=1 t=0
x1 = ⎢ ⎥
⎢t⎥ = t
⎢ ⎥
⎢1⎥ + r
⎢ ⎥
⎢0⎥ if ⇒ x1 = ⎢ ⎥
⎢1⎥ , if ⇒ x2 = ⎢ ⎥
⎢0⎥ .
⎣ ⎦ ⎣ ⎦ ⎣ ⎦ r=0 ⎣ ⎦ r=1 ⎣ ⎦
r 0 1 0 1
Therefore, for λ1 = λ2 = 0, we got two linearly independent eigenvectors.
2. λ3 = 1 ⇒ (λ3 I3 − A)x3 = 0, x3 = (a, b, c) ̸= (0, 0, 0). Substitute λ3 = 1 in Equation
6.2.2 to get:
⎡ ⎤
⎢0 0 0 0⎥
⎢ ⎥
⎢0 1 0 0⎥ .
⎣ ⎦
1 0 1 0
Thus,

b = 0,
a+c = 0 ⇒ a = −c.

Let c = t ∈ R\{0} to get


⎡ ⎤ ⎡ ⎤
⎢ t ⎥ ⎢ 1 ⎥
x3 = ⎢ ⎥ ⎢ ⎥
⎢ 0 ⎥ for t = 1, we get x3 = ⎢ 0 ⎥
⎣ ⎦ ⎣ ⎦
−t −1
Since, we have three linearly independent eigenvectors x1 , x2 , and x3 , A is diagonalizable and
⎡ ⎤ ⎡ ⎤
⎢1 0 0⎥ ⎢ 1 0 0⎥
D=⎢
⎢0 0

0⎥ and P = ⎢
⎢ 0 1

0⎥ .
⎣ ⎦ ⎣ ⎦
0 0 0 −1 0 1
122 Chapter 6. Diagonalization

CHAPTER 6 REVISION
Revision of Chapter 6 ... Have Fun :-)
⎡ ⎤
⎢ 1 −5 1⎥
⎢ ⎥
1. Let A = ⎢−1 −3 2⎥. Find the eigenvalues and the associated eigenvectors.
⎣ ⎦
0 0 3
⎡ ⎤
⎢1 0 2⎥
2. Let A = ⎢
⎢0 2

0⎥.
⎣ ⎦
3 0 2
(a) Show that (0, 1, 0) is an eigenvector of A.
(b) Determine all the eigenvalues of A.
(c) Find, if possible, a nonsingular matrix P and a diagonal matrix D such that D =
P −1 AP .
⎡ ⎤
⎢0 2 −1⎥
3. Let A = ⎢
⎢1 −1

1⎥.
⎣ ⎦
0 0 1
(a) Show that (−1, 1, 0) is an eigenvector of A.
(b) Find the eigenvalues of A.
(c) Find the rank of the matrix A + 2 I3 .
(d) Is A diagonalizable? Explain.

4. Let A be a nonsingular matrix with an eigenvalue λ = −1. Show that λ = −1 is also an


eigenvalue of A−1 .
5. Let A be a skew-symmetric 9 × 9 matrix. Show that 0 is an eigenvalue of A.
6. (a) Prove that a square matrix A is singular if and only if it has⎡an eigenvalue 0. ⎤
⎢2014 −2014 1001⎥
(b) Use part (a) to show that 0 is an eigenvalue of the matrix A = ⎢
⎢2015 −2015

1002⎥.
⎣ ⎦
2016 −2016 1003
⎡ ⎤
⎢1 2 0⎥
7. Let A = ⎢
⎢0 2 0⎥

, where a ∈ R.
⎣ ⎦
1 a 2
(a) Find all eigenvalues of A.
(b) For a = −2, determine whether A is diagonalizable.
6.2. Diagonalization 123

(c) For a ̸= −2, fin all eigenvectors of A.


⎡ ⎤
⎢2 2 0⎥
8. Let A = ⎢
⎢2 2

0⎥, where a ∈ R.
⎣ ⎦
2 2 0
(a) Show that the eigenvalues of A are λ1 = λ2 = 0 and λ3 = 4.
(b) Determine all the eigenvectors of A.
(c) If possible, find a nonsingular matrix P and a diagonal matrix D such that P −1 AP =
D.
⎡ ⎤
⎢1 −1 −1 −1⎥
⎢ ⎥
⎢0 0 −2 −1⎥
9. Let A = ⎢

⎥, where a ∈ R.

⎢0 −2 0 −3⎥
⎣ ⎦
0 0 0 1
(a) Find the eigenvalues of A.
(b) Is A diagonalizable? Explain.
(c) Find the eigenvalues of A−1 .

10. (from the book) Let A and B be nonsingular n × n matrices. Show that AB −1 and B −1 A
have the same eigenvalues.
11. (from the book) If A and B are nonsingular matrices, then show that AB and BA are
similar.
12. (from the book) Show that if A is diagonalizable, then:

(a) AT is diagonalizable.
(b) Ak is diagonalizable, for any positive integer k.
124 Chapter 6. Diagonalization
Chapter

4 Vectors in Rn

4.1 The Cross Product in Rn

Definition 4.1.1

Let x = x1 i + x2 j + x3 k and y = y1 i + y2 j + y3 k be two vectors in R3 , then the cross product


of x and y, denoted by x × y, is defined by
> >
> >
>i j k >>
>
x × y = >>>x1 x2
>
x3 >>
>
> y1 y2 y3 >>

The cross product of x and y can be written as: x×y


y
> > > > > >
> > > > > >
>x x3 >> >x1 x3 >> >x1 x2 >>
x × y = >> 2 > i−>
>
> j+>
>
>k
> y2 y3 > > y1 y3 > > y1 y2 >

Note that x × y is orthogonal to both x and y. x

Example 4.1.1

Find x × y where x = 2i + j + 2k and y = 3i − j − k.

Solution:
> >
> >
>i j k>> >> >
>
>
>
>
>
>
>
>
>
> > 1 2>> >2 2>> >2 1>>
x × y = >>2 1
>
2>> = >> > i−>
>
> j+>
>
> k = i + 8j − 5k.
>
> >−1 −1 > >3 −1 > >3 −1>
>3 −1 −1>>

125
126 Chapter 4. Vectors in Rn

Remark 4.1.1

It can be shown (Try it your self) that

i
− −
i×i=0 j×j=0 k×k=0
+ +
i×j=k j×k=i k × j = −i +
k j
i × k = −j j × i = −k k×i=j

⋆ Properties of cross product:

Let x, y, z ∈ R3 and c ∈ R. Then, (Can you prove the following propertes?)

1. x × y = −y × x,

2. x × (y + z) = x × y + x × z,

3. (x + y) × z = x × z + y × z,

4. c x × y = x × c y = c (x × y),

5. x × x = 0,

6. x × 0 = 0 × x = 0,

7. x × (y × z) = (x · z)y − (x · y)z,

8. (x × y) × z = (x · z)y − (y · z)x.

Example 4.1.2

Again, find x × y where x = 2i + j + 2k and y = 3i − j − k.

Solution:

By Remark 4.1.1, we can get the same result as follows:

(2i + j + 2k) × (3i − j − k) = 0 − 2k + 2j − 3k + 0 − i + 6j + 2i + 0 = i + 8j − 5k.


4.1. The Cross Product in Rn 127

Example 4.1.3
. /
T #4
pg.263
Let x = x1 i + x2 j + x3 k, y = y1 i + y2 j + y3 k, and z = z1 i + z2 j + z3 k be in R3 . Show that
> >
> >
>x1 x2 x3 >>
>
(x × y) · z = >>> y1 y2
>
y3 >> .
>
> z1 z2 z3 >>

Solution:

> >
> >
>i j k >>
>
> >
L.H.S. = (x × y) · z = >x1
> x2 x3 >> · (z1 i + z2 j + z3 k)
>
> y1 y2 y3 >>
⎛> > > > > > ⎞
> > > > > >
⎝>x2 x3 > >x1 x3 > j + >x1 x2 > k⎠ · (z1 i + z2 j + z3 k)
> > > > > >
= > > i − > > > >
> y2 y3 > > y1 y3 > > y1 y2 >
> > > > > >
> > > > > >
>x2 x3 >> >x1 x3 > >x1 x2 >
= >
> > z1 − >
>
> z2 + >
> > > z3 = R.H.S.
>
> y2 y3 > > y1 y3 > > y1 y2 >

Remark 4.1.2

Let x, y, z ∈ R3 . Then,

1. (x × y) · z = x · (y × z),

2. (x × y) · x = (x × y) · y = 0. That is, x × y is orthogonal to both x and y,

3. x · (y × x) = y · (y × x) = 0.

Example 4.1.4

Let x, y, z be in R3 such that (x × y) · z = 6. Find a) x · (y × z), b) 2x · (y × z), c) x · (z × y)


and d) x × (y × 4x).

Solution:
1. x · (y × z) = 6,
2. 2x · (y × z) = 12,
128 Chapter 4. Vectors in Rn

3. x · (z × y) = −6,
4. x · (y × 4x) = 0.

Example 4.1.5

Find a vector of length 12 so that it is perpendicular to both

x = 2i − j − 2k and y = 2i + j.

Solution:

The vector x × y is always orthogonal to both x and y. So, we compute that vector and make
its length equals to 12.
> >
> >
>i j k>>
>
> > √
x × y = >>>2 −1
>
−2>> = 2i − 4j + 4k and ∥x × y∥ = 4 + 16 + 16 = 6.
> >
>2 1 0>>
>

. /
Therefore, 16 (x×y) is a unit vector and orthogonal to both x and y; while 12 1
6
(x×y) = 2(x×y)
is a vector of length 12 and orthogonal to both x and y.

Theorem 4.1.1

Let x, y ∈ R3 have an angle θ between them. Then

∥x × y∥ = ∥x∥∥y∥ sin θ.

Proof:
x·y
By Equation 3.2.1, we have cos θ = ∥x∥∥y∥
. That is, ∥x∥2 ∥y∥2 cos2 θ = (x · y)2 . Thus,

∥x × y∥2 = (x × y) · (x × y)
= x · [y × (x × y)]
= x · [(y · y)x − (y · x)y]
= (x · x)(y · y) − (x · y)(x · y)
= ∥x∥2 ∥y∥2 − (x · y)2
= ∥x∥2 ∥y∥2 − ∥x∥2 ∥y∥2 cos2 θ
4.1. The Cross Product in Rn 129

= ∥x∥2 ∥y∥2 (1 − cos2 θ)


∥x × y∥2 = ∥x∥2 ∥y∥2 sin2 θ.

Note that sin θ is positive for 0 ≤ θ ≤ π. Taking the square root for both sides of the above
equation, we get
∥x × y∥ = ∥x∥∥y∥ sin θ.

⋆ Applications of the cross product:

Let x, y, z ∈ R3 , then

π
1. x ⊥ y ⇐⇒ θ = 2
⇐⇒ sin θ = 1 ⇐⇒ ∥x × y∥ = ∥x∥∥y∥,

2. x//y ⇐⇒ θ = 0 or π ⇐⇒ ∥x × y∥ = 0 ⇐⇒ x × y = 0,

3. Area of triangle:

1
A∆ = ah
2 ∥x∥ x
h
h
sin θ = θ
∥x∥ y
=⇒ h = ∥x∥ sin θ and if ∥y∥ = a,
∥y∥ = a
1 1
A∆ = ∥y∥∥x∥ sin θ = ∥x × y∥.
2 2
4. Area of parallel gram (two triangles):

A! = ∥x × y∥.

5. Volume of parallel piped:

V olume = |x · (y × z)| .
y
z
x
130 Chapter 4. Vectors in Rn

Example 4.1.6

Find the area of the triangle with vertices: P1 (2, 2, 4), P2 (−1, 0, 5), and P3 (3, 4, 3).

Solution:
−−→ −−→
Let x = P1 P2 = P2 − P1 = (−3, −2, 1) and y = P1 P3 = P3 − P1 = (1, 2, −1). Then,
> >
> >
> i j k>>
>
> >
x×y = >−3
> −2 1>>
>
> 1 2 −1>>
> > > > > >
> > > > > >
>−2 1>
> >−3 1>
> >−3 −2>>
= >
> >i − >
>
>j + >
>
> k = 0i − 2j − 4k.
> 2 −1> > 1 −1> > 1 2>
√ √ √ √
Therefore, ∥x × y∥ = 4 + 16 = 20 = 2 5 and A∆ = 12 ∥x × y∥ = 5.

Example 4.1.7

Find the volume of the parallel piped with a vertex at the origin and edges x = i − 2j + 3k,
y = i + 3j + k, and z = 2i + j + 2k.

Solution:

> > > >


> > > >
> >1 −2 3> >
> > > > > > > >
> > > > > > > >
Volume = >x · (y × z)> = >(x × y) · z> = > >1
> > 3 1 > >
> >
> >
> >2 1 2>> >>
> > > >
> > > >
= >1(6 − 1) − 1(−4 − 3) + 2(−2 − 9)> = >5 + 7 − 22> = | − 10| = 10.
4.1. The Cross Product in Rn 131

Exercise 4.1.1

1. Show that two nonzero vectors X and Y in R3 are parallel, if and only if, X × Y = 0.

2. If U and V are nonzero vectors in R3 such that ∥(2U ) × (2V )∥ = −4U · V , compute the
angle between U and V .

3. Find the area of the triangle whose vertices are P (1, 0, −1), Q(2, −1, 3) and R(0, 1, −2).

4. Let U and V be unit vectors in R3 . Show that ∥U × V ∥2 + (U · V )2 = 1.

π
5. Let X and Y be two nonzero vectors in R3 , with angle θ = 3
between them. Find ∥X ×Y ∥,
if ∥X∥ = 3 and ∥ − 2Y ∥ = 4.

6. If X and Y are two vectors in R3 , show that X × Y is orthogonal to X.


132 Chapter 4. Vectors in Rn

4.2 Planes and Lines in R3

Definition 4.2.1

A line in R3 is determined (specified) by a fixed point P0 = (x0 , y0 , z0 ) and a directional vector


U = (a, b, c). The line L through P0 and parallel to U consists of the points P (x, y, z) such that

(x, y, z) = (x0 , y0 , z0 ) + t(a, b, c), where t ∈ R. (4.2.1)

Such equation is written as

x = P0 + tU , where x = (x, y, z).

The parametric equation of line L (Equation


y
4.2.1):
L
⎫ P (x, y, z)
x = x0 + at ⎪



y = y0 + bt ⎪ t ∈ R U = (a, b, c)
⎪ P0 (x0 , y0 , z0 ) x
z = z0 + ct ⎪

x
while the symmetric form of L is given by: O(0, 0, 0)

x − x0 y − y0 z − z0 z
t := = = .
a b c

Example 4.2.1

Let P1 (2, −2, 3), P2 (−1, 0, 4), P3 (−4, 2, 5) be three points in R3 .

1. Find the parametric equation and the symmetric form of the line that passes through the
points P1 and P2 .

2. Does P3 lies on the same line? Explain.

Solution:
−−→
1. Let U = P1 P2 = P2 − P1 = (−3, 2, 1) and let P0 = P1 be a fixed point on the line call it
4.2. Planes and Lines in R3 133

L. Then, the parametric equations of L are:



x = 2 − 3t ⎪



y = −2 + 2t ⎪ t ∈ R

z = 3 + t ⎪

while the symmetric form of L is:

x−2 y − (−2) z−3 2−x y+2


= = ⇐⇒ = = z − 3.
−3 2 1 3 2

2. We have to check if P3 satisfies the parametric equation of L:

−6
−4 = 2 − 3t → t = −3
= 2,
4
2 = −2 + 2t → t = 2
= 2,
5 = 3 + t → t = 5 − 3 = 2.

Therefore, t = 2 and P3 lies on L. The same check can be done using symmetric form of
L.

Remark 4.2.1

Let U 1 = (a1 , b1 , c1 ) and U 2 = (a2 , b2 , c2 ) be two vectors associated with L1 and L2 so that

x − x1 y − y1 z − z1 x − x2 y − y2 z − z2
L1 : = = and L2 : = = . Then,
a1 b1 c1 a2 b2 c2

1. L1 ⊥ L2 ⇐⇒ U 1 ⊥ U 2 ⇐⇒ U 1 · U 2 = 0,

2. L1 //L2 ⇐⇒ U 1 //U 2 ⇐⇒ U 1 × U 2 = 0 ⇐⇒ U 2 = c U 1 for c R.

Example 4.2.2

Show that L1 : P1 (4, −1, 4) and U 1 = (1, 1, −3) and L2 : P2 (3, −1, 0) and U 2 = (2, 1, 1) intersect
orthogonally, and find the intersection point.

Solution:
134 Chapter 4. Vectors in Rn

Clearly, U 1 · U 2 = 2 + 1 − 3 = 0. Then, U 1 ⊥ U 2 =⇒ L1 ⊥ L2 . To find the intersection point


P (x, y, z), we look for a point satisfying both parametric equations at the same time:

L1 : x = 4 + t1 , y = −1 + t1 , and z = 4 − 3t1 ,
L2 : x = 3 + 2t2 , y = −1 + t2 , and z = t2 .

Clearly, since y = −1 + t1 = −1 + t2 , we get t1 = t2 . Substituting this in z = 4 − 3t1 = t2 , we


get 4 − 3t1 = t1 which implies that t1 = 1 = t2 . Therefore, the intersection point according to
L1 is P (4 + 1, −1 + 1, 4 − 3), that is P (5, 0, 1).

Definition 4.2.2

The equation of a plane Π is determined by a fixed point P0 (x0 , y0 , z0 ) contained in Π and a


normal directional vector N = (a, b, c) which is orthogonal to Π. A point P (x, y, z) lies on the
plane Π if and only if
−−→ −−→
N ⊥ P0 P ⇐⇒ N · P0 P = 0.
The general form of the equation of the plane
Π that passes through P0 (x0 , y0 , z0 ) and its normal
N
vector is N = (a, b, c) is

a(x − x0 ) + b(y − y0 ) + c(z − z0 ) = 0.


L
P
Where the standard form of the plane Π is P0

ax + by + cz + d = 0.

Remark 4.2.2

Assume that we want to find an equation of a plane Π containing three points P1 (x1 , y1 , z1 ),
P2 (x2 , y2 , z2 ), and P3 (x3 , y3 , z3 ), then we can use either of the following ways:

1. For any point P (x, y, z) ∈ Π, we use the standard form of Π: ax + by + cz + d = 0 and


apply it for the points P1 , P2 , and P3 . This is a homogenous system in a, b, c, and d. This
4.2. Planes and Lines in R3 135

system has non-trivial solutions if


> >
> >
> x y z 1>>
>
> >
>x1 y1 z1 1>>
> = 0.
>
>
>x2 y2 z2 1>>
>
>x3 y3 z3 1>>
>

Solving this determinant, we get an equation in the standard form for Π.


−−→ −−→
2. Another way is to compute two contained vectors in Π namely x = P1 P2 and y = P1 P3
and consider the normal vector to Π which is N = x × y = (a, b, c) which is orthogonal
to Π. Then, the general form of Π is a(x − x1 ) + b(y − y1 ) + c(z − z1 ) = 0.

Example 4.2.3

Let P1 (2, −2, 1), P2 (−1, 0, 3), P3 (5, −3, 4), and P4 (4, −3, 7) be four points in R3 . Then,

1. Find an equation of the plane Π that passes through P1 , P2 , and P3 .

2. Is P4 contained in Π? Explain.

Solution:
−−→ −−→
1. Let x = P1 P2 = P2 − P1 = (−3, 2, 2) and y = P1 P3 = P3 − P1 = (3, −1, 3). These
two vectors are contained in Π while N = x × y = (8, 15, −3) is a normal vector to Π.
Therefore, a general form of Π is 8(x − 2) + 15(y + 2) − 3(z − 1) = 0. The standard form
of Π is
8x + 15y − 3z + 17 = 0.

2. P4 is contained in Π if it satisfies its equation:

8(4) + 15(−3) − 3(7) + 17 = −17 ̸= 0.

Therefore, P4 is not on the plane Π.


136 Chapter 4. Vectors in Rn

Remark 4.2.3

Let Π1 : a1 x + b1 y + c1 z + d1 = 0 and Π2 : a2 x + b2 y + c2 z + d2 = 0. Then,

1. Π1 //Π2 ⇐⇒ N 1 //N 2 ⇐⇒ N 1 × N 2 = 0 ⇐⇒ N 2 = c N 1 , where c ∈ R,

2. Π1 ⊥ Π2 ⇐⇒ N 1 ⊥ N 2 ⇐⇒ N 1 · N 2 = 0.
N1 N1

Π2
N2

Π1

N2

Π1 //Π2 Π1 ⊥ Π2

Example 4.2.4

Find the parametric equation of the intersection line of the two planes:

Π1 : x − y + 2z = 3 and Π2 : 2x + 4y − 2z = −6.

Solution:

We
⎡ form a non-homogenous
⎤ system
⎡ to solve for the parametric
⎤ equation
⎡ of the intersection
⎤ line:
⎢1 −1 2 3⎥ r2 −2r1 →r2 ⎢1 −1 2 3⎥ 16 r2 →r2 ⎢1 −1 2 3⎥ r1 +r2 →r1
⎣ ⎦ −− −− − −→ ⎣ ⎦ −−−−→ ⎣ ⎦ − −−−−−→
2 4 −2 −6 0 6 −6 −12 0 1 −1 −2
⎡ ⎤
⎢1 0 1 1⎥
⎣ ⎦
0 1 −1 −2
Therefore, the reduced system is:

x + z = 1 and y − z = −2.

Let z = t ∈ R to get the parametric equation of the intersection line:


⎡ ⎤ ⎡ ⎤
⎢x⎥ ⎢ 1 − t⎥
⎢ ⎥ ⎢ ⎥
⎢y ⎥ = ⎢−2 + t⎥
⎣ ⎦ ⎣ ⎦
z t
4.2. Planes and Lines in R3 137

Example 4.2.5

Find two equations of two planes whose intersection line is the line L:

x = −2 + 3t; y = 3 − 2t; z = 5 + 4t; where t ∈ R.

Solution:

The symmetric form of L is:


x+2 y−3 z−5
= = .
3 −2 4
x+2 y−3
Therefore, a first plane is by equating 3
= −2
, to get −2x−4 = 3y−9. Thus, Π1 : 2x+3y−5 =
x+2 z−5
0. Another plane is by equating 3
= 4
, to get 4x + 8 = 3z − 15. Thus Π2 : 4x − 3z + 23 = 0.

Remark 4.2.4

x−x0 y−y0 z−z0


Let U = (a1 , b1 , c1 ) be associated with the line L : a1
= b1
= c1
and N = (a2 , b2 , c2 ) be
associated with the plane Π2 : a2 x + b2 y + c2 z + d2 = 0. Then,

1. L ⊥ Π ⇐⇒ U //N ⇐⇒ U × N = 0 ⇐⇒ U = c N where c ∈ R,

2. L//Π ⇐⇒ U ⊥ N ⇐⇒ U · N = 0.

N1
N1

U
L
U

Π Π

L⊥Π L//Π

Example 4.2.6

Find a plane that passes through the point (2, 4, −3) and is parallel to the plane −2x + 4y −
5z + 6 = 0.

Solution:
138 Chapter 4. Vectors in Rn

Since the two planes parallel, we can choose the normal vector of the second plane. That is
N = (−2, 4, −5). Thus, the equation of the plane is

−2(x − 2) + 4(y − 4) − 5(z + 3) = 0 =⇒ −2x + 4y − 5z − 27 = 0.

Example 4.2.7

Find a line that passes through the point (−2, 5, −3) and is perpendicular to the plane 2x −
3y + 4z + 7 = 0.

Solution:

The line L is perpendicular to our plane. So, it is parallel to its normal vector, so we can choose
the normal vector as U . That is U = (2, −3, 4) and hence the parametric equation of L is

x = −2 + 2t ⎪


y = 5 − 3t ⎪ t∈R


z = −3 + 4t

Example 4.2.8

x−1 −y+4
Show that the plane Π : 6x − 4y + 2z = 0 and the line L : 3
= 2
= z − 5 intersect
orthogonally. Find the intersection point.

Solution:

We first have to write the symmetric form as

x−1 y−4 z−5


L: = = .
3 −2 1

Then, the normal vector of Π is N = (6, −4, 2) and the directional vector of L is U = (3, −2, 1).
Clearly, N = 2U which implies that N //U ⇐⇒ Π ⊥ L.
The intersection point with respect to L is

x = 1 + 3t ⎪



y = 4 − 2t ⎪ t ∈ R

z = 5 + t ⎪

4.2. Planes and Lines in R3 139

Therefore, plugin these values into the plane equation, we get

6(1 + 3t) − 4(4 − 2t) + 2(5 + t) = 0


6 + 18t − 16 + 8t + 10 + 2t = 0
28t = 0

Therefore, we get t = 0. Substituting this in the parametric equatio, we get the intersection
point as P (1, 4, 5).
140 Chapter 4. Vectors in Rn

Exercise 4.2.1

1. Consider the planes:

Π1 : x + y + z = 3, Π2 : x + 2y − 2z = 2k, and Π3 : x + k 2 z = 2.

Find all values of k for which the intersection of the three planes is a line.
[Hint: Any point on the intersection of the three planes must satisfies the three equa-
tions. This would give a system of three equation. This system must have infinitely many
solutions to describe a line.]
2. Consider the lines:
x+1 y+4 x−3 y−4 z−2
L1 : = = z − 1, and L2 : = = .
3 2 2 −4 2
(a) Show that L1 and L2 are perpendicular and find their point of intersection.

(b) Find an equation of the plane Π that contains both L1 and L2 .

[Hint: (a) Show that U 1 · U 2 = 0 and then find a point satisfying both equations of x, y,
and z in terms of t1 and t2 , for instance. (b) Consider N = U 1 × U 2 .]
3. Let L be the line through the points P1 (−4, 2, −6) and P2 (1, 4, 3).

(a) Find parametric equations for L.


(b) Find two planes whose intersection is L.

4. Find the parametric equations for the line L which passes through the points P (2, −1, 4)
and Q(4, 4, −2). For what value of k is the point R(k + 2, 14, −14) on the line L?
5. Find the point of intersection of the line x = 1 − t, y = 1 + t, z = t, and the plane
3x + y + 3z − 1 = 0.
6. Find the equations in symmetric form of line of intersection of planes:

Π1 : x + 2y − z = 2, and Π2 : 3x + 7y + z = 11.

7. Find an equation of the plane containing the lines

L1 : x = 3 + t, y = 1 − t, z = 3t, and L2 : x = 2s, y = −2 + s, z = 5 − s.

8. Find a, b ∈ R so that the point P (3, a − 2b, 2a + b) lies on the line

L : x = 1 + 2t, y = 2 − t, z = 4 + 3t.
4.2. Planes and Lines in R3 141

CHAPTER 4 REVISION
Revision of Chapter 4 ... Have Fun :-)

1. Consider the lines:

x−7 y+3 y+6 z−2


L1 : = = z − 1, and L2 : x + 1 = = .
2 −1 3 −2

(a) Show that L1 and L2 intersect and find their point of intersection.

(b) Find parametric equations of L3 which is perpendicular to both L1 and L2 and passes
through their point of intersection.

[Hint: (a) Show that U 1 × U 2 ̸= 0. Point of intersection is P (1, 0, −2). (b) Consider
U 3 = U 1 × U 2 which is orthogonal to both U 1 and U 2 .]
2. Find an equation of the plane Π through the point P (0, 1, 1) and containing the line
x = 1 + t, y = 1 + 2t, and z = −2 + 3t. [Hint: Consider the points Q(1, 1, −2) and
−→ −→
R(2, 3, 1) which are on the line. Then a normal vector of Π is P Q × P R.]
3. Find an equation of the plane Π passing throught the point (6, 0, 2) and is perpendicular
to the line L of intersection of the planes

Π1 : x + y + 2z = 4 and Π2 : 3x − 2y + z = 1.

[Hint: Consider N = N 1 × N 2 = (1, 1, 2) × (3, −2, 1) as a normal vector to Π.]


4. Let L1 be the line of intersection of the planes:

x + 2y − z − 4 = 0 and 2x + 5y − 3z − 9 = 0.

(a) Find parametric equations for L1 .


(b) Show that L1 and L2 : x = 2 + 3t, y = 1 + 2t, z = 4 + t, are perpendicular lines, but
they do not intersect.
(c) Find an equation for the plane that contains L1 and it is parallel to L2 .

5. (a) Find parametric equations for the line L1 which passes through the points P (1, 2, 3)
and Q(4, 3, 2).
x−1 y−3 z−2
(b) Does L1 intersect the line L2 : 2
= 1
= 3
? If so, find their point of intersection.
142 Chapter 4. Vectors in Rn

6. (a) Find an equation of the plane Π through the points P (2, 1, −2), Q(−1, 1, 0), and
R(3, −1, −1).
(b) Find all values of k for which the point (1, 1 − 2k, 3k − 1) lies on the plane Π.
7. Let P (2, −2, 1), Q(−1, 0, 3), R(5, −3, 2), and S(7, 17, −6) be points in R3 .

(a) Find an equation of the plane Π through P , Q, and R and show that S does not lie
on Π.
−→
(b) Find the point T on the plane Π such that the vector ST is orthogonal to Π. [Hint:
Find parametric equation for the line through S and perpendicular to Π.]

8. Determine if the following parametric equations represent the same line

L1 : x = 4 − t, y = 2 + 3t, z = 1 + 2t, and L2 : x = 1 + 3r, y = 11 − 9r, z = 7 − 6r.

9. Let L be the line which is perpendicular to the plane Π : 3x − y + 4z = 0, and passes


through the point P (2, 6, 7). Find symmetric equations for L.
10. Let Π1 : 2x + 8y + 5z = 3 and Π2 : x + 4y + 2z = 1 be two planes, and let L be the line of
intersection of Π1 and Π2 . Find parametric equations for L.
11. Write an equation for the plane which contains the two lines:

x−1 y+1 z
L1 : = = and L2 : x = 1 − t, y = 3 − 2t, z = 2 + 3t.
1 2 −3

12. Let A(1, 1, 1), B(1, 2, 2) and C(2, 3, 4) be three points in R3 .

(a) Find the area of the triangle whose vertices are A, B and C.
(b) Find parametric equations of the line L passing through the points B and C.
−−→
(c) Find an equation of the plane Π containing the point A and orthogonal to BC.
(d) Find the point of intersection, if any, between the line L and the plane Π.

13. Answer each of the following as True or False:

(a) (T) The plane 5y + 3z − 7 = 0 is parallel to the vector (1, 0, 0).

(b) (T) In R3 ,if X = 4Y , then X × Y = (0, 0, 0).

(c) (F) In R3 , the plane π : y = 3 is parallel to the y-axis.

(d) (T) The vector X × Y is perpendicular to 2X + 3Y .


Index

addition inverse
closed, 66 additive, 14
additive
leading entry, 20
identity, 14
line, 132
inverse, 14
parametric equation, 132
adjoint, 56
linear combination, 8, 84

basis, 94 linear independence, 88

standard, 94 linearly dependent, 89


linearly independent, 89
Cauchy-Schwarz Inequality, 71
matrix, 1
characteristic polynomial, 111
addition, 4
cofactor, 53
adjoint, 56
cofactor expansion, 53
cofactor, 53
column rank, 103
diagonal, 3
column space, 103
identity, 3
cross product, 125
inverse, 31
determinant, 43 invertable, 31
diagonalizable, 117 non-singular, 31
diagonalization, 111, 116 scalar, 3
dimension, 94 similar, 116
dot product, 6, 66 singular, 31
skew-symmetric, 16
eigenvalue, 111
square, 1
eigenvector, 111
substraction, 4
elementary row operations, 21
symmetric, 16
identity transpose, 4
additive, 14 triangular
matrix, 3 lower, 3
inner product, 6 upper, 3

143
144 INDEX

unit, 3 solution
zero, 2 infinite, 22, 24
minor, 53 no, 22, 25
non-trivial, 22, 27
null space, 83, 101
trivial, 22, 26
nullity, 101
unique, 22, 23
parallel gram, 129 space
parallel piped, 129 null, 101
permutation, 43 solution of Ax = 0, 101
even, 43 span, 85
inversion, 43 spanned by, 88
odd, 43 spans, 88
sign, 43 standard form, 134
plane, 132, 134 subspace, 81
general form, 134 trivial, 81
standard form, 134 system
consistent, 27
rank, 103, 106
homogenous, 22, 26, 101
column, 103
inconsistent, 27
row, 103
non-homogenous, 22, 23
real vector space, 77
rearrangement, 43 triangle, 129
reduced row echelon form, 20 Triangle Inequality, 71
row equivalent, 21
vector, 1, 65, 125
row rank, 103
angle, 68
row space, 103
cross product, 125
scalar maltiplication, 5 directional, 132
scalar multiplication distance, 67
closed, 66 dot product, 66
similar, 116 head, 65
singularity, 106 length, 67
INDEX 145

norm, 67
normal, 134
orthogonal, 69
parallel, 69
perpendicular, 69
space, 77
tail, 65
unit, 72, 73

You might also like