This lesson will discuss how to solve an equation with a variable on both sides. In this video, we will be learning how to solve for x (or another variable) in complex algebraic equations where x (or another variable) is present on both sides using inverse operations. After you finish this lesson, view all of our Algebra 1 lessons and practice problems.

Example of Solving an Equation with a Variable on Both Sides

5x-7=2(x+5)-5\leftarrow Distribute the 2 to the x and 5

5x-7=2x+10-5\leftarrow Simplify the right side using addition

5x-7-2x=2x+5-2x\leftarrow Isolate the variable by subtracting 2x from both sides

3x-7+7=5+7\leftarrow Isolate the variable by adding 7 to both sides

\frac{3x}{3}=\frac{12}{3}\leftarrow Divide by 3 on both sides

x=4

Solving an Equation (Variable on Both Sides)

Examples 1

3x+18=6(x+1)+3

Distribute the 6 to the x and 1

3x+18=6x+6+3

Simplify the right side using addition

3x+18=6x+9

Isolate the variable by subtracting 3x from both sides

3x+18-3x=6x+9-3x 18=3x+9

Isolate the variable by subtracting 9 to both sides

18-9=3x 9=3x

Divide by 3 on both sides

\dfrac{9}{3}=\dfrac{3x}{3} 3=x

Examples 2

2x+20=5x+8

Isolate the variable by subtracting 2x from both sides

2x+20-2x=5x+8-2x</p

20=3x+8

Isolate the variable by subtracting 8 to both sides

20-8=3x+8-8 12=3x

Divide by 3 on both sides

\dfrac{12}{3}=\dfrac{3x}{3} 4=x

Video-Lesson Transcript

Now, let’s solve an equation with a variable on both sides.

For example:

3x + 12 = 5x + 2

This equation has x on both sides.

My advice is, if you can, get all the x-term on one side only. It doesn’t matter which side – left or right.

Now, let’s solve it.

First, let’s try and subtract 3x from both sides of the equation. We have

3x - 3x + 12 = 5x - 3x + 2 12 = 2x + 2

Here, we have a variable equation that needs solving.

So, let’s start it over again and subtract 5x from both sides of the equation.

3x - 5x + 12 = 5x - 5x + 2 -2x + 12 = 2

The same thing. We still have a variable equation that needs solving.

So either way, even if you choose the left or right side, it’s up to you.

Just follow the steps correctly and you will arrive at the correct answer.

Since we have this equation now, let’s move on solving.

Let’s isolate x by subtracting 12 on both sides.

-2x + 12 - 12 = 2 - 12 -2x = -10

Then divide by -2

\dfrac{-2x}{-2} = \dfrac{-10}{-2}

The answer is x = 5.

Now, let’s have a different example.

5x - 7 = 2(x+5) - 5

So since we have to get all the x-terms on one side, we have to simplify the equation on the right first because an equation is inside a parenthesis.

Do this by distributing 2 on each term inside the parenthesis.

So, we’ll have

5x - 7 = 2x + 10 - 5

Let’s combine like terms here to further simplify the equation

5x - 7 = 2x + 5

At this point, I choose to bring the 2x to the left.

5x - 2x - 7 = 2x - 2x + 5 3x - 7 = 5

Now, this is the normal equation we can solve.

So let’s solve by adding 7 to both sides of the equation.

3x - 7 + 7 = 5 + 7 3x = 12

Now, let’s divide both sides by 3

\dfrac{3x}{3} = \dfrac{12}{3}

Now, we have x = 4

So as you can see, this is very similar to solving equations in multiple steps.

The most important step is to get all the x-terms on one side of the equation. Then follow the rules as you go.