Question
Question: A shopkeeper has 3 varieties of pens ‘A’, ‘B’ and ‘C’. Meenu purchased 1 pen of each variety for a t...
A shopkeeper has 3 varieties of pens ‘A’, ‘B’ and ‘C’. Meenu purchased 1 pen of each variety for a total of Rs.21. Jeevan purchased 4 pens of ‘A’ variety, 3 pens of ‘B’ variety and 2 pens of ‘C’ variety for Rs.60. While Shikha purchased 6 pens of ‘A’ variety, 2 pens of ‘B’ variety and 3 pens of ‘C’ variety for Rs.70. Find the cost of each variety of pen using the Matrix method?
Solution
We start solving the problem by assigning the variables for cost of the pen of each variety given. We then write the given cost in terms of equations using these variables. We then convert the obtained linear set of equations to the form AX=B. We then apply the row transformations and make necessary calculations to get the values of cost of pens of each variety.
Complete step-by-step answer:
According to the problem, we are given that the shopkeeper sells 3 varieties of pens ‘A’, ‘B’ and ‘C’. Meenu purchased 1 pen of each variety for a total of Rs.21 while Jeevan purchased 4 pens of ‘A’ variety, 3 pens of ‘B’ variety and 2 pens of ‘C’ variety for Rs.60 while Shikha purchased 6 pens of ‘A’ variety, 2 pens of ‘B’ variety and 3 pens of ‘C’ variety for Rs.70. We need to find the cost of each variety of pen using the Matrix method.
Let us assume the cost of pens of varieties of pens ‘A’, ‘B’ and ‘C’ be ‘x’, ‘y’ and ‘z’.
According to the problem, Meenu purchased 1 pen of each variety for Rs.21.
So, we get x+y+z=21 ---(1).
According to the problem, Jeevan purchased 4 pens of ‘A’ variety, 3 pens of ‘B’ variety and 2 pens of ‘C’ variety for Rs.60.
So, we get 4x+3y+2z=60 ---(2).
According to the problem, Shikha purchased 6 pens of ‘A’ variety, 2 pens of ‘B’ variety and 3 pens of ‘C’ variety for Rs.70.
So, we get 6x+2y+3z=70 ---(3).
So, we need to solve the following linear set of equations obtained from equations (1), (2) and (3) to find the costs ‘x’, ‘y’, ‘z’.
x+y+z=21.
4x+3y+2z=60.
6x+2y+3z=70.
Let us write these linear set of equation in form of AX=B, where
⇒A=coefficient matrix=1 4 6 132123.
⇒X=variablematrix=x y z .
⇒B=constantmatrix=21 60 70 .
So, we get 1 4 6 132123x y z =21 60 70 ---(4).
Let us apply row transformations in the matrix of equation (4) to get the values of ‘x’, ‘y’ and ‘z’.
Let us apply R2→R2−4R1 and R3→R3−6R1.
⇒R1→R1 R2→R2−4R1 R3→R3−6R1 1 4−4 6−6 13−42−612−43−6x y z =21 60−84 70−126 .
⇒1 0 0 1−1−41−2−3x y z =21 −24 −56 .
Let us apply R3→R3−4R2.
⇒R1→R1 R2→R2 R3→R3−4R2 1 0 0−0 1−1−4+41−2−3+8x y z =21 −24 −56+96 .
⇒1 0 0 1−101−25x y z =21 −24 40 .
So, we get the linear equations converted as
x+y+z=21 ---(5).
−y−2z=−24 ---(6).
5z=40 ---(7).
From equation (7), we get z=540=8.
Let us substitute the value of z in equation (6). We get −y−2(8)=−24.
⇒y=24−16=8.
Let us substitute the values of y and z in equation (5). We get x+8+8=21.
⇒x=21−16=5.
So, we have found the cost of pens of variety ‘A’, ‘B’ and ‘C’ as Rs.5, Rs.8, Rs.8.
∴ The cost of pens of variety ‘A’, ‘B’ and ‘C’ is Rs.5, Rs.8, Rs.8.
Note: We can also solve this problem by using Cramer’s method, Matrix inversion method. We can also take the row echelon form of matrix to reduce the confusion while applying the row transformations. We should not apply row transformations to the variable matrix as it will give the same linear set of equations again. As there are good amounts of calculations required, there is a high chance of making mistakes. To avoid such mistakes, we need to calculate each step properly.