Math, asked by Starz1340, 1 year ago

How to form matrix to solve linear equations?

Answers

Answered by Riyaz786
2
Solving Systems of Linear Equations Using Matrices

If you need to, review matrices , matrix row operations and solving systems of linear equations before reading this page.

The matrix method of solving systems of linear equations is just the elimination method in disguise. By using matrices, the notation becomes a little easier.

Suppose you have a system of linear equations such as:

{3x+4y=52x−y=7{3x+4y=52x−y=7

The first step is to convert this into a matrix. Make sure all equations are in standard form(Ax+By=C)(Ax+By=C) , and use the coefficients of each equation to form each row of the matrix. It may help you to separate the right column with a dotted line.

[324−1∣∣∣57][342−1|57]

Next, we use the matrix row operations to change the 2×22×2 matrix on the left side to the identity matrix . First, we want to get a zero in Row 11 , Column 22 . So, add 44 times Row 22 to Row 11 .

[1120−1∣∣∣337]  →  added  (4×Row  2)to  Row  1[1102−1|337]  →  added  (4×Row  2)to  Row  1

Next we want a 11 in the top left corner.

[120−1∣∣∣37]  →  divided  Row  1  by  11[102−1|37]  →  divided  Row  1  by  11

Now we want a zero in the bottom left corner.

[100−1∣∣∣31]  →  added  (−2×Row  1)to  Row  2[100−1|31]  →  added  (−2×Row  1)to  Row  2

Finally, we want a 11 in Row 22 , Column 22 .

[1001∣∣∣3−1]  →  multiplied  Row  2  by  −1[1001|3−1]  →  multiplied  Row  2  by  −1

Now that we have the 2×22×2 identity matrix on the left, we can read off the solutions from the right column:

x=3y=−1x=3y=−1

The same method can be used for nn linear equations in nn unknowns; in this case you would create an n×(n−1)n×(n−1) matrix, and use the matrix row operations to get the identity n×nn×n matrix on the left side.

Important Note: If the equations represented by your original matrix represent parallel lines, you will not be able to get the identity matrix using the row operations. In this case, the solution either does not exist or there are infinitely many solutions to the system

Similar questions