# Solving systems of equations in two variables

A system of a linear equation comprises two or more equations and one seeks a common solution to the equations. In a system of linear equations, each equation corresponds with a straight line corresponds and one seeks out the point where the two lines intersect.

**Example**

Solve the following system of linear equations:

Since we are seeking out the point of intersection, we may graph the equations:

We see here that the lines intersect each other at the point x = 2, y = 8. This is our solution and we may refer to it as a graphic solution to the task.

But how does one reach a solution if the lines never intersect? One cannot, the system of equations have no solution.

One may also arrive at the correct answer with the help of the elimination method (also called the addition method or the linear combination method) or the substitution method.

When using the substitution method we use the fact that if two expressions y and x are of equal value x=y, then x may replace y or vice versa in another expression without changing the value of the expression.

**Example**

Solve the systems of equations using the substitution method

We substitute the y in the top equation with the expression for the second equation:

To determine the *y*-value, we may proceed by inserting our *x*-value in any of the equations. We select the first equation:

We plug in x=2 and get

We have thus arrived at precisely the same answer as in the graphic solution.

The elimination method requires us to add or subtract the equations in order to eliminate either *x* or *y*, often one may not proceed with the addition directly without first multiplying either the first or second equation by some value.

**Example**

We now wish to add the two equations but it will not result in either *x* or *y*being eliminated. Therefore we must multiply the second equation by 2 on both sides and get:

Now we attempt to add our system of equations. We commence with the *x*-terms on the left, and the *y*-terms thereafter and finally with the numbers on the right side:

The *y*-terms have now been eliminated and we now have an equation with only one variable:

Thereafter, in order to determine the *y*-value we insert *x*=2.5 in one of the equations. We select the first:

## Linear Equations: Solutions Using Matrices with Three Variables

*x*‐coefficient below row 1.

Eliminate the *y*‐coefficient below row 5.

Reinserting the variables, this system is now

Equation (9) now can be solved for *z*. That result is substituted into equation (8), which is then solved for *y*. The values for *z* and *y* then are substituted into equation (7), which then is solved for *x*.

The check is left to you. The solution is *x* = 2, *y* = 1, *z* = 3.

##### Example 2

Solve the following system of equations, using matrices.

Put the equations in matrix form.

Eliminate the *x*‐coefficient below row 1.

Eliminate the *y‐*coefficient below row 5.

Reinserting the variables, the system is now:

Equation (9) can be solved for *z.*

Substitute into equation (8) and solve for *y*.

Substitute into equation (7) and solve for *x*.

The check of the solution is left to you. The solution is , , .

#### The sum of two number is 25 and their difference is 13. Find their product.

#### 2x+3y=1 3x-y=7.Then x and y=

#### 5x+4y=1 3x-6y=2

#### x+y+z=4 x-y+z=2 xyz=2

#### 7x+5y-3z = 16 3x-5y+2z = -8 5x+3y-7z = 0

Share your Results: