The cost of 4 kg onion, 3 kg wheat and 2 kg rice is Rs 60. The cost of 2 kg onion,4 kg wheat and 6 kg rice is Rs 90. The cost of 6 kg onion 2 kg wheat and 3 kg rice is Rs 70. Find cost of each item per kg by matrix method.
Open in App
Solution
Let the cost of 1 kg onion , 1 kg wheat and 1 kg of rice be Rsx,Rsy,Rsz respectively.
So, 4x+3y+2z=60
2x+4y+6z=90
6x+2y+3z=70
These equations can be written as
AX=B
where A=⎡⎢⎣432246623⎤⎥⎦,X=⎡⎢⎣xyz⎤⎥⎦,B=⎡⎢⎣609070⎤⎥⎦
Here,
|A|=4(12−12)−3(6−36)+2(4−24)
⇒|A|=90−40=50
Since, |A|≠0
Hence, the system of equations is consistent and has a unique solution given by X==A−1B
A−1=adjA|A| and adjA=CT
C11=(−1)1+1∣∣∣4623∣∣∣
⇒C11=12−12=0
C12=(−1)1+2∣∣∣2663∣∣∣
⇒C12=−(6−36)=30
C13=(−1)1+3∣∣∣2462∣∣∣
⇒C13=4−24=−20
C21=(−1)2+1∣∣∣3223∣∣∣
⇒C21=−(9−4)=−5
C22=(−1)2+2∣∣∣4263∣∣∣
⇒C22=12−12=0
C23=(−1)2+3∣∣∣4362∣∣∣
⇒C23=−(8−18)=10
C31=(−1)3+1∣∣∣3246∣∣∣
⇒C31=18−8=10
C32=(−1)3+2∣∣∣4226∣∣∣
⇒C32=−(24−4)=−20
C33=(−1)3+3∣∣∣4324∣∣∣
⇒C33=16−6=10
Hence, the co-factor matrix is C=⎡⎢⎣030−20−501010−2010⎤⎥⎦