For addition, neither the order nor the grouping of the numbers matters. This lesson proves that subtraction has neither property, finds exactly when a − b equals b − a and when (a − b) − c equals a − (b − c), proves the rules that hold instead, and explains the convention for reading a − b − c.
Order: a − b and b − a
The unit Addition proves, in its lesson The commutative property of addition, that a + b = b + a for all whole numbers: the order in which two numbers are added does not change the result.[1] A property of this kind has a general name.
An operation on a collection of numbers is commutative if, for all members x and y, the result of applying it to x and y is the same as the result of applying it to y and x.[2] For the whole numbers this includes that both results exist.
For subtraction, the two orders almost never agree.
Let a and b be whole numbers.
- If a ≠ b, exactly one of a − b and b − a is defined in the whole numbers.
- a − b = b − a holds exactly when a = b, and then both are 0.
By the trichotomy law (Counting 1.4), exactly one of a < b, a = b and a > b is true. If a > b, then b ≤ a, so a − b is defined; and a ≤ b is false, so b − a is not defined (lesson 1.4, Theorem 1). If a < b, the same argument with a and b exchanged shows that b − a is defined and a − b is not. This proves (1).
If a ≠ b, one side of a − b = b − a has no value, so the equation is false. If a = b, both sides are a − a, which is 0 (lesson 1.1). This proves (2).
Subtraction of whole numbers is not commutative.
One counterexample is enough to show that a statement about all pairs is false: 7 − 3 = 4, while 3 − 7 has no value among the whole numbers. Textbooks state the same conclusion: changing the order of a subtraction does not give the same result, so subtraction is not commutative.[3]
What does not depend on the order is the distance between the points of 3 and 7 on the number line, 4 unit steps (lesson 1.3). As a subtraction it is always written with the larger number first, 7 − 3.
The failure is not caused only by the missing value of 3 − 7. In the unit Integers, 3 − 7 has a value, and it is still not 4.[3]
Compare 9 − 4 and 4 − 9.
- 9 − 4 = 5, because 5 + 4 = 9.
- 4 − 9: 9 is greater than 4, so it is not defined in the whole numbers.
- By Theorem 1, they could be equal only if 9 = 4.
Answer: 9 − 4 = 5, and 4 − 9 has no whole-number value; the two are not equal.
Compare 6 − 6 with itself in the other order, and a − 0 with 0 − a.
- 6 − 6 and 6 − 6 are the same expression; both are 0. This is the case a = b of Theorem 1.
- a − 0 = a for every whole number a (lesson 1.4).
- 0 − a is defined only for a = 0 (lesson 1.4), and then 0 − 0 = 0 = 0 − 0.
Answer: a − 0 = 0 − a only when a = 0, as Theorem 1 predicts.
In 52 − 27, someone writes 7 − 2 = 5 in the ones column and gets 35. Which property was wrongly used?
- The ones column asks for 2 − 7: the subtrahend’s digit 7 is taken from the minuend’s digit 2.
- Writing 7 − 2 instead treats subtraction as commutative, which it is not: 2 − 7 has no value, and 7 − 2 = 5 answers another question.
- The correct step regroups (lesson 1.5): 12 − 7 = 5 ones, and 4 − 2 = 2 tens.
Answer: the order of a subtraction was reversed; 52 − 27 = 25, not 35. Check: 25 + 27 = 52, while 35 + 27 = 62.
Grouping: (a − b) − c and a − (b − c)
With three numbers, parentheses are grouping symbols that show which operation is done first.[5] The unit Addition proves, in its lesson The associative property of addition, that changing the grouping of three numbers in a sum does not change the result.[6]
An operation on a collection of numbers is associative if, for all members x, y and z, applying it first to x and y and then to the result and z gives the same as applying it first to y and z and then to x and that result.[7]
For subtraction the two groupings are (a − b) − c and a − (b − c). With a = 10, b = 4, c = 3: (10 − 4) − 3 = 6 − 3 = 3, but 10 − (4 − 3) = 10 − 1 = 9. So subtraction is not associative.[8]
The figure shows why. In (10 − 4) − 3 three more are taken away after the first four. In 10 − (4 − 3) only one is taken away: three fewer than four. The first grouping takes c away; the second gives c back. The next lemma makes this exact.
Let a, b and c be whole numbers with c ≤ b ≤ a. Then a − (b − c) is defined, and a − (b − c) = (a − b) + c.
By Theorem 1 of lesson 1.2, (b − c) + c = b and (a − b) + b = a. Using the associative property of addition,
((a − b) + c) + (b − c) = (a − b) + (c + (b − c)) = (a − b) + b = a,
where c + (b − c) = (b − c) + c = b by the commutative property of addition. So (a − b) + c is a whole number that, added to b − c, gives a. By Theorem 2 of lesson 1.2, b − c ≤ a and a − (b − c) = (a − b) + c.
Let a, b and c be whole numbers such that both (a − b) − c and a − (b − c) are defined. Then (a − b) − c = a − (b − c) exactly when c = 0. When c ≥ 1, a − (b − c) is the larger of the two.
Since (a − b) − c is defined, b ≤ a and c ≤ a − b; since b − c is defined, c ≤ b. Let d = a − b. Then (a − b) − c = d − c, and by the Lemma, a − (b − c) = d + c.
If c = 0, both are d. Conversely, suppose d − c = d + c. Since (d − c) + c = d (lesson 1.2), adding c to both sides gives d = (d + c) + c = d + (c + c). A number that leaves d unchanged when added to it is 0 (Addition 1.4), so c + c = 0, and a sum is 0 only when both addends are 0 (Addition 1.4). So c = 0.
Finally, d − c ≤ d (taking away leaves at most what there was, lesson 1.4) and d ≤ d + c, with d + c > d when c ≥ 1 (Addition 1.2). So for c ≥ 1, d − c < d + c.
Sometimes only one of the two groupings has a value. (5 − 4) − 3 asks for 1 − 3, which is not defined, while 5 − (4 − 3) = 5 − 1 = 4. The other way round, (9 − 2) − 5 = 7 − 5 = 2, while 9 − (2 − 5) asks for 2 − 5, which is not defined.
Compare (20 − 8) − 5 and 20 − (8 − 5).
- (20 − 8) − 5 = 12 − 5 = 7.
- 20 − (8 − 5) = 20 − 3 = 17.
- By the proof of Theorem 2, the right side is d + c and the left d − c with d = 20 − 8 = 12 and c = 5: 17 and 7. They differ by c + c = 10.
Answer: 7 and 17. The two groupings are not equal.
Compare (12 − 5) − 0 and 12 − (5 − 0).
- (12 − 5) − 0 = 7 − 0 = 7.
- 12 − (5 − 0) = 12 − 5 = 7.
Answer: both are 7, the only case allowed by Theorem 2. Subtracting 0 changes nothing, wherever it stands.
What is true instead
Subtraction has no commutative or associative property, but it does have exact rules for rearranging. They are what make the mental strategies of lesson 1.8 correct.
Let a, b and c be whole numbers.
- If b + c ≤ a, then (a − b) − c = a − (b + c).
- If c ≤ b ≤ a, then a − (b − c) = (a − b) + c.
- If b + c ≤ a, then (a − b) − c = (a − c) − b: the numbers taken away may be taken in either order.
- If c ≤ b, then (a + b) − c = a + (b − c); and if c ≤ a, then (a + b) − c = (a − c) + b.
(1) is the Proposition on several subtractions of lesson 1.4. (2) is the Lemma above.
(3) By (1), (a − b) − c = a − (b + c). Since c + b = b + c ≤ a, (1) with b and c exchanged gives (a − c) − b = a − (c + b), which is the same number, by the commutative property of addition.
(4) If c ≤ b, then (a + (b − c)) + c = a + ((b − c) + c) = a + b, by the associative property of addition and Theorem 1 of lesson 1.2; by Theorem 2 of lesson 1.2, (a + b) − c = a + (b − c). If c ≤ a, then ((a − c) + b) + c = (a − c) + (b + c) = (a − c) + (c + b) = ((a − c) + c) + b = a + b, and in the same way (a + b) − c = (a − c) + b.
Find 100 − (40 − 3) and (83 − 25) − 3.
- 100 − (40 − 3): by (2), with 3 ≤ 40 ≤ 100, it is (100 − 40) + 3 = 60 + 3 = 63. Directly: 40 − 3 = 37 and 100 − 37 = 63.
- (83 − 25) − 3: since 25 + 3 = 28 ≤ 83, by (3) it is (83 − 3) − 25 = 80 − 25 = 55. Directly: 83 − 25 = 58 and 58 − 3 = 55.
Answer: 63 and 55. Each rule gives the same value as the direct work, as the Proposition guarantees.
Same value?
- Round
- 1
- Score
- 0
- Streak
- 0
Do these two expressions have the same value? Work them out, then choose.
Writing a − b − c without parentheses
For addition, 2 + 3 + 4 needs no parentheses, because both groupings give 9. For subtraction, 20 − 5 − 3 could mean (20 − 5) − 3 = 12 or 20 − (5 − 3) = 18, so a rule is needed. The rule is to perform additions and subtractions in order from left to right.[9]
a − b − c means (a − b) − c, and in a row of additions and subtractions without parentheses each operation is done in turn, from the left. This is an agreement about how to read the symbols, not a theorem: it was chosen so that every such expression has exactly one meaning. The unit Order of Operations treats such conventions in full.
Someone works out 50 − 20 − 10 as 50 − 10 = 40. Find the mistake.
- Subtracting 20 − 10 first treats the expression as 50 − (20 − 10).
- By the convention, 50 − 20 − 10 = (50 − 20) − 10 = 30 − 10 = 20.
- By the Proposition, (1), this is also 50 − (20 + 10) = 50 − 30 = 20.
Answer: 50 − 20 − 10 = 20, not 40.
Find 15 − 8 + 4 and 30 − 12 + 2.
- From the left: 15 − 8 = 7, then 7 + 4 = 11. Adding 8 + 4 first would give 15 − 12 = 3, which is a different expression, 15 − (8 + 4).
- From the left: 30 − 12 = 18, then 18 + 2 = 20. By the Proposition, (2), this is 30 − (12 − 2) = 30 − 10 = 20 as well.
Answer: 15 − 8 + 4 = 11 and 30 − 12 + 2 = 20.
Exercises
Is a − b = b − a for (a) a = 15, b = 15; (b) a = 15, b = 6; (c) a = 0, b = 4?
▸ Show solution
(a) a = b = 15: 15 − 15 = 0 in both orders, so they are equal. (b) 15 − 6 = 9, and 6 − 15 is not defined: not equal. (c) 0 − 4 is not defined and 4 − 0 = 4: not equal. Only (a) has equal sides, as Theorem 1 says.
Find (24 − 9) − 5 and 24 − (9 − 5), and explain the difference between them with Theorem 2.
▸ Show solution
(24 − 9) − 5 = 15 − 5 = 10, and 24 − (9 − 5) = 24 − 4 = 20. With d = 24 − 9 = 15 and c = 5, they are d − c = 10 and d + c = 20, which differ by c + c = 10.
Find (a) 40 − 15 − 5; (b) 40 − 15 + 5; (c) 40 − (15 − 5). Which two are equal, and why?
▸ Show solution
(a) From the left: 40 − 15 = 25, then 25 − 5 = 20. (b) 40 − 15 = 25, then 25 + 5 = 30. (c) 40 − (15 − 5) = 40 − 10 = 30, the same as (b), by the Proposition, (2).
For which whole numbers c are both (18 − 10) − c and 18 − (10 − c) defined? For which are they equal?
▸ Show solution
(18 − 10) − c = 8 − c is defined for c ≤ 8; 18 − (10 − c) is defined for c ≤ 10 (then 10 − c ≤ 10 ≤ 18). Both are defined for c = 0, 1, …, 8.
By Theorem 2 they are equal only for c = 0. Check: for c = 0 both are 8; for c = 1 they are 7 and 18 − 9 = 9. For c = 9 and c = 10 only the right side has a value: 18 − 1 = 17 and 18 − 0 = 18.
Use a rule of the Proposition to find 1,000 − (300 − 1) without column subtraction, and check the result.
▸ Show solution
1,000 − (300 − 1) = (1,000 − 300) + 1 = 700 + 1 = 701, by the Proposition, (2), since 1 ≤ 300 ≤ 1,000. Directly: 300 − 1 = 299, and 1,000 − 299 = 701 (check: 701 + 299 = 1,000).
Prove that (a − b) − c ≤ a − (b − c) whenever both sides are defined.
▸ Show solution
Let d = a − b. As in the proof of Theorem 2, (a − b) − c = d − c and a − (b − c) = d + c. Taking away leaves at most what there was, so d − c ≤ d, and a sum is never less than an addend, so d ≤ d + c. Hence (a − b) − c ≤ a − (b − c).
For whole numbers x and y, let x ⊖ y be the larger of the two minus the smaller (and 0 if they are equal): the distance between their points on the number line. Is ⊖ commutative? Is it associative?
▸ Show solution
x ⊖ y is defined for every pair, because one of x ≤ y, y ≤ x always holds. It is commutative: x ⊖ y and y ⊖ x are both the larger number minus the smaller, the same number.
It is not associative: (5 ⊖ 3) ⊖ 1 = 2 ⊖ 1 = 1, but 5 ⊖ (3 ⊖ 1) = 5 ⊖ 2 = 3. One counterexample is enough.
Summary
- a − b = b − a only when a = b; otherwise exactly one of them is defined. Subtraction is not commutative.
- (a − b) − c and a − (b − c), when both are defined, are equal only when c = 0; otherwise a − (b − c) is larger, by c + c. Subtraction is not associative.
- Rules that do hold: (a − b) − c = a − (b + c) = (a − c) − b; a − (b − c) = (a − b) + c; (a + b) − c = a + (b − c) = (a − c) + b, whenever the subtractions are defined.
- By convention, additions and subtractions without parentheses are done from left to right: a − b − c means (a − b) − c.
Sources
- 1.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “The Properties of Real Numbers”, section 7.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 547 (the whole topic: pp. 546–548).
“The commutative properties have to do with order. If you change the order of the numbers when adding or multiplying, the result is the same.”
Used for: for addition, changing the order of the two numbers does not change the result (the commutative property of addition). - 2.David S. Dummit and Richard M. Foote, Abstract Algebra (3rd ed., John Wiley & Sons, 2004).Chapter 1, “Introduction to Groups”, section 1.1, “Basic Axioms and Examples”, p. 16 (the whole topic: pp. 16–17).
“We say ⋆ (or G) is commutative if for all a, b ∈ G, a ⋆ b = b ⋆ a.”
Used for: the definition of a commutative operation: x ⋆ y = y ⋆ x for all members x and y. - 3.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “The Properties of Real Numbers”, section 7.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 547 (the whole topic: pp. 546–548).
“Since changing the order of the subtraction did not give the same result, we can say that subtraction is not commutative.”
Used for: changing the order of a subtraction does not give the same result, so subtraction is not commutative; the book’s example shows 7 − 3 and 3 − 7 with different values, also in the integers. - 4.David Arnold, “Prealgebra, 1.2 “Adding and Subtracting Whole Numbers””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).Section “Subtraction of Whole Numbers”. math.libretexts.org/Bookshelves/PreAlgebra/Prealgebra_(Arnold)/01%3A_The_Whole_Numbers/1.02%3A_Adding_and_Subtracting_Whole_Numbers · open at the quoted passage.
“Note that subtraction is not commutative”
Used for: subtraction of whole numbers is not commutative. - 5.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “The Properties of Real Numbers”, section 7.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 548 (the whole topic: pp. 547–548).
“Remember that parentheses are grouping symbols that indicate which operations should be done first.”
Used for: parentheses are grouping symbols that show which operation is done first. - 6.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “The Properties of Real Numbers”, section 7.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 548 (the whole topic: pp. 547–548).
“When adding three numbers, changing the grouping of the numbers does not change the result. This is known as the Associative Property of Addition.”
Used for: changing the grouping of three numbers in a sum does not change the result (the associative property of addition). - 7.David S. Dummit and Richard M. Foote, Abstract Algebra (3rd ed., John Wiley & Sons, 2004).Chapter 1, “Introduction to Groups”, section 1.1, “Basic Axioms and Examples”, p. 16 (the whole topic: pp. 16–17).
“A binary operation ⋆ on a set G is associative if for all a, b, c ∈ G we have a ⋆ (b ⋆ c) = (a ⋆ b) ⋆ c.”
Used for: the definition of an associative operation: x ⋆ (y ⋆ z) = (x ⋆ y) ⋆ z for all members x, y and z. - 8.David Arnold, “Prealgebra, 1.2 “Adding and Subtracting Whole Numbers””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).Section “Subtraction of Whole Numbers”. math.libretexts.org/Bookshelves/PreAlgebra/Prealgebra_(Arnold)/01%3A_The_Whole_Numbers/1.02%3A_Adding_and_Subtracting_Whole_Numbers · open at the quoted passage.
“Subtraction is not associative.”
Used for: subtraction is not associative: (a − b) − c and a − (b − c) can differ. - 9.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
“Perform all addition and subtraction in order from left to right.”
Used for: the convention: additions and subtractions are performed in order from left to right. - 10.David Arnold, “Prealgebra, 1.2 “Adding and Subtracting Whole Numbers””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).Section “Order of Operations”. math.libretexts.org/Bookshelves/PreAlgebra/Prealgebra_(Arnold)/01%3A_The_Whole_Numbers/1.02%3A_Adding_and_Subtracting_Whole_Numbers · open at the quoted passage.
“Perform all additions and subtractions in the order presented, moving left to right.”
Used for: the convention: additions and subtractions without grouping symbols are done in the order presented, from left to right; so 15 − 8 + 4 = 11.