Question
Question: The cost of 4kg onion, 3kg wheat, and 2kg rice is Rs 60. The cost of 2kg onion, 4kg wheat, and 6kg r...
The cost of 4kg onion, 3kg wheat, and 2kg rice is Rs 60. The cost of 2kg onion, 4kg wheat, and 6kg rice is Rs 90. The cost of 6kg onion, 2kg wheat, and 3kg rice is Rs 70. Find the cost of each item per kg by matrix method.
Solution
Hint: Write the equations. Then convert it in the form of a matrix X=D−1B and find the inverse. And so place the inverse matrix and solve it you will get the price per unit of three commodities.
Now we can see in question.
Let the cost of each item per kg be x,y and z.
So for first, we get the equation as,
4x+3y+2z=60……….. (1)
So for a second, we get the equation as,
2x+4y+6z=90………… (2)
So for the third, we get the equation as,
6x+2y+3z=70 ………… (3)
So now equation (1), (2) and (3) can be written in matrix form that is,
DX=B
Where D=4 2 6 342263,
X=x y z andB=60 90 70 ,
So now to find the cost of each item per kg, we have to find x, y and z.
So we have to find a matrix X.
So we have, DX=B
We know DD−1=I
where I is the identity matrix.
So X=D−1B
So let us check ifD−1it exists or not.
So∣D∣=4(12−12)−3(6−36)+2(4−24)=50=0
Therefore we can see above that D is a nonsingular matrix and the inverse of D exists.
So now we have to find an adjoint D.
Let A=[aij] be a square matrix of order n . The adjoint of a matrix A is the transpose of the cofactor matrix of A . It is denoted by adj A .
Given a square matrix A, the transpose of the matrix of the cofactor of A is called adjoint of A and is denoted by adj A. An adjoint matrix is also called an adjugate matrix.
In other words, we can say that matrix A is another matrix formed by replacing each element of the current matrix by its corresponding cofactor and then taking the transpose of the new matrix formed.
So now we have to find the inverse of D.
D11=(−1)1+14 2 63=12−12=0D12=(−1)1+22 6 63=−(6−36)=30D13=(−1)1+32 6 42=4−24=−20D21=(−1)2+13 2 23=−(9−4)=−5D22=(−1)2+24 6 23=12−12=0D23=(−1)2+34 6 32=−(8−18)=10D31=(−1)3+13 4 26=18−8=10D32=(−1)3+24 2 26=−(24−4)=−20D33=(−1)3+34 2 34=16−6=10
So the matrix of cofactors of D =0 −5 10 300−20−201010.
So now adj D becomes,
adj D =0 30 −20 −501010−2010
So we know D−1=∣D∣1adjD.
So now, D−1=5010 30 −20 −501010−2010.
So now we have got D−1, so now we know X=D−1B.
So now we get,