Solving Systems of Linear Equations

Once you're given a system of linear equations, how do you find solutions? As for most problems, there are several methods; we choose the one that seems  most appropriate for the system at hand, and if that doesn't work out, we go on to try another one.

Substitution Method This system is most useful for systems of 2 equations in 2 unknowns. The essential idea here is that we solve one of the equations for one of the unknowns, and then substitute the result into the other equation.

Example Consider the system

2x + 3y = 5 
 x +  y  = 5
Solve the second equation for x; this gives x = 5 - y. Then substitute this instead of x into the first equation and solve the resulting equation for y:
2 ( 5 - y) + 3y = 5
 10 - 2y + 3y = 5
          10 + y = 5
                    y = -5
Going back to the solution for x in the previous equation, we now see that x = 5 - (-5) = 10.
Thus there is a unique solution to this equation and it is (x, y) = (10, -5).

Facts

Elimination Method This method is useful for any number of equations in any number of unknowns. It essentially consists of eliminating the variables from the equations one by one, until the system looks like an upside-down staircase.

Example Consider the following system of 3 equations in 3 unknowns:
 

x +   y         = 2 
2x + 3y +   z = 4 
x + 2y + 2z = 6
Our goal is to transform this system into an equivalent system from which it is easy to find the solutions. We now do this step by step.  
  x +   y        = 2 
  y +   z = 0 
  y + 2z = 4
z = 4,  y = -4, and x = 2-(-4) = 6
Equivalently, we say that the unique solution to this system is (x, y, z) = (6, -4, 4).

Comments

Exercises

In the following you will receive systems of equations in 2 unknowns and in 3 unknowns. In each of them,

You may have questions about the results of your computations; if so click (FAQ-button) to get help.

Exercises with systems of (up to) 2 equations in 2 unknowns:

Exercises with systems of (up to) 3 equations in 3 unknowns:

 Frequently Asked Questions