Linear Algebra
![Question 3.12, GATE 1994: Find the inverse of M=[[1,0,1],[-1,1,1],[0,1,0]].](../../assets/questions/CS-1994-Q46-1.webp)
Answer & solution
Answer: [[1/2,−1/2,1/2],[0,0,1],[1/2,1/2,−1/2]] (no official key was published)
Solve Mx=b. The third row gives x2=b3. The first gives x1+x3=b1, while the second gives −x1+x3=b2−b3. Adding the last two equations gives x3=(b1+b2−b3)/2; subtracting gives x1=(b1−b2+b3)/2. Thus the coefficients of b in x are exactly the displayed inverse matrix. This also proves uniqueness for every b, hence invertibility, without relying only on a numerical inverse calculation. Multiplying M by the displayed matrix returns the identity.