# Basic Algebra/Solving Equations/Equations with More than One Variable

Sometimes, there will be more than one variable that needs to be solved for in an equation. There are systems used by mathematicians to solve for these unknown quantities, which are discussed below.

## Vocabulary
### Variable

    A letter (A-Z) that takes the place of a number.

### Expression

    A group of numbers and variables, added, multiplied, subtracted or divided by each other (examples include: $2,7x,8x-7,{\sqrt {x}}+4$)

### Equation

    An expression that is equal to another expression

### Coefficient

    The number multiplied by a variable (the 3 in $3x$)

## Lesson

There are three simple ways to solve an equation with two variables.
The number of variables in an equation corresponds to the number of equations needed to solve for the variables.

### Graphing

The most simple way to solve for the variables is by graphing both equations and finding the point where they intersect. This method is not incredibly accurate, unless we measure it with a ruler however, since we cannot be sure exactly where an intersection is unless we measure it.

### The substitution method

In these, the first step is isolating one variable on one side of an equation. After this is accomplished, the expression on the other side of the equal sign can be substituted for the variable we solved for in the first step. Now, this second equation has only one variable. We simplify the equation, solving for the remaining variable. Then we plug this value back into one of the original equations and solve for the first variable.

### Elimination method

To use the elimination method, we make the coefficients of one variable opposites of each other by multiplying or dividing both sides of the equations by the desired numbers. Once this is accomplished, we arrange the equations so that each variable is above the same variable in the other equation. After this, we add the coefficients of each variable to each other to produce a new equation, with only one variable (since the coefficients of one set of variables will cancel. Then follow the steps listed under substitution to solve for the remaining variable(s). (Refer to example 3 to see this method in action)

## Example Problems
### Example 1

| ${\begin{cases}3x+2=y\\4x-6=2y\end{cases}}$ |
| $4x-6=2(3x+2)$ | Substitute (3x + 2) for y in the second equation |
| $4x-6=6x+4$ | Distribute the 2 |
| $4x=6x+10$ | Add 6 to each side |
| $-2x=10$ | Subtract 6x from each side |
| $x=-5$ | Divide side by -2 |
| Now, plug -5 in for x in one of the original equations and solve for y: |
| $3(-5)+2=y$ |
| $-15+2=y$ | Simplify |
| $-13=y$ | Simplify to get the answer |
So the solutions are $x=-5$ and $y=-13$. (If you graphed these lines, the intersection would be at the point $(-5,-13)$)

### Example 2

| ${\begin{cases}5x+3y=12\\x-y=4\end{cases}}$ |
| ${\begin{cases}5x+3y=12\\3x-3y=12\end{cases}}$ | Multiply the second equation by 3 on each side so that the coefficients of the y's will be 3 and -3 |
| $8x+0y=24$ | "Add" the equations together using the addition method |
| $x=3$ | Divide each side of the equation by 8 |
| Plug this 3 back into the first equation for x and solve for y: |
| $(3)-y=4$ $-y=1$ $y=-1$ |
So, x=3 and y= -1

### Example 3

| ${\begin{cases}2y=3x+20\\4y=6x+24\end{cases}}$ |
| ${\begin{cases}y={\frac {3}{2}}x+10\\y={\frac {3}{2}}x+6\end{cases}}$ | Divide the equations by 2 and 4, respectively |
| ${\frac {3}{2}}x+10={\frac {3}{2}}x+6$ | Substitute |
| $10=6$ | Subtract ${\frac {3}{2}}x$ from each side |
This absurd equation is obviously false, therefore there are no solutions. This is because the coefficients of the x were the same while in slope-intercept form, so the lines were parallel (never touching) so there are no solutions. (For a further explanation of slope-intercept form, see Slope-Intercept Form of a Line)
NOTE: When you get and equation that is always true (3=3 or 5=5) there are infinitely many solutions.

## Practice Games

There is a 2-variable game on the following webpage:

## Practice Problems

Use / as the fraction line and put spaces between the wholes and fractions!