Rational Numbers

Elementry
Last updated: Tags: Numbers

Prerequisites

You now know that the natural numbers N={0,1,2,3,}\mathbb{N} = \{0, 1, 2, 3, \ldots\} can be built from five simple axioms. They are great for counting — but counting is not everything.

Imagine you and two friends share a pizza equally. Each person gets one third of it. One third is not 00, not 11, not any natural number. To describe that slice, you need a new kind of number: a rational number.

Why natural numbers fall short

The natural numbers behave beautifully under addition and multiplication. Add two natural numbers and you get another natural number. Multiply two natural numbers and you still land inside N\mathbb{N}.

Division is different. Sometimes it works out:

6÷2=36 \div 2 = 3 \qquad \checkmark

But often it does not:

1÷3=  ?1 \div 3 = \; ?

No natural number equals 1÷31 \div 3. The natural numbers have a hole wherever division leaves a remainder. Rational numbers are exactly the numbers you need to fill those holes — with one exception you will meet shortly.

A stepping stone: integers

The natural numbers only go upward from 00. Before defining rational numbers, it helps to know about integers — whole numbers that also include negatives:

Z={,3,2,1,0,1,2,3,}\mathbb{Z} = \{\ldots,\, -3,\, -2,\, -1,\, 0,\, 1,\, 2,\, 3,\, \ldots\}

Every natural number is an integer (NZ\mathbb{N} \subset \mathbb{Z}), but integers also reach below zero. The symbol Z\mathbb{Z} comes from the German word Zahlen, meaning “numbers.”

You do not need a deep treatment of integers right now — just know they exist and that they include negatives.

What is a rational number?

A rational number is any number you can write as a fraction:

pq(1)\frac{p}{q} \tag{1}

where pp and qq are integers and q0q \neq 0.

The top number pp is called the numerator and the bottom number qq is called the denominator. The word “rational” shares its root with the word ratio — a rational number is literally a ratio of two integers.

The set of all rational numbers is written Q\mathbb{Q}, from the French word quotient (the result of a division):

Q{pq  |  p,qZ,  q0}\mathbb{Q} \coloneqq \left\{\, \frac{p}{q} \;\middle|\; p, q \in \mathbb{Z},\; q \neq 0 \,\right\}

Here are a few examples:

FractionAs a decimal
12\frac{1}{2}0.50.5
34\frac{3}{4}0.750.75
13\frac{1}{3}0.3330.333\ldots
25\frac{-2}{5}0.4-0.4
71\frac{7}{1}77

Notice that last row: every integer nn is a rational number, because n=n1n = \frac{n}{1}. So ZQ\mathbb{Z} \subset \mathbb{Q}, and in turn NZQ\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q}.

Why the denominator cannot be zero

Division by zero is forbidden — not just inconvenient, but genuinely impossible. Here is why.

If ab=c\frac{a}{b} = c, that means a=b×ca = b \times c. So asking “what is 10\frac{1}{0}?” really asks: “what number cc satisfies 1=0×c1 = 0 \times c?” Since 0×c=00 \times c = 0 for every possible cc, no value of cc ever works. There is no answer, so the question itself is meaningless. The condition q0q \neq 0 in definition (1) is what keeps mathematics from breaking.

Many fractions, one number

You may have noticed that different fractions can look different but mean the same thing:

12=24=36=50100\frac{1}{2} = \frac{2}{4} = \frac{3}{6} = \frac{50}{100}

How do you tell when two fractions name the same rational number? Two fractions pq\frac{p}{q} and rs\frac{r}{s} represent the same rational number exactly when:

p×s=r×q(2)p \times s = r \times q \tag{2}

Check: does 12=36\frac{1}{2} = \frac{3}{6}? Is 1×6=3×21 \times 6 = 3 \times 2? Both sides equal 66, so yes. ✓

Think of a rational number not as a single fraction, but as an entire family of equivalent fractions. When you simplify 69\frac{6}{9} to 23\frac{2}{3}, you are just switching to the simplest member of that family. Both fractions are different names for the exact same number.

The simplest name is found by dividing both numerator and denominator by their greatest common divisor (GCD). For 69\frac{6}{9}: gcd(6,9)=3\gcd(6, 9) = 3, so:

69=6÷39÷3=23\frac{6}{9} = \frac{6 \div 3}{9 \div 3} = \frac{2}{3}

Arithmetic with rational numbers

Once you have fractions, you need to know how to combine them.

Adding and subtracting

To add two fractions, first rewrite them with the same denominator, then add the numerators:

ab+cd=ad+bcbd\frac{a}{b} + \frac{c}{d} = \frac{a \cdot d + b \cdot c}{b \cdot d}

For example:

13+14=14+3134=712\frac{1}{3} + \frac{1}{4} = \frac{1 \cdot 4 + 3 \cdot 1}{3 \cdot 4} = \frac{7}{12}

Subtraction follows the same pattern, with a minus sign in the numerator:

abcd=adbcbd\frac{a}{b} - \frac{c}{d} = \frac{a \cdot d - b \cdot c}{b \cdot d}

Multiplying

Multiplication is the simplest operation — multiply numerators together, and denominators together:

ab×cd=acbd\frac{a}{b} \times \frac{c}{d} = \frac{a \cdot c}{b \cdot d}

Dividing

Dividing by a fraction is the same as multiplying by its reciprocal. The reciprocal of cd\frac{c}{d} is dc\frac{d}{c}:

ab÷cd=ab×dc=adbc\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \times \frac{d}{c} = \frac{a \cdot d}{b \cdot c}

The zero-division rule applies here too: if c=0c = 0 then cd=0\frac{c}{d} = 0, and dividing by zero is still forbidden.

Closed under all four operations

A set is closed under an operation if applying that operation to members of the set always produces another member. The natural numbers are not closed under subtraction (131 - 3 has no answer in N\mathbb{N}) or division (1÷31 \div 3 has no answer in N\mathbb{N}).

The rational numbers fix both problems. As long as you never divide by zero, every result of ++, -, ×\times, and ÷\div applied to rationals is again a rational. This is called a field — a structure where all four arithmetic operations work reliably. Q\mathbb{Q} is the smallest field containing N\mathbb{N}.

Rational numbers on the number line

Picture the familiar number line, with integers sitting at evenly spaced landmarks. Rational numbers fill in the gaps between those landmarks.

Between 00 and 11 you find 12\frac{1}{2}. Between 00 and 12\frac{1}{2} you find 14\frac{1}{4}. Between any two rational numbers rr and ss, no matter how close together, their average r+s2\frac{r + s}{2} is also rational — and it sits strictly between them.

This property is called density: the rationals are dense on the number line. There is no “next” rational the way there is a “next” integer. Between any two rationals, infinitely many more rationals always fit.

You might then expect the rationals to cover the entire number line. Surprisingly, they do not. Numbers like 2\sqrt{2} cannot be written as pq\frac{p}{q} for any integers pp and qq — they are irrational. The real numbers R\mathbb{R} fill those remaining gaps, but that is a story for another checkpoint.

NZQR\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R}

Summary

  • A rational number is any number expressible as pq\frac{p}{q}, where pp and qq are integers and q0q \neq 0.
  • The set of rational numbers is denoted Q\mathbb{Q}; it contains all integers, which in turn contain all natural numbers.
  • Division by zero is undefined and is excluded from the definition.
  • Many fractions can represent the same rational number; pq\frac{p}{q} and rs\frac{r}{s} are equal exactly when p×s=r×qp \times s = r \times q.
  • The four arithmetic operations on fractions:
    • Addition/subtraction: ab±cd=ad±bcbd\dfrac{a}{b} \pm \dfrac{c}{d} = \dfrac{a d \pm b c}{b d}
    • Multiplication: ab×cd=acbd\dfrac{a}{b} \times \dfrac{c}{d} = \dfrac{ac}{bd}
    • Division: ab÷cd=adbc\dfrac{a}{b} \div \dfrac{c}{d} = \dfrac{ad}{bc} (requires c0c \neq 0)
  • The rationals are closed under all four operations (division by zero aside), making Q\mathbb{Q} a field.
  • The rationals are dense: between any two rationals there is always another rational.
  • Despite their density, the rationals do not fill the number line — irrational numbers like 2\sqrt{2} occupy the remaining gaps.

What’s next

The rational numbers handle all of everyday arithmetic, but they leave genuine holes in the number line. The next big idea is the real numbers R\mathbb{R}, which fill those holes and make it possible to talk about limits, continuity, and calculus.