Matrices and System of Linear Equations PDF
Matrices and System of Linear Equations PDF
Topic outlines:
4.1 Matrices
4.2 Determinant of matrices
4.3 Inverse matrices
4.4 System of linear equations with three variables
4.1 MATRICES
Example 1:
Let A = é 5 6
1ù
ê 2ú
ê- 2 3 - 7ú
ë û
(a) What is the order of A? (b) If A = [ aij] identify a21 and a13
Example 2:
ì ij i£ j
Given A = éë aij ùû 3´3 , find matrix A if aij = í
î2 j + i i > j
Example 3:
Given matrices A =
é1 2ù , é 4 3ù and é1 ù
ê ú B=ê ú C = ê ú , find
ë3 4û ë - 5 6û ë2û
2) Scalar Multiplication
Example 4:
é 2 -4 ù
1
Given A = êê 8 5 úú , find - A
2
êë -6 7 úû
Example 5 :
é1 4ù é3 6ù
Let A = ê ú and B = ê ú , calculate 3A – 2B.
ë5 3û ë4 2û
1. A + B = B + A (Commutative) 5.a ( A + B) = aA + aB
Properties 2.( A + B) + C = A + (B + C ) (Associative)
3.A + (- A) = (- A) + A = 0 (O - zero matrix) 6.a ( bA) = (ab ) A
4.(a + b ) A = aA + bA
a , b - constant
3) Multiplication of Matrices
The product of two matrices A and B is defined only when the number of columns in A is equal to the
number of rows in B. If order of A is m x n and the order of B is n x p, then AB has order m x p.
If,
R = [a1 a2 a3 ! an ] and é b1 ù , then RC = [a1b1 + a2b2 + a3b3 ! + anbn ]
êb ú
ê 2ú
C = êb3 ú
ê ú
ê!ú
êëbn úû
Example 6 :
é 2 1ù
Find é 1 2 3ù ê ú
ê - 2 0 5 ú ê - 3 4ú
ë û
ëê 2 1úû
Example 7:
é - 1 2ù é2 - 1ù
Let A=ê ú and B = ê ú , show that AB ¹ BA .
ë 3 4û ë3 2 û
Properties
1. A(BC ) = ( AB )C (Associative)
2. A(B + C ) = AB + AC (Distributive)
4) Equality of matrices
Two matrices are equal if they have the same dimension and their corresponding entries are equal.
Example 8:
Example 9 : é1 é1 2ù
2ù é1 2 ù
A=ê B = [1 2] C = êê2 1 úú D=ê
ë2 1 úû ú
ë2 1 û
ê 14úû
é3 - a 6 4ù é 9 6ë-2c ù
Let A = ê and B = ê . If A = B, find the value of a, b, c and d.
ë 8 4b 2úû ë2 - 3d - 8 2úû
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
5) Transpose Matrix
Definition
The transpose of a matrix A , written as AT, is the matrix obtained by interchanging the rows and
columns of A. That is, the i th column of AT is the i th row of A for all i’s. If Amxn = [aij], then
ATnxm = [aji].
é a11 a12 a13 ù é a11 a21 a31 ù
ê ú A = êêa12 a22 a32 úú
A = ê a21 a22 a23 ú T
Example 10:
é 2ù é1 3 3 ù
If B = ê1ú , find B T . If D = ê2 5 4ú , find D T .
ê ú ê ú
êë3úû 3´1 êë1 3 5úû
Example 11:
1. (A ± B)T = AT ± BT
Properties 2. (AT)T = A
3. (AB)T = BTAT
4. (kA)T = kAT , k is a scalar
6) Symmetric Matrix
A square matrix, A = [ aij ]nxn, is symmetric if it is equal to its own transpose, A = AT that is aij = aji
é1 2 ù T é1 2 ù é 1 a - bù é 1 a - bù
A=ê ú , A = ê 2 3ú B = ê a 3 c ú , B = êê a 3 c úú
ê ú T
ë 2 3û ë û
êë- b c 2 úû êë- b c 2 úû
Example 12:
é1 2ù T
Given A = ê T
ú , find A . Hence, prove that AA is a symmetric matrix.
ë3 4 û
é0 2 - 1ù é 0 -2 1 ù
ê
B = ê- 2 0 3 ú , B = êê 2
ú T
0 - 3úú = - B
êë 1 - 3 0 úû êë- 1 3 0 úû
2x2 matrices
Determinant
of A
3x3 matrices
é 2 5ù é3 2 ù
Given A = ê ú and B = ê ú . Find A, AB .
ë 3 8û ë5 2û
[ ]
Let A be m x m matrix , A = aij ,
AND
NOTE !
é + m11 -m12 + m13 ù
cofactor matrix : C = êê -m21 +m22 -m23 úú
êë + m31 -m32 + m33 úû
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
Example 14 :
é1 2 - 1ù
Let A = êê3 4 2 úú , find minors and cofactors of a11, a21, a12
..
êë1 4 3 úû
Expansion of Cofactors
[ ]n´n
For any matrix A = aij , the A is obtained by summing up the product of each element of
certain row or column by its cofactor.
a a a
Example 15 :
é3 - 1 4 ù
Let A = ê1 - 2 7 ú , find A by expanding along:
ê ú
êë5 - 1 10úû
(a) second row (b) first column
Example 16 :
é 2 -5 1 ù
Find the determinant of A = ê -3 0 1 ú by using expansion of the cofactors.
ê ú
êë 2 5 -4úû
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
Example 17 :
æ 1 6 4ö
ç ÷
Given matrix A = ç 2 7 3 ÷ , find
ç8 9 5÷
è ø
(a) a11, a 21, a 31 (b) m11 , m21, m31 (c) c11, c21, c31
a b
A= = a11c11 + a12 c12 = ad - bc
c d
Properties Example
1. If the elements of one row (or one column) of 1 2 5 0
a determinant are zero, then the value of the e.g. =0-0=0 =0-0=0
determinant is zero. 0 0 3 0
2 0 0
4 0 0 0 0 4
0 4 0 =2 -0 +0
0 3 0 3 0 0
0 0 3
Example 18 :
1 0 3 1 2 1 1 0 2 1 -2 2
a) 2 1 2 = 0 1 x b) - 2 1 - 1 = - 2 5 -1
1 2 4 3 2 4 1 3 3 1 x 3
2 - 1 19 2:
Example -x 4 -4 2 -1 2
c) 1 3 -2 = 1 3 -2 d) 0 x -2 =6
4 2 1 1 - 2 6 3x 3 0 0 1
Given that 2 4 - 1 = 9.
1 5 -2
2 -4 6 2 -2 9
a) 2 4 -1 b) 4 4 -3
1 5 -2 2 5 -6
Example 20 :
Elementary Row
Adjoint method Use the property Operations (ERO)
A -1 =
1
A
Adj( A) AB = kI [A I ] ® [I A ] -1
A. Adjoint Method
1
Find the determinant Find the adjoint A -1 = Adj( A)
matrix A
If A = 0 matrix
Example 21 :
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
é3 1 ù
Find the adjoint matrix A = ê ú . Hence, find the inverse of A.
ë5 4 û
Example 22 :
é1 3 2ù
ê
Find the adjoint of matrix B = 0 2 2úú . Hence, find the inverse of B.
ê
êë- 2 - 1 0úû
Example 23 :
é3 0 0ù
é 3 4ù
a) A = ê ú b) B = êê0 2 0úú
ë - 5 4û êë0 0 1úû
If AB = BA = I , so B = A -1 and A = B -1
Hence, if AB = kI
1 1
Then A-1 = B and also B -1 = A
k k
(A )
-1 -1
=A ( AB )-1 = B -1 A -1
(A )
T -1
( )
= A -1
T
A -1 =
1
A
AI = AI = A A-1 A = I
Example 24 :
é1 2 3 ù é 1 1 - 1ù
ê ú
Given A = 2 3 4 and B = - 10 4 ê 2 úú . It is known that AB = kI , k is a constant, I is
ê ú ê
êë1 5 7úû êë 7 - 3 1 úû
3´ 3 identify matrix. Find k and hence deduce A -1 .
Example 25 :
é1 1 2ù
Given A = ê 0 2 2úú . Find A 2 - 6 A + 11I , with I is an identity matrix 3´ 3 . Show that
ê
êë- 1 1 3úû
(
A A2 - 6 A + 11I ) = 6I . Hence, deduce A -1
Example 26 :
é3 1 1ù
Given A = ê1 3 1ú . Find the values of m and n such that A 2 + mA + 1nI , with I is the 3´ 3
ê ú
êë1 1 3úû
identity matrix and 0 is the zero matrix. Use this relation to obtain A -1 and show that
A3 = 39 A - 70 I .
th th
§ Adding a multiple of j row to the i row.
Ri = aR j + Ri
*
Example 27 :
Find the inverses of the following matrices by using elementary row operations:
é2 1 ù
a) A=ê ú
ë7 4 û
é1 - 1ù
b) B = ê ú
ë2 2 û
Example 28 :
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
é2 1 1 ù
a) A = ê3 2 1ú
ê ú
êë2 1 2úû
é1 2 1 ù
b) B = ê0 1 - 1ú
ê ú
êë1 2 3 úû
é1 3 - 2 ù
c) C = ê1 2 0 ú
ê ú
êë2 8 - 8úû
é a1 b1 c1 ù é x ù é d1 ù
êa b2 c 2 úú êê y úú = êêd 2 úú
ê 2
êëa 3 b3 c3 úû êë z úû êë d 3 úû
AX = B
Example 29 :
Write the each of the following system of linear equations in the form of a matrix equation.
3x + 2 y - z = 6 5 x + 2 y + 3z = 48
a) x + 4 y + 3z = 5 b) 7 x + 3 y + 4 z - 67 = 0
5x - y + z = 4 x + 2 y = 32 - 3z
i) Inverse of matrix A
AX = B
A ( AX ) = A-1 B
-1
( )
A-1 A X = A-1 B
IX = A-1 B
X = A-1 B
Example 30 :
é2 - 1 1ù é 1 3 - 1ù
Given that A = ê 1 0 1ú and B = êê- 1 5 - 1úú. Evaluate the product of AB and deduce A -1 .
ê ú
êë 3 - 1 4úû êë- 1 - 1 1úû
Hence, solve the system of equations
2x - y + z = 3
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
Example 31 :
é 2 5 - 4ù é4 2 1 ù
1 ê
Show that ê 7 - 11 5ú is the inverse of êê3 0 2úú.
ú
19
êë- 3 2 6úû êë1 1 3úû
Four oranges, two lemons, and one lime cost RM8.80. Three oranges and two limes cost RM6.20.
An orange, a lemon and three limes cost RM5.50. Form a system of linear equations and find the cost
of an orange, the cost of a lemon, and the cost of a lime.
Example 32 :
é 2 3 4ù
It is given that A = êê 5 0 1úú .
êë 8 9 3úû
a) Find A
b) Write down the cofactors of all the elements in A
c) Determine adjoint of matrix A
d) Find A -1 . Hence, solve the system of linear equations below
2x + 3 y + 4z = - 7
5x + z = -7
8 x + 9 y + 3z = - 5
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
Example 33 :
a) 2x – y + z = 0 b) x + y +z = 12
x + y – 3z = 3 y +2z = 10
x – y + z = -1 2x + y + z = 16
Example 34 :
An ice cream parlor sells three sizes of ice cream cones: small cones for RM0.35, medium cones for
RM0.50, and large cones for RM0.60. Yesterday the ice cream parlor sold a total 190 ice cream
cones, as many medium size cones as large and small cones combined, and took in RM89.50 from
the sale of these ice cream cones. Find how many of each size were sold by using Gauss Jordan
elimination method.
Example 35 :
A researcher wants to provide a rabbit with 2100 units of vitamin A, 4300 units of vitamin C, and
1300 units of vitamin E. The rabbit is to be fed a mixture of three foods. Each gram of food I
contains 3 units of vitamin A, 5 units of vitamin C, and 4 units of vitamian E. Each gram of food II
contains 5 units of vitamin A, 12 units of vitamin C, and 2 units of vitamin E. Each gram of food III
contains 5 units of vitamin A, 9 units of vitamin C, and 1 unit of vitamin E. How many grams of
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
each food should the rabbit be fed? (Use Gauss-Jordan elimination method to solve the system)
Example 36 :
Pak Majid sells apples grade A, B, and C. The total price of a grade A apple and a grade B apple is
three times the price of a grade C apple. Pak Majid sells 80 grade A apples, 95 grade B apples and
60 grade C apples to Pak Abu. Pak Majid also sells 55 grade A apples, 70 grade B apples and 90
grade C apples to Pak Hamid. Pak Abu and Pak Hamid pays RM160.50 and RM138 respectively to
Pak Majid.
a) If x, y and z represents the price of a grade A apples, a grade B apples and a grade C apples
respectively, write a system of linear equations to represent the above information.
c) Solve for the values of x, y and z using Gauss Jordan elimination method.
Exercises:
1. Solve the following system of linear equation using inverse matrix method/ Gauss Jordan
elimination method:
3. A coffee merchant sells three blends of coffee. A bag of the house blend contains 300g of
Colombian beans and 200g or French roast beans. A bag of special blend contains 200g of
Colombian beans, 200g of Kenyan beans, and 100g of French roast beans. A bag of gourmet
blend contain 100g of Colombian beans, 200g of Kenyan beans, and 200g of French roast
beans. The merchant has on hands 30kg of Colombian beans, 15kg of Kenyan beans, and
25kg of French roast beans. I f he wishes to use up all the beans, how many bags of each type
MARICES AND SYSTEM OF LINEAR EQUATIONS Chapter 4
4. In the following table, 400 units of food A, 600 units of food B, and 600 units food C are
placed in the test tube each day and the data on daily food consumption by the bacteria (in
units per day) are as shown in the table. Using Gauss Jordan Elimination Method, determine
how many bacteria of each strain can co exist in the test tube and consume all the food?
Food A 1 2 0
Food B 2 1 1
Food C 1 1 2
Answer:
1. a) x = 1, y = 1
b) x1 = 2 , x 2 = - 1 , x3 = - 2
3 3 3
c) No Solution, the inverse matrix does not exist
3. 65 bags of house blend, 30 bags of special blend, and 45 bags of gourmet blends.