Closure and Why It Depends on the Set of Numbers You Use
Learn what it means for a set to be closed under an operation, how to test it, and why each gap in closure leads to new kinds of numbers.
Key takeaways
- Closure means every allowed input from the set gives a result that is still in the set.
- One counterexample proves a set is not closed, while proving closure takes an argument covering every case.
- The integers are closed under addition, subtraction and multiplication, but not division.
- The rational and real numbers allow all four operations, provided you never divide by zero.
- Many new kinds of numbers can be understood as filling a gap where an operation led outside the old set.
A set of numbers is closed under an operation if doing that operation on members of the set always produces another member of the same set. The integers are closed under addition, because any integer plus any integer is an integer. They are not closed under division, because 3 ÷ 2 is not an integer.
So closure is never a property of an operation by itself. You always have to name both the set and the operation, and changing either one can change the answer.
The definition in action
A set is simply a collection, and its members are called elements. An operation such as addition takes two elements and returns a result. Closure asks one question: can that result ever fall outside the collection?
Start with the even integers: ..., -4, -2, 0, 2, 4, ... Add any two and you get another even integer. Multiply any two and you again get an even one. The set is closed under both.
Now try the odd integers. The product of two odd integers is odd, so they are closed under multiplication. But 3 + 5 = 8, which is even, so they are not closed under addition.
The two numbers you combine do not have to be different. To test whether the set {1} is closed under addition, you compute 1 + 1 = 2, which is not in the set. The same set is closed under multiplication, since 1 × 1 = 1.
Closure is about every pair. It is no help that some pairs behave well. Among the odd integers, no pair at all has an odd sum, while among the integers some divisions, such as 12 ÷ 4, stay inside and others do not.
Proving it, and disproving it
The two directions need very different amounts of work.
To show a set is not closed, give one counterexample. For the natural numbers under subtraction, 2 - 7 = -5 settles the matter.
To show a set is closed, examples are not enough, because there are usually infinitely many pairs. You need letters that stand for any members. Here is the proof for odd integers under multiplication. Every odd integer can be written as 2m + 1 for some integer m.
(2m + 1)(2n + 1)
= 4mn + 2m + 2n + 1
= 2(2mn + m + n) + 1 The quantity in parentheses is an integer, because integers are closed under addition and multiplication. So the product has the form "twice an integer plus one", which is odd.
Notice the pattern of the argument: write two general members in the set's own form, combine them, then rearrange until the result visibly has that form again.
The familiar number sets
Here is how the main number sets behave. In this table the natural numbers start at 1; some books start them at 0, which does not change any entry.
| Set | Addition | Subtraction | Multiplication | Division by a nonzero member |
|---|---|---|---|---|
| Natural numbers | closed | not closed | closed | not closed |
| Integers | closed | closed | closed | not closed |
| Rational numbers | closed | closed | closed | closed |
| Irrational numbers | not closed | not closed | not closed | not closed |
| Real numbers | closed | closed | closed | closed |
| Complex numbers | closed | closed | closed | closed |
Division by zero is excluded throughout. For definitions of each set and how they nest, see real, rational, integer and whole numbers.
The rational case is worth proving. A rational number is a fraction of integers with a nonzero denominator. With b ≠ 0 and d ≠ 0:
a/b + c/d = (ad + bc)/(bd)
a/b × c/d = (ac)/(bd)
a/b ÷ c/d = (ad)/(bc) also requires c ≠ 0 Each right side is an integer over a nonzero integer, so each is rational.
The surprising irrationals
An irrational number is a real number that cannot be written as a fraction of integers. You might expect irrationals to combine into irrationals, but they often do not.
√2 + (-√2) = 0 rational
√2 × √2 = 2 rational
√8 ÷ √2 = √4 = 2 rational
(3 + √5) + (3 - √5) = 6 rational A mixed case is more predictable. A rational number plus an irrational number is always irrational. Suppose r is rational, t is irrational and the sum r + t were rational. Then t = (r + t) - r would be a difference of rationals, which is rational by closure. That contradicts the choice of t.
This is a nice example of using closure in one set to prove a fact about numbers outside it. The same style of argument shows that a nonzero rational times an irrational is irrational.
Gaps that created new numbers
Each time an equation built from familiar numbers has no solution among them, closure has failed somewhere.
- x + 5 = 2 has no natural number solution. Allowing x = -3 leads to the integers.
- 3x = 2 has no integer solution. Allowing x = 2/3 leads to the rationals.
- x² = 2 has no rational solution. Its solutions, √2 and -√2, are real.
- x² = -1 has no real solution. Its solutions, i and -i, are complex.
History did not follow this tidy ladder. Fractions were in use long before negative numbers were widely accepted, for instance. The ladder is a logical map, not a timeline.
The complex numbers have a remarkable property beyond the four operations: every nonconstant polynomial equation with complex coefficients has a complex solution. This is called being algebraically closed.
Operations beyond the basic four
Closure can be asked about any operation, including ones with a single input.
Taking a square root is a good test. The nonnegative real numbers are closed under the principal square root: the root of a number that is 0 or greater is again 0 or greater. The positive integers are not closed, since √2 is not an integer. The real numbers are not closed either, because √-4 is not real.
Squaring goes the other way. The integers, rationals and reals are all closed under squaring.
Absolute value keeps integers as integers. Averaging two numbers, (a + b)/2, keeps rationals rational but can take two integers outside the integers: the average of 2 and 5 is 3.5.
Closure with polynomials and other objects
The idea carries over to expressions. Add, subtract or multiply two polynomials and you get a polynomial. Divide x² + 1 by x and you get x + 1/x, which is not a polynomial, because it has the variable in a denominator.
That makes polynomials behave much like integers: both are closed under three operations, and both need fractions to handle the fourth. The quotients of polynomials, called rational expressions, play the role of rational numbers. For the basic manipulations, see adding and subtracting polynomials.
Small finite sets can be closed too. Take {1, -1} under multiplication: every product is 1 or -1. Or take the hours on a 12-hour clock under clock addition, where 9 plus 5 gives 2. Both are early glimpses of what abstract algebra calls a group, in which closure is one of the starting requirements, as in the group axioms.
A method for testing any set
When a homework question asks whether some unusual set is closed, work in this order.
- Write down what a member looks like, such as "a multiple of 5" or "a power of 2".
- Try small members, including negatives, zero and a member paired with itself.
- If any result falls outside, stop. That pair is your counterexample.
- If everything stays inside, write two general members and prove the result has the same form.
Take the powers of 2: the set 1, 2, 4, 8, 16 and so on. Addition fails at once, since 2 + 4 = 6. Multiplication looks promising, and the general argument is short: 2ᵐ × 2ⁿ = 2ᵐ⁺ⁿ, where m + n is again a whole number. Division fails, because 2 ÷ 4 = 1/2. If you enlarge the set to allow negative integer exponents, division becomes closed as well.
Why algebra students should care
Closure tells you what kind of answer to expect. If a, b and c are integers and you compute ab - c, the result must be an integer, so a fraction in your answer signals a slip.
It also explains instructions like "factor over the integers" or "solve over the reals". The expression x² - 2 does not factor using only integer coefficients, but over the reals it equals (x - √2)(x + √2).
Finally, closure justifies everyday moves. When you let a variable stand for a real number, you can be sure that expressions like 3x - 7 stand for real numbers too, so every property of real numbers applies to them. For instance, you may apply the distributive property to a whole bracket as if it were a single number.
Common questions
Can a set be closed under subtraction but not addition?
If a nonempty set of numbers is closed under subtraction, it must also be closed under addition. Pick any member a. Then a - a = 0 is in the set, so 0 - b = -b is in it, so a - (-b) = a + b is in it as well.
Is the empty set closed?
Yes, in a technical sense. It contains no pair that could produce a result outside it, so there is no counterexample.
Is closure the same as commutativity?
No. Commutativity says the order of the inputs does not matter. Closure says where the result lands. The integers are closed under subtraction even though 5 - 2 and 2 - 5 differ.
What about the set of positive real numbers?
It is closed under addition, multiplication and division, since each of those on two positives gives a positive. It is not closed under subtraction: 1 - 4 = -3.