Understanding Rational and Irrational Numbers
Every number you'll work with in this course falls somewhere on the real number line. The two big categories are rational and irrational numbers. Knowing which type a number belongs to helps you understand how numbers behave and how they relate to each other.
Rational vs. Irrational Numbers
Rational numbers can be written as a fraction , where and are both integers and . This includes more types of numbers than you might expect:
- Integers like (which is really )
- Fractions like
- Terminating decimals like (which equals )
- Repeating decimals like (which equals )
The key test: if the decimal either stops or repeats a pattern, it's rational.
Irrational numbers are the opposite. They cannot be written as a fraction of two integers. Their decimals go on forever without ever settling into a repeating pattern. Common examples include , , and .
A common mistake is thinking that a long decimal must be irrational. That's not true. The decimal goes on forever, but it repeats, so it's rational. An irrational number like never repeats.

Decimal to Fraction Conversions
Terminating decimals to fractions:
- Write the decimal over a power of 10 that matches the number of decimal places.
- Simplify the fraction.
For example:
Repeating decimals to fractions take a bit more work. Here's the method using as an example:
-
Let
-
Multiply both sides by 10:
-
Subtract the original equation from this new one:
-
Simplify:
-
Solve:
The trick in step 2 is choosing the right power of 10. If one digit repeats, multiply by 10. If two digits repeat (like ), multiply by 100. Match the power of 10 to the length of the repeating block.
Fractions to decimals: Just divide the numerator by the denominator. For example, .

Categorization of Real Numbers
Real numbers include every number on the number line. They break down into subsets that nest inside each other:
- Whole numbers: non-negative integers ()
- Integers: whole numbers plus negatives ()
- Rational numbers: anything expressible as where and are integers and
- Irrational numbers: real numbers that are not rational (, )
Relationships Between Number Sets
These sets nest like boxes inside boxes:
Every whole number is an integer, every integer is rational, and every rational number is real. Irrational numbers are also real, but they sit completely outside the rational numbers. There's no overlap between rational and irrational.
Together, rational and irrational numbers account for every point on the number line. The rational numbers alone leave gaps (where numbers like live), and the irrational numbers fill those gaps. Between any two real numbers, no matter how close together, there are infinitely many more real numbers. This property is called density.