2. 2. During the school’s family day, U6A offers three sales packages A, B and C for spaghetti, hot-dogs and cupcakes.
The number of each item and the offer price for each package are shown in the following table.
Sales Package Number of plates of
spaghetti
Number of hot-
dogs
Number of
cupcakes
Offer price (RM)
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 :
8. Matrix P is given by
P =
131
021
001
for P2 + mP + nI = O.
(a) Find the values of m and n. [5 marks]
(b) Hence deduce P3 and P1. [5 marks]
Using an augmented matrix and elementary row operations, find the solution of the system of
equations.
422
253
62
zyx
zyx
zyx
(9 marks)
9. 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.
Vitamin Type of tablets Amount of vitamin (mg)
P Q R
A 1 1 3 11
B 1 2 5 18
C 2 1 3 14
By using x as the number of tablets of P, y the number of tablets of Q and z the
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)
𝑥 + 𝑦 + 3𝑧 = 11
𝑥 + 2𝑦 + 𝑧 = 18
2𝑥 + 𝑦 + 3𝑧 = 14
(ii) (
1 1 3
1 2 5
2 1 3
) (
𝑥
𝑦
𝑧
) = (
11
18
14
)
(
1 1 3
1 2 5
2 1 3
|
11
18
14
)
−𝑅1+𝑅2
→ (
1 1 3
0 1 2
2 1 3
|
11
7
14
)
−2𝑅1+𝑅3
→ (
1 1 3
0 1 2
0 −1 −3
|
11
7
−8
)
−𝑅2+𝑅1
→ (
1 0 1
0 1 2
0 −1 −3
|
4
7
−8
)
𝑅2+𝑅3
→ (
1 0 1
0 1 2
0 0 −1
|
4
7
−1
)
−𝑅3
→ (
1 0 1
0 1 2
0 0 1
|
4
7
1
)
−𝑅3++𝑅1
→ (
1 0 0
0 1 2
0 0 1
|
3
7
1
)
−2𝑅3++𝑅2
→ (
1 0 0
0 1 0
0 0 1
|
3
5
1
)
x = 3, y = 5, z = 1
B1B1
M1 M1
M1M1M1
M1M1
A1