Professional Documents
Culture Documents
Unit 6 Remidial
Unit 6 Remidial
[ ]
a11 a 12 … a1n
a21 a 22 ⋯ a2 n =¿ is called an m×n read as m by n matrix of order m×n.
⋮ ⋮ ⋮
am 1 am 2 ⋯ amn
The objects in the array are called the entries or elements in the matrix.
Note:
Matrices usually denoted by capital letters like A, B, C, etc. or [ a ij ] mxn.
We call a ijthe ij -entry or ij -component of the matrix. i.e the element which lies in the i throw and the
th
j column.
If the matrix has m rows and n columns. We say that it is an m by n matrix ( or mxn ) matrix.
The order of a matrix is the number of rows and columns it has.
Definition: If A and B are matrices of the same size, then A=B where they have all corresponding
entries are equal.i .e . , A=B if and only if a ij=bijfor all i and j .
[ ]
1 3
Consider the matrices, A= [ ] [ ]
1 3
x 5
, B=
1 3
4 5
and C= 4 5 .
0 0
a) If A=B , find the value of x ?
b) Are B=C ?
Example: finda 11 ,a 23 and the order of A , if A is equal to
a. [ 1]
b. [ 00 21]
[ ]
1 0 0
0 1 0 Example: Form a 4 by 5 matrix, B, such that bij = i + j.
0 0 1
Solution: Since the number of rows is specified first, this matrix has four rows and five
columns.
[ ][ ]
b11 b 12 b13 b14 b 15 2 3 4 5 6
b b 22 b23 b24 b 25 3 4 5 6 7
B= 21
b31 b 32 b33 b34 b 35 4 5 6 7 8
b41 b 42 b43 b 44 b 45 5 6 7 8 9
= .
[ ]
a11 a12 ⋯ a1n
a21 a22 ⋯ a2n
matrix obtained by adding corresponding entries of A and B. Let A= ,
⋮ ⋮ ⋮ ⋮
a m 1 am 2 … amn
[ ] [ ]
b 11 b12 … b1 n a11 +b 11 a12+b 12 … a 1 n+ b1 n
b 21 b22 … b2 n a 21+b 21 a 22+b 22 … a 2 n+ b2 n
B= then A+ B=
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
bm 1 b m 2 … b mn am 1 +b m 1 a m 2+b m 2 … a mn+ bmn
[ ] [ ] [ ]
1 2 4 2 −1 3 2 3
Example: Consider the following matrices, A= 2 3 1 , B= 2 4 2 ,C= 4 0 . Find if
5 0 3 3 6 1 5 1
possible,
a) A+ B b) B+C
Solution:
[ ][ ][ ][ ]
1 2 4 2 −1 3 1+2 2+(−1) 4+3 3 1 7
a) A+ B= 2 3 1 + 2 4 2 = 2+2 3+4 1+2 = 4 7 3
5 0 3 3 6 1 5+3 0+6 3+1 8 6 4
b) B+C is impossible since B and C have different size.
Note: If A is any matrix, the negative of A denoted by –A is the matrix obtained by replacing each entry
in A by its negative.
Example: if A= [−30 7 6
4 −5 ]
,−A=
3 −7 −6
0 −4 5 [ ]
Properties of addition of matrices
1) Matrix addition is commutative. A+ B=B+ A if A and B have the same size.
2) Matrix additive is associative: A+ ( B+C )=( A+ B ) +C
3) Existence of additive identity: The zero matrix is the addition identity of any matrix A
i .e . , A+ 0= A=0+ A
4) Existence of additive inverse: If A is any matrix, then A+ (− A )=0 . − A is the additive inverse
of A and vice versa.
2. Subtraction of matrix
Definition: Let A and B be two matrices of the same order. Then A – B, mean A + (-B). In other words,
to find A – B we subtract each entry of B from the corresponding entry of A.
Example
[ ] [ ]
a11 a12 … a 1n ka11 k a12 … ka 1 n
a21 a22 … a 2n ka21 ka22 … ka 2 n
Let A= , then kA=
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
a m 1 am 2 … amn kam 1 kam 2 … kamn
Example: If
A=
[02 2 3
1 4 ]
and B =
7 6 3
1 4 5 [ ] . Find
2 A +3 B
.
Solution:
2 A =2
[ 0 2 3
2 1 4
=
0 4
4 2 ] [ 8]
6
and
3B =3
[ 7 6 3
1 4 5
=
] [
21 18 9
3 12 15 ]
2 A +3 B=
[ 0 4
4 2 8] [ 3
6
+
21 18 9
12 15
=
] [
21 22
7 14 23 ]
15
[]
a
1) Let A=[ 1 2 3 ] ∧B= b , then find AB
c
Solution:
[]
a
1) AB=[ 1 2 3 ] b =[ a+2 b+3 c ]
c
2) a ¿ A . A is impossible since number of columns of A is not equal to number of rows of A.
][ ]
2 2 5
b ¿ AB= [
1 2 3
3 1 2
1 3 1
0 4 3
¿
[13 ×2+2
×2+1 ×1+2 × 0 3 ×2+1 ×3+ 2× 4 3 ×5+1 ×1+2 ×3 ]
×1+3 × 0 1 ×2+2 ×3+3 × 4 1 ×5+2 ×1+3 ×3
¿
[2+6 +1+2+ 00 2+6+6+12 5+2+ 9
3+8 15+1+6 ]=
[ 7 17 22 ]
4 20 16
c ¿ A .C is impossible(undefined).
Notes:
1) If a matrix A=(aij )m × n and ¿ ¿ , then C= AB=(c ik )m × p .
2) For any matrices A and B, it is usually the case that AB≠ BA .
3) AB=0 doesn’t necessarily imply A=0 orB=0 .
4) AB= AC doesn’t necessarily imply B=C .
Example:
[ ] [ ]
1 −1 1 1 2 3
1. Let A= −3 2 −1 B= 2 4 6 then AB=0
−2 1 0 1 2 3
Square matrix: a matrix which has the same number of rows and columns. Its general form is then
[ ]
a 11 a12 ⋯ a1n
a21 a22 … a2n
⋮ ⋮ ⋮
an 1 an 2 ⋯ ann
The elementsa 11, a 22 , a 33 ,…,a nn lie on and form the diagonal, also called the main diagonal or principal
diagonal.
Diagonal matrix: a square matrix is said to be diagonal matrix if all entries out of the main diagonal
are zeroes.
The square matrix A=(aij ) is diagonal matrix if a ij=0 for i ≠ j.
Note:
If A is a square matrix, then the trace of A , denoted by tr (A ), is defined to be the sum of the entries
on the main diagonal of A . The trace of A is undefined if A is not a square matrix.
[ ]
3 4 7
Example: A= 6 6 1 the entries a 11=3 , a22=6 , a33=8 consists the main diagonal.
2 5 8
tr (A )=a 11 +a22 +a33=3+6+8=17.
Scalar matrix: a diagonal matrix in which all its diagonal elements are equal is called scalar matrix. The
square matrix A=( aij ) is scalar matrix if a ij=0 for i ≠ j anda ii=a jj for all i∧ j .
[ ]
−4 0 0
Example: A= 0 −4 0 is scalar matrix.
0 0 −4
Upper triangular matrix: a square matrix is said to be an upper triangular matrix if all entries below the
main diagonal are zeroes. That is, a ij=0for all i> j .
[ ]
3 2 6
Example: A= 0 4 3 is upper triangular matrix.
0 0 −2
Lower triangular matrix: a square matrix is said to be a lower triangular matrix if all entries above the
main diagonal are zeroes. That is, a ij=0 for all i< j .
[ ]
0 0 0
Example: A= 2 0 0 is lower triangular matrix.
0 1 −2
Identity Matrix or Unit Matrix: A square matrix is said to be identity matrix or unit matrix if all its main
diagonal entries are 1’s and all other entries are 0’s.
[ ]
1 0 0
For example,
I3 = 0 1 0
0 0 1 is identity matrix of order 3.
( )
I 2= 1 0
0 1 is identity matrix of order 2.
Transpose of a matrix:
let A=(a)ij be m ×n matrix, the transpose of A is n × m matrix obtained from A by interchanging rows to
columns and columns to rows. Transpose of A is denoted by A' ∨ A t=(a) ji of order n × m. Thus, the first
row of A is the first column of At and the second row of A is the second column of At and so on.
[ ][ ]
a11 a12 … a 1n a11 a 21 … am 1
a21 a22 ⋯ a2n t
,A =
a12 a 22 ⋯ am 2
Let A=
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
a m 1 am 2 … amn a1 n a2 n … anm
[ ] [] [ ]
−9 0 4 1 −9 5 3
Examples: Let A=[ 1 2 3 ] ∧B= 5 2
t t
8 , then A = 2 and B = 0 2 6 respectively.
3 6 −4 3 4 8 −4
Properties of transpose
1) If A and B have the same size (order), then ( A ± B)t = At ± Bt .
[ ] [ ]
2 1 2 2 1 2
t t
Example: let A= 1 0 −3 , A = 1 0 −3 ⟹ A= A . Thus, A is symmetric matrix.
2 −3 6 2 −3 6
Note: Identity matrix is symmetric matrix.
Skew symmetric matrix: A square matrix A=(a¿¿ ij)¿ is said to be skew-symmetric matrix if
Note:
a ii=−aii ⇒ 2 aii =0 or a ii=0 .The diagonal elements of a skew symmetric matrix are entirely
zero.
[ ][ ]
0 5 7 0 −5 −7
t
¿−1 −5 0 3 = 5 0 −3 ⇒ A =− A , Hence A is a skew-symmetric matrix.
−7 −3 0 7 3 0
Properties of symmetric and skew-symmetric matrices
1) For any square matrix, A+ A t is symmetric and A−A t is skew-symmetric matrix.
2) If A and B are
Two symmetric matrices of the same size, then A+ B s ymmetric matrices.
Two skew-symmetric matrices of the same size, then A+ Bskew-symmetric matrices.
A is symmetric then, kA is symmetric where k is scalar.
A is skew-symmetric then, kA is skew-symmetric where k is scalar.
3) Let A and B be symmetries of the same order, then the product AB is symmetric if and only if
AB=BA
Augmented matrix: a matrix which is obtained by adjoining two matrices that have the same number of
rows. If A= [ 12 21] [ | ]
, then A| I 2=
1 21 0
2 10 1
.
[ ] [ ] [ ]
1 3 −1 R → R −R 1 3 −1 1 3 −1
A= 1 2 −4 2 2 1
0 −1 −3 R3 → R 3−9 R2 0 −1 −3
2 −3 4 R3 → R 3−2 R 1 0 −9 6 0 0 33
Row echelon form and row reduced echelon form
Definition: A matrix is in row echelon form if it has the following three properties.
1) All zero rows are below all the none zeroes row.
2) If two successive rows of a matrix are non-zero, then the row with more zeros is below the row
with less zeros (zeros are counted from left to right)
3) All entries in a column below a leading entry are zeroes.
[ ] [ ]
2 3 0 5 2 3 0 5
0 5 −1 6 0 5 −1 6
Examplea ¿ echelon form. b) is not echelon form, b/c 4 should be zero.
0 0 7 −8 0 4 7 −8
0 0 0 0 0 0 0 0
[ ] [ ]
0 1 2 6 1 0 0 1
c ¿ 0 0 3 5 echelon.d ¿
0 0 0 0
0 1 2 6
0 0 3 5 [ ]
echelon.e ¿ 0 1 0 0 reduced echelon form
0 0 1 2
[ ]
1 0 0 0
f¿ 0 1 2 5 not reduced echelon form since there is 2 in column 3 in addition to 1.
0 0 1 0
[ ] [ ]
1 0 0 0
1 0 0 0
0 0 1 0
g¿ reduced echelon form.h ¿ 0 1 2 5 reduced echelon form.
0 0 0 1
0 0 0 0
0 0 0 0
Definition of Determinant
If A is a square matrix, then the determinant associated with A is exactly one numerical value which is
called determinant of A.
The determinant of a square matrix A is denoted by det ( A) or |A| (|A| is not absolute value it may be
negative).
Definition: Let A=[ a11 ] be a square matrix of order 1, then the determinant of A is defined as the number
a 11 itself.
| A|=|a11|=a11
Examples:
1) Let A=[ 12 ] , then| A|=12
2) Let A=[−7 ] ,then |A|=−7
Definition: let A be a 2 ×2 matrix of order 2 such that
a 11 a12
A=
a 21 a22 [ a
] | a
,| A|= 11 12 =a11 a22−a12 a21
a21 a 22 |
To find the determinant of a square matrix of order n> 2, we need concept of minor and cofactor of an
element.
Let | A|=|aij| be determinant of order n, minor and cofactor are defined as follow.
Minor of a matrix
The minor of a ij is the determinant that is left by deleting the i th row and the j th column. It is denoted by
M ij .
[ ]
a 11 a12 a 13
Example: A= a 21 a22 a 23
a 31 a32 a 33
C ij =
{
M ij if i+ j is even
−M ij if i+ jis odd
[ ]
0 1 2
Examples: Evaluate the cofactors of A= 1 2 3
3 1 1
Solution: first find minors.
M 11= |21 31|=2−3=−1 , M =|13 31|=1−9=−8 , M =|13 21|=1−6=−5 ,
12 13
=| |=1−2=−1 , M =| |=0−6=−6 , M =|
3 1|
1 2 0 2 0 1
M 21 22 =0−3=−3 , 23
1 1 3 1
M =|
2 3|
=3−4=−1 , M =|
1 3|
=0−3=−3 , M =|
1 2|
1 2 0 2 0 1
31 32 =0−1=−1 33
[ ]
0 1 2
Example: Find the determinant of the matrices. A= 1 2 3
3 1 1
Solution:
The cofactors of A are:
C 11=(−1) |21 31|=2−3=−1 ,C =(−1) |13 31|=−1 ( 1−9)=8 ,
1 +1
12
1+2
[ ]
1 0 0
1. Let A= 0 1 0 then det ( A)=1.
0 0 1
2. Let A =
[ 23 14 ] and B =
[ 21 34 ] . Then
det ( A)=5=det (B)
( ) ( )
1 2 3 0 2 2
3. Let A= 0 2 2 ∧B= 1 2 3 , then
3 4 5 3 4 5
det ( A )=1 ( 10 – 8 ) – 2 ( 0 – 6 ) +3 ( 0 – 6 )=−4and
det ( B )=0 ( 10 – 12 ) – 2 ( 5 – 9 )+ 2 ( 4 – 6 )=4
[ ]
3 4 5
4. Let A= 1 3 2 . Then, det ( A)=3 (6 – 6) – 4(2 – 2)+5 (3 – 3)=0
1 3 2
[ ] [ ]
1 2 1 2 4 2
6. Let A= 2 3 4 ∧B= 2 3 4 . then, determinant of the two matrices is
1 3 7 1 3 7
det ( A )=1 ( 21−12 ) −2(14−4 )+1(6 – 3)=9 – 20+3=−8 ,∧also
det (B)=2(21 – 12)– 4 (14 – 4)+2(6 – 3)=18 – 40+6=24 – 40=−16=2(−8)=2[det ( A)]
7. Let A= [ ]
3 4
2 5
and B=
6 8
4 10 [ ]
. Then, det ( A )=7 and det ( B )=28=22 det ( A)
1 2 1 2 1 2 1 2
A=¿ | |=| |=| |+| |=−2
8. Let 3 4 1+2 2+2 1 2 2 2
[ 13 24 ]∧B=[ 73 104 ]
9. Let A= .Then
det ( A )=|
3 4|
=4−6=−2∧det ( B )=|
3 4|
1 2 7 10
=28−30=−2
10. Let A and B be two 3 ×3 matrices with det ( A)=3 and det (B)=−3, then find:
a) det ( AB)
b) det (2 A Bt )
Solution:
a) det ( AB ) =detA . detB=3 (−3 )=−9
b) det ( 2 A Bt )=det ( 2 A ) .det ( Bt ) =det ( 2 A ) . det ( B )=23 det ( A ) . det ( B )=8 × 3 (−3 )=−72
Adjoint and inverse of a matrix
1. Adjoint of a matrix
Definition: let A=( aij ) be a square matrix of order n and let C ij be the cofactor of a ij, then the adjoint of
A denoted by adjA is defined as the transpose of the cofactor matrix (C ij ).
[ ]
1 2 3
Example: Let A= −1 0 1 , find adjA.
4 3 2
Solution: Minors of A:
M 11= |03 12|=−3 , M =|−14 12|=−6 , M =|−14 03|=−3 ,
12 13
=| |=−5 , M =| |=−10 , M =|
4 3|
2 3 1 3 1 2
M 21 22 =−5 , 23
3 2 4 2
=|
0 1|
=2 , M =|
−1 1|
=4 , M =|
−1 0|
2 3 1 3 1 2
M 31 32 =2 33
Cofactor of A:
i+ j
C ij =(−1) M ij
C 11=M 11 =−3 ,C 12=−M 12=6 , C13=M 13=−3 , C 21=−M 21=5 ,C 22=M 22=−10 ,
C 23=−M 23=5 ,C 31=M 31=2 ,C 32=−M 32=−4 ,C 33=M 33=2
Cofactor matrix:
[ ]
−3 6 −3
C ij = 5 −10 5
2 −4 2
[ ] [ ]
3 1 2 4 −2 1
A= 2 −3 −1 7 3 3
a.
1 2 1 , b. A=
2 0 1 .
Solution:
[ ]
t
C 11 C12 C 13
But, adjA = C 21 C22 C 23 where, C 11=−1 , C12=−3 , C 13=7 , C21=3 , C 22=1 ,
C 31 C32 C 33
C 23=−5 ,C 31=5 , C32=7 , C 33=−11
[ ][ ]
t
−1 −3 7 −1 3 5
⇒ adjA= 3 1 −5 = −3 1 7
5 7 −11 7 −5 −11
[ ]
−1 3 5
8 8 8
[ ]
−1 3 5
1 −3 1 7
⇒ A−1= −3 1 7 =
8 8 8 8
7 −5 −11
7 −5 −11
8 8 8
1
A−1 = adjA
b. |A|=(4)(3)−(−2)(1)+1(−6)=8≠0 . Thus A−1 exists and is given by |A| . To
find adjA, let Cij denote the cofactor of aij, the element in the ith row and jth column of |A|.
[ ] [ ]
3 2 −9 3 2 −9
−1 1 1
adj A= −1 2 −5 A = adj A= −1 2 −5
|A| 8
−6 −4 16 . Hence −6 −4 16
Note:
singular(invertible) if |A|≠0 .
1
If A is invertible matrix, then det(A-1) = .
det ( A)
[ ]
2 0 0
B= 3 −1 4
Further, if 5 −2 8 then |B|=0 and it is singular.
[ ]
6 7 −1
A= 3 λ 5
λ
Example: Find if the matrix 9 11 λ has no inverse.
2
Solution: 6 ( λ −55)−7(3 λ−45 )−(33−9 λ )=0
2
λ −2 λ−8=0
( λ−2)( λ−4 )=0
λ=2 or λ=4
Properties of the inverse
1) A square matrix is invertible if and only if it is not singular.
2) The inverse of the inverse is the original matrix ( A−1 ¿ ¿−1=A .
3) The inverse of the transpose of a matrix is the transpose of its inverse. i.e. ( At )−1=¿.
The matrix A is called the coefficient matrix, because it contains the coefficients of the unknowns.
The above system of equations can be written as the augmented matrix of AX∧B.
A system of linear equations is said to be consistent if it has at least one solution; otherwise, it is
inconsistent.
Methods of solving linear system of equations
To solve linear system of equations, we have different techniques (methods)
1) Gaussian elimination method 3) Matrix inverse method
2) Gauss-Jordan method 4) Cramer’s rule
Cramer’s rule for solving systems of linear equations
consider the following matrix representation of the system of linear equations ( AX=B).
According to Cramer, if det ( A)≠ 0, then the above system has a unique solution which is given by
det ( A1 ) det ( A 2) det ( A 3) det ( A n)
x 1= , x2 = , x 3= ,… … … , x n=
det ( A) det ( A) det (A ) det (A )
where Ai is the matrix obtained by replacingthe entries in the i column of A by the entries in the matrix
th
[]
b1
b
B= 2
⋮
bn
Examples:
1) Use Cramer's rule to solve
( )( ) ( )
2 −1 1 x 1 6
1 4 −2 x 2 = −4
3 0 1 x3 7
i
det ( A B)
x i=
det (A )
det ( A )=2 |
4 −2
0 1 | − (−1 ) |
1 −2
3 1
+1| | |
1 4
3 0
=8+7−12=3
( )
6 −1 1
x 1=
det −4 4 −2
7 0 1
=
6 |
0 1 ||
4 −2 −4 −2 −4 4
+
7 1
+ || |
7 0 24 +10−28 6
= = =2
3 3 3 3
| |
2 6 1
x 2=
1 −4 −2
3 7 1
=
|
2
−4 −2
7 1
−6 | |
3 1 3 7 ||
1 −2 1 −4
+
=
|
20−42+19
=−1
3 3 3
| |
2 −1 6
x 3=
1 4 −4
3 0 7
=
|
2
4 −4 1 −4
0 7
+||
3 7
+6| | |
1 4
3 0 56 +19−72
= =1
3 3 3
Therefore, the solution is (2,-1,1)