Evanalysis
4.6Estimated reading time: 19 min

4.6 Decimal expansions and irrational numbers

Turn infinite decimal intuition into a Dedekind cut, then use sqrt(2) to see how irrational numbers live inside the completed real number system.

Course contents

Once Dedekind cuts are available, return to the familiar language of decimal expansions and ask a natural question:

How does a decimal such as 10.4352902543...10.4352902543... determine a real number?

The answer is that a decimal expansion produces a nested family of rational approximations, and those approximations can be turned into a cut.

The structural boundary of the construction

The uniqueness theorem explains why the completed cut model represents the familiar real number system:

Theorem

There is one complete ordered field up to isomorphism

Any two complete ordered fields are isomorphic by an order-preserving field isomorphism. Thus a construction that satisfies the complete ordered-field axioms produces the real number system in the structural sense.

This theorem is a stated course boundary. The present notes use it to explain why different rigorous constructions describe the same real system, but do not prove the uniqueness theorem in this course.

Decimal expansions give lower and upper fences

Consider the decimal

x=10.4352902543…x=10.4352902543\ldots

Form the sequence of lower bounds

S={10, 10.4, 10.43, 10.435, …}S=\{10,\ 10.4,\ 10.43,\ 10.435,\ \ldots\}

and the sequence of upper bounds

T={11, 10.5, 10.44, 10.436, …}.T=\{11,\ 10.5,\ 10.44,\ 10.436,\ \ldots\}.

The idea is simple:

  • the lower list truncates the decimal and stays below the target,
  • the upper list moves one step above the truncation and stays above the target.

So the real number is trapped inside narrower and narrower rational intervals.

Worked example

Nested intervals for 2\sqrt{2}

Even without committing to a particular decimal such as 10.435...10.435..., the same method can be seen clearly with 2\sqrt{2}:

1<2<2,1\lt \sqrt{2}\lt 2,1.4<2<1.5,1.4\lt \sqrt{2}\lt 1.5,1.41<2<1.42,1.41\lt \sqrt{2}\lt 1.42,1.414<2<1.415.1.414\lt \sqrt{2}\lt 1.415.

Each extra digit shrinks the interval and gives a better rational fence.

Nested rational intervals approaching sqrt(2)

Figure. A decimal expansion does not merely list digits. It creates a chain of smaller and smaller rational intervals containing the target number.

Turning a decimal expansion into a cut

For an integer part k∈Zk\in Z and digits dj∈{0,…,9}d_j\in\{0,\ldots,9\}, put

tn=k+∑j=1ndj10−j,un=tn+10−n,n≥0.t_n=k+\sum_{j=1}^n d_j10^{-j},\qquad u_n=t_n+10^{-n},\qquad n\ge0.

The sum is empty at n=0n=0. Let S={tn:n≥0}S=\{t_n:n\ge0\} and T={un:n≥0}T=\{u_n:n\ge0\}. Finite place-value arithmetic shows the lower fences are nondecreasing, the upper fences are nonincreasing, and tm<unt_m\lt u_n for all finite m,nm,n. Define

A={q∈Q:∃s∈S, q<s},B=Q∖A={q∈Q:∀s∈S, s≤q}.A=\{q\in Q:\exists s\in S,\ q\lt s\},\qquad B=Q\setminus A=\{q\in Q:\forall s\in S,\ s\le q\}.

Thus BB is the set of rational upper bounds of all lower fences. It is not the set of rationals strictly above some upper fence: that rule would lose a rational boundary such as 1.25000…1.25000\ldots from both sides.

The set AA is nonempty since k−1<t0k-1\lt t_0; it is proper since u0=k+1u_0=k+1 is above every truncation. If q<tnq\lt t_n and y<qy\lt q, then y<tny\lt t_n, giving downward closure. Finally (q+tn)/2(q+t_n)/2 is a larger rational still below tnt_n, so AA has no greatest element. Consequently (A,B)(A,B) is a cut, including for terminating decimals and tails of nines. The mesh 10−n10^{-n} can be made arbitrarily small: choose n>1/εn\gt 1/\varepsilon and use 10n≥n10^n\ge n. This justifies the shrinking-fence interpretation without assuming an infinite string already denotes a real number.

Why decimal strings are useful but not the primary definition

The previous note already hinted at the main problem with taking decimal strings as the primary definition of real numbers:

  • the same real number can have more than one decimal expansion,
  • for example 0.999...=10.999...=1.

So decimal notation is excellent for intuition and approximation, but it needs a deeper structural interpretation. Dedekind cuts supply that interpretation.

Common mistake

A finite truncation is not the real number itself

The decimal 1.4141.414 is not 2\sqrt{2}. It is only a rational approximation from below. Likewise 1.4151.415 is not the exact number either; it is an upper fence. The real number is the boundary captured by the whole infinite approximation process.

Refining the rational interval

Use the builder below to reveal one more decimal digit at a time and watch the lower bound, upper bound, and interval width update together.

Read and try

Build decimal approximations as shrinking intervals

The builder turns a decimal expansion into successive lower and upper rational bounds, making the approximation process visible one digit at a time.

Using sqrt(2) makes the link to irrational numbers explicit: no finite decimal stage reaches the exact number, but the intervals keep shrinking around it.

Step

3

Lower bound

1.414

Upper bound

1.415

Step 0

1 ≤ x < 2

Interval width = 1

Step 1

1.4 ≤ x < 1.5

Interval width = 0.1

Step 2

1.41 ≤ x < 1.42

Interval width = 0.01

Step 3

1.414 ≤ x < 1.415

Interval width = 0.001

Irrational numbers inside RR

Once the real numbers are constructed, define:

Definition

Irrational number

An irrational number is an element of R∖QR\setminus Q.

This definition is short, but its meaning is deep. An irrational number is not “mysterious” or “unfinished”. It is a perfectly legitimate real number that is simply not represented by any rational cut.

The real number 2\sqrt{2}

Set

C={r∈Q:r≤0 or r2<2},Q∖C={r∈Q:r>0 and r2>2}.C=\{r\in Q:r\le0\text{ or }r^2\lt 2\},\qquad Q\setminus C=\{r\in Q:r\gt 0\text{ and }r^2\gt 2\}.

The equality in the complement uses the earlier proof that no rational square is 22. The set CC is nonempty (1∈C1\in C) and proper (2∉C2\notin C). It is downward closed: below a nonpositive member everything is included; below a positive member, a positive rational has a smaller square. A nonpositive member is exceeded by 11, and a positive member is exceeded by the rational perturbation from 4.3. Thus CC has no greatest element and is a cut. It is strictly positive since it contains 0R0_R and also 11.

The cut really satisfies C times C equals 2_R

Use the nonnegative product definition from 4.5. A negative rational is in 2R2_R. For nonnegative a,b∈Ca,b\in C, if a≤ba\le b, then ab≤b2<2ab\le b^2\lt 2; the other order is symmetric. Hence C⋅C⊆2RC\cdot C\subseteq2_R.

For the reverse inclusion, negative rationals are already included. Given z∈Qz\in Q with 0≤z<20\le z\lt 2, choose a rational 0<δ<min⁡{1,(2−z)/5}0\lt \delta\lt \min\{1,(2-z)/5\}. Apply the rational stepping argument from 4.5 starting at 1∈C1\in C: there are a∈Ca\in C and b=a+δ∉Cb=a+\delta\notin C, with a≥1a\ge1. Then a<2a\lt 2, b<3b\lt 3, and b2>2b^2\gt 2, so

2−a2<b2−a2=δ(a+b)<5δ<2−z.2-a^2\lt b^2-a^2=\delta(a+b)\lt 5\delta\lt 2-z.

Thus z<a2z\lt a^2. Put c=z/ac=z/a; then 0≤c<a0\le c\lt a, so c∈Cc\in C and z=acz=ac belongs to C⋅CC\cdot C. Therefore C⋅C=2RC\cdot C=2_R.

Worked example

Why this is an irrational cut

If C=qRC=q_R, its boundary must have q>0q\gt 0. If q2<2q^2\lt 2, then q∈Cq\in C, contradicting q∉qRq\notin q_R. If q2>2q^2\gt 2, the downward perturbation from 4.3 gives a positive rational r<qr\lt q with r2>2r^2\gt 2, so r∈qRr\in q_R but r∉Cr\notin C. Equality q2=2q^2=2 is impossible in QQ. Hence CC is not a rational cut. We call the positive cut with the displayed square 2\sqrt{2}.

What decimals and irrationals are teaching you together

There are two compatible claims here.

  1. A real number can be approximated arbitrarily well by rationals.
  2. Some real numbers are nevertheless not rational.

Those statements do not conflict. In fact, they are exactly what makes the real number system powerful. Irrational numbers can be reached by rational approximations without ever turning into rational numbers themselves.

Decimal nonuniqueness and periodicity

Decimal notation is a representation, so it must be tested for uniqueness before it is used as a definition. The fundamental example is

0.999…=1.0.999\ldots=1.

For the truncations 0.90.9, 0.990.99, 0.9990.999, and so on, the gap to 11 is 10−n10^{-n} after nn digits. Given any ε>0\varepsilon\gt 0, choose nn with 10−n<ε10^{-n}\lt \varepsilon. More precisely, 11 bounds all truncations; for every u<1u\lt 1, choose nn with 10−n<1−u10^{-n}\lt 1-u, so u<1−10−nu\lt 1-10^{-n}. Hence 11 is their supremum, and the cut is exactly 1R1_R. A decimal convention must therefore exclude tails of all 99s if a unique string representation is desired.

Theorem

Eventually periodic decimals are rational

If a decimal has a repeating block of length kk after mm initial digits, then it represents a rational number. Multiplying by 10m+k10^{m+k} and by 10m10^m shifts the repeating tail into the same position; subtracting cancels the infinite tail and leaves an integer equation with a nonzero integer coefficient. Solving that equation gives a quotient of integers.

Theorem

A terminating decimal has a periodic alternative

Every positive terminating decimal is rational and can also be written with a tail of 99s. For instance, 1.25000…=1.24999…1.25000\ldots=1.24999\ldots. This follows by applying the same finite-place-value calculation behind 0.999…=10.999\ldots=1; it is another reason to treat decimal strings as names whose equality must be justified.

Worked example

Converting 0.27‾0.\overline{27} to a fraction

Let x=0.272727…x=0.272727\ldots. Then 100x=27.272727…100x=27.272727\ldots, so subtraction gives 99x=2799x=27, hence x=27/99=3/11x=27/99=3/11. The argument uses only finite subtraction after aligning the repeated block; it does not claim that every infinite decimal is periodic.

Worked example

Why a nonrepeating decimal can still be real

The decimal expansion of 2\sqrt{2} is not eventually periodic, but its finite truncations and one-step upper fences form nested rational intervals. Their widths tend to zero by the Archimedean estimate, and the associated cut gives one real boundary. Irrationality means that this boundary is not a rational element, not that it fails to be a real number.

The converse: rationals produce periodic decimals

The cancellation argument proves “eventually periodic implies rational.” The converse is also elementary. Write a rational number in lowest terms as a/ba/b, with b>0b\gt 0. Long division repeatedly records a remainder in {0,1,...,b−1}\{0,1,...,b-1\}. If a remainder becomes zero, the decimal terminates. If not, some remainder repeats because there are only finitely many possibilities. The digits from the first occurrence of that remainder then repeat forever, so a/ba/b has an eventually periodic decimal expansion.

Theorem

Rationality and eventual periodicity

A real number represented in base ten is rational exactly when its decimal expansion is terminating or eventually periodic, after identifying the two representations such as 0.999…0.999\ldots and 11.

Reducing a general real number to its fractional part

For an arbitrary x∈Rx\in R, the Archimedean property gives an integer kk with k≤x<k+1k\le x<k+1. Total order makes this integer part unique: if both kk and ℓ\ell work, then neither can be strictly smaller than the other. Put y=x−ky=x-k, so 0≤y<10\le y<1. Construct the decimal digits of yy and then add kk back to every truncation. This reduces the general case to the unit interval while preserving the same error width.

Worked example

Constructing fractional digits by floors

For y∈[0,1)y\in[0,1) and n≥1n\ge1, define dn=⌊10ny⌋−10⌊10n−1y⌋d_n=\lfloor10^n y\rfloor-10\lfloor10^{n-1}y\rfloor. Then dn∈{0,…,9}d_n\in\{0,\ldots,9\} and the truncation tn=⌊10ny⌋/10nt_n=\lfloor10^n y\rfloor/10^n satisfies tn≤y<tn+10−nt_n\le y\lt t_n+10^{-n}. Therefore k+tn≤x<k+tn+10−nk+t_n\le x<k+t_n+10^{-n}; the digits construct nested rational fences for every real xx, with an explicit error bound independent of any picture of an infinite string.

The digit formula needs two checks. Put m=⌊10n−1y⌋m=\lfloor10^{n-1}y\rfloor. Then m≤10n−1y<m+1m\le10^{n-1}y<m+1, so 10m≤10ny<10m+1010m\le10^ny<10m+10. Taking floors gives 10m≤⌊10ny⌋≤10m+910m\le\lfloor10^ny\rfloor\le10m+9; subtracting 10m10m proves that dnd_n is one of the ten permitted digits. Next the weighted digit sum telescopes:

∑j=1ndj10−j=10−n⌊10ny⌋−⌊y⌋=10−n⌊10ny⌋=tn.\sum_{j=1}^n d_j10^{-j} =10^{-n}\lfloor10^ny\rfloor-\lfloor y\rfloor =10^{-n}\lfloor10^ny\rfloor=t_n.

The last equality uses 0≤y<10\le y<1. Thus the digit construction really recovers the lower fences, rather than merely producing a list of allowed digits. For negative xx, the formula x=k+yx=k+y is an integer-plus-fraction decomposition: for example −1.25=−2+0.75-1.25=-2+0.75. It must not be read as concatenating the minus sign of kk with the digits of yy.

Worked example

A rational but nonterminating expansion

The fraction 1/31/3 has no terminating decimal because a terminating decimal has denominator, after reduction, containing only factors 22 and 55. Long division gives 0.333…0.333\ldots; the repeated remainder 11 explains the period.

Common mistake

Nonterminating does not mean irrational

1/3=0.333…1/3=0.333\ldots is rational because the digits are eventually periodic. Irrationality requires failure of eventual periodicity (or an independent proof that the real is not in QQ), not merely infinitely many digits.

Quick checks

Checkpoint

For the terminating decimal 1.25000…1.25000\ldots, which side of the cut contains 1.251.25: AA or BB? Explain from the definitions.

Use all lower fences, including the ones that equal the boundary.

Solution · Answer

Every lower fence is at most 1.251.25, so 1.251.25 belongs to BB, the set of rational upper bounds of all lower fences. It does not belong to AA: no lower fence is strictly greater than 1.251.25. This is why defining BB as the complement of AA handles a rational boundary correctly.

Exercises

Checkpoint

Write the first four lower and upper rational fences suggested by the decimal 3.14159...3.14159....

Begin with the integer interval and then reveal one more digit at each step.

Solution · Guided solution

One possible chain is

3<x<4,3\lt x\lt 4,3.1<x<3.2,3.1\lt x\lt 3.2,3.14<x<3.15,3.14\lt x\lt 3.15,3.141<x<3.142.3.141\lt x\lt 3.142.

Each step traps the target in a narrower rational interval.

Checkpoint

Starting from the informal decimal 2.718...2.718..., write four lower fences, four upper fences, and the corresponding cut (A,B)(A,B).

Follow the same construction used above.

Solution · Guided solution

One valid choice is

S={2, 2.7, 2.71, 2.718,…},T={3, 2.8, 2.72, 2.719,…}.S=\{2,\ 2.7,\ 2.71,\ 2.718,\ldots\},\qquad T=\{3,\ 2.8,\ 2.72,\ 2.719,\ldots\}.

Then

A={q∈Q:∃s∈S, q<s},B=Q∖A={q∈Q:∀s∈S, s≤q}.A=\{q\in Q:\exists s\in S,\ q<s\},\qquad B=Q\setminus A=\{q\in Q:\forall s\in S,\ s\le q\}.

The exact later digits do not affect the argument: lower fences increase, upper fences decrease, and the two families enclose one boundary.

Checkpoint

Why does the cut C={r∈Q:r≤0 or r2<2}C=\{r\in Q:r\le0\text{ or }r^2\lt2\} represent an irrational number?

Use what was already proved about rational squares.

Solution · Guided solution

If the cut were rational, then its boundary would be some rational number qq with q2=2q^2=2. But earlier results show that no rational has square 22. Therefore the cut cannot be rational, so the corresponding real number is irrational.

Checkpoint

If the first kk decimal digits of a cut are already known, how should the next digit be selected?

Describe the rule in terms of the embedded rational cuts.

Solution · Guided solution

Test the ten candidates 0,1,…,90,1,\ldots,9 in the next place. Append each candidate to the current truncation and choose the largest candidate qq whose embedded cut satisfies qR≤Aq_R\le A. That candidate is the next lower fence; the matching upper fence is one place-unit larger.

Read this after 4.5 Dedekind cuts and the embedding of Q and 3.5 Gaps in Q and why sqrt(2) is not rational. Then continue to 5.1 Sequences and epsilon-N limits.

Practice

Work out your answer, then check it. You can revise and try again.

Loading…

Key terms in this unit