Matrice and linear systems
Matrice and linear systems
𝑇 is the linear map from 𝐸 to 𝐹, where the vectors 𝑇(𝑒1 ), 𝑇(𝑒2 ), … , 𝑇(𝑒𝑛 ) are vectors
in 𝐹 and 𝐵′ is basis over 𝐹 (𝑓𝑜𝑟 𝑗 = 1, … , 𝑛)
the table
Is called matrix of linear map 𝑇 related to the basis 𝐵 and 𝐵′ is noted mostly
𝑀𝑎𝑡𝐵𝐵′ (𝑇)
Remarks :
2. The matrix 𝑀𝑎𝑡𝐵𝐵′ (𝑇) depends on the basis 𝐵 vectors number and the basis 𝐵′ .
Example :
Let the usual basis of 𝑅3 ∶ 𝐵 = {(1,0,0), (0,1,0), (0,0,1)} and 𝐵′ = {(1.0), (0,1)} the usual
basis of 𝑅2 . Then
The matrix of 𝑇
2 −1 0
𝑀𝑎𝑡𝐵𝐵′ (𝑇) = ( )
1 1 1
2. let 𝑔 be a linear map over the 𝑅3 [𝑋] into 𝑅3 [𝑋] . where 𝑔 : 𝑝 → 𝑋 2 𝑝′′ + 𝑝(1) with
the useal basis of 𝑅3 [𝑋] is given 𝐵 = {1, 𝑋, 𝑋 2 , 𝑋 3 }
then
1 1 0 1
𝑀𝑎𝑡𝐵 (𝑔) = (0 0 0 0)
0 0 2 0
0 0 0 6
Ⅱ-2-Matrix
Definition : we call a matrix of type (𝒎, 𝒏) (or dimensions × 𝒏 ) over 𝑲 field any numbers of
the form
𝑎11 𝑎12 … 𝑎1𝑛
𝑎21 𝑎22 … 𝑎2𝑛
𝐴=( ⋮ ⋮ ⋮ )
𝑎𝑚1 𝑎𝑚2 … 𝑎𝑚𝑛
Notation
The set of matrices over 𝐾 of type (𝒎, 𝒏) denoted by 𝑴𝒎,𝒏 (𝑲), if 𝑚 = 𝑛 the set
denoted by 𝑴𝒏 (𝑲).
If 𝑚 = 𝑛 the matrix 𝐴 = [𝑎𝑖𝑗 ] is a called square matrix
𝒂𝟏𝟏
𝒂
If 𝑛 = 1 then 𝐴 is called a column matrix (column vector) : 𝑨 = ( 𝟐𝟏 )
⋮
𝒂𝒎𝟏
If 𝑚 = 1 then 𝐴 is called a row matrix (row vector) : 𝑨 = (𝒂𝟏𝟏 𝒂𝟏𝟐 … 𝒂𝟏𝒏 )
The Zero matrix of the type (𝒎, 𝒏) is the matrix where all 𝑎𝑖𝑗 elements are equal to
0 it can be denoted by 𝟎𝒎×𝒏
𝟎 𝟎 𝟎
Example : 𝟎𝟑×𝟑 = (𝟎 𝟎 𝟎).
𝟎 𝟎 𝟎
Ⅱ-3-Operation on Matrices
𝑐𝑖𝑗 = ∑𝑛𝑘=1 𝑎𝑖𝑘 𝑏𝑘𝑗 = 𝑎𝑖1 𝑏1𝑗 + 𝑎𝑖2 𝑏2𝑗 + … … … + 𝑎𝑖𝑛 𝑏𝑛𝑗
Theorem
Ⅱ-3-5. Transpose:
The transpose of matrix 𝐴 = (𝑎𝑖𝑗 )𝑚×𝑛 writen 𝐴′ (𝐴′ 𝑜𝑟 𝐴𝑡 ) is the matrix obtained by writing
the rows of 𝐴 in order as columns. That
𝐴 = (𝑎𝑗𝑖 )𝑛×𝑚
Example (Ⅱ-3) :
Let 𝐴, 𝐵 :
1 3 −4 1 0 3 1
𝐴 = (0 −5 2 ) ,𝐵 = (0 2 1 4)
2 1 3 0 −3 −1 6
1 3 −4 1 0 3 1
𝐴𝐵 = (0 −5 2 ) × (0 2 1 4)
2 1 3 0 −3 −1 6
𝐴𝐵
1 × 1 + 0 × 3 + 0 × −4 0 × 1 + 3 × 2 + (−3) × −4 1 × 3 + 3 × 1 + (−1) × −4 1 × 1 + 3 × 4 + 6 × −4
= (0 × 1 + 0 × −5 + 0 × 2 0 × 0 + (−5) × 2 + 2 × −3 0 × 3 + (−5) × 1 + (−1) × 2 0 × 0 + 4 × −5 + 6 × 2)
1×2+0×1+0×3 0 × 2 + 2 × 1 + 3 × −3 2 × 3 + 1 × 1 + (−1) × 3 2 × 1 + 1 × 4 + 6 × 3
1 18 10 −11
𝐴𝐵 = (0 −16 −7 −8 )
2 −7 4 24
1 0 0 1 0 2
𝐵 = (0
′ 2 −3), 𝐴′ = ( 3 −5 1)
3 1 −1
−4 2 3
1 4 6
1 0 3 1 1 18 10 −11
𝐵 + 𝐴𝐵 = (0 2 1 4 ) + (0 −16 −7 −8 )
0 −3 −1 6 2 −7 4 24
1+1 0 + 18 10 + 3 1 + (−11)
= (0 + 0 −16 + 2 1 + (−7) −8 + 4 )
2 + 0 −3 + (−7) 4 + (−1) 24 + 6
2 18 13 −10
𝐵 + 𝐴𝐵 = (0 −14 −6 −4 )
2 −10 3 30
Properties of some oprations
(𝐴′ )′ = 𝐴
(𝜆𝐴)′ = 𝜆𝐴′
(𝐴 + 𝐵)′ = 𝐴′ + 𝐵′
(𝐴𝐵)′ = 𝐵′ 𝐴′
Matrix addition is commutative 𝐴 + 𝐵 = 𝐵 + 𝐴
Matrix addition is associative 𝐴 + (𝐵 + 𝐶 ) = (𝐴 + 𝐵) + 𝐶
The matrix product is distributative with respect to addition that :
𝐴(𝐵 + 𝐶 ) = 𝐴𝐵 + 𝐴𝐶
(𝐵 + 𝐶 )𝐴 = 𝐵𝐴 + 𝐶𝐴
Ⅱ-4-Square Mrtices
As we defined privously the square matrix is the matrix of type 𝑛 × 𝑛
𝐴𝑟 = 𝐴 × 𝐴× … … × 𝐴 (𝑟 𝑡𝑖𝑚𝑒 𝑚𝑢𝑙𝑡𝑖𝑝𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛)
𝐴2 = 𝐴 × 𝐴
𝐴3 = 𝐴 × 𝐴 × 𝐴
𝐴𝑟 𝐴𝑠 = 𝐴𝑟+𝑠 = 𝐴𝑠 𝐴𝑟
A square matrix is 𝐴 = (𝑎𝑖𝑗 )𝑛×𝑛 is called a diagonal matrix if each of its non-diagonal
element is zero (the diagonal element the elements of the indices 𝑖 = 𝑗 ). Example : 𝐴 =
1 0 0
(0 −9 0)
0 0 3
5 7 4
Example : 𝐴 = (0 2 0)
0 0 3
Definition :(Lower Triangular matrix)
−1 0 0
Example : 𝐴 = ( 4 2 0)
5 8 3
8 −2 7
Example : 𝐴 = (−2 −9 3)
7 3 5
𝐴 is a symmetric matrix.
A square matrix is 𝐴 = (𝑎𝑖𝑗 )𝑛×𝑛 is said to be a skew- symmetric if the elements 𝑎𝑖𝑗 of the
Uper tringular part are equal in lower tringular part −𝑎𝑖𝑗 . Example :
8 −2 7
(
𝐵= 2 −9 3)
−7 −3 5
Trace of matrix
The trace of square matrix 𝐴 is the sum of the diagonal entries of 𝐴 denoted 𝑻𝒓(𝐴).
Example
Some definitions
A matrix 𝐴 such that 𝐴2 = 𝐴 is called Idenpotant.
If 𝐴 is a matrix and 𝑟 is the least positive integer such that 𝐴𝑟+1 = 𝐴, Then 𝐴 is called
periodic of period 𝑟.
If 𝐴 matrix for which 𝐴𝑟 = 𝟎 the zero matrix. 𝐴 is called nilpotent.If 𝑟 is the least
positive integer for which this is true. 𝐴 is said to be nilpotent of order .
Ⅱ-4-3.a. Determinant
Definition : Let 𝐴 = (𝑎𝑖𝑗 ) be square matrix of order , then the number |𝐴| called
𝑛×𝑛
determinant of the matrix 𝐴.
1. Determinant of 𝟐 × 𝟐 :
𝑎 𝑏 𝑎 𝑏|
Let 𝐴 = ( ) then |𝐴| = | = 𝑎𝑑 − 𝑐𝑏
𝑐 𝑑 𝑐 𝑑
2. Determinant of 𝟑 × 𝟑:
𝑎11 𝑎12 𝑎13
Let 𝐵 = (𝑎21 𝑎22 𝑎23 )
𝑎31 𝑎32 𝑎33
𝑎11 𝑎12 𝑎13
𝑎22 𝑎23 𝑎21 𝑎23 𝑎21 𝑎22
Then 𝐵 = |𝑎21 𝑎22 𝑎23 | = 𝑎11 |𝑎
| | | − 𝑎12 | | + 𝑎13 |𝑎31 𝑎32 |
32 𝑎33 𝑎31 𝑎33
𝑎31 𝑎32 𝑎33
|𝐵| = 𝑎11 (𝑎22 𝑎33 − 𝑎23 𝑎32 ) − 𝑎12 (𝑎21 𝑎33 − 𝑎23 𝑎31 ) + 𝑎13 (𝑎21 𝑎32 − 𝑎22 𝑎31 )
Properties of Determinant
det(𝐴𝐵) = det(𝐴) det(𝐵)
det(𝐴′ ) = det(𝐴)
det(𝜆𝐴) = 𝜆𝑛 det(𝐴
Definition Let 𝐴 be matrix of order 𝑛. 𝐴 is called a singular matrix is |𝐴| = 0 and non-
singular otherwise.
1 0 1
𝐴=( 2 −2 4)
−3 −1 −3
With use of the first row
det(𝐴) = 1 |
−2 4 | − 0 | 2 4 | + (−3) | 2 −2|
−1 −3 −3 −3 −3 −1
det(𝐴) = 1((−2 × −3) − (4 × −1)) − 0((2 × −3) − (4 × −3)) + 1((2 × −1) − (−2 × −3))
det(𝐴) = 2 ≠ 0
𝐴 is non-singular matrix
−2 4 2 4 2 −2
| | −| | | |
−1 −3 3 −3 3 −1 10 −6 −8
0 1 1 1 1 0
𝑐𝑜𝑓𝑎𝑐𝑡𝑜𝑟 (𝐴) = −| | | | −| | = (−1 0 1)
−1 −3 3 −3 3 −1
0 1 1 1 1 0 2 −2 −2
|
( −2 4 | − | | | |
2 4 2 −2 )
Example
find the adjoin matrix of the above Example
10 −1 2
( ) ′
𝐴𝑑𝑗 𝐴 = 𝑐𝑜𝑓𝑎𝑐𝑡𝑜𝑟 𝐴 = (−6 0 −2)
−8 1 −2
Ⅱ-4-3.1. Inverse of matrix
Definition If 𝐴 and 𝐵 are two matrices such that 𝐴𝐵 = 𝐵𝐴 = 𝑰 then each is said to be
inverse of the other.
𝐴−1 𝐴 = 𝐴𝐴−1 = 𝑰
We call a linear Group of the order 𝑛 over 𝐾, denoted 𝑮𝑳𝒏 (𝑲), the group of all
invertable elements of 𝑴𝑛 (𝐾).
Theorem 4
1
If 𝐴 is non-singular matrix then 𝐴−1 = det(𝐴) 𝐴𝑑𝑗𝐴
Example
The inverse of the previous 𝐴 is
1
5 − 1
1 1 10 −1 2 2
𝐴−1 = 𝐴𝑑𝑗 𝐴 = (−6 0 −2) = −3 0 −1
det 𝐴 2 1
−8 1 −2
−4 1
( 2 )
1 3
Let 𝐵 = ( )
2 4
det(𝐵) = (1)(4) − (3)(2) = −2 ≠ 0
𝐵 is non-singular, then
3
1 4 −2
−3 2 )
𝐵−1 = ( )=(
−2 −2 1 1
1 −
2
Theorem 5
Let 𝐸, 𝐹 be 𝐾vector spases of the same dimension 𝑛 with respectivly the basis 𝐵 𝑎𝑛𝑑 𝐵′
Let 𝑇 ∈ 𝑳(𝑬, 𝑭), the linear map 𝑇 is linear is bijective if and only if 𝑴𝒂𝒕𝑩𝑩′ (𝑻) is non-
singular.
Some operations on matrices called as elementary transformations. There are six types of
elementry transformations three of them are row transformation and other three of them
are column transformations there are as follows
0 11
Let the matrix 𝐴 = ( )
−2 3
0 11 1 0
( | )
−2 3 0 1
−2 3 0 1
𝑅1 ↔ 𝑅2 ( | )
0 11 1 0
1 1
𝑅1 → − 𝑅1 3 0 −
2 (1 − 2| 2)
1 1
𝑅2 → 𝑅 0 1
11 0
11 2
3 1
3 1 0 22 − 2
𝑅1 → 𝑅1 + 𝑅2 ( | )
2 0 1 1 0
11
3 1
−
𝑨−𝟏 = (22 2)
1
0
11
Ⅱ-4-4.Rank of matrix
The rank of matrix 𝐴 is the dimension of the subvector space spanned by its columns.
To find the rank of matrix, we transform the matrix into its echelon form using the
elementry transformations.Then ,determine the rank by the non-zero rows.
Theorem
Example
1 1 0 0 1 0
𝑟𝑎𝑛𝑘 (−2 0 2) = 𝑟𝑎𝑛𝑘 (−2 0 2) 𝐶1 → 𝐶1 − 𝐶2
1 2 3 −1 2 3
0 1 0
= 𝑟𝑎𝑛𝑘 (−2 0 0) 𝐶3 → 𝐶3 + 𝐶1
−1 2 2
0 1 0 1
= 𝑟𝑎𝑛𝑘 (−2 0 0) 𝑅3 → 𝑅3 − 𝑅2
2
0 2 2
0 1 0
= 𝑟𝑎𝑛𝑘 (−2 0 0) 𝑅3 → 𝑅3 − 2𝑅1
0 0 2
1 0 0
= 𝑟𝑎𝑛𝑘 (0 −2 0) 𝐶1 ↔ 𝐶2
0 2 2
=3
Ⅲ-System of Linear Equations
If the constants 𝑏1 , 𝑏2 , … . 𝑏𝑚 are all zero the system is said to be homogeneous type 𝑏𝑗 ∈ 𝐾
𝑎11 ⋯ 𝑎1𝑛 𝑥1 𝑏1
Where 𝐴 = ( ⋮ ⋱ ⋮ ) , 𝑋 = ( ⋮ ) ,𝑏 = ( ⋮ )
𝑎𝑚1 ⋯ 𝑎𝑚𝑛 𝑥𝑛 𝑏𝑚
The matrix 𝐴 = (𝑎𝑖𝑗 )𝑛×𝑛 is called coefficient matrix , the column matrix 𝑋 is called the
matrix of the unknowns and 𝑏 is called as column matrix of constants .
𝑋 = 𝐴−1 𝑏
Example
Let (𝑆)
3𝑥 + 3𝑦 − 2𝑧 =5
(𝑆 ) { 2𝑦 + 7𝑧 =0
𝑥+𝑦−𝑧 =3
3 3 −2 5
(
Where 𝐴 = 0 2 7 and 𝑏 = 0). 𝐴 is non singular det 𝐴 = −2 ≠ 0
) (
1 1 −1 3
9 1 25
− −
1 −9 1 25 2 2 2
𝐴−1 = − ( 7 −1 −21) = 7 1 21
2 −
−2 0 6 2 2 2
( 1 0 −3 )
9 1 25
− − 5
2 2 2 −15
𝑋 = 𝐴−1 𝑏 = 7 1 21 × (0) = ( 14 )
− 3 −4
2 2 2
( 1 0 −3 )
The system has unique solution (𝑥, 𝑦, 𝑧) = (−15,14, −4)
5 3 −2 3 5 −2 3 3 5
|0 2 7| |0 0 7| |0 2 0|
𝑥= 3 1 −1 = −15, 𝑦= 1 3 −1 = 14, 𝑧= 1 1 3 = −4.
−2 −2 −2
The Gaussian Elimination method is more general then the previous ones. The matrix 𝐴 of
the system does not has to be non-singular square matrix, it can be of type (𝑚, 𝑛)
(rectangule)
The Gaussain elimination is based on transforming the matrix of system 𝐴 with the vector
𝑏 into (𝐴|𝑏) to some kind of upper tringular matrix form using the row opretions
𝑎11 ⋯ 𝑎1𝑛 𝑏1
(𝐴 |𝑏 ) = ( ⋮ ⋱ ⋮ |⋮)
𝑎𝑚1 ⋯ 𝑎𝑚𝑛 𝑏𝑛
To
𝑎11 … … 𝑎1𝑛
… 𝑎′ 2𝑛 𝑏1
0 𝑎′ 22 |
(𝐴′|𝑏′) = ⋮ 0 𝑎′𝑟𝑛 𝑏′2
⋮ | ⋮
⋮ 𝑏′𝑛
( 0 0
0 )
Theorem
Any row operation used on matrix of the system with not change the corresponding
solution of the system
𝟏𝒔𝒕 𝒔𝒕𝒆𝒑 starting from the left , find the frst non-zero column. The first pivot is obtain by
taking the bigesst (with absolut value) element in the first column it’s called Gauss pivot
(suppose it’s 𝑎11 as example)
𝟐𝒏𝒅 𝒔𝒕𝒆𝒑 use row operations on 𝑅1 , 𝑅2 … 𝑅𝑚 to make the entiers below the pivot position
𝑎 𝑎
equal zero by 𝑅2 − 𝑎21 𝑅1 , … , 𝑅𝑚 − 𝑎𝑚1 𝑅1
11 11
𝟑𝒓𝒅 𝒔𝒕𝒆𝒑 Ignoring the row containing the pivot position, repeat step 1 and step 2 with the
remaining rows .
Example
3 3 −2 5
(0 2 7|0)
𝑅3 → −3𝑅3
0 0 1 −4
3𝑥 + 3𝑦 − 2𝑧 =5
{ 2𝑦 + 7𝑧 =0
𝑧 = −4
We substitute 𝑧 = −4 in 2nd equation 2𝑦 + 7(−4) = 0 we get 𝑦 = 14, then 𝑥 =
−15 from the 1𝑠𝑡 eqaution.
𝑅2 → 𝑅2 − 𝑅1 1 −1 2 4
𝑅3 → 𝑅3 − 2𝑅1 (0 1 −1| 2 )
0 −1 1 −4
𝑅4 → 𝑅4 − 3𝑅1
0 5 −7 −11
1 −1 2 4
𝑅3 → 𝑅3 + 𝑅2 (0 1 −1| 2 )
0 0 0 −2
0 5 −7 −11
The system (𝑆) has no solution in the 3𝑟𝑑 𝑟𝑜𝑤 0𝑥 + 0𝑦 + 0𝑧 = −2 which is contraduction