How do I solve a system of 2 equations using a matrix?
Answer
602.7k+ views
Hint: For this question, we have to find a method to solve a system of 2 equations using a matrix. A matrix is a set of numbers arranged in rows and columns so as to form a rectangular array. We need to represent the equations as a set of two matrices, one for the coefficients and one for the variables and equate it to another matrix for the constants. We then use the concept of inverse matrices to solve this and we get the desired solution.
Complete step-by-step answer:
As per the given question, we have to solve a system of 2 equations using a matrix. This can be done by using what is known as the matrix equation method. In this method, we represent the entire set of equations as matrices. We usually need 3 matrices, one for the coefficients, one for the variables whose values determine the solution and one for the constants.
This matrix equation is represented as follows.
$A.x=B\ldots \ldots \left( 1 \right)$
Where $A$ represents the coefficient matrix, $x$ represents the variable matrix and $B$ represents the constant matrix.
Let us take an example to understand this better. Let us consider the two set of equations as $8x+9y=3$ and $x+y=0.$
We can represent these equations in the form of equation (1) as shown.
$\left[ \begin{matrix}
8 & 9 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]\ldots \ldots \left( 2 \right)$
Here, the first matrix $A$ represents the coefficient matrix, the second matrix $x$ represents the variable matrix and the third matrix $B$ represents the constant matrix.
We now need to find inverse of matrix $A$ to multiply both sides of the equation with it.
We know the formula to find the inverse of a matrix $A$ is given as,
$\text{If }A=\left[ \begin{matrix}
a & b \\
c & d \\
\end{matrix} \right],\text{ then }{{A}^{-1}}=\dfrac{1}{ad-bc}\left[ \begin{matrix}
d & -b \\
-c & a \\
\end{matrix} \right]$
Using this equation and substituting the values,
$\Rightarrow {{A}^{-1}}=\dfrac{1}{8\times 1-9\times 1}\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
$\Rightarrow {{A}^{-1}}=\dfrac{1}{8-9}\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
Subtracting 8 and 9 and then multiplying each term of the matrix with this value of -1,
$\Rightarrow {{A}^{-1}}=-1\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
$\Rightarrow {{A}^{-1}}=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]$
We now multiply both sides of the equation (2) by ${{A}^{-1}}.$
$\Rightarrow \left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
8 & 9 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
This is of the form ${{A}^{-1}}.A.x={{A}^{-1}}.B.$ We know that ${{A}^{-1}}.A=I.$ Where $I$ represents a 2 by 2 identity matrix of the form,
$I=\left[ \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} \right]$
Now the equation is simplified to,
$\Rightarrow \left[ \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
We also know that any matrix multiplied by this identity matrix is equal to the matrix itself.
$\Rightarrow I.x=x$
Therefore, we can see the equation now taking the form:
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
We now need to perform the matrix multiplication on the RHS.
Matrix multiplication can be done only if the number of columns of the first matrix equals the number of rows of the second matrix. In this case, the number of columns of the first matrix equals the number of rows of the second matrix which are both 2.
To perform matrix multiplication, we multiply the first row of the first matrix by the column of the second matrix. Then we multiply the first row of the first matrix by the column of the second matrix and sum up all the terms.
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1\times 3+9\times 0 \\
1\times 3-8\times 0 \\
\end{matrix} \right]$
Summing up the terms, we get
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-3 \\
3 \\
\end{matrix} \right]$
Comparing the two matrices, we get the solution as $x=-3$ and $y=3.$
Hence, we have solved a system of 2 equations using a matrix.
Note: While solving this question, the students need to be careful while doing the matrix multiplication. We can also solve this problem by using the method of augmented matrix. In this method, we change the system of equations by performing row and column operations and simplify the given equations and get the solution.
Complete step-by-step answer:
As per the given question, we have to solve a system of 2 equations using a matrix. This can be done by using what is known as the matrix equation method. In this method, we represent the entire set of equations as matrices. We usually need 3 matrices, one for the coefficients, one for the variables whose values determine the solution and one for the constants.
This matrix equation is represented as follows.
$A.x=B\ldots \ldots \left( 1 \right)$
Where $A$ represents the coefficient matrix, $x$ represents the variable matrix and $B$ represents the constant matrix.
Let us take an example to understand this better. Let us consider the two set of equations as $8x+9y=3$ and $x+y=0.$
We can represent these equations in the form of equation (1) as shown.
$\left[ \begin{matrix}
8 & 9 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]\ldots \ldots \left( 2 \right)$
Here, the first matrix $A$ represents the coefficient matrix, the second matrix $x$ represents the variable matrix and the third matrix $B$ represents the constant matrix.
We now need to find inverse of matrix $A$ to multiply both sides of the equation with it.
We know the formula to find the inverse of a matrix $A$ is given as,
$\text{If }A=\left[ \begin{matrix}
a & b \\
c & d \\
\end{matrix} \right],\text{ then }{{A}^{-1}}=\dfrac{1}{ad-bc}\left[ \begin{matrix}
d & -b \\
-c & a \\
\end{matrix} \right]$
Using this equation and substituting the values,
$\Rightarrow {{A}^{-1}}=\dfrac{1}{8\times 1-9\times 1}\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
$\Rightarrow {{A}^{-1}}=\dfrac{1}{8-9}\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
Subtracting 8 and 9 and then multiplying each term of the matrix with this value of -1,
$\Rightarrow {{A}^{-1}}=-1\left[ \begin{matrix}
1 & -9 \\
-1 & 8 \\
\end{matrix} \right]$
$\Rightarrow {{A}^{-1}}=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]$
We now multiply both sides of the equation (2) by ${{A}^{-1}}.$
$\Rightarrow \left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
8 & 9 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
This is of the form ${{A}^{-1}}.A.x={{A}^{-1}}.B.$ We know that ${{A}^{-1}}.A=I.$ Where $I$ represents a 2 by 2 identity matrix of the form,
$I=\left[ \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} \right]$
Now the equation is simplified to,
$\Rightarrow \left[ \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} \right].\left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
We also know that any matrix multiplied by this identity matrix is equal to the matrix itself.
$\Rightarrow I.x=x$
Therefore, we can see the equation now taking the form:
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1 & 9 \\
1 & -8 \\
\end{matrix} \right]\left[ \begin{matrix}
3 \\
0 \\
\end{matrix} \right]$
We now need to perform the matrix multiplication on the RHS.
Matrix multiplication can be done only if the number of columns of the first matrix equals the number of rows of the second matrix. In this case, the number of columns of the first matrix equals the number of rows of the second matrix which are both 2.
To perform matrix multiplication, we multiply the first row of the first matrix by the column of the second matrix. Then we multiply the first row of the first matrix by the column of the second matrix and sum up all the terms.
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-1\times 3+9\times 0 \\
1\times 3-8\times 0 \\
\end{matrix} \right]$
Summing up the terms, we get
$\Rightarrow \left[ \begin{matrix}
x \\
y \\
\end{matrix} \right]=\left[ \begin{matrix}
-3 \\
3 \\
\end{matrix} \right]$
Comparing the two matrices, we get the solution as $x=-3$ and $y=3.$
Hence, we have solved a system of 2 equations using a matrix.
Note: While solving this question, the students need to be careful while doing the matrix multiplication. We can also solve this problem by using the method of augmented matrix. In this method, we change the system of equations by performing row and column operations and simplify the given equations and get the solution.
Recently Updated Pages
Which of the following graphs shows the variation of class 12 physics CBSE

Draw a labelled diagram of the human male reproductive class 12 biology CBSE

Describe the experiment to compare the emf of two cells class 12 physics CBSE

What is standard hydrogen electrode

What is conventional current and electric current class 12 physics CBSE

2Bromopentane is treated with an alcoholic KOH solution class 12 chemistry CBSE

Trending doubts
Draw a labelled sketch of the human eye class 12 physics CBSE

Which are the Top 10 Largest Countries of the World?

A member of Simon commission later became Prime Minister class 12 social science CBSE

Draw ray diagrams each showing i myopic eye and ii class 12 physics CBSE

Give one example of a reptile that is viviparous class 12 biology CBSE

Which is the correct genotypic ratio of mendel dihybrid class 12 biology CBSE

