Number Systems
The families of numbers
A number can belong to several sets at once. Counting numbers are integers, and every integer is rational because it can be written as a fraction with denominator one.
Natural numbers
Positive counting numbers. In this lesson, zero is excluded.
Whole numbers
The natural numbers together with zero.
Integers
Whole numbers and their negatives. No fractional parts.
Rational numbers
Numbers expressible as a ratio of integers with a nonzero denominator. Their decimals terminate or eventually repeat.
Irrational numbers
Real numbers that are not rational. Their decimals neither terminate nor eventually repeat.
Real numbers
All rational and irrational numbers. Every point on the number line represents one real number.
Conventions vary: some books include in . Here we start natural numbers at and use for whole numbers. The whole-number symbol is not universal; always check a text’s definitions.
The subset symbol means every member of the set on the left also belongs to the set on the right. Irrational numbers sit outside the rational set but inside the real set.
Where does a number belong?
Choose a number. Blue outlines show all the sets it belongs to.
A positive counting number belongs to every enclosing set.
Belongs to
- Real
- Rational
- Integer
- Whole
- Natural
Read the number line
Zero is the reference point. Negative numbers lie to its left and positive numbers to its right. Values increase as you move right, so . Equal steps on the line represent equal differences in value.
Fractions and irrational numbers occupy points too: lies halfway between and , while lies between and . Its exact point exists even though its decimal expansion never ends.
An interval describes all real numbers between its bounds, including every fractional and irrational value there. It is not just a list of integers.
Brackets, parentheses, and infinity
A square bracket includes a finite endpoint; a parenthesis excludes it. Read the left bound first and the right bound second. In the table, assume .
| Type | Interval | Inequality | Included endpoints |
|---|---|---|---|
| Open | Neither endpoint | ||
| Closed | Both endpoints | ||
| Half-open | Left endpoint only | ||
| Half-open | Right endpoint only | ||
| Right ray | Finite endpoint included | ||
| Left ray | Finite endpoint excluded |
Infinity describes an unbounded direction, not a number you can include. Always use parentheses at and . The whole real line is .
Build an interval
Move the endpoints and decide whether to include them. Unbounded sides extend to infinity.
Interval notation
Equivalent condition
Blue marks the included part of the real number line.
Infinity is not a real endpoint, so it always takes a parenthesis. Try equal endpoints or put the lower bound above the upper bound.
Combine intervals with sets
The union includes numbers in either set or both. The intersection includes only numbers in both. For these overlapping intervals:
The union covers the combined stretch. For the intersection, is excluded by the second interval, while belongs to both. Disjoint intervals stay separate: means or .
Beyond the real line
Complex numbers have the form , with real and and . Real numbers are the cases where , so . A non-real number such as needs a complex plane; it has no point on the real number line and is neither rational nor irrational.
Try it yourself
Decide your answer before revealing the explanation.
1. Classify a negative terminating decimal.
Show explanation
It is rational and real, but not an integer, whole number, or natural number.
2. Write the inequality in interval notation.
Show explanation
Use a parenthesis at the excluded left endpoint and a square bracket at the included right endpoint.
3. Can this interval contain a number?
Show explanation
No number is simultaneously greater than two and less than two. Including both equal endpoints would instead give a single point.