Math ยท Linear algebra
Matrix determinant, inverse, and linear system solution
Compute the determinant and the inverse of the matrix , then use the inverse to solve the equation .
- A
- โฆ\begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix}โง
- b
- โฆ\begin{pmatrix} 4 \\ 11 \end{pmatrix}โง
- Number recomputed
Recomputed from the given data. det(A): 2*3 - 1*5 = 1 matches. A^-1 (1,1): 3 / (2*3 - 1*5) = 3 matches. A^-1 (1,2): -1 / (2*3 - 1*5) = -1 matches. A^-1 (2,1): -5 / (2*3 - 1*5) = -5 matches. A^-1 (2,2): 2 / (2*3 - 1*5) = 2 matches. x_1: (3*4 - 1*11) / (2*3 - 1*5) = 1 matches. x_2: (-5*4 + 2*11) / (2*3 - 1*5) = 2 matches. - 1 of 4 formulas checked by computer algebra
1 formula confirmed by SymPy. Steps in words, with units, or equations to be solved are not checked, so this is not a proof of the whole solution. - A second model agrees
A second model solved it without seeing the first answer and got the same numbers: The determinant is 1, the inverse is [[3, โ1], [โ5, 2]], and the solution is x = (1, 2)แต; all values are unitless.
Solution
Compute the determinant of the matrix using the determinant formula .
(1)Find the inverse matrix using the matrix inversion formula .
(2)Solve the linear system by multiplying both sides from the left by , giving .
(3)
Answer
The determinant of A is 1, the inverse matrix is [[3, -1], [-5, 2]], and the solution vector x is (1, 2)^T.