Q.The cost of 4 kg onion, 3 kg wheat and 2 kg rice is ₹60. The cost of 2 kg onion, 4 kg wheat and 6 kg rice is ₹90. The cost of 6 kg onion, 2 kg wheat and 3 kg rice is ₹70. Find the cost of each item per kg by matrix method.
(OR)
Solve the following system of equations:
x2+y3+z10=4x4−y6+z5=1x6+y9−z20=2
Many problems reduce to a system of linear equations, for example
2x+3yx−y=8=−1.
The inverse matrix method solves such a system by writing it as a single matrix equation and then undoing the coefficient matrix with its inverse — the matrix analogue of dividing.
Writing the system as AX=B
Collect the coefficients, the unknowns and the constants:
A=(213−1),X=(xy),B=(8−1),
so the whole system becomes AX=B.
The idea
For numbers, ax=b gives x=a−1b provided a=0. The same works for matrices: if A is invertible, multiply AX=B on the left by A−1:
A−1(AX)=A−1B⇒IX=A−1B⇒X=A−1B.
X=A−1B
Multiplying on the left matters — matrix products do not commute, so BA−1 would be wrong.
When it works
The inverse A−1 exists only when detA=0, so:
detA=0: the system is consistent with the unique solution X=A−1B.
detA=0: no inverse; the system is either inconsistent (no solution) or has infinitely many — handle it by another method.
Worked steps
For the system above, detA=(2)(−1)−(3)(1)=−5=0, and
Part 1: set up AX=B with the cost matrix, find A−1 via the adjoint, then compute X=A−1B. Part 2 (OR): substitute u=1/x,v=1/y,w=1/z to linearise the system, then solve by elimination.
Part 1: Matrix method for costs.
Let the cost per kg of onion, wheat, rice be x,y,z respectively. From the data:
4x+3y+2z=60
2x+4y+6z=90
6x+2y+3z=70
In matrix form AX=B where A=426342263, X=xyz, B=609070.