+1(978)310-4246 credencewriters@gmail.com
  

Description

5 bonus points for clean and organization
1) (6) What single elementary row operation that will create a 4 in a lower left corner of
given matrices and will not create any fractions in the first row? Answer is not unique
 2 − 1 2
2
2 2

− 3 1 0
Answer: Write both the operation and matrix
Operation:_________________
E=
_
_

 _
_
_ 
_ 
_
_
_
2) (8) Determine whether the given matrices is (are) elementary matrices: Your answers is
either YES or NO under the matrices
1 0 2
a) 0 1 0
1 0 1 
1 0 0 
b) 0 − 1 0
0 0 1
1 0 0
c) 0 1 0
0 1 2
1 0 0
e) 0 0 0
0 1 1
1 0 0
f) 1 1 1
0 0 1
1 0 0 
g) 0 1 − 5
0 0 1 
1
0
d) 
0

0
0
1 0 0
0 4 / 7 0

0 0 1
0
0
1 0 0 
h) 0 − 1 0
0 0 2
3) (8) Find the inverses of the following matrices
Answers: ( Write your answer below each matrix))
1 0 0 
a) 0 1 − 2
0 0 1 
1 6 0
c) 0 1 0
0 0 1
1 0 0 
b) 0 3 0 
0 0 1 / 2
1
1 0 0
d) 0 2 0
0 0 0
4) (6) Which of the following 3 × 3 matrices are in row-echelon form or in reduced row
echelon form? Note: Write your choices (ref or r.r.e.f or neither BELOW THE
MATRIX)
1 4 − 1
a) 0 0 0 
0 0 1 
1 − 9 0 
b) 0 1 0
0 0 0
1 − 4 2 
c) 0 1 1 
0 0 0
1 0 0
c) 0 1 0


0 6 0
0 0 1 
d) 0 1 0


0 0 1
1 3 3
e) 0 1 0


0 0 1
5) (16) Use Gauss-Jordan elimination to solve the system. Discuss the value of a and b such that
the following system has
a) no solution,
b) Unique solution or
c) Infinitely many solutions.
d) Solve the case c) parametrically.
ax + 2 y = 2

 x − 4y = b
Solution:
a)
b)
c)
2
d)
6) (8) Find the general in parametric form solution for the augmented matrix. Identify the
homogenous solution
( AX h = 0 ) and the particular solution: AX p = b )
1 − 5
2 2
4 − 1 − 3 2 


Solution:
2
0 − 7
1
2
2
5
0 

7) (5) For the matrix A =
− 1 1 − 5 0 


4
 3 −4 8
Solution:
calculate tr (4 A − 3tr (−2 A)  A)
 a2 − 3 a
 is invertible?
8) (5) What is the value(s) of a so that the matrix A = 

 7a − 13 a 
Solution:
1 − 3
9) (12) Given A = 

2 − 5
Express A and A −1 as a product of elementary matrices (EM):
3
Solution: (Write out all EM ). Read the lecture notes)
 3 − 4
3
10) (10) Given A −1 = 
 and a polynomial p( x) = x − 2 x + 4 .
−
1
2


11) (8)Find all 2 x 2diagonal matrices A that satisfy A2 – 12A + 35I = 0.
4
Find p( A −1 )
12) (6)Find the standard matrix for the stated composition of linear operators on R2. A rotation
of 270 ∘ (counterclockwise), followed by a reflection about the line y = x .
13) (6)
a)
b)
14) (6)
Relation ? solve x’ and y’. What is the relation of x’, y’ and x. y?
5
Math 410, Linear Algebra Fall 2020 : Chapter 1.8 and 1.9
I)
Chapter 1.8 Linear Transformation:
1)
Recall a vector in R n is called order n-tuples. It is represented by a column. But for
convenient we can write in a comma-delimited form (or sometimes I physics: Contravariant vector)
 x1 
 
 : 
x= : 
 
 : 
x 
 n
or x = ( x1 , x 2 ,……, x n )
And the standard basis vector associated with order n-tuples is
In R 3
e = (e1 , e2 , e3 )
Example 1:
We write a vector in R 3 in a standard basis vector as
1
0   0 


x = (3,−2,5) = 30 − 21 + 50
0
0 1
Recall that in Cal 1 a function f(x) is a transformation from a value x in R to a value f(x) in R
We say
f : x → f ( x)
In linear algebra we deal the same transformation with vectors in R n
T : Rn → Rm
2)
If the transformation is a matrix, we denote it as T A
The matrix transformation, transforms a vector x in R n to a vector w in R m .
The most easy way to find a standard matrix transformation is to observe the matrix operations
Properties: For a matrix transformation T with u.v be vectors and k be a scalar
The proof is specially easy and straight forward. Students try c) and d)
Example 2: Consider a system of linear equation: A matrix transformation TA : R 4 → R 3
That is we can write
 1 
 2 − 3 1 − 5    1 

 − 3   
T A ( X ) = AX =  4 1 − 2 1   =  3 
0
5 −1 4
0    8 

 2 
Example 3:
Some linear special transformations
Zero matrix transformation
T0 ( X ) = 0 X = 0
Example 4:
Identity matrix transformation ( linear )
TI ( X ) = IX = I transforms a matrix to it-self
3)
It is also obvious that the properties of matrices multiplications are compatible.
Thus if
TA ( X ) = TB ( X ) → AX = BX then A = B
4)
Example 5:
Find a standard matrix:
If
TA : R 2 → R 4 and
 2x − 3y 
 2x − 3y 




 x   3x 
 x   3x 
T   = 
 Note, I usually write this instead of T  y  =  x + 2 y  It is the same
 y  x + 2y 
 


 − 2x + y 

− 2 x + y 

Then the matrix representation of T is
 2 − 3


0 
 3
, where A = 
1
2 


− 2 1 


2
 
1  3 
Or, slowly, we see T (e1 ) = T   =  
0  1 
 − 1
 
 − 3
 
0  0 
and T (e2 ) = T   =  
1  2 
 1 
 
 − 4
Example 6: Find the image of X =   under the transformation in example 5:
 5 
 2 − 3
 7 




0  − 4   − 12 
 − 4  3
 =
T   = 
2  5   6 
 5   1



− 2 1 
 13 




Example 7: Find a transformation that satisfies”
 − 2  3
1  3
T is 2×2 and T   =   and T   =  
 2  2
 3   4
Think this as
c
TA =  1
 c2
 c1

 c3
c3 
 . We have
c4 
c2  1   2 
c
  =   and  1
c4  2   3 
 c3
c2  − 2   3 
  =  
c4  3   4 
So that
 c1

 c3
 c1
And 
 c3
c2  1   2 
  =    c1 + 2c2 = 2; c3 + 2c3 = 3
c4  2   3 
c2  − 2   3 
  =    − 2c1 + 3c2 = 3 and − 2c3 + 3c4 = 4
c4  3   4 
Now you can solve 2 2×2 systems with 4 unknowns: or
− 2c1 + 3c 2 = 3 and − 2c3 + 3c 4 = 4
 1

− 2
 0

 0

0  c1   2 
   
3 0 0  c 2   3 
=
0 1 2  c3   3 
   
0 − 2 3  c 4   4 
2
0
You can solve this 4×4 system.
Or simply we can solve it as the example 1.6


A = Te1 | Te2 as in the example 7(1.8) in the textbook
Here we have an augmented matrix for an 2 (2×2) system with the same coefficients
3   1 0 0 1/ 7 
 1 2 2 3 1 2 2 3  1 2 2

  
  
  

 − 2 3 3 4   0 7 7 10   0 1 1 10 / 7   0 1 1 10 / 7 
We have
c1 = 0 c2 = 1; c4 = 10 / 7 and c3 = 1 / 7
Therefore
1 
 0

A = 
1 / 7 10 / 7 
Some Standard matrix simple transformations
5)
 x  − x  1 0 
Reflection about x-axis T   =   = 

 y   y  0 − 1
6)
Reflection about y-axis
 x  − x  1 0 
T  =   = 

 y   y  0 − 1
7)
Reflection about the line y = x
 x   y  0 1 
T  =   = 

 y   x  1 0
8)
Reflection about the line xy plane
 x   x  1 0 0 
T  y  =  y  = 0 1 0 
 z  − z  0 0 − 1
9)
Reflection about the line xz plane
 x   x  1 0 0
T  y  = − y  = 0 − 1 0 Graph is similar to the above case
 z   z  0 0 1
10)
Reflection about the line yz plane
 x   − x   − 1 0 0
T  y  =  y  =  0 1 0 Graph is similar to the above case
 z   z   0 0 1
11)
Orthogonal Projection on x – axis
12)
 x   x  1 0
T  =   = 

 y   0  0 0 
Orthogonal Projection on y – axis
 x   0  0 0 
T  =   = 

 y   x  0 1 
13)
Orthogonal Projection on xy plane or ( xz plane , yz plane )
 x   x  1 0 0
T  y  =  y  = 0 1 0
 z   0  0 0 0
14)
Rotation operators:
a)
by counter-clockwise ( positive rotation) by angle θ
cos 
R = 
 sin 
b)
− sin  
cos  
by clockwise ( negative rotation) by angle θ
 cos 
R− = 
− sin 
sin  
cos  
Example 8: What is the domain and co-domain of A has size 6 × 3.
The domain is in R 3 and the co-domain is in R 6
Example 9: What is the domain and co-domain of A if
a

2
1

c

0 0 −1
1 b
2
1 −1 c
2 e
e
1

d
The domain is in R 4 and the co-domain is in R 5
4

3 
Example 10: Use matrix multiplication to find the image of the vector (3, −4) when
it is rotated about the origin through an angle of θ =30º counter-clockwise
3 3

 3  cos 30 − sin 30  3   2 + 2 
T  = 

  = 
− 4  sin 30 cos 30  − 4  3 − 2 3 
 2

II)
1.9 Composition of matrices transformations
If TA : R m → R n and TB : R k → R m then the composition of
TAB : (k ï‚´ m) ï‚´ (m ï‚´ n) = k ï‚´ n
We write
TBA = TB (TA X ) = TB  TA (X )
This is the composition transformation:
4)
TB  TA (X )
Find a standard matrix:
Example 11: Given transformations
T1 : R 3 → R 2 and T2 : R 2 → R 3
T1 ( x, y, z) = (3x − 2 y − z,−2x + y + 2z)
T2 ( x, y) = (2x + 5 y,−2x + y, x + 3 y)
Find a standard matrices
T2  T1 ( X ) and T1  T2 ( X )
 x
 x
   3 − 2 − 1 
 3 − 2 − 1
 y  → A1 = 

We see that T1  y  = 
2  
−2 1
2 

 z  − 2 1
 
z
 2 5
 2 5
 x 


 x 
and T2   =  − 2 1   → A2 =  − 2 1 
 y   1 3  y 
 1 3




 2 5
  9 10 
 3 − 2 − 1
 − 2 1  = 

T2  T1 ( X ) = A2 A1 = 
2 
− 4 − 3 
− 2 1


 1 3
 2 5
 − 4 1 8

 3 − 2 − 1 

 =  − 8 5 4 
and T1  T2 ( X ) = A1 A2 =  − 2 1 
2 
 1 3  − 2 1



 − 3 1 5
Note:
*
In general the multiplication is not commute, thus we have
T1  T2  T2  T1
*
The rotation transformations are commute
Example 12: Given transformations
 cos20 − sin 20 
 cos30 − sin 30 
 and R2 = 

R1 = 
 sin 20 cos20 
 sin 30 cos30 
We will see by inspection that if we rotate a vector by 20º then rotate it 30º more is the same as
rotating it by 30º then rotate 20º more. The total is 50º rotation.
 cos20 − sin 20   cos30 − sin 30   cos30 − sin 30  cos20 − sin 20 

 
 = 


 sin 20 cos20   sin 30 cos30   sin 30 cos30  sin 20 cos20 
 cos20 − sin 20   cos30 − sin 30   cos50 − sin 50 

 
 = 

 sin 20 cos20   sin 30 cos30   sin 50 cos50 
III)
The inverse of the transformation matrices
The inverse of TA  T2 I s defined as TA−1 = TA−1
The inverse of the transformation T A is related to T A
−1
−1
TATA = TA TA = I n
−1
Example 12: The inverse of R is R −
 cos20 − sin 20 
 cos( −20) − sin( −20)   cos(20) sin( 20) 
 R−20 = 
 = 

R20 = 
 sin 20 cos20 
 sin (−20) cos( −20)   − sin (20) cos(20) 
 cos20 − sin 20   cos(20) sin( 20)   1 0 
 
 = 

R20 R−20 = 
 sin 20 cos20   − sin (20) cos(20)   0 1 
5w1 − 6w2 = 4 x1
 w1 
Example 13: Find T −1   if
3w1 + 4w2 = 5 x1
 w2 
 5 − 6  w1   x1 

  =   or AW = X It is easy to solve for w. If A is invertible
−
3
4

 w2   x2 
A −1 AW = A −1 X  W = A −1 X
then we have:
We have
 5 − 6
1  4 6 1  4 6
  A −1 =

= 

The inverse of a 2×2 matrix is A = 
20 − 18  3 5  2  3 5 
− 3 4 
2w + 3w2
 w1  1  4 6  w1   1
  = 3w1 5w2
Therefore T   = 

 w2  2  3 5  w2   2 + 2
−1
or simply ,
3w 5w 

T −1 (w1 , w2 ) =  w1 + 3w2 , 1 + 2 
2
2 





Math 410, Linear Algebra Fall 2020 : Chapter 1.8 and 1.9
I)
Chapter 1.8 Linear Transformation:
1)
Recall a vector in R n is called order n-tuples. It is represented by a column. But for
convenient we can write in a comma-delimited form (or sometimes I physics: Contravariant vector)
 x1 
 
 : 
x= : 
 
 : 
x 
 n
or x = ( x1 , x 2 ,……, x n )
And the standard basis vector associated with order n-tuples is
In R 3
e = (e1 , e2 , e3 )
Example 1:
We write a vector in R 3 in a standard basis vector as
1
0   0 


x = (3,−2,5) = 30 − 21 + 50
0
0 1
Recall that in Cal 1 a function f(x) is a transformation from a value x in R to a value f(x) in R
We say
f : x → f ( x)
In linear algebra we deal the same transformation with vectors in R n
T : Rn → Rm
2)
If the transformation is a matrix, we denote it as T A
The matrix transformation, transforms a vector x in R n to a vector w in R m .
The most easy way to find a standard matrix transformation is to observe the matrix operations
Properties: For a matrix transformation T with u.v be vectors and k be a scalar
The proof is specially easy and straight forward. Students try c) and d)
Example 2: Consider a system of linear equation: A matrix transformation TA : R 4 → R 3
That is we can write
 1 
 2 − 3 1 − 5    1 

 − 3   
T A ( X ) = AX =  4 1 − 2 1   =  3 
0
5 −1 4
0    8 

 2 
Example 3:
Some linear special transformations
Zero matrix transformation
T0 ( X ) = 0 X = 0
Example 4:
Identity matrix transformation ( linear )
TI ( X ) = IX = I transforms a matrix to it-self
3)
It is also obvious that the properties of matrices multiplications are compatible.
Thus if
TA ( X ) = TB ( X ) → AX = BX then A = B
4)
Example 5:
Find a standard matrix:
If
TA : R 2 → R 4 and
 2x − 3y 
 2x − 3y 




 x   3x 
 x   3x 
T   = 
 Note, I usually write this instead of T  y  =  x + 2 y  It is the same
 y  x + 2y 
 


 − 2x + y 

− 2 x + y 

Then the matrix representation of T is
 2 − 3


0 
 3
, where A = 
1
2 


− 2 1 


2
 
1  3 
Or, slowly, we see T (e1 ) = T   =  
0  1 
 − 1
 
 − 3
 
0  0 
and T (e2 ) = T   =  
1  2 
 1 
 
 − 4
Example 6: Find the image of X =   under the transformation in example 5:
 5 
 2 − 3
 7 




0  − 4   − 12 
 − 4  3
 =
T   = 
2  5   6 
 5   1



− 2 1 
 13 




Example 7: Find a transformation that satisfies”
 − 2  3
1  3
T is 2×2 and T   =   and T   =  
 2  2
 3   4
Think this as
c
TA =  1
 c2
 c1

 c3
c3 
 . We have
c4 
c2  1   2 
c
  =   and  1
c4  2   3 
 c3
c2  − 2   3 
  =  
c4  3   4 
So that
 c1

 c3
 c1
And 
 c3
c2  1   2 
  =    c1 + 2c2 = 2; c3 + 2c3 = 3
c4  2   3 
c2  − 2   3 
  =    − 2c1 + 3c2 = 3 and − 2c3 + 3c4 = 4
c4  3   4 
Now you can solve 2 2×2 systems with 4 unknowns: or
− 2c1 + 3c 2 = 3 and − 2c3 + 3c 4 = 4
 1

− 2
 0

 0

0  c1   2 
   
3 0 0  c 2   3 
=
0 1 2  c3   3 
   
0 − 2 3  c 4   4 
2
0
You can solve this 4×4 system.
Or simply we can solve it as the example 1.6


A = Te1 | Te2 as in the example 7(1.8) in the textbook
Here we have an augmented matrix for an 2 (2×2) system with the same coefficients
3   1 0 0 1/ 7 
 1 2 2 3 1 2 2 3  1 2 2

  
  
  

 − 2 3 3 4   0 7 7 10   0 1 1 10 / 7   0 1 1 10 / 7 
We have
c1 = 0 c2 = 1; c4 = 10 / 7 and c3 = 1 / 7
Therefore
1 
 0

A = 
1 / 7 10 / 7 
Some Standard matrix simple transformations
5)
 x  − x  1 0 
Reflection about x-axis T   =   = 

 y   y  0 − 1
6)
Reflection about y-axis
 x  − x  1 0 
T  =   = 

 y   y  0 − 1
7)
Reflection about the line y = x
 x   y  0 1 
T  =   = 

 y   x  1 0
8)
Reflection about the line xy plane
 x   x  1 0 0 
T  y  =  y  = 0 1 0 
 z  − z  0 0 − 1
9)
Reflection about the line xz plane
 x   x  1 0 0
T  y  = − y  = 0 − 1 0 Graph is similar to the above case
 z   z  0 0 1
10)
Reflection about the line yz plane
 x   − x   − 1 0 0
T  y  =  y  =  0 1 0 Graph is similar to the above case
 z   z   0 0 1
11)
Orthogonal Projection on x – axis
12)
 x   x  1 0
T  =   = 

 y   0  0 0 
Orthogonal Projection on y – axis
 x   0  0 0 
T  =   = 

 y   x  0 1 
13)
Orthogonal Projection on xy plane or ( xz plane , yz plane )
 x   x  1 0 0
T  y  =  y  = 0 1 0
 z   0  0 0 0
14)
Rotation operators:
a)
by counter-clockwise ( positive rotation) by angle θ
cos 
R = 
 sin 
b)
− sin  
cos  
by clockwise ( negative rotation) by angle θ
 cos 
R− = 
− sin 
sin  
cos  
Example 8: What is the domain and co-domain of A has size 6 × 3.
The domain is in R 3 and the co-domain is in R 6
Example 9: What is the domain and co-domain of A if
a

2
1

c

0 0 −1
1 b
2
1 −1 c
2 e
e
1

d
The domain is in R 4 and the co-domain is in R 5
4

3 
Example 10: Use matrix multiplication to find the image of the vector (3, −4) when
it is rotated about the origin through an angle of θ =30º counter-clockwise
3 3

 3  cos 30 − sin 30  3   2 + 2 
T  = 

  = 
− 4  sin 30 cos 30  − 4  3 − 2 3 
 2

II)
1.9 Composition of matrices transformations
If TA : R m → R n and TB : R k → R m then the composition of
TAB : (k ï‚´ m) ï‚´ (m ï‚´ n) = k ï‚´ n
We write
TBA = TB (TA X ) = TB  TA (X )
This is the composition transformation:
4)
TB  TA (X )
Find a standard matrix:
Example 11: Given transformations
T1 : R 3 → R 2 and T2 : R 2 → R 3
T1 ( x, y, z) = (3x − 2 y − z,−2x + y + 2z)
T2 ( x, y) = (2x + 5 y,−2x + y, x + 3 y)
Find a standard matrices
T2  T1 ( X ) and T1  T2 ( X )
 x
 x
   3 − 2 − 1 
 3 − 2 − 1
 y  → A1 = 

We see that T1  y  = 
2  
−2 1
2 

 z  − 2 1
 
z
 2 5
 2 5
 x 


 x 
and T2   =  − 2 1   → A2 =  − 2 1 
 y   1 3  y 
 1 3




 2 5
  9 10 
 3 − 2 − 1
 − 2 1  = 

T2  T1 ( X ) = A2 A1 = 
2 
− 4 − 3 
− 2 1


 1 3
 2 5
 − 4 1 8

 3 − 2 − 1 

 =  − 8 5 4 
and T1  T2 ( X ) = A1 A2 =  − 2 1 
2 
 1 3  − 2 1



 − 3 1 5
Note:
*
In general the multiplication is not commute, thus we have
T1  T2  T2  T1
*
The rotation transformations are commute
Example 12: Given transformations
 cos20 − sin 20 
 cos30 − sin 30 
 and R2 = 

R1 = 
 sin 20 cos20 
 sin 30 cos30 
We will see by inspection that if we rotate a vector by 20º then rotate it 30º more is the same as
rotating it by 30º then rotate 20º more. The total is 50º rotation.
 cos20 − sin 20   cos30 − sin 30   cos30 − sin 30  cos20 − sin 20 

 
 = 


 sin 20 cos20   sin 30 cos30   sin 30 cos30  sin 20 cos20 
 cos20 − sin 20   cos30 − sin 30   cos50 − sin 50 

 
 = 

 sin 20 cos20   sin 30 cos30   sin 50 cos50 
III)
The inverse of the transformation matrices
The inverse of TA  T2 I s defined as TA−1 = TA−1
The inverse of the transformation T A is related to T A
−1
−1
TATA = TA TA = I n
−1
Example 12: The inverse of R is R −
 cos20 − sin 20 
 cos( −20) − sin( −20)   cos(20) sin( 20) 
 R−20 = 
 = 

R20 = 
 sin 20 cos20 
 sin (−20) cos( −20)   − sin (20) cos(20) 
 cos20 − sin 20   cos(20) sin( 20)   1 0 
 
 = 

R20 R−20 = 
 sin 20 cos20   − sin (20) cos(20)   0 1 
5w1 − 6w2 = 4 x1
 w1 
Example 13: Find T −1   if
3w1 + 4w2 = 5 x1
 w2 
 5 − 6  w1   x1 

  =   or AW = X It is easy to solve for w. If A is invertible
−
3
4

 w2   x2 
A −1 AW = A −1 X  W = A −1 X
then we have:
We have
 5 − 6
1  4 6 1  4 6
  A −1 =

= 

The inverse of a 2×2 matrix is A = 
20 − 18  3 5  2  3 5 
− 3 4 
2w + 3w2
 w1  1  4 6  w1   1
  = 3w1 5w2
Therefore T   = 

 w2  2  3 5  w2   2 + 2
−1
or simply ,
3w 5w 

T −1 (w1 , w2 ) =  w1 + 3w2 , 1 + 2 
2
2 





Math 410, Linear Algebra
I)
Chapter 1.8
Fall 2020
Chapter 1.8 Linear Transformation
1)
Recall a vector in R n is called order n-tuples. It is represented by a column. But for convenient
we can write in a comma-delimited form (or sometimes I physics: Contravariant vector)
 x1 
 
 : 
x= : 
 
 : 
x 
 n
or x = ( x1 , x 2 ,……, x n )
And the standard basis vector associated with order n-tuples is
In R 3
e = (e1 , e2 , e3 )
Example 1:
We write a vector in R 3 in a standard basis vector as
1
0   0 


x = (3,−2,5) = 30 − 21 + 50
0
0 1
Recall that in Cal 1 a function f(x) is a transformation from a value x in R to a value f(x) in R
We say
f : x → f ( x)
In linear algebra we deal the same transformation with vectors in R n
T : Rn → Rm
2)
If the transformation is a matrix, we denote it as T A
The matrix transformation, transforms a vector x in R n to a vector w in R m .
The most easy way to find a standard matrix transformation is to observe the matrix operations
Properties: For a matrix transformation T with u.v be vectors and k be a scalar
The proof is specially easy and straight forward. Students try c) and d)
Example 2: Consider a system of linear equation: A matrix transformation TA : R 4 → R 3
That is we can write
 1 
 2 − 3 1 − 5    1 

 − 3   
T A ( X ) = AX =  4 1 − 2 1   =  3 
0
5 −1 4
0    8 

 2 
Example 3:
Some linear special transformations
Zero matrix transformation
T0 ( X ) = 0 X = 0
Example 4:
Identity matrix transformation ( linear )
TI ( X ) = IX = I transforms a matrix to it-self
3)
It is also obvious that the properties of matrices multiplications are compatible. Thus if
TA ( X ) = TB ( X ) → AX = BX then A = B
4)
Find a standard matrix:
Example 5:
If
TA : R 2 → R 4 and
 2x − 3y 
 2x − 3y 




 x   3x 
 x   3x 
T   = 
 Note, I usually write this instead of T  y  =  x + 2 y  It is the same
 y  x + 2y 
 


 − 2x + y 

− 2 x + y 

Then the matrix representation of T is
 2 − 3


0 
 3
, where A = 
1
2 


− 2 1 


2
 
1  3 
Or, slowly, we see T (e1 ) = T   =  
0  1 
 − 1
 
 − 3
 
0  0 
and T (e2 ) = T   =  
1  2 
 1 
 
 − 4
Example 6: Find the image of X =   under the transformation in example 5:
 5 
 2 − 3
 7 




0  − 4   − 12 
 − 4  3
 =
T   = 
2  5   6 
 5   1



− 2 1 
 13 




Example 7: Find a transformation that satisfies”
1  3
 − 2  3
T is 2×2 and T   =   and T   =  
 2  2
 3   4
Think this as
c
TA =  1
 c2
c3 
 . We have
c4 
 c1

 c3
c2  1   2 
c
  =   and  1
c4  2   3 
 c3
c2  − 2   3 
  =  
c4  3   4 
So that
 c1

 c3
c
And  1
 c3
c2  1   2 
  =    c1 + 2c2 = 2; c3 + 2c3 = 3
c4  2   3 
c2  − 2   3 
  =    − 2c1 + 3c2 = 3 and − 2c3 + 3c4 = 4
c4  3   4 
Now you can solve 2 2×2 systems with 4 unknowns: or
− 2c1 + 3c 2 = 3 and − 2c3 + 3c 4 = 4
 1

− 2
 0

 0

0  c1   2 
   
3 0 0  c 2   3 
=
0 1 2  c3   3 
   
0 − 2 3  c 4   4 
2
0
You can solve this 4×4 system.
Or simply we can solve it as the example 1.6


A = Te1 | Te2 as in the example 7(1.8) in the textbook
Here we have an augmented matrix for an 2 (2×2) system with the same coefficients
3   1 0 0 1/ 7 
 1 2 2 3 1 2 2 3  1 2 2

  
  
  

 − 2 3 3 4   0 7 7 10   0 1 1 10 / 7   0 1 1 10 / 7 
We have
c1 = 0 c2 = 1; c4 = 10 / 7 and c3 = 1 / 7
Therefore
1 
 0

A = 
1 / 7 10 / 7 
Some Standard matrix simple transformations
5)
 x  − x  1 0 
Reflection about x-axis T   =   = 

 y   y  0 − 1
6)
Reflection about y-axis
 x  − x  1 0 
T  =   = 

 y   y  0 − 1
7)
Reflection about the line y = x
 x   y  0 1 
T  =   = 

 y   x  1 0
8)
Reflection about the line xy plane
 x   x  1 0 0 
T  y  =  y  = 0 1 0 
 z  − z  0 0 − 1
9)
Reflection about the line xz plane
 x   x  1 0 0
T  y  = − y  = 0 − 1 0 Graph is similar to the above case
 z   z  0 0 1
10)
Reflection about the line yz plane
 x   − x   − 1 0 0
T  y  =  y  =  0 1 0 Graph is similar to the above case
 z   z   0 0 1
11)
Orthogonal Projection on x – axis
11)
 x   x  1 0
T  =   = 

 y   0  0 0 
Orthogonal Projection on y – axis
 x   0  0 0 
T  =   = 

 y   x  0 1 
12)
Orthogonal Projection on xy plane or ( xz plane , yz plane )
 x   x  1 0 0
T  y  =  y  = 0 1 0
 z   0  0 0 0
13)
Rotation operators:
a)
by counter-clockwise ( positive rotation) by angle θ
cos 
R = 
 sin 
b)
− sin  
cos  
by clockwise ( negative rotation) by angle θ
 cos 
R− = 
− sin 
sin  
cos  
Example 8: What is the domain and co-domain of A has size 6 × 3.
The domain is in R 3 and the co-domain is in R 6
Example 9: What is the domain and co-domain of A if
a

2
1

c

0 0 −1
1 b
2
1 −1 c
2 e
e
1

d
The domain is in R 4 and the co-domain is in R 5

4

3 
Example 10: Use matrix multiplication to find the image of the vector (3, −4) when
it is rotated about the origin through an angle of θ =30º counter-clockwise
3 3

+
2


3
cos
30
ï‚°
−
sin
30
ï‚°
3
  
 
2
T  = 
=


 
− 4  sin 30 cos 30  − 4  3 − 2 3 
 2

II)
1.9 Composition of matrices transformations
If TA : R m → R n and TB : R k → R m then the composition of
TAB : (k ï‚´ m) ï‚´ (m ï‚´ n) = k ï‚´ n
We write
TBA = TB (TA X ) = TB  TA (X )
This is the composition transformation:
TB  TA (X )
4)
Find a standard matrix:
Example 11: Given transformations
T1 : R 3 → R 2 and T2 : R 2 → R 3
T1 ( x, y, z) = (3x − 2 y − z,−2x + y + 2z)
T2 ( x, y) = (2x + 5 y,−2x + y, x + 3 y)
Find a standard matrices
T2  T1 ( X ) and T1  T2 ( X )
 x
 x
   3 − 2 − 1 
 3 − 2 − 1
 y  → A1 = 

We see that T1  y  = 
−
2
1
2
−
2
1
2
 z 


z 
 
 
 2 5
 2 5
 x 


 x 
and T2   =  − 2 1   → A2 =  − 2 1 
 y   1 3  y 
 1 3




 2 5
  9 10 
 3 − 2 − 1
 − 2 1  = 

T2  T1 ( X ) = A2 A1 = 
2 
−
4
−
3
− 2 1



 1 3
 2 5
 − 4 1 8

 3 − 2 − 1 

 =  − 8 5 4 
and T1  T2 ( X ) = A1 A2 =  − 2 1 
2 
 1 3  − 2 1



 − 3 1 5
Note:
*
In general the multiplication is not commute, thus we have
T1  T2  T2  T1
*
The rotation transformations are commute
Example 12: Given transformations
 cos20 − sin 20 
 cos30 − sin 30 
 and R2 = 

R1 = 
 sin 20 cos20 
 sin 30 cos30 
We will see by inspection that if we rotate a vector by 20º then rotate it 30º more is the same as
rotating it by 30º then rotate 20º more. The total is 50º rotation.
 cos20 − sin 20   cos30 − sin 30   cos30 − sin 30  cos20 − sin 20 

 
 = 


 sin 20 cos20   sin 30 cos30   sin 30 cos30  sin 20 cos20 
 cos20 − sin 20   cos30 − sin 30   cos50 − sin 50 

 
 = 

 sin 20 cos20   sin 30 cos30   sin 50 cos50 
III)
The inverse of the transformation matrices
The inverse of TA  T2 I s defined as TA−1 = TA−1
The inverse of the transformation T A is related to T A
−1
−1
−1
TATA = TA TA = I n
Example 12: The inverse of R is R −
 cos( −20) − sin( −20)   cos(20) sin( 20) 
 cos20 − sin 20 
 = 
 R−20 = 

R20 = 
 sin (−20) cos( −20)   − sin (20) cos(20) 
 sin 20 cos20 
 cos20 − sin 20   cos(20) sin( 20)   1 0 
 
 = 

R20 R−20 = 
 sin 20 cos20   − sin (20) cos(20)   0 1 
5w1 − 6w2 = 4 x1
 w1 
Example 13: Find T −1   if
3w1 + 4w2 = 5 x1
 w2 
 5 − 6  w1   x1 

  =   or AW = X It is easy to solve for w. If A is invertible
 − 3 4  w2   x2 
A −1 AW = A −1 X  W = A −1 X
then we have:
We have
 5 − 6
1  4 6 1  4 6
  A −1 =

= 

The inverse of a 2×2 matrix is A = 
20 − 18  3 5  2  3 5 
− 3 4 
Therefore
w 
T −1  1  =
 w2 
1  4 6  w1   2w1 6 

  = 

2  3 5  w2   3 5 
Math 410, Linear Algebra
I)
Chapter 1.8
Fall 2020
Chapter 1.8 Linear Transformation
1)
Recall a vector in R n is called order n-tuples. It is represented by a column. But for convenient
we can write in a comma-delimited form (or sometimes I physics: Contravariant vector)
 x1 
 
 : 
x= : 
 
 : 
x 
 n
or x = ( x1 , x 2 ,……, x n )
And the standard basis vector associated with order n-tuples is
In R 3
e = (e1 , e2 , e3 )
Example 1:
We write a vector in R 3 in a standard basis vector as
1
0   0 


x = (3,−2,5) = 30 − 21 + 50
0
0 1
Recall that in Cal 1 a function f(x) is a transformation from a value x in R to a value f(x) in R
We say
f : x → f ( x)
In linear algebra we deal the same transformation with vectors in R n
T : Rn → Rm
2)
If the transformation is a matrix, we denote it as T A
The matrix transformation, transforms a vector x in R n to a vector w in R m .
The most easy way to find a standard matrix transformation is to observe the matrix operations
Properties: For a matrix transformation T with u.v be vectors and k be a scalar
The proof is specially easy and straight forward. Students try c) and d)
Example 2: Consider a system of linear equation: A matrix transformation TA : R 4 → R 3
That is we can write
 1 
 2 − 3 1 − 5    1 

 − 3   
T A ( X ) = AX =  4 1 − 2 1   =  3 
0
5 −1 4
0    8 

 2 
Example 3:
Some linear special transformations
Zero matrix transformation
T0 ( X ) = 0 X = 0
Example 4:
Identity matrix transformation ( linear )
TI ( X ) = IX = I transforms a matrix to it-self
3)
It is also obvious that the properties of matrices multiplications are compatible. Thus if
TA ( X ) = TB ( X ) → AX = BX then A = B
4)
Find a standard matrix:
Example 5:
If
TA : R 2 → R 4 and
 2x − 3y 
 2x − 3y 




 x   3x 
 x   3x 
T   = 
 Note, I usually write this instead of T  y  =  x + 2 y  It is the same
 y  x + 2y 
 


 − 2x + y 

− 2 x + y 

Then the matrix representation of T is
 2 − 3


0 
 3
, where A = 
1
2 


− 2 1 


2
 
1  3 
Or, slowly, we see T (e1 ) = T   =  
0  1 
 − 1
 
 − 3
 
0  0 
and T (e2 ) = T   =  
1  2 
 1 
 
 − 4
Example 6: Find the image of X =   under the transformation in example 5:
 5 
 2 − 3
 7 




0  − 4   − 12 
 − 4  3
 =
T   = 
2  5   6 
 5   1



− 2 1 
 13 




Example 7: Find a transformation that satisfies”
1  3
 − 2  3
T is 2×2 and T   =   and T   =  
 2  2
 3   4
Think this as
c
TA =  1
 c2
c3 
 . We have
c4 
 c1

 c3
c2  1   2 
c
  =   and  1
c4  2   3 
 c3
c2  − 2   3 
  =  
c4  3   4 
So that
 c1

 c3
c
And  1
 c3
c2  1   2 
  =    c1 + 2c2 = 2; c3 + 2c3 = 3
c4  2   3 
c2  − 2   3 
  =    − 2c1 + 3c2 = 3 and − 2c3 + 3c4 = 4
c4  3   4 
Now you can solve 2 2×2 systems with 4 unknowns: or
− 2c1 + 3c 2 = 3 and − 2c3 + 3c 4 = 4
 1

− 2
 0

 0

0  c1   2 
   
3 0 0  c 2   3 
=
0 1 2  c3   3 
   
0 − 2 3  c 4   4 
2
0
You can solve this 4×4 system.
Or simply we can solve it as the example 1.6


A = Te1 | Te2 as in the example 7(1.8) in the textbook
Here we have an augmented matrix for an 2 (2×2) system with the same coefficients
3   1 0 0 1/ 7 
 1 2 2 3 1 2 2 3  1 2 2

  
  
  

 − 2 3 3 4   0 7 7 10   0 1 1 10 / 7   0 1 1 10 / 7 
We have
c1 = 0 c2 = 1; c4 = 10 / 7 and c3 = 1 / 7
Therefore
1 
 0

A = 
1 / 7 10 / 7 
Some Standard matrix simple transformations
5)
 x  − x  1 0 
Reflection about x-axis T   =   = 

 y   y  0 − 1
6)
Reflection about y-axis
 x  − x  1 0 
T  =   = 

 y   y  0 − 1
7)
Reflection about the line y = x
 x   y  0 1 
T  =   = 

 y   x  1 0
8)
Reflection about the line xy plane
 x   x  1 0 0 
T  y  =  y  = 0 1 0 
 z  − z  0 0 − 1
9)
Reflection about the line xz plane
 x   x  1 0 0
T  y  = − y  = 0 − 1 0 Graph is similar to the above case
 z   z  0 0 1
10)
Reflection about the line yz plane
 x   − x   − 1 0 0
T  y  =  y  =  0 1 0 Graph is similar to the above case
 z   z   0 0 1
11)
Orthogonal Projection on x – axis
11)
 x   x  1 0
T  =   = 

 y   0  0 0 
Orthogonal Projection on y – axis
 x   0  0 0 
T  =   = 

 y   x  0 1 
12)
Orthogonal Projection on xy plane or ( xz plane , yz plane )
 x   x  1 0 0
T  y  =  y  = 0 1 0
 z   0  0 0 0
13)
Rotation operators:
a)
by counter-clockwise ( positive rotation) by angle θ
cos 
R = 
 sin 
b)
− sin  
cos  
by clockwise ( negative rotation) by angle θ
 cos 
R− = 
− sin 
sin  
cos  
Example 8: What is the domain and co-domain of A has size 6 × 3.
The domain is in R 3 and the co-domain is in R 6
Example 9: What is the domain and co-domain of A if
a

2
1

c

0 0 −1
1 b
2
1 −1 c
2 e
e
1

d
The domain is in R 4 and the co-domain is in R 5

4

3 
Example 10: Use matrix multiplication to find the image of the vector (3, −4) when
it is rotated about the origin through an angle of θ =30º counter-clockwise
3 3

+
2


3
cos
30
ï‚°
−
sin
30
ï‚°
3
  
 
2
T  = 
=


 
− 4  sin 30 cos 30  − 4  3 − 2 3 
 2

II)
1.9 Composition of matrices transformations
If TA : R m → R n and TB : R k → R m then the composition of
TAB : (k ï‚´ m) ï‚´ (m ï‚´ n) = k ï‚´ n
We write
TBA = TB (TA X ) = TB  TA (X )
This is the composition transformation:
TB  TA (X )
4)
Find a standard matrix:
Example 11: Given transformations
T1 : R 3 → R 2 and T2 : R 2 → R 3
T1 ( x, y, z) = (3x − 2 y − z,−2x + y + 2z)
T2 ( x, y) = (2x + 5 y,−2x + y, x + 3 y)
Find a standard matrices
T2  T1 ( X ) and T1  T2 ( X )
 x
 x
   3 − 2 − 1 
 3 − 2 − 1
 y  → A1 = 

We see that T1  y  = 
−
2
1
2
−
2
1
2
 z 


z 
 
 
 2 5
 2 5
 x 


 x 
and T2   =  − 2 1   → A2 =  − 2 1 
 y   1 3  y 
 1 3




 2 5
  9 10 
 3 − 2 − 1
 − 2 1  = 

T2  T1 ( X ) = A2 A1 = 
2 
−
4
−
3
− 2 1



 1 3
 2 5
 − 4 1 8

 3 − 2 − 1 

 =  − 8 5 4 
and T1  T2 ( X ) = A1 A2 =  − 2 1 
2 
 1 3  − 2 1



 − 3 1 5
Note:
*
In general the multiplication is not commute, thus we have
T1  T2  T2  T1
*
The rotation transformations are commute
Example 12: Given transformations
 cos20 − sin 20 
 cos30 − sin 30 
 and R2 = 

R1 = 
 sin 20 cos20 
 sin 30 cos30 
We will see by inspection that if we rotate a vector by 20º then rotate it 30º more is the same as
rotating it by 30º then rotate 20º more. The total is 50º rotation.
 cos20 − sin 20   cos30 − sin 30   cos30 − sin 30  cos20 − sin 20 

 
 = 


 sin 20 cos20   sin 30 cos30   sin 30 cos30  sin 20 cos20 
 cos20 − sin 20   cos30 − sin 30   cos50 − sin 50 

 
 = 

 sin 20 cos20   sin 30 cos30   sin 50 cos50 
III)
The inverse of the transformation matrices
The inverse of TA  T2 I s defined as TA−1 = TA−1
The inverse of the transformation T A is related to T A
−1
−1
−1
TATA = TA TA = I n
Example 12: The inverse of R is R −
 cos( −20) − sin( −20)   cos(20) sin( 20) 
 cos20 − sin 20 
 = 
 R−20 = 

R20 = 
 sin (−20) cos( −20)   − sin (20) cos(20) 
 sin 20 cos20 
 cos20 − sin 20   cos(20) sin( 20)   1 0 
 
 = 

R20 R−20 = 
 sin 20 cos20   − sin (20) cos(20)   0 1 
5w1 − 6w2 = 4 x1
 w1 
Example 13: Find T −1   if
3w1 + 4w2 = 5 x1
 w2 
 5 − 6  w1   x1 

  =   or AW = X It is easy to solve for w. If A is invertible
 − 3 4  w2   x2 
A −1 AW = A −1 X  W = A −1 X
then we have:
We have
 5 − 6
1  4 6 1  4 6
  A −1 =

= 

The inverse of a 2×2 matrix is A = 
20 − 18  3 5  2  3 5 
− 3 4 
Therefore
w 
T −1  1  =
 w2 
1  4 6  w1   2w1 6 

  = 

2  3 5  w2   3 5 
Math 410, Linear Algebra
Fall 2020
LESSON 1
SYSTEM OF LINEAR EQUATIONS
I)
Matrices
We are starting with some of the basic notation for matrices.
An mï‚´ n matrix is a matrix with n rows and m columns, dented by Amn
This is often called the size or dimension of the matrix. (Historically they are
called arrays of entries).
The elements a ij is also called the entry of the i of the matrix Aij . The indices i
and j indicate the ith row and jth column. A matrix in general, can be presented as
follows
Amn
II)
 a11

 a 21
 .
=
 .
 .

a
 m1
a12
a 22
.
.
.
am2
…….. a1n 

…….. a 2 n 

……..

……..


……..

…….. a mn 
A system of Linear Equations
Examples of how to use the matrices in the linear algebra
Example 1:
A single linear equation
2x + 3 y − z = 1
can be written as
2
(1)
3 − 1 = 1
The LHS (left hand side) of this equation is a 3 x 1 matrix and the RHS (left hand side) ia a
1×1 matrix.
This equation has 2 parts
i)
2 3 − 1 = 0 is called the homogeneous equation associated of (1)
ii)
2 3 − 1 = 1 is called the non- homogeneous equation associated of (1)
Example 2:
A system of equations
2 x + 3 y − z = 1

x − 2 y = 3
can be written as:
 2 3 − 1 1


 1 − 2 0 3


(2)
The zero of the 2×3 entry appears, since there is no z-value , i.e. 0z
This form of matrix is called the augmented matrix
Again, the system has 2 parts
III)
 2 3 −1 0
 is is called the homogeneous equation associated of (2)
i) 

 1 − 2 0 0
 2 3 − 1 1
 is called the non- homogeneous equation associated of (2)
ii) 

1
−
2
0
3


Row echelon and reduced row echelon forms
1. To determine the solution to a system, we need to have the augmented matrix in a
form where the values of the variables or the relation between the variables can be
identified.
2. A matrix that has three properties is said to be in row echelon form (ref).
a. The first nonzero entry in a row is 1. This is called a leading 1.
b. Any rows that consist entirely of zeros are grouped together at the bottom
of the matrix.
c. In any two successive rows that have nonzero entries, the leading 1 in the
lower row occurs farther to the right than the leading 1 in the higher row.
Example 3: The row echelon forms (ref)
1 1 2 


a)  0 1 − 1
0 0 0 


b)
1 0 2 


 0 1 − 1
0 0 1 


c)
1 0 0 


 0 1 − 1
0 0 1 


3. A matrix in reduced row echelon form (rref) is such a matrix. It has the
following properties:
a. The first nonzero entry in a row is 1. This is called a leading 1.
b. Any rows that consist entirely of zeros are grouped together at the bottom
of the matrix.
c. In any two successive rows that have nonzero entries, the leading 1 in the
lower row occurs farther to the right than the leading 1 in the higher row.
d. Each column that contains a leading 1 has zeros everywhere else in that
column.
Example 4: The reduced row echelon forms (rref)
a)
1 0 0


 0 1 0
 0 0 0


b)
1 0 0


 0 1 0
0 0 1


c)
1 0 0


 0 0 0
 0 0 0


Example 5 The following matrices are neither in ref or rref
a)
1 0 0


 0 0 0
0 0 1


b)
1 0 0


0 1 0
 0 0 2


c)
 0 0 0


 0 1 0
 0 0 0


4. In general, the variables in a linear system that correspond to the leading 1’s in its
augmented matrix are called the leading variables, and the remaining variables
are called the free variables.
5. If a linear system has infinitely many solutions, then a set of parametric equations
from which all the solutions can be obtained is called a general solution of the
system.
6. Gauss‐Jordan elimination is an algorithm for reducing a matrix to reduced row
echelon form. There are two parts: in the forward phase, zeros are introduced
beneath the leading 1’s, and a backward phase in which zeros are introduced
above the leading 1’s.
The top left nonzero entry is scaled to be 1, and then for each nonzero entry below
this 1, the opposite of the entry below is multiplied by the row with the leading 1
and added to the row containing the nonzero entry. The result of this will be only
zeros below the leading 1. When each column consists of a leading 1 and zeros
below, we move onto the next column containing a pivot element and repeat the
process. When all of the leading 1s have zeros below (the forward phase), the
process is done moving from right to left, to zero out the entries above the leading
1s (the backward phase).
7. If only the forward phase is used, then the procedure produces a row echelon form
and is called Gaussian elimination.
8. A system of m linear equations with n unknowns is said to be homogeneous if
the constant terms are all zero.
n
 a1 j x j = 0
 j =1
n
 a 2 j x j = 0
 j =1

:
:

n
 a mj x j = 0
 j =1

(1)
(2)
(m)
The summation is sum on the index
n
a
j =1
1j
x j = a11 x1 + a12 x2 + a13 x3 +    + a1n xn
9. Every homogeneous system of linear equations is consistent because all such
systems have the solution x1 = 0, x2 = 0,…,xn = 0. This solution is called the trivial
solution. If there are other solutions, they are called nontrivial solutions.
10. Every homogeneous linear system has two following possibilities:
a) The system has only the trivial solution.
b) The system has infinitely many solutions (in addition to the trivial
solution).
Example 5: In practice, the augmented matrix is written without vertical line
The system with augmented matrix (without the vertical line)
 1 −1 1 0


 2 1 − 4 0  possesses trivial solution (0,0,0) AND (1, − 2,1)
 1 − 2 3 0


But the system
 1 −1 1 0


 2 1 − 4 0  possesses only trivial solution (0, 0, 0)
 1 − 2 −1 0


11. If a homogeneous linear system has n unknowns and the reduced row echelon
form of its augmented matrix has r nonzero rows, then the system has n − r free
variables.for
Example 6: The augmented (with vertical line for beginners)
The rref of a system is (5 unknowns and 2 rows of zeros)
The solution will have 5 – 2 = 3 free unknowns
1

0
0

0

0
0 0 0 0 0

1 0 0 0 0
0 1 0 0 0

0 0 0 0 0

0 0 0 0 0
12. A homogeneous linear system with more unknowns than equations must have at
least one free variable, and thus it has infinitely many solutions.
Example 7: Systems of 3 equations and 4 unknowns
2 2 1 0
 2


 1 − 1 3 1 0  possesses many solutions13. For large linear systems that
 − 2 2 0 1 0


require a computer solution, it is generally more efficient to use Gaussian elimination
to reduce a matrix to row echelon form, and then solve for the variables using
back‐substitution. In back‐substitution, we start with the bottom row, determine the
value of the variable, and move up the rows, solving for each variable by substituting
values as we determine them.
13. Every matrix the reduced row echelon form (rref) is unique, regardless of the
sequence of elementary row operations used to obtain it.
14. Row echelon forms (ref) of a matrix are (not unique).
15. The reduced row echelon form and all row echelon forms of a matrix A have the
same number of zero rows, and the leading 1’s always occur in the same positions.
These are called the pivot positions of A.
16. The columns containing the leading 1’s are called the pivot columns of A, and
the rows containing the leading 1’s are called the pivot rows of A.
17. When having a computer implement row reduction algorithms, it is possible
that round off errors are introduced. Such algorithms are called unstable, and
there are techniques for minimizing erroneous results due to such errors.
The following examples will further clarify the concepts:
IV)
Elementary row operation (ERO)
1. Multiply a row (an equation) by a non zero constant
2. Interchange 2 rows ( 2 equations)
3. Add a constant times one row (one equation) to another
Example 8: Gaussian eliminations:
x − 2 y = 3

2 x + 3 y = 1
From the augmented matrix:
1 − 2 3 
1 − 2 3 
1 − 2 3 

 (1) → 


(2) → 
 2 3 − 1
0 7 − 7
 0 1 − 1
Here we have 2 elementary row operations (ERO)
i)
ERO1: Row 2 replaced by Row2 – 2 times row 1 R2 → R2 − 2R1
−1
R2 →
R2 − 2 R1
ii)
ERO2: Row 2 replaced by (-1/7)time row2
7
After 2 Eos we come up with ref. If we stop here, then it is called Gauss-eleimination
From here, we see that y = − 1. We can find x by back substitution
From the last matrix,
Solve
x − 2 y = 3 , it is easy to see that x = 1. Thus the solution is ( x, y ) = (1,−1)
Example 9: Gauss-Jordan eliminations:
We will continue the last matrix of the Example 8 above
1 − 2 3 
1 − 2 3 
1 0 1 

 (3) → 
 (4) → 

 0 1 − 1
 0 1 − 1
 0 1 − 1
iii)
EO3: Row 1 replaced by Row1 + 2 time row2 R1 → R1 + 2R1
Now the last matrix represents an rref of the system:
and the solution is (1,−1)
Before we go further, pay attention to the facts:
a) The Gauss-elimination leads to the row echelon form (REF) and
b) The Gauss-Jordan elimination leads to the reducedrow echelon form (RREF)
V)
Back substitution and/ or Gauss-Jordan:
Example 10:
Find the general solution for the system:
x1 + 2 x 2 − x3 + 3x 4 − 2 x5 = 2
(1)
2 x1 + x 2 + x3 + 5 x 4 + 2 x5 = 1
(2)
3×1 + 5 x 2 − 3×3 + 7 x 4 − x5 = 5 (3)
We know that ( by III-4) the solution will have 2 free variables ( 5 unknowns and 3 equations).
So we will go ahead and let
x4 = t and x5 = s
x1 + 2 x 2 − x3 + 3t − 2s = 2 (1)
2 x1 + x 2 + x3 + 5t + 2s = 1
(2)
3×1 + 5 x 2 − 3×3 + 7t − s = 5 (3)
Augmented matrix
 1 2 −1 3 − 2 2


 2 1 1 5 2 1  First, we will have 2 (ERO)
 3 5 − 3 7 −1 5


R2 → R2 − 2R1 and R3 → R3 − 3R1 :
1 2 −1 3 − 2 2 


 0 − 3 3 − 1 6 − 3
 0 − 1 0 − 2 5 − 1


we perform 2 more EROs R2  R3 and R3 → R3 − 3R2 :
1 2 −1 3 − 2 2 
1 2 −1 3 − 2 2 




 0 − 1 0 − 2 5 − 1  →  0 − 1 0 − 2 5 − 1
 0 − 3 3 − 1 6 − 3
0 0 3
5 − 9 0 



1
R1 → R1 − R2 and then R1 → R1 + 2R2 :
3
We can perform back- substitution from here. But we go further:
 1 2 0 14 / 3 − 5 2   1 0 0 14 / 3 − 5 2 

 

→ 0 −1 0 − 2
5 − 1 →  0 − 1 0 − 2
5 − 1
0 0 3
5
− 9 0   0 0 3
5
− 9 0 

Finally R2 → − R2 and R3 →
 1 0 0 14 / 3 − 5 2 


→ 0 1 0
2
− 5 1
0 0 1 5 / 3 − 3 0


1
R3 :
3
This problem, I used 8 Gauss-Jordan EROs (maximum is 9 for a 3 variables) and get rref
Therefore, we write the solution in terms of free variable t and s
= 2 − 14t / 3 + 5s
x1
x2
= 1 − 2t + 5s
x3 = 0 − 5t / 3 + 3s
This is a parametric solution ( 2-parameter) for the system.
The next step is to go ahead that what we will come up to ( in the vector form):
 x1   2   − 14 / 3   5 
    
  
 x 2  =  1  +  − 2 t +  5  s
 x   0   5   3
 3   
  
The second vector can be extended by a scaler either 3 or -3
 x1   2   − 14   5 
    
  
 x 2  =  1  +  − 6 t +  5  s
 x   0   15   3 
 3   
  
This is a plane which is passing the point (2,1,0) and containing the 2 vectors
(-14,-6, 15) and ( 5, 5, 3). Later ih the chapter 4 we will examine further ( or in the Calculus 3)
VI) Consistent and Inconsistent systems:
In algebra and calculus 1 we already study the solution of the algebraic equation:
To make it simple
Example 11:
a)
b)
c)
b
is consistent if a ≠ 0
a
0
The equation 0x = 0 gives x = is consistent
0
b
The equation 0x = b gives x = is inconsistent for any b
0
The equation
ax = b gives x =
The casea a, b are consistents ( there is solution(s)).
Case a) the solution is unique
Case b) the solution is not unique
Case c) the solution does not exist (DNE)
Example 12: Discuss the value (s) of a so that the solution
i)
ii)
iii)
DNE
unique
is not unique. Solve this case.
x − ay = 2
2x + 3 y = 6
The augmented matrix is
2
1 − a


ERO: R2 → R2 − 2R1
2
3
6


Note: In practice we knew that the row 2 will be replaced by a new row 2, therefore, we write
ERO1 :
R2 − 2R1 ( means R2 → R2 − 2R1 ) then ERO1 :
R2 →
R2
3 + 2a
2 
−a
2   1 − a
1
2 

 →


2
0 1
 0 3 + 2a
3 + 2a 

Now, back-substitution ( but we don’t have to, since the solution for y is now
2
y=
3 + 2a
0
This solution tell us that we won’t have case b) as explained in the example 11 b) :  
0
Therefore,
3
a)
The solution is unique when a  −
2
3
b)
There is no solution when a = −
2
c)
No.
VII) Matrices operations
Matrix addition. If A and B are matrices of the same size, then they can be added.
(This is similar to the restriction on adding vectors, namely, only vectors from the same
space R n can be added; you cannot add a 2‐vector to a 3‐vector, for example.) If A = [aij]
and B = [bij] are both m x n matrices, then their sum, C = A + B, is also
an m x n matrix, and its entries are given by the formula
cij = aij + bij
Thus, to find the entries of A + B, simply add the corresponding entries of A and B.
Example 13: Consider the following matrices:
Which two can be added? What is their sum?
Since only matrices of the same size can be added, only the sum F + H is defined
(G cannot be added to either F or H). The sum of F and H is
Since addition of real numbers is commutative, it follows that addition of matrices (when
it is defined) is also commutative; that is, for any matrices A and B of the same
size, A + B will always equal B + A.
Example 14: If any matrix A is added to the zero matrix of the same size, the result is
clearly equal to A:
This is the matrix analog of the statement a + 0 = 0 + a = a, which expresses the fact that
the number 0 is the additive identity in the set of real numbers.
Example 15: Find the matrix B such that A + B = C, where
If
then the matrix equation A + B = C becomes
This is easy to see
b11 = 1 , b12 = −1, b21 = −3 and b22 = −2
Therefore,
 1 − 1
B=

 − 3 − 2
This example motivates the definition of matrix subtraction: If A and B are matrices of
the same size, then the entries of A − B are found by simply subracting the entries
of B from the corresponding entries of A. Since the equation A + B = C is equivalent
to B = C − A, employing matrix subtraction above would yield the same result:
VIII Matrices multiplication.
1)
Scalar Multiplication
A scalar k with a matrix is multiply k with all entries of the matrix. If A = [aij] is a
matrix and k is a scalar, then
That is, the matrix kA is obtained by multiplying each entry of A by k.
Example 16: If
then the scalar multiple 3 or -5 with A are obtained by multiplying every entry of A by 3
or -5:
0
15 
 3 0 − 9
− 5
3A = 
and − 5A = 


− 6 12 3 
 10 − 20 − 5
Example 17: If A and B are matrices of the same size, then A − B = A + (− B), where
− B is the scalar multiple (−1) B. If
then
Example 18: If
then
But A+B is not possible (not compatible under addition, since they are not the same size)
2)
Matrices Multiplication: The matrix A and B can be multiplied if they
are compatible under the matrices multiplication rule:
Given Amn and Bqp .
Amn ï‚´ Bqp is compatible if n = q and the result matric C mp , i.e:
Amn ï‚´ Bqp = C mp
It is not necessary that B ï‚´ A is multiplication compatible.
The entries of C = (AB) can be found by the rule
p
cij = ( AB) ij = (row i of A)  (col j of B) =  aik bkj
k =1
For example c35 = ( AB) 35 = dot product of (row 3of A)  (col 5 of B)
Note that, in general
AB ≠ BA
The matrix m x n matrix A as composed of the row vectors r1, r2,…, rm from Rn and
the n x p matrix B as composed of the column vectors c1, c2,…, cp from Rn,
and
the rule for computing the entries of the matrix product AB is r i · c j = ( AB) ij , that is,
Example 19: Given the two matrices
determine which matrix product, AB or BA, is defined and evaluate it
Note that A is A is 2 ï‚´ 3 and B is 3 ï‚´ 4 . So AB is compatible but BA is not.
Therefore
0 4 1
1
 1 0 − 3 
C = A B = 
 − 2 3 − 1 5 is a C is 2  4

− 2 4 1   0 − 1 2 1


Now
3
cij =  aik bkj .
k =1
3
c11 =  a1k bk1 = a11b11 + a12b21 + a13b31 = 1 + 0 + 0 = 1 (dot product of row 1 and column 1)
k =1
3
c12 =  a1k bk 2 = a11b12 + a12b22 + a13b32 = 0 + 0 + 3 = 3 (dot product of row 1 and column 2)
k =1
And so on.,, We will have
Example 20: If
and
compute the (3, 5) entry of the product CD.
First, note that since C is 4 x 5 and D is 5 x 6, the product CD is indeed defined, and its
size is 4 x 6. However, there is no need to compute all twenty‐four entries of CD if only
one particular entry is desired. The (3, 5) entry of CD is the dot product of row 3 in C and
column 5 in D:
Example 21: We will see that AB ≠ BA in the following example:
Note that
while
Math 410, Linear Algebra
Fall 2020
Matrices operations
I)
Matrix addition
If A and B are matrices of the same size, then they can be added. (This is similar to
the restriction on adding vectors,
namely, only vectors from the same space R n can
be added; you cannot add a 2‐vector to a 3‐vector, for example.) If A = [aij] and B = [bij]
are both m x n matrices, then their sum, C = A + B, is also an m x n matrix, and its
entries are given by the formula
cij = aij + bij
Thus, to find the entries of A + B, simply add the corresponding entries of A and B.
Example 1: Consider the following matrices:
Which two can be added? What is their sum?
Since only matrices of the same size can be added, only the sum F + H is defined
(G cannot be added to either F or H). The sum of F and H is
Since addition of real numbers is commutative, it follows that addition of matrices (when
it is defined) is also commutative; that is, for any matrices A and B of the same
size, A + B will always equal B + A.
Example 2: If any matrix A is added to the zero matrix of the same size, the result is
clearly equal to A:
This is the matrix analog of the statement a + 0 = 0 + a = a, which expresses the fact that
the number 0 is the additive identity in the set of real numbers.
Example 3: Find the matrix B such that A + B = C, where
If
then the matrix equation A + B = C becomes
This is easy to see
b11 = 1 , b12 = −1, b21 = −3 and b22 = −2
Therefore,
 1 − 1
B=

 − 3 − 2
This example motivates the definition of matrix subtraction: If A and B are matrices of
the same size, then the entries of A − B are found by simply subracting the entries
of B from the corresponding entries of A. Since the equation A + B = C is equivalent
to B = C − A, employing matrix subtraction above would yield the same result:
II) Matrices multiplication.
1)
Scalar Multiplication
A scalar k with a matrix is multiply k with all entries of the matrix. If A = [aij] is a
matrix and k is a scalar, then
That is, the matrix kA is obtained by multiplying each entry of A by k.
Example 4: If
then the scalar multiple 3 or -5 with A are obtained by multiplying every entry of A by 3
or -5:
0
15 
 3 0 − 9
− 5
3A = 
− 5A = 


− 6 12 3  and
 10 − 20 − 5
Example 5: If A and B are matrices of the same size, then A − B = A + (− B), where
− B is the scalar multiple (−1) B. If
then
Example 6: If
then
But A+B is not possible (not compatible under addition, since they are not the same size)
2)
Matrices Multiplication: The matrix A and B can be multiplied if they
are compatible under the matrices multiplication rule:
Given
Amn ï‚´ Bqp
Amn and Bqp
.
C
is compatible if n = q and the result matric mp , i.e:
Amn ï‚´ Bqp = C mp
It is not necessary that B ï‚´ A is multiplication compatible.
The entries of C = (AB) can be found by the rule
p
cij = ( AB) ij = (row i of A)  (col j of B) =  aik bkj
k =1
For example c35 = ( AB) 35 = dot product of (row 3of A)  (col 5 of B)
Note that, in general
AB ≠ BA
The matrix m x n matrix A as composed of the row vectors r1, r2,…, rm from Rn and
the n x p matrix B as composed of the column vectors c1, c2,…, cp from Rn,
and
the rule for computing the entries of the matrix product AB is r i · c j = ( AB) ij , that is,
Example 7: Given the two matrices
determine which matrix product, AB or BA, is defined and evaluate it
Note that A is A is 2 ï‚´ 3 and B is 3 ï‚´ 4 . So AB is compatible but BA is not.
Therefore
0 4 1
1
 1 0 − 3 
C = A B = 
 − 2 3 − 1 5

− 2 4 1   0 − 1 2 1

 is a C is 2  4
Now
3
cij =  aik bkj
k =1
.
3
c11 =  a1k bk1 = a11b11 + a12b21 + a13b31 = 1 + 0 + 0 = 1
k =1
(dot product of row 1 and column 1)
3
c12 =  a1k bk 2 = a11b12 + a12b22 + a13b32 = 0 + 0 + 3 = 3
k =1
(dot product of row 1 and column 2)
And so on.,, We will have
Example 8: If
and
compute the (3,5) entry of the product CD.
First, note that since C is 4 x 5 and D is 5 x 6, the product CD is indeed defined, and its
size is 4 x 6. However, there is no need to compute all twenty‐four entries of CD if only
one particular entry is desired. The (3, 5) entry of CD is the dot product of row 3 in C and
column 5 in D:
Example 9: We will see that AB ≠ BA in the following example:
Note that
while
III) Properties of Matrices:
Properties of Matrix Arithmetic. For scalars a, b and matrices A,B,C
The following rules of matrix arithmetic are valid with assumptions that the
matrices are compatible under the addition and multiplication
a.
b.
c.
d.
e.
f.
g.
h.
i.
1)
2)
A+B=B+A [Commutative law for matrix addition]
A+(B+C)=(A+B)+C [Associative law for matrix addition]
A(BC)=(AB)C [Associative law for matrix multiplication]
A(B+C)=AB+AC [Left distributive law]
(B+C)A=BA+CA n
(a+b)C=aC+bC
(a–b)C=aC–bC
a(bC)=(ab)C
a(BC)=(aB)C=B(aC)
There are identity square matrices I nn and square matrices Ann such that
IA = AI
such that square matrix Ann for which
If there exists a matrix Bnn
Bnn Ann = Bnn Ann = I nn
Then A and B are the inverse of each other. It is denoted by A −1 or B −1
They are called non-singular matrices.
If there is such B then A is called a singular matrix
3)
4)
If B and C are inverses of A, then B = C
For a 2×2 matrix
a b 
A=
.
c d 
a b 

Note : It is valid to use the matrix notation A = 
c d 
The inverse of A denoted by A −1 is given by A −1 =
1  d − b


ad − bc  − c a 
 1 3
1 4 − 3 1 4 − 3
Example 10: A = 
then A =
=

4 + 6 2 1  10 2 1 
 − 2 4
5)
6)
7)
The inverse of a product:
( AB) −1 = B −1 A −1
The inverse of inverse of A is A it-self ( A −1 ) −1 = B −1 A −1
The exponent of a square matrix. For n integers
( ) ( )
n
A −n = A −1 = A n
Ar A s = Ar + s
s
A r = A rs .
−1
( )
8)
Transpose properties
(A )
T T
=A
( A  B )T = AT  B T
(kA)T = kAT
( AB )T = B T AT
9)
If A is an invertible matrix, then A T is also invertible and
(A )
T −1
10)
( )
= A −1
T
Special identity (Pascal Triangle Coefficients of Binomial is hold)
( A + B )2
= A 2 + 2 AB + B 2
Example 11:
(2 A)2 = ( A + A)2
Therefore
= A 2 + 2 AA + A 2 = 4 A 2
(kA)2
= k 2 A2
Proof: Let this for students (use the induction method)
11)
Polynomial of matrices:
p( A) = a n A n + a n −1 A n −1 + ….. + a 2 A 2 + a1 A + a 0
Math 410, Linear Algebra
1)
Chapter 1.5
Fall 2020
Elementary Matrices in Finding the Inverse Matrix A −1
In previous sections, we know that there are only 3 types of elementary row
operations (ERO)
1)
Add a row with multiple of the other rows R j → R j + aRi
2)
Replace a row by its multiple. R j → aR j
3)
Interchange 2 rows. R j ï‚« Ri
Any matrix resulted by a sequences of EROs are equivalent matrices.
 1 − 1
Example 1: Given the matrix A = 
 . We wifh to apply some EROs to reduce
 − 3 − 2
A into a ref or ref form
 1 − 1 1 − 1 1 − 1 1 0
 − 3 − 2 →

 →
 →


 E11 0 − 5 E2 0 1  E3 0 1
In this demonstration, we apply 3 EROs. These EROs are obtained by performing same
EROs on the Identity matrix:
They are:
1 0
1 0
E1 → 
→

 which is R2 → R2 + 3R1
0 1 
3 1
0 
1 0
1
R
E2 → 
→
which is R2 → 2


−5
0 1 
0 − 1 / 5
1 0
1 1
E3 → 
→


0 1 
0 1
In short, we have:
which is R1 → R1 + R2
0  1 0  1 − 1 1 0
1 1 1
0 1 0 − 1 / 5 3 1 − 3 − 2 = 0 1




 

The sequence of ERO’s lead to
E3 E2 E1 A = I
2)
The inverses of elementary matrices The inverses of elementary matrices
are also elementary matrices and they can be found as follow:
1)
Add a row with multiple of the other rows R j → R j + aRi
2)
Replace a row by its multiple. R j → aR j
3)
Interchange 2 rows. R j ï‚« Ri
1)
If E = R j → R j + aRi then E = E −1 = R j → R j − aRi
2)
If R j → aR j then E = E −1 = R j →
3)
If R j  Ri then E = E −1 = R j  Ri
1
Rj
a
Example 2:
3)
a)
1 3
1 − 3
E=
→ E −1 = 


0 1
0 1 
b)
1 0 0
1 0 0 


−1
E = 0 1 0 → E = 0 1 0 
0 0 4
0 0 1 / 4
c)
1 0 0
1 0 0


−1
E = 0 1 0 → E = 0 1 0
0 2 1
0 − 2 1
The inverses of elementary matrices
From the EROs on a matrix A, we have
E3 E2 E1 A = I
Now, we appliy from the left of this equation by inverse elementary matrices
E1−1 E 2−1 E3−1 E3 E 2 E1 A = E1−1 E 2−1 E3−1 I
E1−1 E 2−1 E 2 E1 A = E1−1 E 2−1 E3−1 I → E1−1 E1 A = E1−1 E 2−1 E3−1 I → A = E1−1 E 2−1 E3−1


I
I
This is how we decomposed the matrix A in to product of the elementary matrices
A = E1−1 E2−1 E3−1
Reversely, from
both sides,
E3 E2 E1 A = I we operate( on the right) by the matrix inverse of A
We have:
E3 E 2 E1 AA −1 = IA −1 → A −1 = E3 E 2 E1
In general an invertible matrix can be decomposed in to the product of the k elementary
matrices
A = E1−1 E 2−1 E3−1 ….E k−−11 E k−1
Also, the inverse of a matrix A can be found by product of the k elementary matrices
A −1 = E k E k −1 …….E 2 E1
Example 3: Find the inverse of
1 2 6
A = 1 3 4
1 1 2
We will try to make equivalent to Identity through EROs
6
1 2 6
1 2 6 
1 2
1 3 4 → ( E = R → R − R ) → 0 1 − 2 → ( E = R → R − R ) → 0 1 − 2
1
2
2
1
2
3
3
1






1 1 2
1 1 2 
0 − 1 − 4
6
1 2
1 2 1 
1 2 1 
R
0 1 − 2 ( E : R → R + R ) → 0 1 − 2 ( E : R → 3 ) → 0 1 − 2
3
2

 3 3

 4 3


−6
0 − 1 − 4
0 0 − 6
0 0 1 
1 2 1 
1 2 1
1 2 0
0 1 − 2 ( E : R → R + 2 R ) → 0 1 0( E : R → R − R ) → 0 1 0
2
3
1
3

 5 2

 6 1


0 0 1 
0 0 1
0 0 1
1 2 0
1 0 0
0 1 0 E : R → R − 2 R ) → 0 1 0
1
2

 7 1


0 0 1
0 0 1
Following the EROs we have:
0 
 1 0 0
 1 0 0
1 0 0
1 0







E1 = − 1 1 0 E 2 =  0 1 0 E3 = 0 1 0 E 4 = 0 1
0 
 0 0 1
− 1 0 1
0 1 1
0 0 − 1 / 6
1 0 0
1 0 − 1
1 − 2 0




E5 = 0 1 2 E6 = 0 1 0  E7 = 0 1 0
0 0 1
0 0 1 
0 0 1
It follows:
−1
1
1 0 0
1 0 0
1 0 0
1 0 0 






−1
−1
−1
= 1 1 0 E 2 = 0 1 0 E3 = 0 1 0 E 4 = 0 1 0 
0 0 1
1 0 1
0 − 1 1
0 0 − 6
−1
5
1 0 0 
1 0 1
1 2 0




−1
−1
= 0 1 − 2 E6 = 0 1 0 E7 = 0 1 0
0 0 1 
0 0 1
0 0 1
E
E
We have
A = E1−1 E 2−1 E3−1 E 4−1 E5−1 E 6−1 E 7−1
1 0 0 1 0 0 1 0 0 1 0 0  1 0 0  1 0 1 1 2 0
A = 1 1 0 0 1 0 0 1 0 0 1 0  0 1 − 2 0 1 0 0 1 0
0 0 1 1 0 1 0 − 1 1 0 0 − 6 0 0 1  0 0 1 0 0 1
And the inverse of A is A −1 = E 7 E 6 E5 E 4 E3 E 2 E1
0  1 0 0  1 0 0  1 0 0
1 − 2 0 1 0 − 1 1 0 0 1 0







A = 0 1 0 0 1 0  0 1 2 0 1
0  0 1 0  0 1 0 − 1 1 0
0 0 1 0 0 1  0 0 1 0 0 − 1 / 6 0 1 1 − 1 0 1  0 0 1
−1
The inverse of a 2×2 matrix is given by
a b 
A=

c d 
3)
A −1 =
1  d − b
ad − bc − c a 
Solve a linear system:
A system of equations can have no solution, unique solution od many solutions
This is th coincidence of the algebra:
If x =
1
a
0
: no solution; x = is unique, for b  0 or x = has many solutions
0
b
0
But in the matrices algebra, we can divide a matrix. The following example will show
A system can be written in the form:
AX = b
In the chapter 1.1, 1.2 we examined the solution for the general system of linear
equations. Now we are narrow to the case of the number of unknowns is the same
number of equation. This tell that A is a square matrix :
AX = b
A be a n ï‚´ n ; X and B are n ï‚´ 1 matrices
The solution of this equation has two parts
X = X H + X p the homogeneous solution and a particular solution according to
the systems with solution satisfying
AX H = 0 and AX p = b
In general AX = b has unique solution if the inverse of A exists, then
A -1 AX = A −1b  X = A −1b .
In this case, we only have the particular solution, the homogeneous solution is 0
Example 4: Solve:
2 x + 4 y = 10
3x + 7 y = 5
This can be written as AX = b
 2 4
 x
10 
Where A = 
; X =  ; b ==  

3 7 
 y
5
 2 4
1  7 − 410 
We have A = 
 
X = A −1b  X =

14 − 12 − 3 2  5 
3 7 
X =
1  7 − 410  1  70 − 20  1  50   25 
 = 
= 
=

14 − 12 − 3 2  5  2  − 30 + 10  2  − 20   − 10 
Therefore
5)
x = 25 and y = -10
Solve a linear system:
Math 410, Linear Algebra
Fall 2020
Elementary Matrices in Finding the Inverse Matrix A −1
I)
Elementary Matrices:
In previous sections, we know that there are only 3 types of elementary row
operations (ERO)
1)
Add a row with multiple of the other rows R j → R j + aRi
2)
Replace a row by its multiple. R j → aR j
3)
Interchange 2 rows. R j ï‚« Ri
Any matrix resulted by a sequences of EROs are equivalent matrices.
The 3 equivalent elementary matrices associated with EROs are obtained from the
identity matrices with the same row operation
Example 1
•
A solution of a linear system in n unknowns can be written as an
ordered n‐tuple: (s1,s2,…,sn).
•
The set of all ordered n‐tuples of real numbers is denoted by the symbol Rn, and
elements of Rn are called vectors.
•
Vectors are denoted in boldface type, such as a, b, v, w, and x. The following are
two common ways of writing vectors.
a. Comma‐delimited form: (s1,s2,…,sn)
b. Column‐vector form: [s1s2⋮sn]
•
The standard basis vectors for Rn are denoted by e1, e2,…,en.
e1=[100⋮0], e2=[010⋮0], …, en=[000⋮1]
•
For x = (x1, x2,…, xn), we can express x as x = x1e1 + x2e2 +⋯+ xnen.
If A and B are matrices of the same size, then they can be added. (This is similar to
the restriction on adding vectors,
namely, only vectors from the same space R n can
be added; you cannot add a 2‐vector to a 3‐vector, for example.) If A = [aij] and B = [bij]
are both m x n matrices, then their sum, C = A + B, is also an m x n matrix, and its
entries are given by the formula
cij = aij + bij
Thus, to find the entries of A + B, simply add the corresponding entries of A and B.
Example 1: Consider the following matrices:
Which two can be added? What is their sum?
Since only matrices of the same size can be added, only the sum F + H is defined
(G cannot be added to either F or H). The sum of F and H is
Since addition of real numbers is commutative, it follows that addition of matrices (when
it is defined) is also commutative; that is, for any matrices A and B of the same
size, A + B will always equal B + A.
Example 2: If any matrix A is added to the zero matrix of the same size, the result is
clearly equal to A:
This is the matrix analog of the statement a + 0 = 0 + a = a, which expresses the fact that
the number 0 is the additive identity in the set of real numbers.
Example 3: Find the matrix B such that A + B = C, where
If
then the matrix equation A + B = C becomes
This is easy to see
b11 = 1 , b12 = −1, b21 = −3 and b22 = −2
Therefore,
 1 − 1
B=

 − 3 − 2
This example motivates the definition of matrix subtraction: If A and B are matrices of
the same size, then the entries of A − B are found by simply subracting the entries
of B from the corresponding entries of A. Since the equation A + B = C is equivalent
to B = C − A, employing matrix subtraction above would yield the same result:
II) Matrices multiplication.
1)
Scalar Multiplication
A scalar k with a matrix is multiply k with all entries of the matrix. If A = [aij] is a
matrix and k is a scalar, then
That is, the matrix kA is obtained by multiplying each entry of A by k.
Example 4: If
then the scalar multiple 3 or -5 with A are obtained by multiplying every entry of A by 3
or -5:
0
15 
 3 0 − 9
− 5
3A = 
− 5A = 


− 6 12 3  and
 10 − 20 − 5
Example 5: If A and B are matrices of the same size, then A − B = A + (− B), where
− B is the scalar multiple (−1) B. If
then
Example 6: If
then
But A+B is not possible (not compatible under addition, since they are not the same size)
2)
Matrices Multiplication: The matrix A and B can be multiplied if they
are compatible under the matrices multiplication rule:
Given
Amn and Bqp
.
Amn ï‚´ Bqp
C
is compatible if n = q and the result matric mp , i.e:
Amn ï‚´ Bqp = C mp
It is not necessary that B ï‚´ A is multiplication compatible.
The entries of C = (AB) can be found by the rule
p
cij = ( AB) ij = (row i of A)  (col j of B) =  aik bkj
k =1
For example
c35 = ( AB) 35 = dot product of (row 3of A)  (col 5 of B)
Note that, in general
AB ≠ BA
The matrix m x n matrix A as composed of the row vectors r1, r2,…, rm from Rn and
the n x p matrix B as composed of the column vectors c1, c2,…, cp from Rn,
and
the rule for computing the entries of the matrix product AB is r i · c j = ( AB) ij , that is,
Example 7: Given the two matrices
determine which matrix product, AB or BA, is defined and evaluate it
Note that A is A is 2 ï‚´ 3 and B is 3 ï‚´ 4 . So AB is compatible but BA is not.
Therefore
0 4 1
1
 1 0 − 3 
C = A B = 
 − 2 3 − 1 5

− 2 4 1   0 − 1 2 1

 is a C is 2  4
Now
3
cij =  aik bkj
k =1
.
3
c11 =  a1k bk1 = a11b11 + a12b21 + a13b31 = 1 + 0 + 0 = 1
k =1
(dot product of row 1 and column 1)
3
c12 =  a1k bk 2 = a11b12 + a12b22 + a13b32 = 0 + 0 + 3 = 3
k =1
And so on.,, We will have
Example 8: If
(dot product of row 1 and column 2)
and
compute the (3, 5) entry of the product CD.
First, note that since C is 4 x 5 and D is 5 x 6, the product CD is indeed defined, and its
size is 4 x 6. However, there is no need to compute all twenty‐four entries of CD if only
one particular entry is desired. The (3, 5) entry of CD is the dot product of row 3 in C and
column 5 in D:
Example 9: We will see that AB ≠ BA in the following example:
Note that
while
Math 410, Linear Algebra
Chapter 1.7
Chapter 1.7 Diagonal, Triangular and Symmetric Matrices
Fall 2020
Example 1: The product of a matrix A and with its transpose is symmetric
2

1
T
A =
−1

3

 2 1 −1 3


A = 1 4
0 1
 3 − 2 1 4


2
 2 1 − 1 3 

 1
AAT ==  1 4
0 1 
 3 − 2 1 4  − 1

 3

1 3 

4 − 2
0 1 

1 4 
1 3 
 15 9 15 

4 − 2 
=  9 18 − 1

0 1
 15 − 1 40 
1 4 
Example 2:
3
0 
0
0 
1 / 2 0
1 / 8




A =  0 1 / 3 0  =  0 1 / 27
0 
 0
 0
0 1 / 4 
0
1 / 64 


Example 3:
Determine whether the matrix is symmetric A = aij 
a)
aij = 2i 2 + 2 j 3 . Since a ji = 2 j 2 + 2i 3 # 2i 2 + 2 j 3 not symmetric
b)
a ij = 2i + 2 j
Since a ji = 2 j + 2i = 2i + 2 j they are symmetric
Math 410, Linear Algebra
Dr. B Truong
Name: _______________________
CHAPTER 3 REVIEW
1) Equations of lines
a) Lines: In the space, the vector equation of the lines are given by
r = r0 + tv
Where
r0 is a starting vector (point) P0 ,, v is the direction vector and t is the parameter
Example 1:
Equation of a line passing the point P0 = (2,−1,2) and parallel to v = (1,4,−2)
i)
ii)
iii)
 x  2   1 
     
The vector equation r = r0 + tv →  y  =  − 1 + t  4 
 z   2   − 2
     
The parametric equation:
 x = 2+t

 y = −1 + 4t
 z = 2 − 2t

x − 2 y +1 z − 2
=
=
= (t )
The symmetric equation
1
4
−2
In general the symmetric equation of a line is given by
x − x0 y − y 0 z − z 0
=
=
= (t )
a
b
c
P0 = ( x0 , y 0 , z 0 ) is a point on the line and vector v = ( a, b, c) is parallel to the line
Example 2: Find an equation for the line passing A = (1,3,−1) and B = (2,0,3)
a) First we find a vector // to AB which is AB = B − A = (2 − 1,0 − 3,3 − (−1)) = (1,−3,4)
b) Choose point. Here we choose A
the symmetric equation of a line is
x − 1 y − 3 z − (−1)
=
=
= (t )
1
−3
4
 x  1   1 
     
Vector form: r = r0 + tv → r =  y  =  3  + t  − 3 
 z   − 1  4 
     
7) Equations of Planes ( 2 and 3-space):
One way to look at the plane is
Secondly we choose a point P0 = ( x0 , y 0 , z 0 ) on a plane and a point
P = ( x, y, z ) variable on the plane. We know n is orthogonal to PP0 :
So, we have
n  PP0 = 0
Therefore equation for the plane is
(a, b, c)  ( x − x0 , y − y0 , z − z 0 ) = 0
a( x − x0 ) + b( y − y0 ) + c( z − z 0 ) = 0
Example 4: Equation of the plane passing the point P0 = (3,−1,2)
 1   2
   
and orthogonal to the line r =  2  + t  1 
 − 2  1
   
Pay attention to the fact that the vector parallel to the line is orthogonal to the plane:
Thus n = ( 2,1,1) Equation of the plane passing the point P0 = (3,−1,2)
is
a( x − x0 ) + b( y − y0 ) + c( z − z 0 ) = 0
2( x − 3) + 1( y − (−1)) + 1( z − 2) = 0 or
2x − 6 + y + 1 + z − 2 = 0 → 2x + y + z = 7
Secondly we choose a point P0 = ( x0 , y 0 , z 0 ) on a plane and a point P = ( x, y, z ) variable
on the plane. We know n is orthogonal to PP0 :
Example 5:
 1   2
2 1
   
   
The lines r1 =  2  + t  1  and r1 =  0  + t  2 
 − 2  1
 − 1  − 1
   
   
are not parallel, since the vectors parallel to the lines are
 2
1
 
 
v1 =  1  and v2 =  2  which are not parallel
1
 − 1
 
 
Example 6:
The planes 2 x + 3 y − 5 z = 0 and 4 x − 6 y − 2 z = 7 are perpendicular,
because the normal vectors n1 = (2,3. − 5) , n2 = (4,−6,−2) perpendicular
n1  n2 = (2,3,−5)  (4,−6,−2) = 0
8) Distance from a point to the plane:
The distance from a point P1 to the plane is the projection of the line P1 P0 onto the normal lines
of the plane. P0 is any point chosen on the plane.
D = Proj n ( P0 P1 ) =
n  P0 P1
n  P0 P1
=
n
n
Example 7: Distance from P = (1,−2,−1) to the plane 2 x − 5 y + 3z = 6
We know that n = (2,−5,3)
Choose a point on the plane say P0 = (3,0,0) .Thus u = P0 P1 = (2,2,1)
D = Proj n u =
(2,−5,3)  (2,2,1)
4 − 10 + 3
nu
3
3 29
=
=
=
=
n
(2,−3,4)
29
4 + 9 + 16
29
Find the vector component of u along v
u = (1,−2,−1) , v = (2,−2,1)
Example 8:
a)
Find the distance between the point (4,−1) and the line 2 x − y + 3 = 0
According the formula
D=
b)
ax0 + by 0 + c
a2 + b2
=
2(4) + (−1)( −1) + 3
2 2 + (−1) 2
=
12 12 5
=
5
5
Find the distance between the point ( 4,−1,3) and the plane 2 x − y + 3 z + 6 = 0
According the formula
D=
ax0 + by0 + cz 0 + d
=
2(4) + (−1)( −1) + 3(3) + 6
=
24 12 14
=
7
14
a +b +c
2 + (−1) + 3
Example 9: In 2-dim: Equation of the line segment from A( 2,-1) and B ( 3, 5)
 x0 
x 
 x
Let r =   OA = r0 =   OB r1 =  1 
 y
 y1 
 y0 
2
2
2
2
2
2
 x   x   x   x 
Equation of the line is r − r0 = t (r1 − r0 )    −  0  = t   1  −  0  
 y   y0    y0   y0  
 x   2    3  2  
  −   = t    −   
 y   − 1   5   − 1 
 x   2    3  2    2   1 
or   =   + t    −    =   + t  
 y   − 1   5   − 1   − 1  6 
 x   2  1
  =   + t  
 y   − 1  6 
Example 10: Find the area given by the vertices A(1,3,1), B (5,2,-1) and C (4,2,-3)
Find the any 2 vectors connecting thede points
AC = C − A = (3,−1,4) AB = B − A = (4,−1,−2)
j
k 
i

1
1
Area = ( AB  AC ) =  3 − 1 4  =
2
2

 4 −1 − 2
1
(2 + 4,16 + 6,−3 + 4) = 1 (6,22,1) = 1 36 + 484 + 1 = 521
2
2
2
2
Example 11: Find the volume of the parallelepiped formed by
3 vectors u, v and w as its adjacent sides.
u = (1,1,1); v = (3,−1,4) and w = (4,−1,−2) .
We randomly choose a combination of the triple scalar product:
=
u1
V = u  (v  w) = v1
w1
u2
v2
w2
u3  1 1
1 


v3 =  3 − 1 4  = (2 + 4,16 + 6,−3 + 4)
w3  4 − 1 − 2 
= = (2 + 4,16 + 6,−3 + 4) = (6,22,1) = 36 + 484 + 1 = 521
1)
Orthogonality in R n
Equation of lines and planes in general
a) Vectors u and v are orthogonal if their dot product is = 0
uv = 0  u ⊥ v
The sign  indicates that iff ( if and only if) ( both ways implication)
b)
c)
2)
The equation of the line (in 2-D)
ax + by + c = 0
a vector orthogonal to it is n = ( a, b)
Note that the vector parallel to it is v = (b,−a) or
The equation of the plane (in 3-D)
ax + by + cz + d = 0 ,
a vector orthogonal to it is n = ( a, b, c)
(1)
(2)
v = ( −b , a )
(3)
Projection theorem:
v⊥
Proj v⊥ u
u
vv
Projv u
Projv u =
Projv u =
u v
u v
v
2
v
2
v is the vector component of u along v
v is the vector component of u along v
(4)
Projv⊥ u = u − Projv u is the vector component of u orthogonal to v ( v ⊥ )
3)
(5)
The matrix of the projection of a vector v onto a line which made an angle θ with the
(6)
 cos 2 
Projv u = 
 sin  cos
sin  cos 

sin 2  
This formula can be derived easier than in the text.
Let the vector v = (cos  , sin  ) be a vector which makes an angle θ with the
positive x-axis is ( here, it not necessary that the line passing to the origin )
Then the projection of any vector u on v is
Projv u =
u v
v
2
v=
 cos  
u  (cos  , sin  )

(cos  , sin  ) = u  (cos  , sin  )
1
 sin  
 cos 
(cos 
Which is 
 sin  
 cos 2 
sin  )u = P u = 
 sin  cos 
sin  cos  
u
sin 2  
4)
Reflection about a line
Let the vector v = (cos  , sin  ) be a vector which makes an angle θ with the
positive x-axis is ( here, it not necessary that the line passing to the origin )
Then the reflection of any vector u over v is
 cos 2
H  = 
 sin 2
5)
sin 2 

− cos 2 
(7)
The distance D between a point a line
Let P0 ( x0 , y0 ) and the line â„“: ax + by + c = 0
D=
ax0 + by0 + c
a +b
2
2
=
un
n
u is a vector from P0 ( x0 , y0 ) to any point on the line and
n is a vector orthogonal to the line.
(8)
5)
The distance D between a point to a plane (Ï€)
Let P0 ( x0 , y0 , x0 ) and the line (Ï€): ax + by + cz + d = 0
u is a vector from P0 ( x0 , y0 , x0 ) to any point on the plane and
n is a vector
orthogonal to the line.
D=
6)
ax0 + by0 + cz 0 + d
a +b +c
2
2
2
=
un
(8)
n
Equations of lines and planes in space
a)
Equation of the line
r (t ) = r0 + tv
(9)
This is called the parametric equation of a line passing the point r0 and
Parallel to the vector v . Here we can consider the point r0 as a vector
connecting the point P0 ( x0 , y0 , z 0 ) to the origin. If the line passes the origin then
r0 = 0
b)
r (t ) = tv
(9a)
r (t ) = r0 + t1v1 + t 2 v2
(10)
Equation of the plane
This is called the parametric equation of a plane passing the point r0 and
Parallel to the non-co-linear vectors v1 and v2 . Here again, we can consider
the point r0 as a vector connecting the point P0 ( x0 , y0 , z 0 ) to the origin.
If the line passes the origin then r0 = 0 , and
r (t ) = t1v1 + t 2 v2
II)
(10b)
The cross product:
In vector study, the cross product of the 2 vectors u, v is a vector and it is defined as
i
j
u ï‚´ v = u1 u 2
v1 v2
k
u3 = (u 2 v3 − u3 v2 , u3 v1 − u1v3 , u1v2 − u1v2 )
v3
(11)
Main properties:
a) The cross product of 2 vectors u, v is a vector which is orthogonal to both
b) u  v = −v  u
2
2
2
c) u  v = u v − (u  v) 2 Lagrange identity ….
Geometric interpretation:
u  v = u v sin  =Area the parallelogram formed by its vectors
u and v as its adjacent sides and the angle between them is θ.
So basically, we can find the area of any triangle ABC: If θ is angle A then
Area ABC =
1
AB  AC sin 
2
(12)
The triple scalar product:
u1
u  (v  w) = v1
w1
u2
v2
w2
u3
v3
w3
(13)
The absolute value of the scaler product is the volume of the parallelepiped formed by
3 vectors u, v and w as its adjacent sides.
______________________________________________________________________________
Example 1:
a)
The planes 2 x + 3 y − z = 0 and 4 x + 6 y − 2 z = 7 are parallel, because the
normal vectors n1 = (2,3 − 1) n2 = (4,6,−2)
are parallel
b)
The planes 2 x + 3 y − z = 0 and 4 x + 6 y − 5 z = 7 are not parallel, because the
normal vectors n1 = (2,3 − 1) n2 = (4,6,−5)
are not parallel
c)
d)
2 1
 1   2
   
   
The lines r1 =  2  + t  1  and r1 =  0  + t  2 
 − 1  − 1
 − 2  1
   
   
are not parallel, since the vectors parallel to the lines
 2
1
 
 
v1 =  1  and v2 =  2  are not parallel
1
 − 1
 
 
The planes 2 x + 3 y − 5 z = 0 and 4 x − 6 y − 2 z = 7 are perpendicular,
because the normal vectors n1 = (2,3. − 5) , n2 = (4,−6,−2) perpendicular
( n1  n2 = (2,3,−5)  (4,−6,−2) = 0
Example 2: u = (1,−3,4) , v = (3,−2,2)
a)
Find the vector component of u along v
u = (1,−2,−1) , v = (2,−2,1)
 1 
1  
Projv u = 2 v =
 − 2
4 + 4 +1 
v
 −1 
u v
b)
 2   2 
 2 
    5  
  − 2   − 2  =  − 2 
 1   1  9  1 
   
 
Find the vector component of u orthogonal to v ( v ⊥ )
 1 
 2 
 9 − 10 
1
  5  1
 −1 
Projv⊥ u = u − Projv u =  − 2  −  − 2  =  − 18 + 10  =
8
 − 1  9  1  9  − 9 − 5  9 14 
 
 


 
Example 3:
a)
Find the distance between the point (4,−1) and the line 2 x − y + 3 = 0
According the formula
D=
ax0 + by 0 + c
a +b
2
2
=
2(4) + (−1)( −1) + 3
2 + (−1)
2
2
=
12 12 5
=
5
5
Find the distance between the point ( 4,−1,3) and the plane 2 x − y + 3 z + 6 = 0
According the formula
b)
D=
ax0 + by0 + cz 0 + d
a2 + b2 + c2
=
2(4) + (−1)( −1) + 3(3) + 6
2 2 + (−1) 2 + 32
=
24 12 14
=
7
14
Example 3:
Projv u =
u v
v
2
v
The vector w = u + v is the diagonal (AD) of a parallelepiped at which u and v
represent 2 adjacent side.Further more, the other diagonal BA represents the subtraction
vector u – v
Let P( x1 , y1 ) and Q( x2 , y2 ) are points in a coordinate system. x and y are called the
components of the vector
The vector PQ ( with the tail is P and the tip is at Q ) is
PQ = ( x2 − x1 , y2 − y1 )
This also apply to 3 dimension
(1)
PQ = ( x2 − x1 , y 2 − y1 , z 2 − z1 )
The 2 vectors u and v are equal if their components are equal terms by terms
The linear combinations of the set of n vector v j j =1 is defined as
n
n
(2)
2)
w =  C j v j = C1v1 + C 2 v2 + C3 v3 + ….C n vn
j =1
The Norm, v , of a vector is the length ( or the magnitude) of a vector is defined by
(3)
*
The norm of a vector is always
a) v  0 with equality w hen v = 0
b)
*
kv = k v
The unit vector of a vector is
(4)
u=
v
v
(5)
The process of finding the unit vector of a vector v is called normalizing
*
The standard unit vector in R n and ( here, in R 3 )
The vector v is a linear combination of the standard unit vector and its
the components
standard units: i = (1,0,0); j = (0,1,0); k = (0,0,1)
v = v( x1 , x2 , x3 ) = x1i + x2 j + x3 k = x1 (1,0,0) + x2 (0,1,0) j + x3 (0,0,1)
In general, a vector in R n can be expressed as
v = v( x1 , x2 ,…xn ) = x1e1 +, x2 e2 + x3 e3 ,….. + xn en
Where
1
1
1
 
 
 
0
 0
0




e1 = . , e2 = . + ….en =  . 
 
 
 
.
.
.
0
 0
1
 
 
 
( co-variant vectors)
Important note here, the vector is actually a brief call of the covariant vector, it is a column
vector denoted by e j while the contra-variant vector is written as in horizontal vector e j a
transpose of e j , thus
0
 
0
e j = (0,0,0…1,0,..0) while e j =  1 
 
.
0
 
But some textbooks did not pay attention to this and they write the vectors in horizontal position
for convenient
*
The distance between 2 vecto…
Purchase answer to see full
attachment

error: Content is protected !!