Mat212 - Lecture Note - 2023 Update
Mat212 - Lecture Note - 2023 Update
LECTURE NOTE
BY
DEPARTMENT OF MATHEMATICS
SCHOOL OF PHYSICAL SCIENCES
FEDERAL UNIVERSITY OF TECHNOLOGY,
MINNA, NIGERIA
1
MAT212-LINEAR ALGEBRA I
1.0 MATRICES.
1.1 Definition
A rectangular array of numbers is called a Matrix. (The plural is matrices), and the numbers are
called the entries of a matrix.
Matrices are usually denoted by uppercase letters; A, B, C and so no. Hence
1
1 2 - 1 1 0
A B C 3
0 5 6 1 2
2
are matrices.
Matrices come in various shapes depending on the number of rows and columns. For examples,
the matrix A shown has 2rows and 3 columns. In general, a matrix with m rows and n columns
is referred to as an mxn matrix or as having size mxn . Thus matrices A, B and C above have
A matrix of size 1xn is called a row matrix, whereas once of the nx1 is called a column matrix.
A special notation has been devised for the entries of a matrix. If A is an mxn matrix and if the
i, j - entry of A is denoted as a ij , then A is displayed as follows:
This is usually denoted simply as A aij . This a ij is the entry in row i and column j of A .
2
MAT212-LINEAR ALGEBRA I
An mxn matrices A . is called a square matrix. For a square matrix A aij , the entries
a11 , a22 , a33 ,..., ann are said to lie on the main diagonal of the matrix A . Hence the main
diagonal extends from the upper left corner of A to the lower right corner.
a11 a12 a13
A a21 a22 a23
a31 a32 a33
Two matrices A and B are called equal (written A B ) if and only if;
If the entries of A and B are written in the form A aij , B bij , then the second condition
a b means a
ij ij ij bij for all i and j .
If A and B are matrices of the same size, their sum A B is the matrix formed by adding or
subtracting corresponding entries. If A aij and B bij , this takes the form A B aij bij
Examples
2 1 3 1 1 -1
1. If A and B
1 2 0 2 0 6
Compute A B .
Solution
3
MAT212-LINEAR ALGEBRA I
2 1 3 1 1 - 1
A B
1 2 0 2 0 6
2 1 1 1 3 1
1 2 2 0 0 6
3 2 2
1 2 6
3 4 - 1 - 4 2 - 1
2. If A 7 - 8 2 and B 3 - 1 8
9 - 1 3 4 9 0
determine A B .
Solution
3 4 - 1 - 4 2 - 1
A B 7 - 8 2 3 - 1 8
9 - 1 3 4 9 0
3 - - 4 4 - 2 - 1 - (-1)
7 3 - 8 - (-1) 2 - 8
9 4 - 1 - 9 3 - 0
7 2 0
4 - 7 - 6
5 - 10 3
3. Find a, b and c if a b c c a b 3 2 - 1
Solution
a b c c a b 3 2 - 1
a c b a c b 3 2 - 1
ac 3 (1)
ba 2 (2)
c b 1 (3)
From (1) we have
a 3c (4)
Substituting (4) into (2) we have
4
MAT212-LINEAR ALGEBRA I
b c 1 (5)
Substituting (5) into (3) we have
c0
Substituting for c 0 into (4) and (5) we have
a 3 and b 1
a 3, b 1 and c 0
Examples
3 1 4 1 2 - 1
1. A and B
2 0 6 0 3 2
1
Compute (a) 5 A (b) B (c) 3A 2B
2
Solution
3 1 4 5x3 5x(1) 5x4 15 5 20
(a) 5A 5
2 0 6 5x2 5x0 5x6 10 0 30
1 1 1 1 1
x1 x2 x(-1) 1 -
1 1 1 2 - 1 2 2 2 2 2
(b) B
2 0 3 2 1
x2 0 1
2 1 1 3
x0 x3
2 2 2 2
3 1 4 1 2 - 1 9 3 12 2 4 - 2 7 7 14
(c) 3 A 2 B 3 2
2 0 6 0 3 2 6 0 18 0 6 4 6 - 6 14
5
MAT212-LINEAR ALGEBRA I
If A is any matrix, note that KA is the same size as A for all scalars K . we also have 0 A 0
and K 0 0
Multiply each entry of row i of A by the corresponding entry of column j of B , and add the
Examples
2 1 6 0
3 1 2
1. Given A and B 0 2 3 4
0 1 4 - 1 0 5 8
Compute AB
Solution
2 1 6 0
3 1 2
AB 0 2 3 4
0 1 4 - 1 0 5 8
3x2 -1x0 2x(-1) 3x1 -1x2 2x0 3x6 -1x3 2x5 3x0 -1x4 2x8
0x2 1x0 4x(-1) 0x1 1x2 4x0 0x6 1x3 4x5 0x0 1x4 4x8
4 1 25 12
- 4 2 23 36
6 9 1 2
2. Let A and B
- 4 - 6 - 1 0
6
MAT212-LINEAR ALGEBRA I
6 9 1 2 - 3 12
(b) AB
- 4 - 6 - 1 0 2 - 8
1 2 6 9 - 2 -3
(c) BA
- 1 0 - 4 - 6 - 6 - 9
a b c 3d -d a b b-c 1 1
(a)
d 2a d a b
(b) =2
1
=
c c d d - a 3
a b 1 a b b c
(c) 3 +2 = (d) = .
b a 2 c d d a
3 2 1 3 0 - 2 3 6 1
(a) (b) 3 - 5 7
0 1
-5
5 1 -1 2 1 2 - 1
2 1 1 - 2 2 - 3
(c) 3
2 0 - 1 - 1 - 2
-4
3
(d) 3 -1 2 - 29 3 4 3 11 - 6
2 3 1
1 3 2 - 1 1 2
9 7
-1
(a)
- 2 0 1
(b)
4
1
0 2 0
- 1 0 2
3 3 0
5 0 - 7
(C) = 1 (d)= 1 3 - 3 2 1
1 5 9 0
1 6
7
MAT212-LINEAR ALGEBRA I
3 - 1 2 2
(a) A (B) A
0 - 2 2 - 1
If A is an mxn matrix, the transpose of A , written, AT is the nxm matrix whose rows are just
the columns of A in the same order.
In other words, the first row of AT is the first column of A the second row of AT is the second
column of A and so on.
Example
1 1 2 3 1 -1
A 3 B 5 2 6 C 3 4 D 1
3 2
2 5 6 1 2 1
Solution
5 3 1 -1
1 5
A 1 2 = 2 = 1 2 .
T 3
3 =
6
3
2 4
6 1 2 1
2. KAT KAT
3. A BT AT BT
4. ABT BT AT
Examples
1. Show that A BT AT BT if
8
MAT212-LINEAR ALGEBRA I
1 0 2 2 - 1 3
A and B
2 1 1 3 1 1
Solution
1 2
1 0 2
A A 0 1
T
2 1 1 2 1
2 3
2 - 1 3
B B 1 1
T
3 1 1 3 1
1 5
1 - 1 5
A B and A B 1 2
T
5 2 2 5 2
1 5
AT B T 1 2
5 2
Therefore, A BT AT BT
Exercise
1. Show that AB T BT AT if
0 1
1 2 3
A and B 1 2
2 - 1 2 2 1
1 2 3
e.g 2 - 1 2 is a 3x3 matrix
7 7 4
2. Diagonal Matrix: is a square matrix with all elements zero except those on the leading
diagonal, thus
9
MAT212-LINEAR ALGEBRA I
1 0 0
0 - 1 0
0 0 4
3. Unit Matrix: is a diagonal matrix in which the elements on the leading diagonal are all
unity, i.e.
1 0 0
0 1 0
0 0 1
5. Upper triangular matrix. A square matrix in which all the elements below the diagonal
are zero i.e. a matrix of type:
a11 a12 a13 ... a1n
0 a a 23 ... a 2 n
22
0 0 a 33 ... a 3n
... ... ... ... ...
0 0 0 0 a nn
6. Lower triangular matrix. A square matrix in which all the elements above the diagonal
are zero i.e. a matrix of type
a11 0 0 ... 0
a
21 a 22 0 ... 0
a31 a32 a33 ... 0
... ... ... ... ...
a n1 a 2 n a3n ... a nn
10
MAT212-LINEAR ALGEBRA I
The determinant of a square matrix A is the integer obtained through a range of methods
using the elements of the matrix.
11
MAT212-LINEAR ALGEBRA I
The cofactor 1
i j
i , j corresponds to any element ai , j in matrix A . For example, the
cofactor
The determinant of a matrix is equal to the sum of the products of the elements of any one row or
column and their cofactors.
A ai ,1 1 i ,1 ai , 2 1 i , 2 ... ai ,n 1
i 1 i2 in
i ,n
12
MAT212-LINEAR ALGEBRA I
A a1, j 1 1, j a 2, j 1 2, j ... a n , j 1
1 j 2 j n j
n, j
Calculating a 2 2 Determinant
a11 a12
a11 1 1,1 a12 1
11 1 2
A 1, 2
a 21 a 22
a11 1 1,1 a12 1 1, 2
2 3
A a11 a 22 a12 a 21
Examples
2 5
1. Evaluate 2 8 3 5 16 15 1
3 8
4 7
2. Evaluate 4 9 2 7 36 14 22
2 9
Calculating a 3 3 Determinant
Now,
a 22 a 23 a 21 a 23
1,1 a 22 a33 a 23 a33 , 1, 2 a 21a33 a 23 a31 and
a32 a33 a31 a33
a 21 a 22
1,3 a 21a32 a 22 a31
a31 a32
13
MAT212-LINEAR ALGEBRA I
A a11 a22 a33 a23 a33 a12 a21a33 a23 a31 a13 a21a32 a22 a31
A a11a22 a33 a12 a23 a31 a13 a21a32 a11a23 a33 a12 a21a33 a13 a22 a31
a b c
A d e f
g h i
14
MAT212-LINEAR ALGEBRA I
a b c
ae bd af cd
A 0
a a
0 ah bg ai cg
a a
ah bg
R3 : R3 R2
ae bd
a b c
ae bd af cd
A 0
a a
ai cg ae bd ah bg af cd
0 0
a ae bd
Multiplying the principal diagonal gives
det A a
ae bd ai cg ae bd ah bg af cd
a ae bd
a
det A
ai cg ae bd ah bg af cd
a
det A aei cdh bfg afh bdi ceg
2 3 5
If A 4 1 6 , its determinant
1 4 0
2 3 5
det A A 4 1 6
1 4 0
2(0 24) 3(0 6) 5(16 1)
2(24) 3(6) 5(15)
48 18 75
45
We can form a new matrix C of the cofactors.
15
MAT212-LINEAR ALGEBRA I
1 6 4 6 4 1
c11 (0 24) 24 ; c12 (0 6) 6 ; c13 (16 1) 15
4 0 1 0 1 4
3 5 2 5 2 3
c21 (0 20) 20 ; c22 (0 5) 5 ; c23 (8 3) 5
4 0 1 0 1 4
3 5 2 5 2 3
c31 (18 5) 13 ; c32 (12 20) 8 ; c33 (2 12) 10
1 6 4 6 4 1
The matrix of cofactors is
24 6 15
C 20 - 5 - 5
13 8 - 10
24 20 13
And the transpose of C , i.e. C 6 - 5 8
T
15 - 5 - 10
This is called the Adjointof the original matrix A and is written adjA .
Let A be a square matrix. Then the square matrix B is called the inverse of A if AB I and B
Is denoted by A 1 . If A has an inverse, then A is called a nonsingular or invertible matrix. If A
does not have an inverse, A is called singular.
Definition: Let A be an n n matrix and let I be the n n identity matrix. If there exists a
matrix AA 1 I A 1 A
16
MAT212-LINEAR ALGEBRA I
The adjoint of a square matrix is important, since it enables us to form the inverse of the matrix.
If each element of the adjoint A is divided by the value of the determinant of A , i.e. A ,
adjA 1
A 1 adjA
det A det A
If A is a 2 2 matrix given by
a b
A
c d
1 d b
A 1
ad bc c a
Hints: to find the inverse of a 2 2 matrix A we effectively interchange the diagonal elements
a and d , change the sign of the other two elements and then divide by the determinant of A .
Note: If the determinant of a Matrix is zero then that matrix has no inverse. If the determinant is
non-zero then the matrix has a unique inverse.
Examples
Solution
17
MAT212-LINEAR ALGEBRA I
1 4
(a) A
1 3
A 3 4 1
3 4
A 1
1 1
3 1
(b) B
2 2
B 62 4
2 1 1 1
1 2 1 4 4 2 4
B 1
4 2 3 2 3 1 3
4 4 2 4
3 1
(c) C
6 2
C 66 0
Examples
2 3 5
1. Given A 4 1 6 Find the inverse of A .
1 4 0
Solution
1
A 1 adjA
det A
24 20 13
det A 45 , adjA 6 - 5 8
15 - 5 - 10
18
MAT212-LINEAR ALGEBRA I
24 20 13
1
1
A 6 - 5 8
45
15 - 5 - 10
1 2 3
2. Find the inverse of A 4 1 5
6 0 2
Solution
A 1(2 0) 2(8 30) 3(0 6) 2 44 18 28
1 5 4 5 4 1
A11 (2 0) 2 , A12 (8 30) 22 , A13 (0 6) 6
0 2 6 2 6 0
2 3 1 3
A21 (4 0) 4 , A22 (2 18) 16 ,
0 2 6 2
1 2
A23 (0 12) 12
6 0
2 3 1 3 1 2
A31 (10 3) 7, A32 (5 12) 7 , A33 (1 8) 7
1 5 4 5 4 1
2 22 - 6 2 -4 7
C - 4 - 16 12 C 22 - 16
T
7
7 7 - 7 - 6 12 - 7
2 -4 7
adjA 22 - 16 7
- 6 12 - 7
19
MAT212-LINEAR ALGEBRA I
2 4 7 1 1 1
- -
7 28 28 28 14 7 4
2 -4
1
7 =
1 22 16 7 11 4 1
1
A adjA 22 - 16 - -
det A 28 28 28 28 14 7 4
- 6 12 - 7
- 6 12
-
7 3
-
3
-
1
28 28 28 14 7 4
1 1 1
14 -
7 4
A
1 11 4 1
-
14 7 4
- 3 3 1
-
14 7 4
The Gauss elimination method involves operating on the rows of a matrix in order to reduce it to
a unit matrix.
Note that in (ii) and (iii) the multiple could be negative or fractional, or both.
Example
solution
We form the augmented matrix A I
20
MAT212-LINEAR ALGEBRA I
1 3 3 1 0 0
1 4 3 0 1 0
2 7 7 0 0 1
1 3 3 1 0 0
R2 : R2 R1
0 1 0 1 1 0
R3 : R3 2 R1
0 1 1 2 0 1
1 3 3 1 0 0
R3 : R3 R2 0 1 0 1 1 0
0 0 1 1 1 1
1 0 0 7 0 3
R1 : R1 3R2 0 1 0 1 1 0
0 0 1 1 1 1
7 0 3
1
A 1 1 0
1 1 1
Solution
21
MAT212-LINEAR ALGEBRA I
1 2 3 1 0 0
2 4 5 0 1 0
3 5 6 0 0 1
1 2 3 1 0 0
R2 : R2 2 R1
0 0 1 2 1 0
R3 : R3 3R1
0 1 3 3 0 1
Interchange R2 and R3
1 2 3 1 0 0
0 1 3 3 0 1
0 0 1 2 1 0
1 2 3 1 0
0
1R2
0 1 3 3 0 1
1R3
0 0 1 2 1 0
1 2 0 5 3 0
R1 : R1 3R3
0 1 0 3 3 1
R2 : R2 3R3
0 0 1 2 1 0
1 0 0 1 3 2
R1 : R1 2 R2 0 1 0 3 3 1
0 0 1 2 1 0
Therefore,
1 3 2
B 1
3 3 1
2 1 0
22
MAT212-LINEAR ALGEBRA I
1 2 3
3. Find the inverse of C 4 1 5
6 0 2
Solution
1 2 3 1 0 0
4 1 5 0 1 0
6 0 2 0 0 1
1 2 3 1 0 0
R2 : R2 4 R1
0 7 7 4 1 0
R3 : R3 6 R1
0 12 16 6 0 1
1 2 3 1 0 0
1 4 1
R 2 0 1 1 0
7 0 12 16 7 7
6 0 1
1 2 3 1 0 0
4 1
R3 : R3 12R2 0 1 1 0
7 7
0 0 4 6
12
1
7 7
1 2 3 1 0 0
1 4 1
R3 0 1 1 0
4 7 7
0 0 1 3 3 1
14 7 4
23
MAT212-LINEAR ALGEBRA I
23 9 3
1 2 0 14 7 4
R1 : R1 3R3 11 4 1
0 1 0
R2 : R2 R3 14 7 4
0 0 1 3 3 1
14 7 4
1 1 1
1 0 0 14 7 4
11 4 1
R1 : R1 2 R2 0 1 0
14 7 4
0 0 1 3 3 1
14 7 4
Therefore,
1 1 1
14 7 4
11 4 1
C 1
14 7 4
3 3
1
14 7 4
2 3 5
(4) Given A 4 1 6 Find the inverse of A .
1 4 0
solution
2 3 5 1 0 0
4 1 6 0 1 0
1 4 0 0 0 1
3 5 1
1 2 2 2
0 0
1
R1 4 1 6 0 1 0
2
1 4 0 0 0 1
24
MAT212-LINEAR ALGEBRA I
3 5 1
1 2 0 0
R2 : R2 4 R1 2 2
0 5 4 2 1 0
R3 : R3 R1 5 5 1
0 0 1
2 2 2
3 5 1
1 2 2 2
0 0
1 0
4 2 1
2
R 1 0
5 5 5 5
5 5 1
0 0 1
2 2 2
3 5 1
1 2 2 2
0 0
5 4 2 1
R 3 : R3 R 2 0 1 0
2 5 5 5
9 3 1
0 0 1
2 2 2
3 5 1
1 2 2 2
0 0
2 4 2 1
R3 0 1 0
9 5 5 5
0 0 1 1 1 2
3 9 9
1 5 5
1
9
5 3
R1 : R1 R3 0 3 18
2 2 1 8
2
0 1 0
4 15 9 45
R 2 : R 2 R3 0 0 1 1 1 2
5
3 9 9
25
MAT212-LINEAR ALGEBRA I
8 4 13
1 0 0 215 91 45
3 8
R1 : R1 R2 0 1 0
2 15 9 45
0 0 1 1 1 2
3 9 9
Therefore,
8 4 13
15 9 45
2 1 8
A 1
15 9 45
1
1
2
3 9 9
EXERCISE
1 2
1. Given that I is a 2 2 unit matrix and A
4 5
find u, v
26
MAT212-LINEAR ALGEBRA I
2 1 0 1 3
1 2 1 0 2
0 3 1 2 5
3 1 1
(a) A (b) B 4 7 2 3 7
1 0 3 1
1 0 1 1 3
3 1 2 0
2 1 0 2 0
27
MAT212-LINEAR ALGEBRA I
Linear systems
A linear equation in variables x1 , x2 , ..., xn is an equation of the form
a1 x1 a2 x2 ... an xn b (2.1)
Where a1 , a2 , ..., an and b are constant real or complex numbers. The constant ai is called the
A solution of a linear system (2.2) is a tuple s1 , s2 , ..., sn of numbers that makes each equation
a truestatement when the values s1 , s2 , ..., sn are substituted for x1 , x2 , ..., xn , respectively. The set
of all solutions of a linear system is called the solution set of the system.
Theorem 2.1.Any system of linear equations has one of the following exclusive conclusions.
(a) No solution.
(b) Unique solution.
(c) Infinitely many solutions.
A linear system is said to be consistent if it has at least one solution; and is said to be inconsistent
ifit has no solution.
Homogeneous system
A linear system is called homogeneous if it is in the form Ax 0 , where A is an m n matrix
and 0 is the zero vector in R . Note that x 0 is always a solution for a homogeneous system,
m
called the zero solution (or trivial solution); solutions other than the zero solution 0 are called
nontrivial solutions.
28
MAT212-LINEAR ALGEBRA I
b1 a12 a13
x1 b2 a 22 a 23 b1 a 22 a33 a 23 a32 a12 b2 a33 b2 a31 a13 b2 a32 a 22 b3
b3 a32 a33
a11 b1 a13
x 2 a 21 b2 a 23 a11 b2 a33 b3 a 23 b1 a 21 a33 a 23 a31 a13 a 21b2 a31b2
a31 b3 a33
a11 a12 b1
x3 a 21 a 22 b2 a11 a 22 b3 a32 b2 a12 a 21b3 a31b2 b1 a 21 a32 a 22 a31
a31 a32 b3
Example
1. Solve the equation
x1 2 x2 x3 4
3 x1 4 x2 2 x3 2
5 x1 3 x2 5 x3 1
Solution
1 2 1 x1 4
3
-4 - 2 x 2 2
5 3 5 x3 1
1 2 1
3 -4 - 2 1 20 6 215 10 19 20 14 50 29 35
5 3 5
29
MAT212-LINEAR ALGEBRA I
4 2 1
x1 2 -4 - 2 4 20 6 210 2 16 4 56 16 2 70
-1 3 5
1 4 1
x 2 3 2 - 2 110 2 415 10 1 3 10 8 100 13 105
5 -1 5
1 2 4
x3 3 -4 2 14 6 2 3 10 49 20 2 26 116 140
5 3 -1
From our knowledge of matrix multiplication, (2.2) can be written in matrix form:
30
MAT212-LINEAR ALGEBRA I
Examples
2. Solve the equation
x1 2 x2 x3 4
3 x1 4 x2 2 x3 2
5 x1 3 x2 5 x3 1
Solution
1 2 1 x1 4
3
-4 - 2 x2 2
5 3 5 x3 1
Ax b
i.e.
x A -1b
1
A 1 adjA
det A
det A A 1(20 6) 2(15 10) 1(9 20) 14 50 29 35
adjA C T
4 2 3 2
A11 (20 6) 14; A12 (15 10) 25;
3 5 5 5
3 4
A13 (9 20) 29
5 3
2 1 1 1 1 2
A21 (10 3) 7; A22 (5 5) 0; A23 (3 10) 7
3 5 5 5 5 3
2 1 1 1
A31 (4 4) 0; A32 (2 3) 5;
-4 -2 3 -2
1 2
A33 (4 6) 10
3 -4
- 14 - 25 29 - 14 -7 0
C - 7 0 7 C - 25
T
0 5
0 5 - 10 29 7 - 10
31
MAT212-LINEAR ALGEBRA I
- 14 -7 0
adjA C - 25
T
0 5
29 7 - 10
2 1
0
- 14 -7 0 5 5
1
5
1 1 5 1
A adjA - 25 0 0 -
det A 35 7 7
29 7 - 10
- 29 -
1 2
35 5 7
2 1
5 0
5
A
1 5 1
0 -
7 7
- 29 -
1 2
35 5 7
x A 1 .b
2 1 10
5 0 5
5
4 2
1 21
x
5
0 - 2 3
7 7 7
1 4
- 29 1 2 140
-
35 5 7 35
x1 2
But x x2 3
x3 4
x1 2, x2 3, x3 4
32
MAT212-LINEAR ALGEBRA I
Solution
2 5 4 x1 4
1
4 3 x2 1
1 -3 - 2 x3 5
Ax b
i.e.
x A -1b
1
A 1 adjA
det A
det A A 2(8 9) 5(2 3) 4(3 4) 2 25 28 1
adjA C T
1 5 -7 1 -2 -1
C - 2 -8 11 C 5
T
-8 - 2
- 1 -2 3 - 7 11 3
1 -2 -1
adjA C 5T
-8 - 2
- 7 11 3
1 -2 -1 -1 21
1
A
1
adjA 1 5 -8 - 2 - 5 8 2
det A
- 7 11 3 7 - 11 - 3
Ax b
x A -1b
33
MAT212-LINEAR ALGEBRA I
-1 2 1 4 3
x - 5 8 2 1 2
7 - 11 - 3 5 2
x1 3
x x2 2 ; x1 3, x2 2, x3 2
x3 2
x1 2 x 2 x3 4
3 x1 4 x 2 2 x3 2
5 x1 3 x 2 5 x3 1
Solution
34
MAT212-LINEAR ALGEBRA I
1 2 1 x1 4
3
-4 - 2 x2 2
5 3 5 x3 1
1 2 1 4
3 - 4 - 2 2
5 3 5 - 1
1 2 1 4
R2 : R2 3R1
0 - 10 - 5 - 10
R3 : R3 5 R1
0 - 7 0 - 21
1 2 1 4
7
R3 : R3 R2 0 - 10 - 5 - 10
10 7
0 0 - 14
2
x1 2 x2 x3 4
10x2 5 x3 10
7
x3 14
2
x1 2, x2 3, x3 4
2 x1 5 x2 4 x3 4
x1 4 x2 3 x3 1
x1 3 x2 2 x3 5
Solution
2 5 4 x1 4
1
4 3 x2 1
1 -3 - 2 x3 5
35
MAT212-LINEAR ALGEBRA I
2 5 4 4
1 4 3 1
1 - 3 - 2 5
1 2 5
R2 : R2 R1
4 4
2 3
0 1 - 1
1
R3 : R3 R1 2
2 0 -
11
-4 3
2
2 5 4 4
11 3
R3 : R3 R2 0 1 -1
2 2
0 0 -
1
-
2
3 3
2 x1 5 x2 4 x3 4
3
x2 x3 1
2
1 2
- x3 -
3 3
x1 3, x2 2, x3 2
Examples
36
MAT212-LINEAR ALGEBRA I
x1 2 x2 x3 4
3 x1 4 x2 2 x3 2
5 x1 3 x2 5 x3 1
Solution
1 2 1 x1 4
3
-4 - 2 x2 2
5 3 5 x3 1
1 2 1 4
3 - 4 - 2 2
5 3 5 - 1
1 2 1 4
R2 : R2 3R1 0 - 10 - 5 - 10
R3 : R3 5 R1
0 - 7 0 - 21
1 2 1 4
1 1
R 2 : R2 0 1 1
10 2
0 - 7 - 21
0
1 2 1 4
1
R 3 : R 3 7 R2 0 1 1
2
0 0 7
- 14
2
1 2 1 4
2 1
R 3 : R 3 0 1 1
7 2
0 0 - 4
1
1 0 0 2
1
R 1 : R 1 2 R 2 0 1 1
2
0 0 1 - 4
37
MAT212-LINEAR ALGEBRA I
1 0 0 2
R 2 : R 2 R 3 0 1 0 3
1
2
0 0 1 - 4
x1 2, x2 3, x3 4
2 x1 5 x2 4 x3 4
x1 4 x2 3 x3 1
x1 3 x2 2 x3 5
Solution
2 5 4 x1 4
1
4 3 x2 1
1 -3 - 2 x3 5
2 5 4 4
1 4 3 1
1 - 3 - 2 5
5
1 2 2 2
R 1 : R1 1 4 3 1
1
2
1 - 3 - 2 5
5
1 2 2 2
R 2 : R2 R1 3
0 1 - 1
R 3 : R3 R1 2
0 - 11 - 4 3
2
38
MAT212-LINEAR ALGEBRA I
5
1 2 2 2
2 2 2
R 1 : R1 0 1 -
3 3 3
0 - 11 - 4 3
2
5
1 2
2 2
11 2 2
R 3 : R 3 R 2 0 1 -
2 3 3
0 0 -
1
-
2
3 3
5
1 2
2 2
2 2
R 3 : 3R 3 0 1 -
3 3
0 0 1 2
1 11
1 0 3 3
5 2 2
R 1 : R 1 R 2 0 1 -
2 3 3
0 0 1 2
1 1 0 0 3
R1 : R1 R 3
3 0 1 0 - 2
2
R2 : R2 R3 0 0 1 2
3
x1 3, x2 2, x3 2
39
MAT212-LINEAR ALGEBRA I
3.1 Definition
A vector space consists of a nonempty set V of objects called vectors that can be added,
multiplied by a real number called a scalar, and for which certain axioms hold.
If v and w are two vectors in V , their sum is expressed as v w, and the scalar product of v
by areal number a is denoted by av . These operations are called vector addition and scalar
multiplication; respectively, and the following axioms are assumed to hold.
Axioms for vector addition:
A1. If u and v are in V , then u v is in V . (closure law)
A2. u v v u , u , v V (commutative law)
3.1.2 Examples
1. Let u 1, 2, 1, 0, 4 and v 2, 7, 5, 3, - 2. compute: (a) u v (b) 3u 2v
40
MAT212-LINEAR ALGEBRA I
2. In each case, determine scalars, a, b, and c if they exist such that the condition is satisfied:
Solution
41
MAT212-LINEAR ALGEBRA I
b0
a 2, b 0 and c 1
The scalar a, b and c exist.
Solution
2u 6w 6w 3v 34u 2v 8w 4u 8w
2u 3v 6v
2u 3v
4. Let u and v be vectors in a vector space V . Find vectors x and y in V such that:
x 4y u
2x 3y v
Solution
x 4y u (1)
2x 3y v (2)
42
MAT212-LINEAR ALGEBRA I
x
1
3u 4v and y 1 2u v
11 11
3.1.3 Exercises
3.2 SUBSPACE
` 3.2.1 Definition
Proof
If (1), (2) and (3) hold, then axiom A4 follows from (1) and axiom A5 follows from (3) because
u 1u lies in U , u U .
43
MAT212-LINEAR ALGEBRA I
Hence U is a subspace.
3.2.3 Examples
1. Show that * U x, x | x + is a subspace of .
Solution
0 0,0 is in U and the equations.
x, x y, y x y ,x y
ax, x ax ax
Show that U is closed under addition and scalar multiplication. Hence the subspace test
applies.
ao 0, a
The vector space 0 is called the zero subspace of V . Because all zero subspaces look like,
we speak of the zero vector space and denote it by 0. It is the unique vector space containing
just one vector.
3.3.1 Definition
A vector v is called a linear combination of the vectors v1 , v2 ,..., vn if it can be expressed in the
form
v a1v1 a2 v2 ... an vn
Where a1 , a 2 ,..., an are scalars and are called the coefficients of v1 , v2 ,..., vn .
44
MAT212-LINEAR ALGEBRA I
3.3.2 Examples
1. Determine whether 1, 1, 4 or 1, 5, 4 is a linear combination of the vectors v1 1, 2, -1 and
v2 3, 5, 2 in
Solution
Recall that 1, 1, 4 is linear combination of the vector v1 and v2 if it can be expressed in the form.
1, 1, 4 a1v1 a2 v2
a1 3a2 1 (1)
a1 2a2 4 (3)
From (1)
a1 1 3a2 (4)
a2 1
a1 2 and a2 1
45
MAT212-LINEAR ALGEBRA I
1, 5, 1 a1v1 a2 v2
a1 3a2 1 (1)
a1 2a2 1 (3)
These equations have no solution, so 1, 5, 1 is not a linear combination of v1 and v2 . (Verify).
2. Write 2, 1, 5 in as a linear combination of 1, 2, 1, 1, 0, 2 and 1, 1, 0.
Solution
2, 1, 5 a1 1, 2, 1 a2 1, 0, 2 a3 1, 1, 0
a1 a2 a3 2 (1)
2a1 a3 1 (2)
a1 2a2 5 (3)
From (2)
1 a3
a1 (4)
2
Substituting (4) into (1) and (3) give
2a2 a3 3 (5)
And
4 a 2 a3 9 (6)
Adding (5) and (6) we have
a2 2
Putting a2 2 into (5) we have
a3 1
46
MAT212-LINEAR ALGEBRA I
a1 1
Therefore
a1 1 , a2 2 and a3 1
3.4 SPAN
3.4.1 Definition
If v1 , v2 ,..., vn is any set of vectors in a vector space V , the set of all linear combinations of
these vectors is called their span, and is denoted by
span v1 , v2 ,..., vn .
If it happens that V spanv1 , v2 ,..., vn , then these vectors are called a spanning set of V .
* + * sv tw | s and t +
* + * | +
3.4.2 Theorem
2. U is the “smallest” subspace containing these vectors in the sense that any subspace of V
that contains each of v1 , v2 ,..., vn must contain U .
Proof
1. 0 0v1 ... 0vn belongs to U . If v a1v1 a2 v2 ... an vn and w b1v1 ... bn vn are two
47
MAT212-LINEAR ALGEBRA I
scalar multiplication, each of a1v1 , a 2 v2 ,..., an vn lies in W for any choice of a1 , a 2 ,..., an in
. But then
a1v1 a 2 v2 ... an vn lies in W because W is closed under addition.
3.4.3 Examples
1. Show that *( )( )( )+.
Solution
We must show that any vector x, y, z can be written as a linear combination of the three
given vectors. That is, we must show that there are numbers a1 , a2 , a3 so that
a1 a2 x (1)
a1 a2 a3 y (2)
a1 a3 z (3)
From (1)
a1 x a2 (4)
48
MAT212-LINEAR ALGEBRA I
a3 z x a2 (5)
a2 y z (6)
a1 x y z , a2 y z and a3 y x
Thus *( )( )( )+
2. Show that P3 span x 2 x3 , x, 2x 2 1, 3
Solution
P3 ax3 bx2 cx d
We must show that any vector ax3 bx2 cx d can be written as a linear combination of the
given vectors. That is, we must show that there are numbers a1 , a2 , a3 , a4 so that
ax3 bx2 cx d a1 x 2 x3 a2 x a3 2x 2 1 3a4
a1 x 2 a1 x3 a2 x 2 x 2 a3 a3 3a4
a1 a (1)
a1 2a3 b (2)
a2 c (3)
a3 3a4 d (4)
49
MAT212-LINEAR ALGEBRA I
ba
a3 (5)
2
a4
1
2d b a (6)
6
ba
, a4 2d b a
1
a1 a , a2 c , a3
2 6
Thus P3 span x 2 x3 , x, 2x 2 1, 3
u
1
u v 1 u v
2 2
v u v u v
1 1
2 2
So spanu, v spanu v, u v by theorem 2.
3.4.4 Exercise
1 1
(a) 2, 1, - 1 (b) 1, 7, 5 (c) , 2, (d) 0, 0, 0 .
2 3
50
MAT212-LINEAR ALGEBRA I
(c) v 3x 2 2 x 1; u x 2 1, w x 2
(d) v x; u x 2 1, w x 2
3.5.1 Definition
A set of vectors v1 , v2 ,..., vn is called linearly independent if it satisfies the following
condition.
3.5.2 Examples
1. show that 1, 0, -1, 2, 1, 2, 3, - 2, 0 linearly independent in .
Solution
s1 2s2 3s3 0
s2 3s3 0
s1 2s2 0
s1 s2 s3 0
51
MAT212-LINEAR ALGEBRA I
Solution
s1 1 x s2 3x x 2 s3 2 x x 2 0
s1 2 s3 0
s1 3s2 s3 0
s 2 s3 0
s1 s2 s3 0
3.5.3 Theorem
A set v1 , v 2 ,..., vn of vectors in a vector space V is linearly dependent if and only if some vi is
linear combination of the others.
Proof
Assume that v1 , v 2 ,..., vn is linearly dependent. Then some nontrivial linear combination
vanishes say, a1v1 a 2 v 2 ... an vn 0 where some coefficient is not zero. Suppose a1 0 .
a a
Then v1 2 v2 ... n vn gives v1 as a linear combination of the others. In general, if
a1 a1
a1 0 then a similar argument expresses vi as a linear combination of the others.
the set v1 , v 2 ,..., vn is not linearly independent; that is it is linearly dependent. A similar
3.5.4 Theorem
52
MAT212-LINEAR ALGEBRA I
Let v1 , v 2 ,..., vn be a linearly independent set of vectors in a vector space V . If a vector v has
two representations.
v s1v1 s2 v 2 ...sn vn
v t1v1 t 2 v 2 ...t n vn
Proof
We have
3.6 BASIS
3.6.1 Definition
A set e1 , e 2 ,..., en of vectors in a vector space V is called a Basis of V if it satisfies the
following two conditions:
Thus if a set of vectors e1 , e 2 ,..., en is a basis, then every vector in V can be written as a linear
combination of these vectors in a unique way.
3.6.2 Examples
Solution
53
MAT212-LINEAR ALGEBRA I
at 2 b t c a1 t 2 1 a2 t - 1 a3 2t 2
a1t 2 a1 a2 t - a2 2a3 t 2a3
a1t 2 a2 2a3 t a1 a2 2a3
a1 a (1)
a2 2a3 b (2)
a1 a2 2a3 c (3)
From (2)
a2 b 2a3 (4)
Substituting (1) and (4) into (3) we have
cab
a3 (5)
4
Hence S span P2 .
a1 0
a2 2a3 0
54
MAT212-LINEAR ALGEBRA I
a1 a2 2a3 0
1 0 0 1 0 0 0 0
3. Show that the set S , 0 0, 1 0 , 0 1 is a basis for the vector space .
0 0
Solution
To verify that S is linearly independent, we form
1 0 0 1 0 0 0 0 0 0
a1 a2 a3 a4
0 0 0 0 1 0 0 1 0 0
This gives
a1 a 2 0 0
a
3 a4 0 0
a b
c d in and we must find scalars a1 , a2 , a3 , a4 such that
a b 1 0 0 1 0 0 0 0
c d a1 0 0 a 2 0 0 a3 1 0 a 4 0 1
We find that
a1 a, a2 b, a3 c, and a4 d , so that S spans
55
MAT212-LINEAR ALGEBRA I
3.7 DIMENSION
3.7.1 Definition
If e1 , e 2 ,..., en is a basis of the non zero vector space V , the number n of vectors in the basis is
dimV n
dim 0 0
We have assume that a basis is nonempty and hence that the dimension of the space is at least 1.
On the other hand, the zero space 0, consisting of the zero vector alone, has no basis, so our
insistence that dim 0 0 amounts to saying that the empty set of vectors is a basis of the zero
space.
Examples
1. Find the rank of the matrix
1 0 1 2
A 2 0 2 0
1 0 1 1
solution
1 0 1 2
R2 : R2 2 R1
0 0 0 4
R3 : R3 R1
0 0 0 1
1 0 1 2
R2 : R2 4 R3 0 0 0 0
0 0 0 1
1 0 1 2
0 0 0 1
0 0 0 0
Rk A 2
1 2 1 1
A 9 5 2 2
7 1 0 4
solution
1 2 1 1
R2 : R2 9 R1
0 13 7 11
R3 : R3 7 R1
0 13 7 11
57
MAT212-LINEAR ALGEBRA I
1 2 1 1
R3 : R3 R2 0 13 7 11
0 0 0 0
Hence,
Rk ( A) 2
Solution
1 0 1 2
R2 : R2 2 R1
0 1 4 1
R3 : R3 R1
0 0 0 0
Therefore,
Rk ( B) 2
58
MAT212-LINEAR ALGEBRA I
If V and W are two real vector spaces over the field k , a function T : V W is called a
linear transformation if it satisfies the following axioms:
T1. T x y T x T y ; x, y V
Examples
1. Define a function T : by
x y
x x
T x 2 y
y 3 x
y
Show that T is a linear transformation
Solution
x x1
We verify the axioms and
y y1
x x1 y y1 x y x1 y1
x x1 x x1 x 2 y x 2 y T x T x1
T T
x x 2 y y 1 1 y y
y y1 3x x
1 1
y y1 1
1 3 x 13 x
2. Define by
59
MAT212-LINEAR ALGEBRA I
x1
2 x x3
T x 2 1
x 4 x2
3
Show that T is Linear Transformation
Proof:
x1 y1
T x y T x 2 y 2
x y
3 3
x1 y1
T x 2 y 2
x y
3 3
2 x y1 x3 y 3
1
4 x 2 y 2
2 x x3 2 y1 y 3
1
4 x 2 4 y 2
2 x x3 2 y1 y 3
1
4 x2 4 y 2
x1 y1
T x 2 T y 2
x y
3 3
T x T y
And
60
MAT212-LINEAR ALGEBRA I
x1 kx1
T kx T k x 2 T kx2
x kx
3 3
2kx1 kx3
4kx2
k 2 x1 x3
k 4 x 2
2 x x3
k 1
4 x 2
x1
kT x 2
x
3
kT ( x)
T is a linear transformation
3. Define T : P3 M 22 by
a b a 2c
T a bx cx 2 dx 3 b d
d
Show that T is LT.
Proof
61
MAT212-LINEAR ALGEBRA I
T x y T a1 b1 x c1 x 2 d1 x 3 a 2 b2 x c 2 x 2 d 2 x 3
T a1 a 2 b1 b2 x c1 c 2 x 2 d1 d 2 x 3
a a 2 b1 b2 a1 a 2 2c1 c2
1
d1 d 2 b1 b2 d1 d 2
a b a1 2c1 a 2 b2 a 2 2c 2
1 1
d1 b1 d1 d1 d 2 b2 d 2
T a1 b1 x c1 x 2 d1 x 3 T a 2 b2 x c 2 x 2 d 2 x 3
T x T y
And
62
MAT212-LINEAR ALGEBRA I
T kx T k a bx cx 2 dx 3
T ka kbx kcx 2 kd x 3
ka kb ka k 2c
kd kb kd
k a b k a 2c
kd k b d
a b a 2c
k
d b d
kT a bx cx 2 dx 3
kT x
T 2 x y b 2T x T y b (2)
Multiply (1) by 2 and subtract it from (2) gives
b 2a
T y (3)
5
Substituting (3) into (1) gives
3b a
T x (4)
5
T x
1
3b a and T y 1 b 2a
5 5
5. Find the linear transformation with the given properties and compute T v
63
MAT212-LINEAR ALGEBRA I
( ) ( ) ( ) ( ) ( )
Solution
Express ( x, y ) as a linear combination (2, 1) and (1, 1)
( x, y) a1 (2,1) a2 (1,1)
2a1 a2 x (1)
a1 a2 y (2)
a2 y a1 (3)
1
a1 ( x y ),
3
1
a2 ( x 2 y)
3
1 1
( x, y ) ( x y )(2,1) ( x 2 y )(1,1)
3 3
1 1
T ( x, y ) ( x y )T (2,1) ( x 2 y )T (1,1)
3 3
1 1
T ( x, y ) ( x y )(1,1,1) ( x 2 y )(0,1,0)
3 3
T ( x, y ) ( x y ), ( x y ), ( x y ) 0, ( x 2 y ), 0
1
3
T ( x, y ) x y , 3 y , x y
1
3
T (v) (1,2) (1, 2, 1)
64
MAT212-LINEAR ALGEBRA I
Exercise
1. In each case, find a linear transformation with the given properties and compute T (v) .
(a) ( ) ( ) ( ) ( ) ( )
(b) T : P2 P3 ; T ( x 2 ) x 3 , T ( x 1) 0, T ( x 1) x; v x 2 x 1
65