Solving equations is probably the most important and interesting topic in algebra. There are a wide variety of equations. In this article, we will learn how to solve equations, but more specifically, we will look at solving equations with two variables. The use of exercises with answers will make the concepts easier to understand.

## What are equations with two variables?

Linear equations have the characteristic that they contain only variables raised to the first power after being reduced to their simplest form. Equations with two unknowns or variables can be written in the general form , where the coefficients and are different from 0.

For example, the equations and are linear equations with two variables.

At first glance, the equation appears not to be linear. However, when written in its simplest form, that is, when we combine like terms and simplify, the terms that contain are canceled and we have the equation . Thus, it is a linear equation with two variables.

Generally, a linear equation with two variables has an infinite number of solutions. However, if we have a defined value for one of the variables, the equation will have only one solution.

A system of equations with two variables can have only one solution, infinite solutions, or no solution depending on the values of its coefficients.

### EXAMPLES

The following equations are linear equations with two variables:

•

•

•

•

## Rule of equations

Any operation (addition, subtraction, multiplication, division) can be performed on one side of the equation, as long as the same operation is performed on the opposite side.

For example, suppose we have the equation .

If we want to, we can subtract 6 from both sides of the equation: .

In this case, it doesn’t help much to have 6 subtracted from both sides of the equation. However, we can simplify the equations and eventually solve them if we apply the correct operations to both sides.

Now let’s look at a method with which we can solve equations with two variables.

## Method for solving linear equations with two variables

1. If we have a value for one of the variables, we plug that value into the equation. If we don’t have the value of any variable, the equation automatically has an infinite number of solutions.

2. Simplify both sides:

a. Remove the parentheses (using the distributive property) if there are any.

b. Eliminate the fractions (multiply by the least common multiple).

c. Simplify the like terms.

3. Isolate the variable:

We perform operations to move the variable to one side of the equation and the constants to the other side.

4. Solve for the variable using multiplication or division.

5. Verify the answer.

Start now: Explore our additional Mathematics resources

## Linear equations with two variables – Examples with answers

### EXAMPLE 1

- Given the value , find the value of in the equation .

**Solution:**

1. Substitute the value of the variable:

2. Simplify:

There are no parentheses.

There are no fractions.

Combine like terms: .

3. Isolate the variable: move the 8 to the right and the -x to the left:

4. Isolate completely the : divide both sides by 3:

5. Verify the answer: replace the values of the variables in the original equation:

This is true

**Answer:**

### EXAMPLE 2

- If we have , find the value of in the equation .

**Solution:**

1. Substitute the value of the variable:

2. Simplify:

There are no parentheses.

There are no fractions.

Combine like terms: .

3. Isolate the variable: move the 25 to the right:

4. Solve for : divide both sides by -2:

5. Verify the solution: substitute the values of the variables in the original equation:

This is true

**Answer:**

### EXAMPLE 3

- Find the value of and in the equation .

**Solution:**

We do not have any value of any of the variables, so this equation has an infinite number of solutions. For example, suppose that , then we would have:

Now, suppose we have , then we would have:

We could go through the process with different values for and we would always get different answers. This means that there are an infinite number of solutions.

Start now: Explore our additional Mathematics resources

### EXAMPLE 4

- If we have , find the value of in the equation .

**Solution:**

1. Substitute the value of the variable:

2. Simplify:

Remove parentheses: .

There are no fractions.

Combine like terms: .

3. Isolate the variable: move the 14 to the right and 2y to the left:

4. Solve for : divide both sides by 2:

5. Verify the solution: substitute the values of the variables in the original equation

This is true

**Answer:**

### EXAMPLE 5

- Given the value , find the value of in the equation .

**Solution:**

1. Substitute the value of the variable:

2. Simplify:

There are no parentheses.

Simplify fractions: multiply by 6: .

Combine like terms: .

3. Isolate the variable: move the 24 to the right and the 6x to the left:

4. Solve for : divide both sides by -1:

5. Verify the solution: substitute the values of the variables in te original equation:

This is true

**Answer:**

## See also

Interested in learning more about linear equations? Take a look at these pages:

### Learn mathematics with our additional resources in different topics

**LEARN MORE**