Hotmath
Math Homework. Do It Faster, Learn It Better.

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:

{ 3 x + 4 y = 5 2 x y = 7

The first step is to convert this into a matrix. Make sure all equations are in standard form ( A x + B y = 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.

[ 3 4 2 1 | 5 7 ]

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

[ 11 0 2 1 | 33 7 ] added ( 4 × Row 2 ) to Row 1

Next we want a 1 in the top left corner.

[ 1 0 2 1 | 3 7 ] divided Row 1 by 11

Now we want a zero in the bottom left corner.

[ 1 0 0 1 | 3 1 ] added ( 2 × Row 1 ) to Row 2

Finally, we want a 1 in Row 2 , Column 2 .

[ 1 0 0 1 | 3 1 ] multiplied Row 2 by 1

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

x = 3 y = 1

The same method can be used for n linear equations in n unknowns; in this case you would create an n × ( n 1 ) matrix, and use the matrix row operations to get the identity n × 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.