Algebra 1Expressions and Equations3 of 5
Expressions and Equations · 3

Equations with Variables on Both Sides

When an equation has x\xterm{x} in only one spot, like 3x+2=11\xterm{3x} + 2 = 11, we can solve it by working backwards to get x\xterm{x} by itself. Now we want to solve equations where x\xterm{x} shows up on both sides of the equals sign at the same time:

5x+2\displaystyle \xterm{5x} + 2 =3x+8\displaystyle = \xterm{3x} + 8

We can't just work backwards anymore because both sides depend on x\xterm{x}. First let's see what this equation looks like on a balance scale, where each x\xterm{x} is an identical mystery box and each plain number is a set of 1-pound1\text{-pound} weights.

Balancing Mystery Boxes on Both Sides
3x+2\displaystyle \xterm{3x} + 2 =11\displaystyle = 11
x\displaystyle \xterm{x} =  ?\displaystyle = \;?

Taking 33 boxes off both pans kept the scale balanced and left boxes on only the left pan. Now we write that exact move in algebra on 5x+2=3x+8\xterm{5x} + 2 = \xterm{3x} + 8 by subtracting 3x\xterm{3x} from the x\xterm{x} term on each side.

Solving by Clearing x from One Side
x\xterm{x}
x\xterm{x}
x\xterm{x}
x\xterm{x}
x\xterm{x}
x\xterm{x}
x\xterm{x}
x\xterm{x}
1 lb1\,\text{lb}
1 lb1\,\text{lb}
5x+2=3x+8\xterm{5x} + 2 = \xterm{3x} + 8
Text solution
Subtract 3x\xterm{3x} from both sidesTake 3x\xterm{3x} away from the x\xterm{x} term on each side so x\xterm{x} is cleared from the right side.
5x−3x+2=3x−3x+82x+2=8\displaystyle \begin{aligned} \xterm{5x} - \xterm{3x} + 2 &= \xterm{3x} - \xterm{3x} + 8 \\ \xterm{2x} + 2 &= 8 \end{aligned}
Subtract 22 from both sidesNow that x\xterm{x} is in one spot, remove the +2+ 2 from both sides.
2x\displaystyle \xterm{2x} =6\displaystyle = 6
Divide both sides by 22Divide both sides by 22 to find the weight of one x\xterm{x} box.
x\displaystyle \xterm{x} =3\displaystyle = 3

Plugging x=3\xterm{x} = 3 back into 5x+2=3x+8\xterm{5x} + 2 = \xterm{3x} + 8 gives 5(3)+2=17\xterm{5}(3) + 2 = 17 on the left and 3(3)+8=17\xterm{3}(3) + 8 = 17 on the right, so both sides balance at 1717.

As matching pairs of x\xterm{x} boxes come off both pans of 5x+2=3x+8\xterm{5x} + 2 = \xterm{3x} + 8, both sides lose the exact same weight and stay level until all 33 boxes on the right pan are gone and 2x+2=8\xterm{2x} + 2 = 8 remains.

Taking matching x\xterm{x} boxes off both pans keeps the scale balanced at every step, and clearing all 33 from the right pan leaves x\xterm{x} in just one spot.
1

Choosing Which Side to Move x\xterm{x} To

In the first equation, there were more x\xterm{x}'s on the left (5x\xterm{5x}) than on the right (3x\xterm{3x}). Now we want to solve an equation where the larger x\xterm{x} term is on the right side:

2x+12\displaystyle \xterm{2x} + 12 =5x+3\displaystyle = \xterm{5x} + 3

Does it matter whether we clear 2x\xterm{2x} from the left side or 5x\secondrelation{5x} from the right side? Let's compare both choices side by side.

Which Side to Move x To
2x+12\displaystyle \xterm{2x} + 12 =5x+3\displaystyle = \xterm{5x} + 3
x\displaystyle \xterm{x} =  ?\displaystyle = \;?
Text solution
Subtract 2x\xterm{2x} from both sidesClear the smaller x\xterm{x} term so the remaining x\xterm{x} term stays positive.
12\displaystyle 12 =3x+3\displaystyle = \xterm{3x} + 3
Subtract 33 from both sidesRemove the +3+ 3 next to 3x\xterm{3x} to get the x\xterm{x} term by itself on the right.
9\displaystyle 9 =3x\displaystyle = \xterm{3x}
Divide both sides by 33Divide both sides by 33 to get x\xterm{x} by itself.
3\displaystyle 3 =x\displaystyle = \xterm{x}

If you subtract 5x\secondrelation{5x} from both sides instead to keep x\secondrelation{x} on the left, you get −3x+12=3\secondrelation{-3x} + 12 = 3 and then −3x=−9\secondrelation{-3x} = -9, which divides by −3-3 to give the exact same answer, x=3\secondrelation{x} = 3.

2

Clearing a Negative x\xterm{x} Term

What if one of the sides starts with a negative x\xterm{x} term? Suppose we want to solve:

4x−5\displaystyle \xterm{4x} - 5 =−2x+13\displaystyle = \xterm{-2x} + 13

If you subtract 2x\xterm{2x} from −2x\xterm{-2x}, you don't get zero, you get −4x\xterm{-4x}. Let's see how to clear −2x\xterm{-2x} off the right side.

Clearing a Negative x Term
4x−5\displaystyle \xterm{4x} - 5 =−2x+13\displaystyle = \xterm{-2x} + 13
x\displaystyle \xterm{x} =  ?\displaystyle = \;?
Right pan\text{Right pan}
−x lb\htmlClass{lc-blue}{-x}\,\text{lb}
−x lb\htmlClass{lc-blue}{-x}\,\text{lb}
+x lb\htmlClass{lc-blue}{+x}\,\text{lb}
+x lb\htmlClass{lc-blue}{+x}\,\text{lb}
13 lb13\,\text{lb}
−2x+2x=0\htmlClass{lc-blue}{-2x} + \htmlClass{lc-blue}{2x} = 0
Text solution
Add 2x\xterm{2x} to both sidesAdding 2x\xterm{2x} cancels −2x\xterm{-2x} to zero on the right side and adds 2x\xterm{2x} to 4x\xterm{4x} on the left.
4x+2x−5=−2x+2x+136x−5=13\displaystyle \begin{aligned} \xterm{4x} + \xterm{2x} - 5 &= \xterm{-2x} + \xterm{2x} + 13 \\ \xterm{6x} - 5 &= 13 \end{aligned}
Add 55 to both sidesClear the −5- 5 on the left by adding 55 to both sides.
6x\displaystyle \xterm{6x} =18\displaystyle = 18
Divide both sides by 66Divide both sides by 66 to get x\xterm{x} alone.
x\displaystyle \xterm{x} =3\displaystyle = 3
3

Simplifying Each Side First

Now we want to solve a longer equation that has parentheses and extra x\xterm{x}'s on the same side:

2(3x−4)+x\displaystyle 2(\xterm{3x} - 4) + \xterm{x} =5x+6\displaystyle = \xterm{5x} + 6

Trying to move terms across the equals sign right away gets messy because the left side has parentheses and two separate x\xterm{x} terms. Instead, we simplify each side on its own before moving anything across the equals sign.

Cleaning Up Each Side First
2(3x−4)+x\displaystyle 2(\xterm{3x} - 4) + \xterm{x} =5x+6\displaystyle = \xterm{5x} + 6
x\displaystyle \xterm{x} =  ?\displaystyle = \;?
Text solution
Distribute 22 on the left sideMultiply both terms inside the parentheses by 22.
6x−8+x\displaystyle \xterm{6x} - 8 + \xterm{x} =5x+6\displaystyle = \xterm{5x} + 6
Combine like terms on the left sidePut 6x\xterm{6x} and +x+ \xterm{x} together on the left side before touching the right side.
7x−8\displaystyle \xterm{7x} - 8 =5x+6\displaystyle = \xterm{5x} + 6
Subtract 5x\xterm{5x} from both sidesClear 5x\xterm{5x} from the right side now that both sides are simplified.
2x−8\displaystyle \xterm{2x} - 8 =6\displaystyle = 6
Add 88 to both sidesClear the −8- 8 next to 2x\xterm{2x}.
2x\displaystyle \xterm{2x} =14\displaystyle = 14
Divide both sides by 22Divide by 22 to find x\xterm{x}.
x\displaystyle \xterm{x} =7\displaystyle = 7
4

When Two Options Tie

Equations with xx on both sides show up whenever we compare two options that start at different amounts and grow at different rates. At a rock-climbing gym, Option A costs $20\$\planA{20} up front plus $5\$\planA{5} per visit, and Option B costs $5\$\planB{5} up front plus $8\$\planB{8} per visit. We want to find the number of visits xx where both options cost the exact same amount.

When Two Options Tie
Option A\planA{\text{Option A}}
Member Pass\planA{\text{Member Pass}}
$20  up front\$\planA{20}\;\text{up front}
$5  per visit\$\planA{5}\;\text{per visit}
Option B\planB{\text{Option B}}
Pay-As-You-Go\planB{\text{Pay-As-You-Go}}
$5  up front\$\planB{5}\;\text{up front}
$8  per visit\$\planB{8}\;\text{per visit}
Text solution
Set the two cost expressions equalAfter xx visits, Option A costs 5x+20\planA{5x + 20} and Option B costs 8x+5\planB{8x + 5}, and they tie when those two totals are equal.
5x+20\displaystyle \planA{5x + 20} =8x+5\displaystyle = \planB{8x + 5}
Subtract 5x\planA{5x} from both sidesClear the smaller xx term from the left side.
20\displaystyle \planA{20} =3x+5\displaystyle = 3x + \planB{5}
Subtract 5\planB{5} from both sidesGet the 3x3x term by itself on the right side.
15\displaystyle 15 =3x\displaystyle = 3x
Divide both sides by 33Divide by 33 to find the number of visits xx.
5\displaystyle 5 =x\displaystyle = x

So the two plans tie at 55 visits, where both Option A and Option B cost $45\$45.

Option B starts lower at $5\$\planB{5} but adds $8\$\planB{8} per visit instead of $5\$\planA{5}, so its total cost catches up to Option A at 55 visits ($45\$45) and stays higher for every visit after 55.

Option B starts out cheaper than Option A, but adds more cost on every visit, catching up at 5 visits and costing more after that.
5

No Solution and Infinitely Many Solutions

Sometimes both sides of an equation have the exact same number of x\xterm{x}'s, so clearing x\xterm{x} from one side cancels x\xterm{x} out of the equation completely. Let's see what happens when we solve these two equations:

3x+4=3x+10and3(x+2)=3x+6\displaystyle \begin{aligned} \xterm{3x} + 4 &= \xterm{3x} + 10 \\ &\text{and} \\ 3(\secondrelation{x} + 2) &= \secondrelation{3x} + 6 \end{aligned}
No Solution and Infinitely Many Solutions
3x+4\displaystyle \xterm{3x} + 4 =3x+10\displaystyle = \xterm{3x} + 10
x\displaystyle \xterm{x} =  ?\displaystyle = \;?
Text solution
For 3x+4=3x+10\xterm{3x} + 4 = \xterm{3x} + 10:
Subtract 3x\xterm{3x} from both sidesTaking 3x\xterm{3x} away from both sides removes x\xterm{x} from both pans at the same time.
3x−3x+4=3x−3x+104=10\displaystyle \begin{aligned} \xterm{3x} - \xterm{3x} + 4 &= \xterm{3x} - \xterm{3x} + 10 \\ 4 &= 10 \end{aligned}
Because 4=104 = 10 is never true for any value of x\xterm{x}, the scale is always 6 pounds\gap{6}\text{ pounds} heavier on the right and the equation has no solution.
For 3(x+2)=3x+63(\secondrelation{x} + 2) = \secondrelation{3x} + 6:
Distribute 33 on the left sideMultiply out the parentheses first to simplify the left side.
3x+6\displaystyle \secondrelation{3x} + 6 =3x+6\displaystyle = \secondrelation{3x} + 6
Subtract 3x\secondrelation{3x} from both sidesBoth 3x\secondrelation{3x} terms cancel out, leaving only the plain numbers.
6\displaystyle 6 =6\displaystyle = 6

Because 6=66 = 6 is always true no matter what number you plug in for x\xterm{x}, every number balances the scale and the equation has infinitely many solutions.

Because both pans hold three x\xterm{x} boxes, changing the weight inside an x\xterm{x} box adds the exact same weight to both sides, leaving 3x+4=3x+10\xterm{3x} + 4 = \xterm{3x} + 10 always tipped by 6 pounds\gap{6}\text{ pounds} and 3x+6=3x+6\secondrelation{3x} + 6 = \secondrelation{3x} + 6 always level.

When both pans hold the same number of x\xterm{x} boxes, changing the weight inside x\xterm{x} adds the same amount to both sides, so a tipped scale stays tipped and a level scale stays level.
6

Choosing a Missing Number

Now let's flip the question around: instead of solving an equation, we want to pick the missing number in the box so that

2(4x+5)\displaystyle 2(\xterm{4x} + 5) =□x+10has infinitely many solutions\displaystyle = \xterm{\square x} + 10 \quad \text{has infinitely many solutions}

and so that

6x+9\displaystyle \xterm{6x} + 9 =□x+2has no solution.\displaystyle = \xterm{\square x} + 2 \quad \text{has no solution.}
Rigging Equations with a Missing Number
2(4x+5)\displaystyle 2(\xterm{4x} + 5) =□x+10\displaystyle = \xterm{\square x} + 10
Infinitely many solutions\displaystyle \text{Infinitely many solutions}
□\displaystyle \xterm{\square} =  ?\displaystyle = \;?
Text solution
For 2(4x+5)=□x+102(\xterm{4x} + 5) = \xterm{\square x} + 10 to have infinitely many solutions:
Distribute 22 on the left sideSimplify the left side first so you can compare the two sides directly.
8x+10\displaystyle \xterm{8x} + 10 =□x+10\displaystyle = \xterm{\square x} + 10
Match the x\xterm{x} termsSince the plain numbers are both +10+ 10, matching the number of x\xterm{x}'s makes both sides completely identical.
□\displaystyle \xterm{\square} =8\displaystyle = 8
For 6x+9=□x+2\xterm{6x} + 9 = \xterm{\square x} + 2 to have no solution:
Match the x\xterm{x} terms while the plain numbers differThe plain numbers +9+ 9 and +2+ 2 are already different, so putting 66 in the box makes the x\xterm{x} terms cancel out and leaves the false statement 9=29 = 2.
□\displaystyle \xterm{\square} =6\displaystyle = 6

If the box is on the plain number instead, like 6x+9=6x+□\xterm{6x} + 9 = \xterm{6x} + \square, the 6x\xterm{6x} terms already match: putting 99 in the box makes both sides identical for infinitely many solutions, while putting any number other than 99 makes the plain numbers different for no solution.

Key concepts

When an equation has x\xterm{x} in only one spot (like 3x+2=11\xterm{3x} + 2 = 11), you don't need to move x\xterm{x} across the equals sign; just get x\xterm{x} by itself directly. Even if there are multiple x\xterm{x} terms on the same side, like 2(3x−4)+x=5x+62(\xterm{3x} - 4) + \xterm{x} = \xterm{5x} + 6, do not subtract x\xterm{x} from both sides to combine 6x\xterm{6x} and +x+ \xterm{x}; simplify each side on its own first by distributing and combining like terms on that side (6x−8+x→7x−8\xterm{6x} - 8 + \xterm{x} \to \xterm{7x} - 8).

Once you've distributed and combined like terms on each side, look at the x\xterm{x} terms to pick your next move:

Different x\xterm{x} terms

Clear x\xterm{x} from one side so x\xterm{x} is left in a single spot. When both x\xterm{x} terms are positive (2x+12=5x+3\xterm{2x} + 12 = \xterm{5x} + 3), subtract the smaller x\xterm{x} term (−2x\xterm{- 2x} from both sides) to keep the remaining x\xterm{x} term positive (12=3x+312 = \xterm{3x} + 3). When one side has a negative x\xterm{x} term (4x−5=−2x+13\xterm{4x} - 5 = \xterm{-2x} + 13), add the opposite of that x\xterm{x} term (+2x\xterm{+ 2x} to both sides) to bring it to zero (6x−5=13\xterm{6x} - 5 = 13).

Matching x\xterm{x} terms on both sides

Subtracting that x\xterm{x} term clears x\xterm{x} from both sides at once. If the plain numbers are different (3x+4=3x+10→4=10\xterm{3x} + 4 = \xterm{3x} + 10 \to 4 = 10), the equation is impossible to balance and has no solution. If the plain numbers also match (3x+6=3x+6→6=6\secondrelation{3x} + 6 = \secondrelation{3x} + 6 \to 6 = 6), both sides are identical and the equation has infinitely many solutions.

7

Practice

1

Solve 7x+2=3x+18\xterm{7x} + 2 = \xterm{3x} + 18.

Both sides have x\xterm{x}. How many x\xterm{x}'s can you take away from both sides so x\xterm{x} is left on only the left side?

Subtract 3x\xterm{3x} from both sides: 4x+2=18\xterm{4x} + 2 = 18. (Take 3x\xterm{3x} away from 7x\xterm{7x}, not from 22, and don't add 3x\xterm{3x} to 7x\xterm{7x} to get 10x+2=18\xterm{10x} + 2 = 18, which would lead to x=1.6\xterm{x} = 1.6.)
Subtract 22 from both sides: 4x=16\xterm{4x} = 16. (Adding 22 to 1818 instead of subtracting gives 4x=20\xterm{4x} = 20 and the wrong answer x=5\xterm{x} = 5.)
Divide both sides by 44: x=4\xterm{x} = 4
2

Solve 2x+19=7x+4\xterm{2x} + 19 = \xterm{7x} + 4.

Compare 2x\xterm{2x} and 7x\xterm{7x}. Which x\xterm{x} term can you subtract from both sides to keep the remaining x\xterm{x} term positive?

Subtract 2x\xterm{2x} from both sides: 19=5x+419 = \xterm{5x} + 4. (If you subtract 7x\xterm{7x} from both sides instead, 2x−7x\xterm{2x} - \xterm{7x} is −5x\xterm{-5x}; forgetting the negative sign gives 5x+19=4\xterm{5x} + 19 = 4 and the wrong answer x=−3\xterm{x} = -3.)
Subtract 44 from both sides: 15=5x15 = \xterm{5x}.
Divide both sides by 55: x=3\xterm{x} = 3
3

Solve 4x−7=−3x+28\xterm{4x} - 7 = \xterm{-3x} + 28.

The right side has −3x\xterm{-3x}. What operation brings −3x\xterm{-3x} back to zero?

Add 3x\xterm{3x} to both sides: 7x−7=28\xterm{7x} - 7 = 28. (Subtracting 3x\xterm{3x} from 4x\xterm{4x} instead of adding treats −3x\xterm{-3x} like +3x\xterm{+3x}, giving x−7=28\xterm{x} - 7 = 28 and the wrong answer x=35\xterm{x} = 35.)
Add 77 to both sides: 7x=35\xterm{7x} = 35. (Subtracting 77 from 2828 instead of adding gives 7x=21\xterm{7x} = 21 and the wrong answer x=3\xterm{x} = 3.)
Divide both sides by 77: x=5\xterm{x} = 5
4

Solve 3(2x−1)+2x=5x+153(\xterm{2x} - 1) + \xterm{2x} = \xterm{5x} + 15.

Look at the left side first. What does the left side simplify to once you multiply out the parentheses and combine the x\xterm{x} terms on the left?

Distribute 33 on the left side: 6x−3+2x=5x+15\xterm{6x} - 3 + \xterm{2x} = \xterm{5x} + 15. (Make sure to multiply −1-1 by 33 as well; leaving it as −1-1 gives 6x−1+2x=5x+15\xterm{6x} - 1 + \xterm{2x} = \xterm{5x} + 15 and the wrong answer x=163\xterm{x} = \tfrac{16}{3}.)
Combine like terms on the left side: 8x−3=5x+15\xterm{8x} - 3 = \xterm{5x} + 15. (Because 6x\xterm{6x} and +2x\xterm{+ 2x} are already on the same side, add them; subtracting 2x\xterm{2x} as if it were crossing the equals sign gives 4x−3=5x+15\xterm{4x} - 3 = \xterm{5x} + 15 and the wrong answer x=−18\xterm{x} = -18.)
Subtract 5x\xterm{5x} from both sides: 3x−3=15\xterm{3x} - 3 = 15.
Add 33 to both sides to get 3x=18\xterm{3x} = 18, then divide by 33: x=6\xterm{x} = 6
5

A kayak rental shop has two payment plans. Plan A costs $18\$\planA{18} up front plus $4\$\planA{4} per hour. Plan B costs $6\$\planB{6} up front plus $7\$\planB{7} per hour. For how many hours do the two plans cost the exact same amount?

If xx is the number of hours, which dollar amount gets multiplied by xx in each plan, and which is paid just once?

Write the cost expression for each plan after xx hours and set them equal: 4x+18=7x+6\planA{4x + 18} = \planB{7x + 6}. (Multiply xx by the per-hour rate, not the upfront fee; multiplying xx by the upfront fees gives 18x+4=6x+718x + 4 = 6x + 7.)
Subtract 4x\planA{4x} from both sides: 18=3x+6\planA{18} = 3x + \planB{6}.
Subtract 6\planB{6} from both sides: 12=3x12 = 3x. (Adding 6\planB{6} to 18\planA{18} instead of subtracting gives 24=3x24 = 3x and the wrong answer 8 hours8\text{ hours}.)
Divide both sides by 33: 4 hours4\text{ hours}
6

Solve 5x+3=5x+11\xterm{5x} + 3 = \xterm{5x} + 11.

Subtract 5x\xterm{5x} from both sides. What is left, and can it ever be true?

Subtract 5x\xterm{5x} from both sides: 3=113 = 11. (Remember that 5x−5x\xterm{5x} - \xterm{5x} is 00, not x\xterm{x}; leaving an x\xterm{x} behind to write x+3=11\xterm{x} + 3 = 11 gives the wrong answer x=8\xterm{x} = 8.)
Since 3=113 = 11 is always false, no value of x\xterm{x} works: No solution\text{No solution}
7

Solve 4(2x+3)=8x+124(\xterm{2x} + 3) = \xterm{8x} + 12.

Distribute the 44 on the left side first and compare the two sides of the equation.

Distribute 44 on the left side: 8x+12=8x+12\xterm{8x} + 12 = \xterm{8x} + 12. (Forgetting to multiply 33 by 44 gives 8x+3=8x+12\xterm{8x} + 3 = \xterm{8x} + 12, which simplifies to 3=123 = 12 and leads to the wrong answer No solution\text{No solution}.)
Subtract 8x\xterm{8x} from both sides: 12=1212 = 12. (Don't confuse all the x\xterm{x}'s canceling out with x=0\xterm{x} = 0; 12=1212 = 12 is true for every number x\xterm{x}.)
Because both sides are identical, every number works: Infinitely many solutions\text{Infinitely many solutions}
8

What number goes in the box so that 3(4x+2)=□x+63(\xterm{4x} + 2) = \xterm{\square x} + 6 has infinitely many solutions?

Distribute the 33 on the left side first. How many x\xterm{x}'s are on the left once you multiply out the parentheses?

Distribute 33 on the left side: 12x+6=□x+6\xterm{12x} + 6 = \xterm{\square x} + 6. (Picking 44 from inside the parentheses before multiplying by 33 gives 12x+6=4x+6\xterm{12x} + 6 = \xterm{4x} + 6, which only has the single solution x=0\xterm{x} = 0 instead of infinitely many solutions.)
Since +6+ 6 already matches on both sides, match the number in front of x\xterm{x} so both sides are identical: 1212
9

What number goes in the box so that 8x+5=□x+1\xterm{8x} + 5 = \xterm{\square x} + 1 has no solution?

The plain numbers +5+ 5 and +1+ 1 are already different. How many x\xterm{x}'s do you need on the right so that all the x\xterm{x}'s cancel out?

Look at the plain numbers +5+ 5 and +1+ 1: they are already different, so we need the x\xterm{x} terms on both sides to cancel out completely when we subtract them. (Putting −8-8 in the box does not cancel 8x\xterm{8x}; it gives 8x+5=−8x+1\xterm{8x} + 5 = \xterm{-8x} + 1, which adds to 16x+5=1\xterm{16x} + 5 = 1 and has a solution x=−14\xterm{x} = -\tfrac{1}{4}.)
Match the number of x\xterm{x}'s on the left so subtracting 8x\xterm{8x} from both sides leaves 5=15 = 1: 88