Professional Documents
Culture Documents
6 7 11 20 15 5 0 6 2 5 8 7
1 12 2
A=
B= 6 8 10 C= 4 7 4 D= 6 3 2
10 4 8 4 3 1 6 0 5 15 12 4
A 1 2
3 4
is A = 1 2 = a11a22 - a12 a21 1 4 - 2 3 = -2
3 4
as a22 a23
=a22 a33 - a 23 a32 ,
a32 a33
a21 a23
=a21a33 - a23a31 , and
a31 a33
a21 a22
=a21a32 - a22 a 31
a31 a32
by substitution we have
A = a11a22 a33 - a11a23a32 + a12a23a31 - a12a21a33 + a13a21a32 - a13a 22a 31
The Determinant
for a 3x3 Matrix
Note that if we have a matrix A such that
a11 a12 a13
A a21 a22 a23
a31 a32 a33
Then |A| can also be written as
a22 a23 a a23 a a22
det A = A = a11 - a12 21 + a13 21
a32 a33 a31 a33 a31 a32
or a12 a13 a a23 a a12
det A = A = -a21 + a22 11 - a23 11
a32 a33 a31 a33 a31 a32
or
a12 a13 a a13
det A = A = a31 - a32 11 + a 33 a11 a12
a22 a23 a21 a23 a21 a22
The Determinant
for a 3x3 Matrix
To do so first create a matrix of the same
dimensions as A consisting only of
alternating signs (+,-,+,…)
+ - +
- + -
+ - +
The Determinant
for a 3x3 Matrix
Then expand on any row or column (i.e., multiply each element in the
selected row/column by the corresponding sign, then multiply each of
these results by the determinant of the submatrix that results from
elimination of the row and column to which the element belongs
For example, let’s expand on the second column
which gives us
a11 a13
a22
a31 a33
The Determinant
for a 3x3 Matrix
Finally, for the third term of our expansion we will
multiply -a32 by the determinant of the matrix formed
when row 3 and column 2 are eliminated from A:
which gives us
a11 a13
-a32
a21 a23
The Determinant
for a 3x3 Matrix
Putting this all together yields
a21 a23 a a13 a a13
det A = A = -a12 + a22 11 - a32 11
a31 a33 a31 a33 a21 a23
m
det A = A = a1j -1
1+j
A1j 1(2) 2( 8) 3( 11) 15
j=1
1 2 1 1
A13 =(-1) 1+3 = (-1- 4) = - 5 A21 =(-1) 2+1 = - (3+1) = - 4
2 1 1 3
1 1 1 1
= (3- 2) = 1 A23 =(-1)2+3 = - (-1-2) = 3
A22 =(-1)2+2
2 3 2 1
1 1 1 1
= (-3-2) = - 5 A32 =(-1) 3+2 = - (-3-1) = 4
A31=(-1)3+1 1 3
2 3
1 1
A33 =(-1) 3+3
= (2-1) = 1
1 2
Matrix
t
3 4 5
3 9 5
9 1 4
Adj A = 4 1 3 =
5 4 5 3 1
1
1 1 1 3 4 5 3 9 5 4 1 3 5 4 1
L.H.S. A(AdjA) = 1 2 3 9 1 4 = 3 18 15 4 2 9 5 8 3
2 1 3 5 3 1 6 9 15 8 1 9 10 4 3
11 0 0 1 0 0
= 0 11 0 = -11
0 1 0 = -11 I3
0
0 11 0 0 1
3 4 5 1 1 1 3 4 10 385 3 12 15
9 1 4 1 2 3 =
M.H.S. (AdjA) A = 5 3 1 9 1 10 9 2 4 9 3 12
2 1 3 5 3 2 5 6 1 5 9 3
11 0 0 1 0 0
= 0 1 0
0 11 0 = -11 = -11 I3
0 0 0 1
0 11
Matrix
1 1 1 2 3 1 3 1 2
R.H.S. = A I3 = 1 2 3
I3 =[1 1 3 -1 2 3 +1 2 1
] I3
2 1 3
1 1 1
Problem: Compute the inverse of the matrices A = 1 2 3
2 1 3
We know, A-1 = AdjA / |A| --- --- (1)
THE INVERSE OF A MATRIX
1 1
3 1 and 3 1
3 3
The inverse of a matrix A is commonly denoted by A-1 or inv A.
The inverse of an n x n matrix A is the matrix A-1 such that AA-1 = I = A-1A
Matrix
1 1 1
Problem: Compute the inverse of the matrices A = 1 2 3
2 1 3
1 2 1 1
A13 =(-1) 1+3 = (-1- 4) = - 5 A21 =(-1) 2+1 = - (3+1) = - 4
2 1 1 3
1 1 1 1
= (3- 2) = 1 A23 =(-1)2+3 = - (-1-2) = 3
A22 =(-1)2+2
2 3 2 1
1 1 1 1
= (-3-2) = - 5 A32 =(-1) 3+2 = - (-3-1) = 4
A31=(-1)3+1 1 3
2 3
1 1
A33 =(-1) 3+3
= (2-1) = 1
1 2
Matrix
3 9 5 t 3 4 5
9 1 4
Adj A = 4 1 3 =
5 4 5 3 1
1
Now,
1 1 1
2 3 1 3 1 2
=
A = 1
2 1
2 3
3 1 3 -1 2 3 +1 2 1
=1(6-3) -1(3 + 6) +1( -1 – 4 )
=3 – 9 –5 = -11
From eqn.(1) we have, 3 4 5
9 1 4
5 3 1
A-1 =
-11 (Answer)
Note: We only consider inverses of 2×2 matrices here
Example 1
é1 2ù
ê ú
Find the inverse of
ë-1 4û
And show it is a left inverse
Example 1
Swap
-1
é 1 2ù 1 é4 - 2ù
ê- ú = ê ú
ë 1 4û 1 2 ë1 1û
-1 4
1
Change sign
determinant
Example 1
-1
é 1 2ù 1 é4 - 2ù
ê- ú = ê ú
ë 1 4û 6 ë1 1û
Note: Although, strictly speaking, the inverse should have term arising from the
determinant multiplied in, in practice we often leave this term out in front of the
matrix.
-
Example 1
-1
é 1 2ù é 1 2ù 1 é4 - 2ùé 1 2ù
ê- ú ê- =
ú 6 ê úê- ú
ë 1 4 û ë 1 4û ë1 1ûë 1 4û
1 é6 0ù
= ê ú
6 ë0 6û
é1 0ù
=ê ú
ë0 1û
Matrix
• Simultaneous Equation
• Form :- AX = B X = A-1B
Where A is the matrix of co-efficient
X is the column vector of unknowns
and B is the column vector of constants.
5 6 4 x 15
7 4 3 y = 19
2 1 6 46
z
If we compare it to Ax= b form
5 6 4 x 15
A = 7 4 3 X = y B = 19
2 1 6 46
z
We have, Ax= B x =A-1B x = (AdjA)B / |A| --- ---(1)
5 6 4 7 4
4 3 7 3
|A| = 7 4 3 = 5 +6 +4
1 6 2 6 2 1
2 1 6
= 5(24+3 ) +6(42 + 6) +4(7-8) =419
Matrix
The co-factor of A are
4 3 7 3
1+1 = - (42+6) = - 48
A11 =(-1) 1 6 = 24+3 = 27 A12 =(-1)
1+2
2 6
7 4 6 4
A13 =(-1) 1+3 = (7- 8) = - 1 A21 =(-1) 2+1 = - (-36-4) = 40
2 1 1 6
5 4 5 6
= (30- 8) = 22 A23 =(-1)2+3 = - (5+12) = -17
A22 =(-1)2+2
2 6 1 1
6 4 5 4
3+1 = (18-16) = 2 A32 =(-1) 3+2 = - (-15-28) = 43
A31=(-1) 7 3
4 3
5 6
A33 =(-1)
3+3
= (20+42) = 62
7 4
Matrix
27 48 1 t 27 40 2
40 22 17 = 48 22 43
AdjA = 2 43 62 1 17 62
27 40 2
48 22 43
1 17 62
From equation (1), X = B
419
15
x 27 40 2
y =
1 48 22 43 19
1 17 62
z 419 46
1257 3
1
= 419 1676 = 4
2514 6
Hence x=3 , y =4 and z = 6
Inverse by
Simultaneous Equations
• Pre or postmultiply your square matrix A by
a dummy matrix of the same dimensions,
i.e.,
a11 a12 a13 a b c
AA 1
a21 a22 a23 d e f
a31 a32 a33 g h i
Set the result equal to an identity matrix of
the same dimensions as your square matrix
A, i.e.,
a11 a12 a13 a b c 1 0 0
AA 1
a21 a22 a23 d e f 0 1 0
a31 a32 a33 g h i 0 0 1
Inverse by
Simultaneous Equations
• Recognize that the resulting expression
implies a set of n2 simultaneous equations
that must be satisfied if A-1 exists:
a11(a) + a12(d) + a13(g) = 1, a11(b) + a12(e) + a13(h) = 0,
a11(c) + a12(f) + a13(i) = 0;
or
a21(a) + a22(d) + a23(g) = 0, a21(b) + a22(e) + a23(h) = 1,
a21(c) + a22(f) + a23(i) = 0;
or
a31(a) + a32(d) + a33(g) = 0, a31(b) + a32(e) + a33(h) = 0,
a31(c) + a32(f) + a33(i) = 1.
-2 1 7
1 2 3 15 3 15 1 0 0
AA = 2 5 4 -8
-1 1 -2 0 1 0 I
1 -3 -2 11 15 3 15 3x3
-1 -1 0 0 1
15 3 15
0 0 3 11 -1 -1
5 5
Divide the result by 3 and substitute for Row 3
in the matrix derived in the previous step
1 2 3 1 0 0
0 1 -2 -2 1 0
0 0 1 1115 -1 3 -115
Inverse by the Gauss-Jordan Algorithm – An
Example
Step 4: Subtract 2·Row 2 from Row 1
1 2 3 1 0 0
2 0 1 -2 - 2 1 0
1 0 7 5 -2 0
Substitute the result for Row 1 in the matrix
derived in the previous step
1 0 7 5 -2 0
0 1 -2 -2 1 0
0 0 1 1115 -1 3 -115
Inverse by the Gauss-Jordan Algorithm – An
Example
Step 5: Subtract 7·Row 3 from Row 1
1 0 7 5 -2 0
7 0 0 1 11 -1 -1
15 3 15
1 0 0 -2 1 7
15 3 15
Substitute the result for Row 1 in the matrix
derived in the previous step
-2 1 7
1 0 0 15 3 15
0 1 -2 -2 1 0
0 0 1 1115 -1 3 -115
Inverse by the Gauss-Jordan Algorithm – An
Example
Step 6: Add 2·Row 3 to Row 2
0 1 -2 - 2 1 0
2 0 0 1 11 -1 -1
15 3 15
0 1 0 -8 1 -2
15 3 15
Substitute the result for Row 2 in the matrix
derived in the previous step
-2 1 7
1 0 0 15 3 15
0 1 0 -8 15 1 3 -215
0 0 1 11 -1 -1
15 3 15
Inverse by the Gauss-Jordan Algorithm – An
Example
Now that the left side of the augmented
matrix is an identity matrix I, the right side
of the augmented matrix is the inverse of
the matrix A (A-1), i.e.,
-2 1 7
15 3 15
A 1 -8 1 -2
15 3 15
11 -1 -1
15 3 15
Inverse by the Gauss-Jordan Algorithm – An
Example
To check our work, let’s see if our result
yields AA-1 = I:
-2 1 7
1 2 3 15 3 15 1 0 0
AA 1
2 5 4 -8 1 -2 0 1 0
1 -3 -2 1115 -13 -115 0 0 1
15 3 15
-2 1 7
15 3 15
-8
15 1 -2
3 15
11 -1 -1
15 3 15
which is A-1!
APPLICATION OF MATRIX
Problem:
Mr. X is a sole trader, manufacturing tables
and chairs. Each table requires 5 hours of labor
and 6 units of material. A chair requires 3 labor
hours and 3 units of material. If Mr. X plans to
produce 10 tables and 15 chairs in the next
week, how many labor hours will he need to
work and how much material will he require?
APPLICATION OF MATRIX
The matrix solution would be:
Ans: 95 hours will be need to work and 105 units material will be required
APPLICATION OF MATRIX
• A publishing house has two branches. In each
branch, there are three offices. In each office,
there are 3 peons, 4 clerks and 5 typists. In one
office of a branch, 6 salesmen are also working.
In each office of other branch 2 head-clerks are
also working. Using matrix notation find i) the
total number of posts of each kind in all the
offices taken together in each branch, ii) the total
number of posts of each kind in all the offices
taken together form both the branches.
APPLICATION OF MATRIX
• A finance company has offices located in 5 divisions 30
districts and 200 tanas. Each office has 1 head clerk, 1
cashier, 1 clerk, and 1 peon. A divisional office has, in
addition, an office superintendent, 2 clerks, 1 typist and 1
peon. A district office has, in addition, 1 clerk and 1 peon.
The basic monthly salaries are as follows: office
superintendent Tk 10,000, head clerk Tk 8000, cashier
Tk7000, clerk, and typist Tk 6000 and peon Tk5000. Using
Matrix notation find: i) the total number of posts of each
kind in all the offices taken together, ii) the total basic
monthly salary bill of each kind of office, and iii) the total
basic monthly salary bill of all the offices taken together.
APPLICATION OF MATRIX
Problem: The total cost of manufacturing three types of motor car is
given by the following table:
Car A 40 100 50
Car B 80 150 80
Car C 100 250 100
Labour costs Rs. 20 per hour, units of material cost Rs.5 each and
units of sub-contracted work cost Rs.10 per unit. Find the total
cost of manufacturing 3000, 2000 and 1000 vehicles of type A, B
and C respectively.
APPLICATION OF MATRIX
Solution:
Let matrix P represents labour hours, material used
and sub-contracted work for three types of cars A, B,
C respectively
40 100 50
P = 80 150 80
100 250 100
Let matrix Q represent labour cost per unit, material cost and cost
of sub-contracted work
20
Q= 5
10
APPLICATION OF MATRIX
The cost of each car A , B, C is now given by the column matrix
40 100 50 20 1800
PQ =
80 150 80 5 = 3150
100 250 100
10 4250
1800
(PQ)R =
3150 3000 2000 1000
4250
= 1,59,50,000
APPLICATION OF MATRIX
Problem:
A,B and C has Rs. 480 , Es 760 and Rs. 710 respectively .
They utilized the amounts to purchase three types of shares of
prices x,y and z respectively. A purchases 2 shares of price x,
5 shares of price y and 3 shares of price z. B purchases 4
shares of price x, 3 shares of price y and 6 shares of price z. C
purchases 1 shares of price x, 4 shares of price y and 10
shares of price z. Using matrix, find the prices per unit of the
three commodities.
APPLICATION OF MATRIX
Solution: We obtain the following set of sumultaneous
linear equations
2x +5y + 3z = 480
4x +3y + 6z = 790
X + 4y+ 10z = 710
APPLICATION OF MATRIX
• A manufacturing company produces three types of
television sets A, B, C. The following matrix shows
the sale of television sets in two different cities:
400 300 200
300 200 100