Among the whole numbers, a − b has a value only when b ≤ a. Among the integers every difference has a value: the integers are closed under subtraction. This lesson proves that, proves that subtraction still undoes addition, and shows that an equation such as □ + 5 = 3 now always has exactly one solution.
Closed under subtraction
This lesson relies on subtraction of whole numbers as the inverse of addition (Subtraction, lesson 1.2) and on Subtraction 1.4, which found exactly when a − b has a value among the whole numbers. From this unit it uses opposites (lesson 1.3), the sum of two integers (lesson 2.1 and lesson 2.2) and the difference a − b = a + (−b) (lesson 2.3).
Subtraction cannot be done without restriction among the whole numbers[1]: by Subtraction 1.4, a − b has a whole-number value only when b ≤ a, so 3 − 5 and 0 − 1 have none. As in Subtraction 1.4, a collection of numbers is closed under an operation if the operation, applied to any two of its members, always gives a member of the collection.[2] The whole numbers are closed under addition but not under subtraction. Subtraction, the inverse of addition, can lead out of the whole numbers to the negative integers.[3]
The integers are closed under addition and under subtraction: for all integers a and b, a + b and a − b are integers.
By lesson 2.1, the walk of a + b ends on a mark of the integer line after |b| unit steps, and that mark is the point of exactly one integer; so a + b is an integer. The opposite −b of an integer b is an integer (lesson 1.3, Proposition 5). So a − b = a + (−b) is a sum of two integers, and therefore an integer.
Advanced texts say the same in other words: usual subtraction is a binary operation on the integers.[4] On the positive integers it is not one: 1 and 2 are positive, but 1 − 2 = −1 is not.
(a) Whole numbers 0 to 5
| a╲b | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| 0 | 0 | · | · | · | · | · |
| 1 | 1 | 0 | · | · | · | · |
| 2 | 2 | 1 | 0 | · | · | · |
| 3 | 3 | 2 | 1 | 0 | · | · |
| 4 | 4 | 3 | 2 | 1 | 0 | · |
| 5 | 5 | 4 | 3 | 2 | 1 | 0 |
(b) Integers −3 to 3
| a╲b | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|---|
| −3 | 0 | −1 | −2 | −3 | −4 | −5 | −6 |
| −2 | 1 | 0 | −1 | −2 | −3 | −4 | −5 |
| −1 | 2 | 1 | 0 | −1 | −2 | −3 | −4 |
| 0 | 3 | 2 | 1 | 0 | −1 | −2 | −3 |
| 1 | 4 | 3 | 2 | 1 | 0 | −1 | −2 |
| 2 | 5 | 4 | 3 | 2 | 1 | 0 | −1 |
| 3 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
The figure shows the difference. Among the whole numbers, the table of differences has a hole in every cell where the number subtracted is the larger. Among the integers the table has no holes. The integers keep every difference the whole numbers had: by Theorem 1 of lesson 2.3, a + (−b) is the old difference whenever b ≤ a.
Find 0 − 1, 2 − 9, −4 − 6 and 5 − 5.
- 0 − 1 = 0 + (−1) = −1: from the origin, one step to the left.
- 2 − 9 = 2 + (−9). Different signs; 9 − 2 = 7; the larger absolute value belongs to −9, so the result is −7.
- −4 − 6 = −4 + (−6) = −(4 + 6) = −10 (two negative integers, lesson 2.1, Theorem 3).
- 5 − 5 = 5 + (−5) = 0: a number plus its opposite (lesson 2.2, Theorem 2).
Answer: −1, −7, −10 and 0. The first three have no value among the whole numbers; the last one had a value there too, and it is the same.
Are the negative integers −1, −2, −3, … closed under addition? Under subtraction?
- Addition: for counting numbers m and n, (−m) + (−n) = −(m + n), and m + n is a counting number. So the sum of two negative integers is always negative: the negative integers are closed under addition.
- Subtraction: one counterexample is enough. −2 − (−5) = −2 + 5 = 3, which is positive. So the negative integers are not closed under subtraction.
- Also −3 − (−3) = 0, which is not negative either.
Answer: closed under addition, not closed under subtraction. Only the whole collection of integers is closed under both.
Every integer is a difference of whole numbers
The integers are exactly what is needed to give every difference of whole numbers a value: nothing less will do, and nothing more is needed.
- Every integer is a difference a − b of two whole numbers a and b.
- Every collection of integers that contains all the whole numbers and is closed under subtraction contains every integer.
(1) A whole number n is n − 0. A negative integer −n, with n a counting number, is 0 − n, because 0 − n = 0 + (−n) = −n (lesson 2.3, Proposition 3).
(2) Such a collection contains 0 and every counting number n, so, being closed under subtraction, it contains 0 − n = −n. So it contains every whole number and every negative integer: every integer.
Advanced texts build the integers on this idea: every integer can be expressed as a difference of two natural numbers.[5] The same integer has many such expressions.
Write −3 as a difference of two whole numbers in three ways.
- 0 − 3 = −3, by Proposition 2 (1).
- 2 − 5: by the Corollary of lesson 2.3, for whole numbers a < b, a − b = −(b − a). Here 5 − 2 = 3, so 2 − 5 = −3.
- 10 − 13 = −(13 − 10) = −3, in the same way.
Answer: −3 = 0 − 3 = 2 − 5 = 10 − 13. In each, the second number is 3 more than the first.
Subtraction still undoes addition
Among the whole numbers, subtraction undoes addition: (a − b) + b = a when b ≤ a, and (a + b) − b = a (Subtraction 1.2, Theorems 1 and 3). Both stay true for all integers, with no condition. The proof uses one fact about single steps.
From any mark of the integer line, a unit step to the right followed by a unit step to the left returns to the same mark; so does a step to the left followed by a step to the right.
Let P be a mark and Q the next mark on its right. Then P is the next mark on the left of Q, since no mark lies between them. So a step to the right from P ends at Q, and a step to the left from Q ends at P. The second statement is the same fact read from Q.
For all integers a and b:
- (a − b) + b = a;
- (a + b) − b = a.
If b = 0, both sides are a, since a + 0 = a and a − 0 = a. Let b ≠ 0 and k = |b|.
(1) By lesson 2.3, Proposition 4, the walk of a − b takes k unit steps from the point of a in the direction opposite to the sign of b. Call the marks it stands on P₀ (the point of a), P₁, …, Pₖ (the point of a − b). The walk of (a − b) + b starts at Pₖ and takes k unit steps in the direction of the sign of b, which is the reverse direction. By the Lemma its first step ends at Pₖ₋₁, its second at Pₖ₋₂, and so on: each step undoes one step of the first walk. Its k-th step ends at P₀, the point of a.
(2) The walk of a + b takes k steps in the direction of the sign of b, and the walk of (a + b) − b takes k steps back in the opposite direction (Proposition 4 of lesson 2.3). By the Lemma, as in (1), the steps back retrace the first walk and end at the point of a.
(a) 3 − 5 = 3 + (−5): 5 steps to the left
(b) −2 + 5: the same 5 steps back
So subtraction is still the inverse operation of addition.[3] In particular, a subtraction can always be checked by addition, as for whole numbers (Subtraction 1.7): if d = a − b, then d + b must give a.
Find 4 − 11 and −6 − (−9), and check each by addition.
- 4 − 11 = 4 + (−11). Different signs; 11 − 4 = 7; the larger absolute value belongs to −11: the difference is −7.
- Check: −7 + 11. Different signs; 11 − 7 = 4; the larger belongs to 11: the sum is 4, the number we started from.
- −6 − (−9) = −6 + 9 = 3 (lesson 2.3, Theorem 2; different signs, 9 − 6 = 3).
- Check: 3 + (−9). Different signs; 9 − 3 = 6; the larger belongs to −9: the sum is −6.
Answer: 4 − 11 = −7 and −6 − (−9) = 3; both checks give back the first number.
Someone writes −6 − (−2) = −8. Check the answer, and correct it if it is wrong.
- If −6 − (−2) were −8, then by Theorem 3 (1), −8 + (−2) would be −6.
- But −8 + (−2) = −(8 + 2) = −10, not −6. So the answer −8 is wrong.
- Correct: −6 − (−2) = −6 + 2 = −4 (different signs; 6 − 2 = 4; the larger absolute value belongs to −6).
- Check: −4 + (−2) = −6. It works.
Answer: −6 − (−2) = −4. The answer −8 came from subtracting 2 instead of −2.
Every missing number has exactly one value
Among the whole numbers, c + b = a has a whole-number solution c only when b ≤ a (Subtraction 1.2, Theorem 2), and lesson 1.1 proved that no whole number c gives c + 5 = 3. Among the integers the condition disappears.
For all integers a, b and c:
- c + b = a exactly when c = a − b;
- c − b = a exactly when c = a + b.
So each of the equations □ + b = a and □ − b = a has exactly one integer solution, whatever the integers a and b are.
(1) If c = a − b, then c + b = (a − b) + b = a by Theorem 3 (1). Conversely, if c + b = a, then by Theorem 3 (2), c = (c + b) − b = a − b.
(2) If c = a + b, then c − b = (a + b) − b = a by Theorem 3 (2). Conversely, if c − b = a, then by Theorem 3 (1), c = (c − b) + b = a + b.
In the language of later units, the integers with addition form a group, and in every group an equation of this kind has exactly one solution.[6]
For all integers b, c and d: if c + b = d + b, then c = d.
Call the common value a. By Theorem 4 (1), both c and d equal a − b, so c = d.
Textbooks state the same law for the real numbers, which include the integers.[7]
Find the integer in the box: (a) □ + 8 = 3; (b) □ + (−6) = −10; (c) □ − 4 = −9; (d) □ + 0 = −7.
- (a) By Theorem 4 (1), □ = 3 − 8 = 3 + (−8) = −5. Check: −5 + 8 = 3.
- (b) □ = −10 − (−6) = −10 + 6 = −4. Check: −4 + (−6) = −10.
- (c) By Theorem 4 (2), □ = −9 + 4 = −5. Check: −5 − 4 = −5 + (−4) = −9.
- (d) □ = −7 − 0 = −7. Adding 0 changes nothing, so the box holds −7 itself.
Answer: −5, −4, −5 and −7. All four solutions are negative, so none of these equations has a whole-number solution; (a) is written with whole numbers only, and among them it has no solution at all.
Temperature is an everyday model for adding negative as well as positive numbers[8], and elevations below sea level are another application of negative numbers.[9] A change is added to the earlier value: earlier value + change = later value.
(a) The temperature fell 8 degrees and is now −3 °C. What was it before the fall? (b) A submarine rose 40 meters and is now 25 meters below the surface. Where was it before?
- (a) A fall of 8 degrees is the change −8. The earlier reading c satisfies c + (−8) = −3.
- By Theorem 4 (1), c = −3 − (−8) = −3 + 8 = 5. Check: 5 + (−8) = −3.
- (b) Write positions as integers, with 0 at the surface: now −25. The earlier position c satisfies c + 40 = −25.
- c = −25 − 40 = −25 + (−40) = −65. Check: −65 + 40 = −25 (different signs; 65 − 40 = 25; the sign of −65).
Answer: (a) 5 °C; (b) 65 meters below the surface, at −65 m.
Find the missing number
- Round
- 1
- Score
- 0
- Streak
- 0
Which number goes in the box? Tap its point. The ring is the point of 4; the marks go up by one.
□ + (−5) = 4
Your mark: none yet
Theorem 4 has the unknown first: □ + b = a. The next lesson, Properties of integer addition, proves that a + b = b + a; then b + □ = a has the same solution, a − b. The unit Linear Equations solves equations of this kind, and harder ones, in general. The integers with addition form what advanced texts call a commutative group[10], the subject of the unit Groups.
Exercises
Find each difference and check it by addition: (a) 4 − 10; (b) 0 − 13; (c) −5 − 7; (d) −5 − (−7); (e) 12 − 12.
▸ Show solution
(a) 4 + (−10) = −6; check −6 + 10 = 4. (b) 0 + (−13) = −13; check −13 + 13 = 0. (c) −5 + (−7) = −12; check −12 + 7 = −5. (d) −5 + 7 = 2; check 2 + (−7) = −5. (e) 12 + (−12) = 0; check 0 + 12 = 12.
Which of these collections are closed under addition, and which under subtraction? (a) The positive integers; (b) the collection whose only member is 0; (c) all the integers.
▸ Show solution
(a) Addition: yes, a sum of two counting numbers is a counting number. Subtraction: no, for example 1 − 2 = −1 is not positive.
(b) The collection with the single member 0: 0 + 0 = 0 and 0 − 0 = 0, so it is closed under both. (c) The integers: closed under both, by Theorem 1.
Find the integer in the box: (a) □ + 9 = 2; (b) □ + (−4) = −11; (c) □ + (−15) = 0; (d) □ + 6 = −6; (e) □ − (−8) = 3.
▸ Show solution
(a) □ = 2 − 9 = −7; check −7 + 9 = 2. (b) □ = −11 − (−4) = −7; check −7 + (−4) = −11. (c) □ = 0 − (−15) = 15; check 15 + (−15) = 0. (d) □ = −6 − 6 = −12; check −12 + 6 = −6. (e) □ = 3 + (−8) = −5; check −5 − (−8) = −5 + 8 = 3.
Someone claims that 7 − (−3) = 4. Use Theorem 3 to show that this is wrong, and find the correct difference.
▸ Show solution
If 7 − (−3) were 4, then 4 + (−3) would be 7. But 4 + (−3) = 1. So 4 is wrong. Correct: 7 − (−3) = 7 + 3 = 10, and the check 10 + (−3) = 7 works. The mistake was to subtract 3 instead of −3.
Write −8 as a difference of two whole numbers in three ways. Then show that there are infinitely many ways.
▸ Show solution
For example −8 = 0 − 8 = 1 − 9 = 20 − 28: in each, by the Corollary of lesson 2.3, a − b = −(b − a) with b − a = 8.
In general, for every whole number k, k + 8 is a whole number greater than k, and (k + 8) − k = 8 (Subtraction 1.2). So k − (k + 8) = −8. There is one such difference for every whole number k, so infinitely many.
During the afternoon the temperature fell 13 degrees, to −4 °C. What was it before the fall?
▸ Show solution
The temperature before the fall, c, satisfies c + (−13) = −4, so c = −4 − (−13) = −4 + 13 = 9. Before the fall the reading was 9 °C. Check: 9 + (−13) = −4.
Let b be an integer. Prove that if c + b = b, then c = 0.
▸ Show solution
By Theorem 4 (1), c + b = b exactly when c = b − b. By lesson 2.3, Proposition 3, b − b = 0. So c = 0: zero is the only integer that leaves b unchanged when added in front of it.
For example, c + (−7) = −7 forces c = −7 − (−7) = 0.
Summary
- The integers are closed under addition and subtraction: a − b = a + (−b) is an integer for every two integers a and b.
- Every integer is a difference of two whole numbers, and any collection containing the whole numbers that is closed under subtraction contains all the integers.
- Subtraction still undoes addition, with no condition: (a − b) + b = a and (a + b) − b = a.
- c + b = a exactly when c = a − b, and c − b = a exactly when c = a + b: such an equation has exactly one integer solution.
- Every difference can be checked by adding: if d = a − b, then d + b = a.
Sources
- 1.H.-D. Ebbinghaus et al., Numbers (trans. H. L. S. Orde, Springer (Graduate Texts in Mathematics 123), 1991).Chapter 1, “Natural Numbers, Integers, and Rational Numbers” (K. Mainzer), section §3, “The Integers”, p. 19 (the whole topic: pp. 19–20).
“Subtraction cannot be done without restriction in the domain of the natural numbers.”
Used for: subtraction cannot be done without restriction among the whole numbers (the natural numbers of the book, which include 0). - 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).
“If the restriction of ⋆ to H is a binary operation on H, i.e., for all a, b ∈ H, a ⋆ b ∈ H, then H is said to be closed under ⋆.”
Used for: a collection is closed under an operation when the operation applied to any two of its members always gives a member. - 3.George S. Boolos, John P. Burgess and Richard C. Jeffrey, Computability and Logic (4th ed., Cambridge University Press, 2002).Chapter 7, “Recursive Sets and Relations”, section 7.1, “Recursive Relations”, Example 7.11, p. 79 (the whole topic: pp. 78–79).
“Subtraction, the inverse operation to addition, can take us beyond the natural numbers to negative integers”
Used for: subtraction is the inverse operation of addition, and it can lead out of the whole numbers to the negative integers. - 4.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” (Examples (3) and (4) after the definition of a binary operation), p. 16 (the whole topic: pp. 16–17).
“− (usual subtraction) is a noncommutative binary operation on ℤ”
Used for: usual subtraction is a binary operation on the integers (the integers are closed under it). - 5.H.-D. Ebbinghaus et al., Numbers (trans. H. L. S. Orde, Springer (Graduate Texts in Mathematics 123), 1991).Chapter 1, “Natural Numbers, Integers, and Rational Numbers” (K. Mainzer), section §3, “The Integers”, 1, “The Additive Group ℤ”, p. 20 (the whole topic: pp. 19–21).
“Every integer can be expressed as a difference a − b between two natural numbers a and b.”
Used for: advanced texts build the integers on the idea that every integer is a difference of two whole numbers (Proposition 2 (1)). - 6.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” (Proposition 2), p. 20 (the whole topic: pp. 17–20).
“The equations ax = b and ya = b have unique solutions for x, y ∈ G.”
Used for: in every group an equation of the kind of Theorem 4 has exactly one solution (written with + for the integers: x + b = a has the unique solution a − b). - 7.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter Appendix 1, “Axioms for the Real Numbers and the Positive Integers”, section Exercises, exercise 6, pp. A-6 (the whole topic: pp. A-1–A-6).
“Prove that for all real numbers x, y, and z, if x + z = y + z, then x = y.”
Used for: the cancellation law (if c + b = d + b, then c = d), stated for the real numbers, which include the integers. - 8.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 3, “Integers”, section 3.3, “Subtract Integers” (“Model Subtraction of Integers”), p. 201 (the whole topic: pp. 201–202).
“Real-life experiences serve as models for subtracting positive numbers, and in some cases, such as temperature, for adding negative as well as positive numbers.”
Used for: temperature is an everyday model for adding negative as well as positive numbers. - 9.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).Chapter 3, “Integers”, section 3.3, “Subtract Integers” (“Subtract Integers in Applications”), p. 215 (the whole topic: pp. 214–216).
“Geography provides another application of negative numbers with the elevations of places below sea level.”
Used for: elevations below sea level (and depths below the surface) are another application of negative numbers. - 10.H.-D. Ebbinghaus et al., Numbers (trans. H. L. S. Orde, Springer (Graduate Texts in Mathematics 123), 1991).Chapter 1, “Natural Numbers, Integers, and Rational Numbers” (K. Mainzer), section §3, “The Integers”, 1, “The Additive Group ℤ”, p. 20 (the whole topic: pp. 19–21).
“The integers form a commutative group with respect to addition.”
Used for: the integers with addition form what advanced texts call a commutative group.