Solveeit Logo

Question

Question: How do I use the inverse of a matrix to solve a system of equations?...

How do I use the inverse of a matrix to solve a system of equations?

Explanation

Solution

The inverse of the matrix AA is A1{{A}^{-1}}. Find A,BA,B and CC matrices in the matrix equation AB=CAB=C, where you can get these matrices from the system of equations in the following form: a1x+b1y=c1{{a}_{1}}x+{{b}_{1}}y={{c}_{1}} and a2x+b2y=c2{{a}_{2}}x+{{b}_{2}}y={{c}_{2}} From this system the coefficient matrix AAis: A=[a1b1 a2b2 ]A=\left[ \begin{matrix} {{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]. The variable matrix BB is B=[x y ]B=\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right] and the constant matrix is C=[c1 c2 ]C=\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right]. Which makes AB=CAB=C equal to [a1b1 a2b2 ] [x y ]=[c1 c2 ]\left[ \begin{matrix} {{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]\text{ }\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]=\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right] and if the inverse of this equation exists then solve for B that is B=A1CB={{A}^{-1}}C
And in matrix form [x y ]=1a1b2b1a2[b2b1 a2a1 ] [c1 c2 ]\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]\text{=}\dfrac{1}{{{a}_{1}}{{b}_{2}}-{{b}_{1}}{{a}_{2}}}\left[ \begin{matrix} {{b}_{2}} & -{{b}_{1}} \\\ -{{a}_{2}} & {{a}_{1}} \\\ \end{matrix} \right]\text{ }\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right].

Complete step by step solution:
Let us suppose following are the system of equations:
a1x+b1y=c1{{a}_{1}}x+{{b}_{1}}y={{c}_{1}} and
a2x+b2y=c2{{a}_{2}}x+{{b}_{2}}y={{c}_{2}}
Now we can convert this system of equations to the matrix equation that is
AB=C...(1)AB=C...\left( 1 \right)
Where the coefficient matrix AAis:

{{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]$$. The variable matrix $$B$$ is $$B=\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]$$ and the constant matrix is $$C=\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right]$$. Now substituting the values of $$A,B$$ and $$C$$ in equation $$\left( 1 \right)$$ we get: $$\left[ \begin{matrix} {{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]\text{ }\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]=\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right]$$ To solve this matrix equation, we check if the inverse of the matrix $$A$$exists or not by checking the determinant of the matrix. If the determinant of the matrix is equal to zero it implies that the inverse of the matrix doesn’t exist. And if the coefficient matrix is non invertible then the system could be inconsistent and have no solution, or be dependent and have infinitely many solutions. If the inverse the coefficient matrix is invertible, we solve the matrix equation as follows: $$\Rightarrow AB=C$$ Multiply both sides by the inverse of $$A$$ to obtain the solution. $$\begin{aligned} & \Rightarrow \left( {{A}^{-1}} \right)AB=\left( {{A}^{-1}} \right)C \\\ & \Rightarrow \left[ \left( {{A}^{-1}} \right)A \right]B=\left( {{A}^{-1}} \right)C \\\ & \Rightarrow \left[ I \right]B=\left( {{A}^{-1}} \right)C \\\ & \Rightarrow B=\left( {{A}^{-1}} \right)C...\left( 2 \right) \\\ \end{aligned}$$ Now substituting the values of $$A,B$$ and $$C$$ in equation $$\left( 2 \right)$$ we get: $$\Rightarrow \left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]={{\left[ \begin{matrix} {{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]}^{-1}}\text{ }\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right]$$ Where $${{A}^{-1}}={{\left[ \begin{matrix} {{a}_{1}} & {{b}_{1}} \\\ {{a}_{2}} & {{b}_{2}} \\\ \end{matrix} \right]}^{-1}}\text{=}\dfrac{1}{{{a}_{1}}{{b}_{2}}-{{b}_{1}}{{a}_{2}}}\left[ \begin{matrix} {{b}_{2}} & -{{b}_{1}} \\\ -{{a}_{2}} & {{a}_{1}} \\\ \end{matrix} \right]$$ Therefore, with the help of inverse of the matrix we can find the values of variable matrix that is: $$\left[ \begin{matrix} x \\\ y \\\ \end{matrix} \right]\text{=}\dfrac{1}{{{a}_{1}}{{b}_{2}}-{{b}_{1}}{{a}_{2}}}\left[ \begin{matrix} {{b}_{2}} & -{{b}_{1}} \\\ -{{a}_{2}} & {{a}_{1}} \\\ \end{matrix} \right]\text{ }\left[ \begin{matrix} {{c}_{1}} \\\ {{c}_{2}} \\\ \end{matrix} \right]$$. **Note:** Students can go wrong by forgetting to check whether the coefficient matrix is invertible or not which leads to the wrong answer. So, it’s important to remember to check the invertibility of the coefficient matrix by looking if the determinant is zero or not.