The real numbers in R are identified with points on a
horizontal line. For the time being, we will identify a real
number x with a decimal expansion .
•
Every decimal expansion represents a real number x:
x
= ±N.d1d2…,
dk
∈ {0,1, ... ,9}.
This is the statement that every infinite series of the form
d1 10−1 + d2 10−2 + …, dk ∈ {0,1, ... ,9},
converges.
Just as well we could identify a real
number x with a binary expansion .
•
Every binary expansion represents a real number x:
x
= ±N.binb1b2…,
bk
∈ {0,1}.
This is the statement that every infinite series of the form
b1 2−1 + b2 2−2 + …, bk ∈ {0,1},
converges.
A demonstration of a correspondence between the binary expansion
and a point on a horizontal line was given in class.
Constructing the Binary Expansion
Let x be a real number, 0 ≤ x < 1.
We divide [0,1) into two half-open intervals,
[0,[1/2]) and [[1/2],1).
Notice, that in binary notation we may write the two intervals as
[0, 0.bin1) and [0.bin1,1).
If x is in the left interval, x = 0 + 0·2−1 + …, so we let b1 = 0,
s1 = 0.binb1, so that
x
= 0.bin0 + …
= s1 + r1,
where
0 ≤ r1 < 2−1.
If x is in the right interval, x = 0 + 1·2−1 + …, so we let b1 = 1,
s1 = 0.binb1, so that
x
= 0.bin1 + …
= s1 + r1,
where
0 ≤ r1 < 2−1.
We formalize the process by saying: Let
b1
=
⎧ ⎪ ⎪ ⎨
⎪ ⎪ ⎩
0,
0 ≤ x <
1
2
,
1,
1
2
≤ x < 1,
s1
= 0.binb1
= b1·2−1,
x
= s1 + r1,
0 ≤ r1 < 2−1.
If the first remainder r1 is 0, that is x = 0 or x = [1/2],
STOP!
- x = s1 and
the binary expansion of x has been found.
If r1 ≠ 0, we apply a similar process to r1 = x − s1 to
find the second binary digit in the expansion of x.
Let r1* = 21 ·r1. Once again divide [0,1) into the two half-open intervals,
[0,[1/2]) and [[1/2],1).
If r1* is in the left interval, x = 0 + b1·2−1 + 0·2−2 + ….
If r1* is in the right interval, x = 0 + b1·2−1 + 1·2−2 + …,
so we let b1 = 1. This is same is saying that x is in the
left or right half as the interval selected in step 1.
Thus
b2
=
⎧ ⎪ ⎪ ⎨
⎪ ⎪ ⎩
0,
0 ≤ r1* <
1
2
,
1,
1
2
≤ r1* < 1,
s2
= 0.binb1 b2
= s1 + b2·2−2
x
= s2 + r2,
0 ≤ r2 < 2−2.
If the second remainder r2 is 0, STOP!
- x = s2 and
the binary expansion of x has been found. Otherwise continue!
The continuation may be defined by the Principle of Mathematical Induction (Recursion)
so that if bn, sn = 0.binb1…bn,
x = sn + rn, have been constructed so that 0 ≤ rn < 2−n, let
rn*
= 2n·rn,
bn+1
=
⎧ ⎪ ⎪ ⎨
⎪ ⎪ ⎩
0,
0 ≤ rn* <
1
2
,
1,
1
2
≤ rn* < 1,
sn+1
= 0.binb1 b2 …bnbn+1
= sn + bn+1·2−(n+1)
x
= sn+1 + rn+1,
0 ≤ rn+1 < 2−(n+1).
If the remainder rn+1 is 0, STOP!
- x = sn+1 and
the binary expansion of x has been found. Otherwise continue!
What has been done: Given x, 0 ≤ x < 1,
there is a sequence {sn}n=1∞
of finite
binary expansions such that 0 ≤ x − sn < 2−n.
Binary Expansion Arguments
Consider the following problem:
1.
Let f(x) be a function such that
•
domain(f) = [0,1).
•
For all x (in [0,1)), 0 ≤ f(x) < 1.
•
The function f is increasing on
[0,1).
Show that there is a number L, 0 ≤ L ≤ 1, such that
Is there an x ∈ [0,1) such that f(x) ≥ [1/2]
= 0.bin1?
If NO, let x1 = 0, b1 = 0, s1 = 0.binb1.
If YES, let x1=x, b1 = 1, s1 = 0.binb1 = 0.bin1. In
both cases, for x1 ≤ x < 1, s1 ≤ f(x1) ≤ f(x) ≤ s1 + [1/2].
Next divide the interval [s1,s1 + [1/2]) into two
parts [0.binb10,0.binb11) and
[0.binb11,s1 + [1/2]). Ask the question:
Is there an x ∈ [x1,1) such that f(x) ≥ s1 + [1/(22)] = 0.binb11?1
If NO, let x2 = x1, b2 = 0, s2 = 0.binb1 b2. If
YES, let x2 = x, b1 = 1, s2 = 0.binb1b2 = s1 +[1/(22)]. Then for x2 ≤ x < 1, s2 ≤ f(x2) ≤ f(x) ≤ s2 + [1/(22)].
If x1, …, xn, b1, …bn, sn=0.binb1…bn have been constructed so that for xn ≤ x < 1, sn ≤ f(xn) ≤ f(x) ≤ sn + [1/(2n)],
Ask the
question: Is there an x ∈ [xn,1) such that
f(xn+1) ≥ sn + [1/(2n+1)] = 0.binb1…bn1?
Then let