The passage from integers to rational numbers changes the construction problem
in an important way. For integers, different pairs of natural numbers can encode
the same difference. For rationals, different pairs of integers can encode the
same quotient. The notation a/b hides that redundancy, so this note makes it
explicit.
The guiding idea is simple: rational numbers are not raw pairs. They are equivalence classes of pairs, and every operation on must respect that quotient structure.
Why a quotient is needed
The fractions
all describe the same rational number. If we want to build from integer data alone, then the construction must identify all such pairs automatically.
That is why we do not define a rational number to be a single ordered pair. Instead, we define a rational number to be a whole equivalence class of pairs that represent the same quotient.
Definition
Rational numbers as equivalence classes
Let
Thus an element of is a pair (a, b) with and .
Define a relation on by
The set of rational numbers is the quotient
The equivalence class of (a, b) is written [(a, b)], and it is represented
informally by the fraction a/b.
The denominator is required to be nonzero because the construction is intended
to model quotients. If , then the pair (a, b) cannot represent a
meaningful rational number.
Why the relation makes sense
The equation is the usual cross-multiplication test for equality of fractions. In the quotient construction, that familiar test becomes the actual definition of equality.
Theorem
The relation is an equivalence relation
The relation defined by
is reflexive, symmetric, and transitive on .
Proof
Why is an equivalence relation
Representatives and the same rational number
An equivalence class contains many representatives. That is not a defect. It is the whole point of the construction.
Worked example
Different pairs can describe the same rational number
Consider the pairs (1, 2), (2, 4), and .
We have
Therefore
So all three pairs belong to the same rational number:
This is the quotient-theoretic version of the elementary fact that
It is often useful to remember that a rational number is not tied to a preferred
representative. The class [(a, b)] does not become a different number just
because you multiply both coordinates by the same nonzero integer.
Operations on
Once the classes are defined, the next task is to define addition and multiplication on the classes themselves.
Definition
Addition, multiplication, and inverses on
For classes in , define
and
The additive inverse is defined by
If , the multiplicative inverse is defined by
Each of these formulas is written on representatives, so each of them must be checked for well-definedness. Otherwise the formula might depend on the chosen pair rather than on the rational number itself.
What "well-defined" means
A formula on equivalence classes is well-defined if changing representatives does not change the resulting class.
For addition, this means the following statement must be true:
if and , then
Theorem
Addition on is well-defined
If and , then
So the addition formula does not depend on the chosen representatives.
Proof
Why the addition formula is well-defined
The multiplication formula is proved in the same spirit, but more quickly: starting from and , one obtains
Thus multiplication is also well-defined.
Worked example
Compute in classes, then simplify conceptually
Let
Then
Also,
If we replace x by the equivalent representative [(2, 4)], then the same
formulas give
and
These are the same rational numbers as [(5, 6)] and [(1, 6)], so the class
operations behave as they should.
Not every representative formula descends to
Once you start thinking in equivalence classes, you should become suspicious of any proposed relation or operation written directly on representatives.
For example, consider the following candidate rules on classes [(p, q)] and
[(m, n)]:
- compare
pandm; - compare the sign of ;
- compare the sign of .
The first two rules are not well-defined on , because changing a representative can change the truth value. The third rule compensates for sign changes in the denominators and is invariant under changing representatives.
Worked example
Why the denominator signs matter
The pair (1, 2) represents the same rational number as .
If you test a relation using only or only the sign of , then
switching from (1, 2) to can change the answer even though the
rational number has not changed.
That is exactly what well-definedness forbids. A statement about rational numbers must survive the change of representatives.
Common mistakes
Common mistake
A quotient class is not one preferred fraction
The symbols [(1, 2)], [(2, 4)], and do not name three
different rational numbers. They name one class with three different
representatives.
Common mistake
A plausible formula is not automatically well-defined
A formula on pairs may look natural and still fail on the quotient. Before accepting any operation or relation on , you must check that equivalent representatives always produce equivalent outputs.
Quick checks
Quick check
Why must the second coordinate in (a, b) be restricted to ?
Answer in terms of the quotient construction, not everyday arithmetic slogans.
Solution
Answer
Quick check
If , what should be the multiplicative inverse of [(a, b)]?
Check the product with the original class.
Solution
Answer
Exercises
Quick check
Show that , and then compute .
First verify equality of classes by the defining relation, then use the class addition formula.
Solution
Guided solution
Quick check
Why does the relation defined by fail to be well-defined?
Find equivalent representatives that change the truth value.
Solution
Guided solution
Related notes
Read 3.3 Integers from equivalence classes for the previous quotient construction, and 3.5 Gaps in Q and why sqrt(2) is not rational for the next point where the rational number system shows its limitations.