Professional Documents
Culture Documents
Given
1 1 2
1 2 1
2 1 1
P=
Sales Package Number of plates of Number of hot- Number of Offer price (RM)
spaghetti dogs cupcakes
A 4 2 2 28
B 3 4 3 30
C 2 4 2 24
By representing the prices of a plate of spaghetti, a hotdog and a cupcake as x, y and z respectively, obtain the
simultaneous equation representing the information above. [3 marks]
By applying the Gaussian elimination, find the price of a plate of spaghetti, a hotdog and a cupcake respectively. [12
marks]
Answer :
( ) ( )
2 3 4 10 4 9
A= 4 3 1 B= 15 4 14
The matrices A and B are given by , . State with reason
1 2 4 5 1 6
( )
2 3 4
3. A= 4 3 1 and | A|=[ 2 3 4 +3 1 1+4 2 4 ] [ 1 3 4 +2 1 2+4 3 4 ]=27 which
1 2 4
1
is not equal to 0, A is exist and is a singular.###
( )( )
2 3 4 10 4 9
AB = 4 3 1 15 4 14
1 2 4 5 1 6
( )
20+ 3 1520 2 412+ 4 1 183 14+ 4 6
40+455 4 43 4+1 363 14 +6
10+2 154 5 42 4+ 4 92 14+ 4 6
( )
5 0 0
0 5 0 =5 I
0 0 5
AB=5 I
B B
A =I = A A1=I = =A1
5 5
( )
10 4 9
1 1
A = 15 4 14
5
5 1 6
( )
1 3 1
Given that A= 1 1 0 , show that
3 2
A = A + 6 AI , where I is the identity matrix. Hence, deduce
2 1 1
1
A . [7 marks]
Answer:
( )( )( )
1 3 1 1 3 1 1 3 1
A 3= 1 1 0 1 1 0 1 1 0 [M1]
2 1 1 2 1 1 2 1 1
( )
11 19 8
= 6 3 1 [A1]
17 12 8
( )( )( )( )
1 3 1 1 3 1 1 3 1 1 0 0
2
A +6 AI = 1 1 0 1 1 0 +6 1 1 0 0 1 0 [M1]
2 1 1 2 1 1 2 1 1 0 0 1
( )
11 19 8
= 6 3 1
17 12 8
3 2
A = A +6 AI [A1]
( ) ( )( )( )
1 3 1 1 0 0 1 3 1 1 3 1
= 1 1 0 +6 0 1 0 1 1 0 1 1 0 [M1]
2 1 1 0 0 1 2 1 1 2 1 1
( )
1 2 1
= 1 1 1 [A1]
3 5 4
[7 marks]
1 0 1
3 0 1
1 k 0
Matrix M is given by M = .
1
Find M in terms of k using the elementary row operations. [5 marks]
Hence, solve the simultaneous equations
x 1 z + 31= 0
0
4 4
3x + z 11 = 0
1 1 1
M 4x + y 5 = 0
1 [5 marks]
Answer : 4k 4 k k
3 1
1 0 1 1 0 0 0
4 4
3 0 1 0 1 0 B1
1 k 0 0 0 1
x + 0y z = 3
3x + 0y + z = 11 B1
1 x 0 y1+ 10z =05/40 k = B1
0 0 41 3 1 1 0 3R1 R2
0 k 1 1 0 10 R R1 1 0
1 4 4 11 3
M 1 1 4 4 4 16
4
M1 3 1 0 3 1 0
4 4
1 0 1 1 0 0
3 1 1
0 01 10 1 x 0 R32
1 4 4 4
0 13 01 1 1 y 1 1 115
1 k
k 0 0 z k k R3
4 4
B1
1 1
0 3
1
0 x 0 4 1 4 1 R0 R
13 1 1 2
0 0 y 1 4 04 16 11
z 44 34 1 1 0 5
0 1 0 1 1 1 R2 R3 4
k M1
4k 4k k
x 2
y 1 3 1
0
1 0 z 0 4 5 4
1 1 1
0 1 0 A1
4k 4k k R2 R3
0 0x =1 2, y3 = 3, 1 z = 5A1
0
4 4
M1A1
Matrix P is given by
1 0 0
1 2 0
1 3 1
P= for P2 + mP + nI = O.
(a) Find the values of m and n. [5 marks]
equations.
x 2y z 6
3x 5 y z 2
2 x y 2 z 4
(9 marks)
A pharmacist prescribed to a client 11 mg of vitamin A, 18 mg of vitamin B and 14 mg of vitamin C each day. The client
can choose from the combination of three types of tablets namely P, Q and R. Each tablet of P contains 1 mg of vitamin A, 1
mg of vitamin B and 2mg of vitamin C. Each tablet of Q contains 1 mg of vitamin A, 2 mg of vitamin B and 1 mg of vitamin
C. Each tablet of R contains 3 mg of vitamin A, 5 mg of vitamin B and 3 mg of vitamin C. The above information is
tabulated as follows.
number of tablets of R,
(a) form a system of linear equations based on the above information. [2 marks]
(b) use the Gauss-Jordan elimination method to solve the system of linear equations
described in (a).
(a) (i)
x+ y+ 3 z=11
B1B1
x+ 2 y + z=18
2 x + y +3 z=14
( )( ) ( )
1 1 3 x 11
(ii) 1 2 5 y = 18
2 1 3 z 14
M1 M1
( |) ( |) ( |)
1 1 3 11 1 1 3 11 1 1 3 11
M1M1M1
1 2 5 18 R 1+ R 2 0 1 2 7 2 R1 + R3 0 1 2 7
2 1 3 14 2 1 3 14 0 1 3 8
M1M1
(
1 0
R 2+ R 1 0 1
1 4
|) ( 1 0 1 4 1 0 14
2 7 R 2+ R 3 0 1 2 7 R 3 0 1 2 7
0 1 3 8
0 0 1 1 0 0 1 1 | ) ( |) A1
( |) ( |)
1 0 03 1 0 03
R 3++ R 1 0 1 2 7 2 R3 ++ R 2 0 1 0 5
0 0 11 0 0 11
x = 3, y = 5, z = 1