See How Things Work

Equations with grouping symbols

Unit
Linear Equations
Part
1. Equations
Lesson
1.7

An equation with grouping symbols, such as 3(x − 4) = 2x + 5, is solved by first removing the parentheses with the distributive property and then collecting terms. This lesson proves that expanding a side keeps the solutions, treats negative factors, a minus sign before parentheses, nested brackets and fraction bars, and shows when dividing both sides first is quicker.

Simplify each side first

In lessons 1.5 and 1.6 each side of an equation was already simple: at most one variable term and one constant. In 3(x − 4) = 2x + 5 the left side is a product of a number and a sum, and no term can be collected while the parentheses stand. The general strategy for linear equations therefore begins by simplifying each side of the equation as much as possible,⁠[1] using the distributive property to remove any parentheses⁠[2] and then combining like terms. Beginning this way makes the remaining steps easier.⁠[3]

Simplifying a side is not an operation on both sides: it replaces one side by an equivalent expression, one that has the same value at every number (Algebraic Expressions 1.4). The next proposition says why this never changes the solutions.

Proposition (replacing a side by an equivalent expression).

Let A = B be an equation in the variable x, and let A′ be an expression equivalent to A, both having a value at every number of the domain. Then A = B and A′ = B are equivalent equations. The same holds for the right side.

Proof.

Take any number c of the domain. Since A and A′ are equivalent, they have the same value at c. So checking c in A = B and checking it in A′ = B compare the same two numbers (lesson 1.2): c is a solution of one equation exactly when it is a solution of the other.

The distributive property says that a(b + c) = ab + ac for all numbers a, b and c,⁠[4] and it is used in algebra to remove parentheses.⁠[5] Algebraic Expressions 1.7 proved it for expressions: the factor in front of the parentheses multiplies every term inside, and the expanded expression is equivalent to the product. By the Proposition, expanding a side of an equation gives an equivalent equation. Some learners find arrows from the factor to each term a helpful reminder of how the property is used.⁠[6]

7(x+2)7x+14
−3(2x−5)−6x+15
−(4−x)−4+x
Figure. Removing parentheses. The factor in front multiplies every term inside, with its sign: 7(x + 2) = 7x + 14, and −3(2x − 5) = −6x + 15, where (−3)(−5) = 15. A minus sign alone in front is the factor −1, so −(4 − x) = −4 + x: every sign inside changes.
Example (Expand, then solve).

Solve 3(x − 4) = 2x + 5.

3(x − 4)
=
2x + 5
3x − 12
=
2x + 5
distribute 3: 3 · x − 3 · 4
3x − 12 − 2x
=
2x + 5 − 2x
subtract 2x from both sides
x − 12
=
5
combine like terms
x − 12 + 12
=
5 + 12
add 12 to both sides
x
=
17
simplify each side

Check: Left side: 3(17 − 4) = 39. Right side: 2(17) + 5 = 39. Both sides are 39, so x = 17 is a solution. After the first line this is an equation of lesson 1.6.

Example (A constant outside the parentheses).

Solve 5(2n + 3) − 7 = 38.

5(2n + 3) − 7
=
38
10n + 15 − 7
=
38
distribute 5
10n + 8
=
38
combine like terms: 15 − 7 = 8
10n
=
30
subtract 8 from both sides
n
=
3
divide both sides by 10

Check: Left side: 5(2(3) + 3) − 7 = 38. Right side: 38. Both sides are 38, so n = 3 is a solution. The 7 is outside the parentheses, so it is not multiplied by 5. Equations of the forms p(x + q) = r and px + q = r are standard types of linear equation.⁠[7]

Negative factors and a minus sign before parentheses

When a negative number is distributed, the signs need extra care.⁠[8] The factor multiplies every term with its sign, and the product of two negative numbers is positive. A minus sign directly in front of parentheses is the factor −1, since multiplying by −1 gives the opposite:⁠[9] it changes the sign of every term inside. And a product after a minus sign, as in 7 − 2(3 − n), is expanded before anything is subtracted, because the order of operations does the multiplication first (Order of Operations 1.3, Algebraic Expressions 1.7).

Example (A negative factor).

Solve −4(2t − 5) = 3t − 2.

−4(2t − 5)
=
3t − 2
−8t + 20
=
3t − 2
distribute −4: (−4)(2t) and (−4)(−5) = 20
−8t + 20 + 8t
=
3t − 2 + 8t
add 8t to both sides (3 > −8: the right side is the variable side)
20
=
11t − 2
combine like terms
22
=
11t
add 2 to both sides
t
=
2
divide both sides by 11; symmetric property

Check: Left side: −4(2(2) − 5) = 4. Right side: 3(2) − 2 = 4. Both sides are 4, so t = 2 is a solution.

Example (Subtracting a group).

Solve 20 − (x + 6) = 3x.

20 − (x + 6)
=
3x
20 − x − 6
=
3x
the group is subtracted: both of its terms change sign
14 − x
=
3x
combine like terms: 20 − 6 = 14
14 − x + x
=
3x + x
add x to both sides
14
=
4x
simplify each side
x
=
72
divide both sides by 4; symmetric property

Check: Left side: 20 − (72 + 6) = 212. Right side: 3(72) = 212. Both sides are 212, so x = 72 is a solution. The answer may also be written 3.5.

Example (A common mistake: subtracting before multiplying).

Someone solves 7 − 2(3 − n) = n + 10 by first working out 7 − 2 = 5, writes 5(3 − n) = n + 10, and finds n = 56. Find the error.

  1. Check the answer in the original equation: Left side: 7 − 2(3 − 56) = 83. Right side: 56 + 10 = 656. The sides differ, so 56 is not a solution.
  2. In 7 − 2(3 − n) the 2 multiplies the group, and the product is subtracted from 7. Multiplication comes before subtraction, so 7 − 2 is never computed: the left side is not 5(3 − n).
  3. 7 − 2(3 − n)
    =
    n + 10
    7 − 6 + 2n
    =
    n + 10
    distribute −2: (−2)(3) = −6 and (−2)(−n) = 2n
    1 + 2n
    =
    n + 10
    combine like terms
    1 + n
    =
    10
    subtract n from both sides
    n
    =
    9
    subtract 1 from both sides
    Check: Left side: 7 − 2(3 − 9) = 19. Right side: 9 + 10 = 19. Both sides are 19, so n = 9 is a solution.

Answer: 9, not 56. The minus sign in front of the 2 belongs to the factor: distribute −2.

Nested grouping symbols and fraction bars

When grouping symbols stand inside other grouping symbols, the innermost ones are simplified first, working outward,⁠[10] as in Order of Operations 1.2. The same rule removes them in an equation: simplify from the innermost parentheses first.⁠[11] A fraction bar is a grouping symbol too:⁠[12] in x + 73 the whole numerator x + 7 is divided by 3, so it behaves like 13(x + 7) (Algebraic Expressions 1.7).

Example (Brackets around parentheses).

Solve 2[5 − 3(k + 1)] = −4k.

2[5 − 3(k + 1)]
=
−4k
2[5 − 3k − 3]
=
−4k
innermost first: distribute −3
2[2 − 3k]
=
−4k
combine like terms inside the brackets
4 − 6k
=
−4k
distribute 2
4 − 6k + 6k
=
−4k + 6k
add 6k to both sides
4
=
2k
simplify each side
k
=
2
divide both sides by 2; symmetric property

Check: Left side: 2[5 − 3(2 + 1)] = −8. Right side: −4(2) = −8. Both sides are −8, so k = 2 is a solution. Combining inside the brackets before distributing the 2 kept the numbers small; distributing first would also have been correct (Algebraic Expressions 1.9).

Example (A fraction bar as a grouping symbol).

Solve x + 73 = x − 1.

x + 73
=
x − 1
3 · (x + 73)
=
3(x − 1)
multiply both sides by 3, which is not 0 (lesson 1.3, Theorem 2)
x + 7
=
3x − 3
3 · (1/3)(x + 7) = x + 7; distribute 3 on the right
7
=
2x − 3
subtract x from both sides
10
=
2x
add 3 to both sides
x
=
5
divide both sides by 2; symmetric property

Check: Left side: 5 + 73 = 4. Right side: 5 − 1 = 4. Both sides are 4, so x = 5 is a solution. Multiplying by 3 removed the fraction bar and gave back the whole numerator, x + 7; the right side, a sum, had to be multiplied as a whole. Writing x + 73 for the left side would divide only the 7.

Dividing first

Expanding is not the only correct first step. When one side is a product p(…) with p ≠ 0 and nothing else, dividing both sides by p gives an equivalent equation (Theorem 2 of lesson 1.3) and removes the parentheses at once. It is quickest when the other side is a number divisible by p. Both routes consist of equivalent steps, so they must reach the same solution.

Example (Two routes, one solution).

Solve −6(y + 4) = 42 by dividing first, and by expanding first.

  1. Dividing first: divide both sides by −6, y + 4 = −7, since 42 ÷ (−6) = −7. Subtract 4: y = −11.
  2. Expanding first: −6y − 24 = 42. Add 24: −6y = 66. Divide by −6: y = −11.
  3. Check: Left side: −6(−11 + 4) = 42. Right side: 42. Both sides are 42, so y = −11 is a solution.

Answer: −11 by both routes. Dividing first saved one step and kept the numbers small.

Example (Edge cases: the variable terms cancel).

Solve (a) 5(x − 3) + 4 = 5x − 11; (b) 3(2x − 1) = 6x + 4.

  1. (a) Expand and combine: 5x − 15 + 4 = 5x − 11, that is, 5x − 11 = 5x − 11. Subtracting 5x leaves −11 = −11, true for every x. Every number is a solution: an identity. At x = 0, for example, both sides are −11.
  2. (b) Expand: 6x − 3 = 6x + 4. Subtracting 6x leaves −3 = 4, false for every x: a contradiction, with no solution.

Answer: (a) every number; (b) no number. After expanding, both equations have equal coefficients of x on the two sides: cases (2) and (3) of the Theorem of lesson 1.6. Parentheses can hide this until they are removed.

Looking ahead.

The lesson “Equations with no solution or infinitely many solutions”, later in this unit, returns to such equations. The next lesson, “Equations with fractions and decimals”, clears fraction bars and decimals from a whole equation at once.

The whole strategy

With grouping symbols added, the general strategy for solving a linear equation reads:

  1. Simplify each side: remove the grouping symbols, innermost first, with the distributive property, and combine like terms.⁠[2]
  2. Collect the variable terms on one side,⁠[13] and the constants on the other, adding or subtracting on both sides.
  3. Make the coefficient of the variable 1, dividing both sides by it.
  4. Check the solution in the original equation.⁠[14] If the variable terms cancel, read off the case instead: no solution or every number.

Every line of such a solution is an equivalent equation, so a wrong line is one whose solutions differ from those of the line above it. Most wrong lines come from the first step: a factor multiplied into the first term only, or a sign left unchanged when a product is subtracted.

Game

Find the wrong step

Round
1
Score
0
Streak
0

Each line should follow from the line above it. Tap the first line that is wrong, or choose “No line is wrong”.

2(2z − 5)=−34the equation

Exercises

Exercise .

Solve and check: (a) 6(a + 2) = 30; (b) −2(b − 7) = 18; (c) 4(3c − 1) = 2c + 16; (d) 9 − (d + 4) = 2d.

▸ Show solution

(a) Divide by 6: a + 2 = 5, so a = 3. Check: 6(3 + 2) = 30.

(b) Divide by −2: b − 7 = −9, so b = −2. Check: −2(−2 − 7) = −2(−9) = 18.

(c) Expand: 12c − 4 = 2c + 16. Subtract 2c: 10c − 4 = 16. Add 4: 10c = 20, so c = 2. Check: 4(6 − 1) = 20 and 4 + 16 = 20.

(d) The group is subtracted: 9 − d − 4 = 2d, so 5 − d = 2d. Add d: 5 = 3d, so d = 53. Check: 9 − (53 + 4) = 9 − 173 = 103, and 2 · 53 = 103.

Exercise .

Solve 3(2m − 5) − 4(m − 1) = 7 and check.

▸ Show solution

Expand both products; the second is subtracted, so its signs change: 6m − 15 − 4m + 4 = 7. Combine: 2m − 11 = 7. Add 11: 2m = 18, so m = 9. Check: 3(18 − 5) − 4(9 − 1) = 39 − 32 = 7.

Exercise .

Solve and check: (a) 3[2p − (p − 4)] = 5p − 2; (b) 2w − 45 = w − 5.

▸ Show solution

(a) Innermost first: 2p − (p − 4) = 2p − p + 4 = p + 4. So the equation is 3(p + 4) = 5p − 2, that is, 3p + 12 = 5p − 2. Subtract 3p: 12 = 2p − 2. Add 2: 14 = 2p, so p = 7. Check: 3[14 − 3] = 33 and 35 − 2 = 33.

(b) Multiply both sides by 5: 2w − 4 = 5(w − 5) = 5w − 25. Subtract 2w: −4 = 3w − 25. Add 25: 21 = 3w, so w = 7. Check: (14 − 4) ÷ 5 = 2 and 7 − 5 = 2.

Exercise .

Find the wrong line and solve correctly: 5 − 3(x − 2) = 14; 5 − 3x − 6 = 14; −3x − 1 = 14; −3x = 15; x = −5.

▸ Show solution

The second line is wrong: −3 multiplies −2 as well, and (−3)(−2) = +6. The line should read 5 − 3x + 6 = 14. Then 11 − 3x = 14, so −3x = 3 and x = −1.

Check: 5 − 3(−1 − 2) = 5 − 3(−3) = 5 + 9 = 14. The wrong answer −5 fails: 5 − 3(−5 − 2) = 5 + 21 = 26, not 14.

Exercise .

Solve 8(z − 3) = −40 twice: once dividing both sides by 8 first, once expanding first.

▸ Show solution

Dividing first: divide both sides by 8, z − 3 = −5, so z = −2. Expanding first: 8z − 24 = −40, so 8z = −16 and z = −2. Check: 8(−2 − 3) = 8(−5) = −40.

Exercise .

An adult ticket costs 4 dollars more than a child’s ticket. Three adult tickets and five child tickets cost 76 dollars in all. Write an equation with parentheses for the price of a child’s ticket, and solve it.

▸ Show solution

Let c be the price of a child’s ticket in dollars; an adult ticket costs c + 4. Then 3(c + 4) + 5c = 76. Expand: 3c + 12 + 5c = 76, so 8c + 12 = 76, 8c = 64 and c = 8. A child’s ticket costs 8 dollars and an adult’s 12. Check: 3 · 12 + 5 · 8 = 36 + 40 = 76.

Exercise .

For which numbers k does 2(x + k) = 2x + 6 have every number as a solution, and for which does it have no solution? Can it have exactly one solution?

▸ Show solution

Expand: 2x + 2k = 2x + 6. The coefficients of x are equal (2 and 2), so by the Theorem of lesson 1.6 there is never exactly one solution.

If 2k = 6, that is, k = 3, the equation is 2x + 6 = 2x + 6: every number is a solution. If k ≠ 3, then 2k ≠ 6 and subtracting 2x leaves a false statement: no solution.

Summary

  1. An equation with grouping symbols is solved by first simplifying each side: remove the parentheses with the distributive property, innermost first, and combine like terms.
  2. Replacing a side by an equivalent expression gives an equivalent equation, so expanding never changes the solutions.
  3. The factor multiplies every term inside the parentheses, with its sign. A minus sign before parentheses is the factor −1 and changes every sign inside; a product after a minus sign is expanded before anything is subtracted.
  4. A fraction bar groups its numerator: multiplying by the denominator gives back the whole numerator.
  5. When one side is p(…) alone, dividing both sides by p ≠ 0 first is also correct. Expanding can reveal equal coefficients: then there is no solution or every number is one.

Sources

  1. 1.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Solve Equations Using the General Strategy”), p. 243 (the whole topic: pp. 242–248).
    “Simplify each side of the equation as much as possible.”
    Used for: the general strategy begins by simplifying each side of the equation as much as possible (its Step 1).
  2. 2.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Solve Equations Using the General Strategy”), p. 243 (the whole topic: pp. 242–248).
    “Use the Distributive Property to remove any parentheses.”
    Used for: the distributive property is used to remove any parentheses, and like terms are then combined (Step 1 of the general strategy).
  3. 3.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Solve Equations Using the General Strategy”), p. 242 (the whole topic: pp. 242–243).
    “Beginning by simplifying each side of the equation makes the remaining steps easier.”
    Used for: beginning by simplifying each side makes the remaining steps easier.
  4. 4.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 155 (the whole topic: pp. 155–158).
    “If a, b, c are real numbers, then a(b + c) = ab + ac”
    Used for: the distributive property a(b + c) = ab + ac.
  5. 5.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 155 (the whole topic: pp. 155–158).
    “In algebra, we use the distributive property to remove parentheses as we simplify expressions.”
    Used for: the distributive property is used in algebra to remove parentheses.
  6. 6.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 156 (the whole topic: pp. 155–158).
    “Some students find it helpful to draw in arrows to remind them how to use the distributive property.”
    Used for: some learners find arrows from the factor to each term a helpful reminder of how the distributive property is used (the figure).
  7. 7.
    National Governors Association Center for Best Practices and Council of Chief State School Officers, “Common Core State Standards for Mathematics”, Common Core State Standards Initiative (2010).
    Section “Expressions and Equations, standard 7.EE.4a (p. 49)”. corestandards.org/wp-content/uploads/2023/09/Math_Standards1.pdf · open at the quoted passage.
    “Solve word problems leading to equations of the form px + q = r and p(x + q) = r, where p, q, and r are specific rational numbers.”
    Used for: equations of the forms p(x + q) = r and px + q = r are standard types.
  8. 8.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 157 (the whole topic: pp. 155–158).
    “When we distribute a negative number, we need to be extra careful to get the signs correct!”
    Used for: when a negative number is distributed, the signs need extra care.
  9. 9.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 158 (the whole topic: pp. 157–158).
    “Multiplying by −1 results in the opposite.”
    Used for: a minus sign in front of parentheses is the factor −1, since multiplying by −1 gives the opposite.
  10. 10.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.2, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 28 (the whole topic: pp. 26–28).
    “When there are multiple grouping symbols, we simplify the innermost parentheses first and work outward.”
    Used for: with grouping symbols inside grouping symbols, the innermost are simplified first, working outward.
  11. 11.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (Example 2.43), p. 247 (the whole topic: pp. 247).
    “Simplify from the innermost parentheses first.”
    Used for: in an equation, too, the grouping symbols are removed from the innermost parentheses first.
  12. 12.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Foundations”, section 1.5, “Visualize Fractions” (“Simplify Expressions with a Fraction Bar”), p. 89 (the whole topic: pp. 89).
    “A fraction bar acts as grouping symbol.”
    Used for: a fraction bar is a grouping symbol.
  13. 13.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Solve Equations Using the General Strategy”), p. 243 (the whole topic: pp. 242–248).
    “Collect all the variable terms on one side of the equation.”
    Used for: the variable terms are collected on one side (Step 2 of the general strategy).
  14. 14.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Solve Equations Using the General Strategy”), p. 243 (the whole topic: pp. 242–248).
    “Substitute the solution into the original equation to make sure the result is a true statement.”
    Used for: the solution is checked in the original equation.