Matrix
Matrix
1. If the order of matrix A is m*p and the order of matrix B is p*n, then the order of matrix AB
is…………..
(a) n x p (b) m x n (c) n x p (d) n x p (e) n x m
(a) AB ≠BA (b) (𝐴𝑡 )𝑡 = A (c) all of above (d) none above
5. If A is a 2*3 matrix, and B is a 3*4 matrix, how many columns does AB have …4…
1 2 4 3
6. What is the size of matrix A =[ 12 7 1 4 ] … … … … … Ans 3 × 4
13 14 2 1
(d). I, II, III and IV (e). I, II and IV only (f). None of the above
3𝑎 + 3𝑏 + 𝑐 = 4 𝒂𝒙 + β𝒚 + δ𝒛 = ε 𝑥−𝑦 =4
𝐚. 𝑎 − 5𝑏 + 4𝑐 = 4 𝐛. 𝑎𝑥 − 𝑏𝑦 + 𝑐𝑧 = 𝑓 𝐜. 2𝑥 + 𝑦 = 6
2𝑎 + 3𝑏 =4 λ𝑥 + μy + vz = r 𝑥 + 3𝑦 = 8
Solution
3 3 1 a 4
𝐚. [ 1 −5 4 ][ b ] = [ 3 ]
2 3 0 c 6
ɑ β δ x ε
𝐛. [ a b c ][ y ] = [ f ]
λ μ v z r
1 −1 x 4
𝐜. [ 2 1 ] [ y ] = [ 6 ]
1 3 8
𝐚. W 2 𝐛. WX + Y 𝐜. XY 𝐝. XW + Y 𝐞. YW T 𝐟. WXY
Solution
1 2 3 1 2 3
𝐚. W 𝟐 = [ ][ ]
3 2 1 3 2 1
The number of columns in the first matrix is not equal to the number of rows in the second matrix. The
multiplication is therefore not possible.
1 0
1 2 3 0 1
𝐛. WX + Y = [ ][2 −1 ] + [ ]
3 2 1 −2 5
0 2
(1 ∗ 1 + 2 ∗ 2 + 3 ∗ 0) (1 ∗ 0 + 2 ∗ −1 + 3 ∗ 2) 0 1
=[ ]+[ ]
(3 ∗ 1 + 2 ∗ 2 + 1 ∗ 0) (3 ∗ 0 + 2 ∗ −1 + 1 ∗ 2) −2 5
5 4 0 1
=[ ]+[ ]
7 0 −2 5
5 5
=[ ]
5 5
1 0
0 1
𝐜. XY = [ 2 −1 ] [ ]
−2 5
0 2
(1 ∗ 0 + 0 ∗ −2) (1 ∗ 1 + 0 ∗ 5) 0 1
= [ [2 ∗ 0 − 1(−2)] [2 ∗ 1 − 1(5)] ] = [ 2 −3 ]
[0(−2) + 2(−2)] [0 ∗ 1 + 2(5)] −4 10
1 0
1 2 3 0 1
𝐝. XW + Y = [ 2 −1 ] [ ]+[ ]
3 2 1 −2 5
0 2
The resulting matrix from XW is a 3×3 matrix. It is impossible adding a 3×3 matrix to a 2×2 matrix.
Therefore XW+Y has no solution.
1 0
1 2 3 0 1
f. WXY = [ ][ 2 −1 ] [ ]
3 2 1 −2 5
0 2
5 4 0 1
=[ ][ ]
7 0 −2 5
5(0) + 4(−2) 5(1) + 4(5)
=[ ]
7(0) + 0(−2) 7(1) + 0(5)
−8 25
=[ ]
0 7
1 3 0 4
10. Let AT = [ ] and B = [ ] , find 4AB
2 5 −1 6
T 1 2
A = (AT ) = [ ]
3 5
Solution
Solution
X1 0.4 −0.2 0.4 6
[ X 2 ] = [ 1.2 0.4 −1.8 ] [ 12]
X3 −1 0 1 10
X1 0.4(6) − 0.2(12) + 0.4(10) 4
[ X 2 ] = [ 1.2(6) + 0.4(12) − 1.8(10)] = [ −6 ]
X3 −1(6) − 0(12) + 1(10) 4
12. Use Gauss Jordan elimination to find the solution to the following given linear systems
3 1 x 2
a. [ ][ y] = [ ]
12 1 2
x 3 1 2
[y] = [ | ]
12 1 2
Using Gauss Jordon elementary row operations,
1 1 1
×R1 −12R1+R2 1 1/3 2/3 − ×R2 − R2 +𝑅1
3 1 2 3 1 1/3 2/3 3 1 1/3 2/3 3 1 0 0
[ | ]=→ [ | ]=→ [ | ]=→ [ | ] =→ [ | ]
12 1 2 12 1 2 0 −3 −6 0 1 2 0 1 2
𝑥 1 0 0
[𝑦 ] = [ | ]
0 1 2
𝑥 = 0 𝑎𝑛𝑑 𝑦 = 2.
1 3 4 X1 3
𝐛. [ 2 7 3 ] [ X 2 ] = [−7 ]
2 8 6 X3 −4
X1 1 3 4 3
[ X2 ] = [ 2 7 3 | −7 ]
X3 2 8 6 −4
Using Gauss Jordon elementary row operations,
1 3 4 3 −2R1+R2 1 3 4 3 −2R1+R3 1 3 4 3 −3R2+R1 1 0 19 42
[2 7 3 | −7 ] = → [0 1 −5 | −13 ] = → [0 1 −5 | −13 ] = → [0 1 −5 | −13 ]
2 8 6 −4 2 8 6 −4 0 2 −2 −10 0 2 −2 10
1
−2R2+R3 1 0 19 42 R3 1 0 19 42 −19R3+R1 1 0 0 4
8
=→ [0 1 −5| −13 ] = → [ 0 1 −5 | −13 ] = → [0 1 −5 | −13 ]
0 0 8 16 0 0 1 2 0 0 1 2
5R3+R2 1 0 0 4
=→ [0 1 0 | −3 ]
0 0 1 2
X1 1 0 0 4
[ X2 ] = [ 0 1 0 | −3 ]
X3 0 0 1 2
X1 = 4, X 2 = −3 and X3 = 2.
1 0 −79/6 −37/6 3
−5R2+R1 R3 1 0 −79/6 −37/6
11
= → [ 0 1 29/6 | 17/6 ] = → [ 0 1 29/6 | 17/6 ]
0 0 11/3 11/3 0 0 1 1
29 79
− R3+R2 1 0 −79/6 −37/6 R3+R1 1 0 0 7
6 6
=→ [ 0 1 0 | −2 ] = → [ 0 1 0 | −2 ]
0 0 1 1 0 0 1 1
X1 1 0 0 7
[ X2 ] = [ 0 1 0 | −2 ]
X3 0 0 1 1
X1 = 7, X 2 = −2 and X3 = 1.
1 1 3 2 5 11 1 0 2 −1 8
R2
5 0 1 0 2 | 1 ] = −3R2 +R1 0 1 0 2 | 1]
= → [ → [
0 0 0 −3 −3 0 0 0 −3 −3
0 5 2 6 5 0 5 2 6 5
1 0 2 −1 8 1 1 0 2 −1 8
R4+R3
−5R2+ R4 0 1 0 2 | 1]=→2 0 1 0 2 | 1]
= → [ [
0 0 0 −3 −3 0 0 1 −5 −3
0 0 2 −4 0 0 0 2 −4 0
1 0 2 −1 8 1 0 0 9 14
−3R3 +R4 0 1 0 2 | 1 ] = −2R3+R1 0 1 0 2 | 1 ]
=→ [ → [
0 0 1 −5 −3 0 0 1 −5 −3
0 0 0 6 6 0 0 0 6 6
1 1 0 0 9 14 1 0 0 0 5
R4
6 0 1 0 2 | 1 ]= →−9R4+R1 0 1 0 2 | 1]
=→ [ [
0 0 1 −5 −3 0 0 1 −5 −3
0 0 0 1 1 0 0 0 1 1
1 0 0 0 5 1 0 0 0 5
−2R4+R2 0 1 0 0 | −1 ] = → 5R4+R3 0 1 0 0 | −1 ]
=→ [ [
0 0 1 −5 −3 0 0 1 0 2
0 0 0 1 1 0 0 0 1 1
𝑥1 1 0 0 0 5
𝑥2 0 1 0 0 | −1 ]
[ 𝑥 ]=[
3 0 0 1 0 2
𝑥4 0 0 0 1 1
𝑥1 = 5, 𝑥2 = −1, 𝑥3 = 2 𝑎𝑛𝑑 𝑥4 = 1.
1 0 7/3 2 3
−7R2 + R1
1 0 7/3 2 5R2+R3 − R3 1 0 7/3 2
2
=→ [0 1 −1/3 | 0 ] = → [0 1 −1/3 | 0 ] = → [0 1 −1/3 | 0 ]
0 −5 1 3 0 0 −2/3 3 0 0 1 −9/2
1 2 7
R3+R2 1 0 7/3 − R3+R1 1 0 0 12.5
3 3
=→ [0 1 0 | −3/2 ] = → [0 1 0 | −1.5 ]
0 0 1 −9/2 0 0 1 −4.5
𝑥 1 0 0 12.5
[ 𝑦 ]=[0 1 0 | −1.5 ]
𝑧 0 0 1 −4.5
𝑥 = 12.5, 𝑦 = −1.5 𝑎𝑛𝑑 𝑧 = −4.5
4 0 0 0 3 0 2 9 13 8
0 0 2 0]
a. [ 𝐛. [ 2 4 −2 ] 𝐜. [10 7 9]
0 1 2 0
1 0 0 1 0 1 1 11 9 10
Solution
4 0 0 0 4 0 0 0 1 0 0 0
𝐚. [
0 0 2 0]=[0 0 2 0 | 0 1 0 0]
0 1 2 0 0 1 2 0 0 0 1 0
1 0 0 1 1 0 0 1 0 0 0 1
4 0 0 0 1 0 0 0 1 1 0 0 0 1/4 0 0 0 1 0 0 0 1/4 0 0 0
R1
0 0 2 0| 0 1 0 0] = 4→ 0 0 2 0| 0 1 0 0] = −R1+R4 0 0 2 0 | 0 1 0 0]
[ [ → [
0 1 2 0 0 0 1 0 0 1 2 0 0 0 1 0 0 1 2 0 0 0 1 0
1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 −1/4 0 0 1
1 0 0 0 1/4 0 0 0 1 0 0 0 1/4 0 0 0
R3+R2 0 1 4 0| 0 1 1 0] = −R2+R3 0 1 4 0| 0 1 1 0]
= → [ → [
0 1 2 0 0 0 1 0 0 0 −2 0 0 −1 0 0
0 0 0 1 −1/4 0 0 1 0 0 0 1 −1/4 0 0 1
1 0 0 0 1/4 0 0 0 1 1 0 0 0 1/4 0 0 0
− R3
2R3+R2 0 1 0 0| 0 −1 1 0] = → 2 0 1 0 0| 0 −1 1 0]
=→ [ [
0 0 −2 0 0 −1 0 0 0 0 1 0 0 1/2 0 0
0 0 0 1 −1/4 0 0 1 0 0 0 1 −1/4 0 0 1
4 0 0 0 1 0 0 0 0.25 0 0 0
⇒[
0 0 2 0]=[0 1 0 0| 0 −1 1 0]
0 1 2 0 0 0 1 0 0 0.5 0 0
1 0 0 1 0 0 0 1 −0.25 0 0 1
4 0 0 0 0.25 0 0 0
0 0 2 0 ] is therefore [ 0 −1 1 0]
The inverse of [
0 1 2 0 0 0.5 0 0
1 0 0 1 −0.25 0 0 1
1
3 0 2 1 0 0 R1 1 0 2/3 1/3 0 0 −2R1 + R2
1 0 2/3 1/3 0 0
3
[ 2 4 −2 | 0 1 0 ] = → [ 2 4 −2 | 0 1 0 ] = → [ 0 |
4 −10/3 −2/3 1 0]
0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1
1 1 0 2/3 1/3 0 0
R1 1 0 2/3 1/3 0 0 −R2+R3
4
= → [0 1 −5/6 | −1/6 1/4 0]=→ [0 1 −5/6 | −1/6 1/4 0]
0 1 1 0 0 1 0 0 11/6 1/6 −1/4 1
6 5
R3 1 0 2/3 1/3 0 0 R3+R2 1 0 2/3 1/3 0 0
11 6
= → [0 1 −5/6| −1/6 1/4 0 ]=→ [0 1 0 | −1/11 3/22 5/11]
0 0 1 1/11 −3/22 6/11 0 0 1 1/11 −3/22 6/11
2
− R3+R1 1 0 0 3/11 1/11 −4/11
3
= → [0 1 0 | −1/11 3/22 5/11 ]
0 0 1 1/11 −3/22 6/11
1
9 13 8 1 0 0 R1 1 13/9 8/9 1/9 0 0 −10R1+R2
1 13/9 8/9 1/9 0 0
9
[10 7 9 |0 1 0 ] = → [10 7 9 | 0 1 0] = → [ 0 −67/9 1/9 | −10/9 1 0]
11 9 10 0 0 1 11 9 10 0 0 1 11 9 10 0 0 1
67 1
R3 1 0 61/67 −7/67 13/67 0 R3+R2 1 0 61/67 −7/67 13/67 0
8 67
= → [0 1 −1/67 | 10/67 −9/67 0 ]=→ [0 1 0 | 1/8 −1/4 1/8 ]
0 0 1 −13/8 −31/4 67/8 0 0 1 −13/8 −31/4 67/8
Low 1 5 3 18
Moderate 3 2 3 22
High 6 1 3 35
A + 5B + 3C = 18
3A + 2B + 3C = 22
6A + B + 3C = 35
1 5 3 A 18
[ 3 2 3 ] [ B ] = [ 22 ]
6 1 3 C 35
A 1 5 3 18
[ B ]=[ 3 2 3| 22 ]
C 6 1 3 35
Using Gauss Jordon elementary row operations,
1
1 5 3 18 −3R1+R2 1 5 3 18 −6R1+R3 1 5 3 18 − R2 1 5 3 18
13
[3 2 3| 22] = → [0 −13 −6 | −32 ] = → [ 0 −13 −6 | −32 ] = → [ 0 1 6/13 | 32/13 ]
6 1 3 35 6 1 3 35 0 −29 −15 −73 0 −29 −15 −73
1 0 9/13 74/13 13
− 5R2+R1
1 0 9/13 74/13 29R2+R3 R3 1 0 9/13 74/13
21
=→ [0 1 6/13| 32/13 ] = → [0 1 6/13 | 32/13 ] = → [0 1 6/13| 32/13 ]
0 −29 −15 −73 0 0 21/13 21/13 0 0 1 1
6 9
− R3+R2 1 0 9/13 74/13 − R3+ R1 1 0 0 5
13 13
=→ [0 1 0 | 2 ]=→ [0 1 0 |2]
0 0 1 1 0 0 1 1
A = 5, B = 2 and C = 1
The investment firm therefore should purchase 5, 2 and 1 stock(s) of portfolio A, B and C respectively.
Solution
X Y Z TOTAL
16. A cereal Company makes a cereal from several ingredients. Two of the ingredients, oats and
rice, provide vitamins A and B. The company wants to know how many ounces of oats and rice it
should include in each box of cereal to meet the requirements of 48 milligrams of vitamin A and
12 milligrams of vitamin B. An ounce of oats contributes 8 milligrams of vitamin A and 1
milligram vitamin B, whereas an ounce of rice contributes 6 milligrams of A and 2 milligrams of
B.
Solution
Let x and y represent the number of ounces of oats and rice respectively.
NUTRIENTS INGREDIENTS
Vitamin A 8 6 48
Vitamin B 1 2 12
8x + 6y = 48
x + 2y = 12
One 5 5 10 1200
Two 10 5 60 2000
Three 5 10 30 2200
5A + 5B + 10C = 1200
10A + 5B + 60C = 2000
5A + 10B + 10C = 2200
18. A manufacturer produces two types of products X and Y. Each product is first processed in a
machine M1 and sent to another machine M2 for finishing. Each unit of X requires 20 minutes in
M1 and 10 minutes on M2 while the corresponding time for Y are 10 minutes on M1 and 20mins
on M2. The total time available on each machine is 600 minutes. Calculate the number of units of
X and Y produced by constructing a matrix equation of the form AX=B
Solution
MACHINE PRODUCTS
X Y TOTAL
M1 20 10 600
M2 10 2O 600
Solution
A + B + C = 11000
A + 2B + 3C = 25000 … … … … … … … … … Profit function
17000 + 4A + 5B + 7C = 80000 … … … … . … … … … . cost funtion