Continued fractions give the best rational approximations to an irrational number. In this section, we'll see in what sense this is true.
The first lemma says that the denominators of convergents of continued fractions increase.
Lemma. Let , , , ... be a sequence of integers, where for . Define
Then for .
Proof. Let . Note that is a positive integer, and because the a's are positive integers from on. So
Theorem. Let x be irrational, and let be the k-th convergent in the continued fraction expansion of x. Suppose , , and
Then .
Here's what the result means. Draw the line through the origin in the t-y plane with slope x. Plot the points and .
The hypothesis says that the vertical distance from to is less than the vertical distance from to .
The conclusion says that . In fact, since , I have : The denominator of is bigger than that of .
In other words, the only way the point can be closer to the line is if its y-coordinate is bigger.
Before beginning the proof, I'll note that it is a bit long and technical, though the individual steps aren't hard. I've tried to write out the details carefully, but if the informal discussion above gives you enough of an idea of what the theorem says, you could skip the proof and come back to it later if needed.
Proof. I'll give a proof by contradiction. Suppose that .
Consider the equations
u and v are defined as the solutions to these equations.
Think of this in matrix form:
Using an earlier result on convergents, the determinant of the coefficient matrix is
This means that when I solve the matrix equation by inverting the coefficient matrix, I get
The point is that u and v are integers.
I'll now establish the contradiction in a series of steps.
Step 1. and .
Suppose . Then gives , so
Also, gives , so
That is,
Thus, . But (as and are the numerator and the denominator of a convergent), so . This is a contradiction, because I'm assuming that . This proves that .
Suppose . Then gives . Also, gives . Hence,
This implies , which contradicts established above. Hence, .
Step 2. u and v have opposite signs.
Since , either or .
Suppose . Then , so
Then gives
Since , I must have . Hence, u and v have opposite signs in this case.
Suppose . Then , so . Therefore,
Since , I have . Hence, u and v have opposite signs in this case.
Step 3. and have opposite signs.
The value x of the infinite continued fraction lies between any two consecutive convergents. Hence, either
If , the first inequality gives , so . The second inequality gives , so . Hence, and have opposite signs in this case.
If , the first inequality gives , so . The second inequality gives , so . Hence, and have opposite signs in this case.
Step 4. and have the same sign.
This follows from Steps 2 and 3 by checking the possible combinations of (opposite) signs:
Step 5. (Final contradiction) Since and have the same sign,
Therefore, using the defining equations for u and v to substitute for p and q, I get
It has been a while, but you may still remember that a hypothesis of this theorem was . So we have our contradiction, and it follows that .
Corollary. Let x be irrational, and let be the k-th convergent in the continued fraction expansion of x. Suppose , , and
Then .
Proof. Given the hypotheses of the corollary, suppose on the contrary that . Multiply this inequality by
I get
Apply the theorem to obtain . But then , which contradicts the fact that the q's increase.
Therefore, .
This result says that the only way a rational number can approximate a continued fraction better than a convergent is if the fraction has a bigger denominator than the convergent.
For example, consider the convergents for the continued fraction expansion of :
, which is in error in the seventh place. The theorem says that a fraction can be closer to than only if .
The next result is sort of a converse to the previous two results. It says that if a rational number approximates an irrational number x "sufficiently well", then the rational number must be a convergent in the continued fraction expansion for x.
Theorem. Let x be irrational, and let be a rational number in lowest terms with . Suppose that
Then is a convergent in the continued fraction expansion for x.
Proof. Since for , the q's form a strictly increasing sequence of positive integers. Therefore, for some k,
Since , the contrapositive of the preceding theorem gives
Hence,
Now assume toward a contradiction that is not a convergent in the continued fraction expansion for x. In particular, , so , and hence is a positive integer.
Since ,
(The second inequality comes from the Triangle Inequality: .)
Subtracting from both sides, I get
But I assumed , so this is a contradiction.
Therefore, is a convergent in the continued fraction expansion for x.
Example. Show that is the best rational approximation to by a fraction having a denominator less than 1000.
Suppose that is a fraction in lowest terms that is a better approximation to than , and that .
Since is a fraction is a better approximation to than ,
Since ,
But
Thus,
The hypotheses of the theorem are satisfied, so must be a convergent in the continued fraction expansion of .
But the other convergents with denominators less than 1000 --- 3, , --- with denominators less than 1000 are poorer approximations to than .
Hence, is the best rational approximation to by a fraction having a denominator less than 1000.
Example. (a) Compute the first 6 convergents , ... of the continued fraction for .
(b) Show that is the best rational approximation to having denominator less than 155.
(a)
(b) Suppose that is a fraction in lowest terms which is a better approximation to than , and also that .
Since is a better approximation to than ,
Since ,
So I have
(The inequalities are approximate, but there is enough room between and that there is no problem.)
By the approximation theorem, is a convergent for . But no convergent with is a better approximation than .
This contradiction shows that is the best rational approximation to having denominator less than 155.
Copyright 2019 by Bruce Ikenaga