Difference between revisions of "Rational approximation"
(→Discussion) |
|||
Line 3: | Line 3: | ||
==Trivial theorem== | ==Trivial theorem== | ||
Every real number <math>x</math> can be approximated by a rational number <math>\frac{p}{q}</math> with a given denominator <math>q\ge 1</math> with an error not exceeding <math>\frac 1{2q}</math>. | Every real number <math>x</math> can be approximated by a rational number <math>\frac{p}{q}</math> with a given denominator <math>q\ge 1</math> with an error not exceeding <math>\frac 1{2q}</math>. | ||
− | ==Proof== | + | ===Proof=== |
Note that the closed interval <math>\left[qx-\frac12,qx+\frac12\right]</math> has length <math>1</math> and, therefore, contains at least one integer. Choosing <math>p</math> to be that integer, we immediately get the result. | Note that the closed interval <math>\left[qx-\frac12,qx+\frac12\right]</math> has length <math>1</math> and, therefore, contains at least one integer. Choosing <math>p</math> to be that integer, we immediately get the result. | ||
---- | ---- | ||
Line 9: | Line 9: | ||
==Dirichlet's theorem== | ==Dirichlet's theorem== | ||
Let <math>n\ge 1</math> be any integer. Then there exists a rational number <math>\frac pq</math> such that <math>1\le q\le n</math> and <math>\left|x-\frac pq\right|<\frac 1{nq}</math>. | Let <math>n\ge 1</math> be any integer. Then there exists a rational number <math>\frac pq</math> such that <math>1\le q\le n</math> and <math>\left|x-\frac pq\right|<\frac 1{nq}</math>. | ||
− | ==Proof of Dirichlet's theorem== | + | ===Proof of Dirichlet's theorem=== |
Consider the [[fractional part]]s <math>\{0\cdot x\},\{1\cdot x\}, \{2\cdot x\},\dots, \{n\cdot x\}</math>. They all belong to the half-open interval <math>[0,1)</math>. Represent the interval <math>[0,1)</math> as the union of <math>n</math> subintervals <math>[0,1)=\left[0,\frac 1n\right)\cup\left[\frac 1n,\frac 2n\right)\cup\dots\cup\left[\frac{n-1}{n},1\right),</math>. Since we have <math>n+1</math> fractional parts and only <math>n</math> subintervals, the [[Pigeonhole Principle|pigeonhole principle]] implies that there are two integers <math>0\le k<\ell\le n</math> such that <math>\{kx\}</math> and <math>\{\ell x\}</math> belong to the same interval. But then the difference <math>(\ell-k)x</math> differs by less than <math>\frac 1n</math> from some integer number <math>p</math>: <math>|(\ell-k)x-p|<\frac 1n</math>. Dividing by <math>q=\ell-k</math>, we get <math>\left|x-\frac pq\right|<\frac1{nq}</math>. | Consider the [[fractional part]]s <math>\{0\cdot x\},\{1\cdot x\}, \{2\cdot x\},\dots, \{n\cdot x\}</math>. They all belong to the half-open interval <math>[0,1)</math>. Represent the interval <math>[0,1)</math> as the union of <math>n</math> subintervals <math>[0,1)=\left[0,\frac 1n\right)\cup\left[\frac 1n,\frac 2n\right)\cup\dots\cup\left[\frac{n-1}{n},1\right),</math>. Since we have <math>n+1</math> fractional parts and only <math>n</math> subintervals, the [[Pigeonhole Principle|pigeonhole principle]] implies that there are two integers <math>0\le k<\ell\le n</math> such that <math>\{kx\}</math> and <math>\{\ell x\}</math> belong to the same interval. But then the difference <math>(\ell-k)x</math> differs by less than <math>\frac 1n</math> from some integer number <math>p</math>: <math>|(\ell-k)x-p|<\frac 1n</math>. Dividing by <math>q=\ell-k</math>, we get <math>\left|x-\frac pq\right|<\frac1{nq}</math>. | ||
− | ==Corollary== | + | ===Corollary=== |
If <math>x</math> is [[irrational number|irrational]], then there are infinitely many irreducible fractions <math>\frac pq</math> such that <math>\left|x-\frac pq\right|<\frac 1{q^2}</math>. | If <math>x</math> is [[irrational number|irrational]], then there are infinitely many irreducible fractions <math>\frac pq</math> such that <math>\left|x-\frac pq\right|<\frac 1{q^2}</math>. | ||
− | ==Proof of the corollary== | + | ===Proof of the corollary=== |
For each <math>n\ge 1</math>, find a (possibly reducible) fraction <math>\frac {P_n}{Q_n}</math> with <math>1\le Q_n\le n</math> such that <math>\left|x-\frac {P_n}{Q_n}\right|<\frac 1{nQ_n}</math>. Let <math>\frac {p_n}{q_n}</math> be the same fraction as <math>\frac {P_n}{Q_n}</math> but reduced to its lowest terms. It is clear that <math>\frac 1{nQ_n}\le \frac 1{Q_n^2}\le \frac 1{q_n^2}</math>, so it remains to show that among the fractions <math>\frac {p_n}{q_n}</math> there are infinitely many different ones. But the distance from the <math>n</math>-th fraction to <math>x</math> does not exceed <math>\frac 1n</math>, which can be made arbitrarily small if we take large enough <math>n</math>. On the other hand, if the fractions <math>\frac {p_n}{q_n}</math> were finitely many, this distance couldn't be made less than the distance from the irrational number <math>x</math> to some finite set of rational numbers, i.e., less than some positive constant. | For each <math>n\ge 1</math>, find a (possibly reducible) fraction <math>\frac {P_n}{Q_n}</math> with <math>1\le Q_n\le n</math> such that <math>\left|x-\frac {P_n}{Q_n}\right|<\frac 1{nQ_n}</math>. Let <math>\frac {p_n}{q_n}</math> be the same fraction as <math>\frac {P_n}{Q_n}</math> but reduced to its lowest terms. It is clear that <math>\frac 1{nQ_n}\le \frac 1{Q_n^2}\le \frac 1{q_n^2}</math>, so it remains to show that among the fractions <math>\frac {p_n}{q_n}</math> there are infinitely many different ones. But the distance from the <math>n</math>-th fraction to <math>x</math> does not exceed <math>\frac 1n</math>, which can be made arbitrarily small if we take large enough <math>n</math>. On the other hand, if the fractions <math>\frac {p_n}{q_n}</math> were finitely many, this distance couldn't be made less than the distance from the irrational number <math>x</math> to some finite set of rational numbers, i.e., less than some positive constant. | ||
− | ==Discussion== | + | ===Discussion=== |
The Dirichlet's theorem can be generalized in various ways. The first way is that one can try to approximate several numbers simultaneously by fractions with common denominator. The exact statement is as follows. | The Dirichlet's theorem can be generalized in various ways. The first way is that one can try to approximate several numbers simultaneously by fractions with common denominator. The exact statement is as follows. | ||
---- | ---- | ||
Line 25: | Line 25: | ||
Another remark that can be useful in some problems is that, if <math>x</math> is irrational, then you can find infinitely many solutions of the inequality <math>\left|x-\frac {p}q\right|<\frac C{q^2}</math> with the denominator <math>q</math> contained in any given arithmetic progression <math>a\ell+b</math> (<math>\ell\in\mathbb Z</math>) if the constant <math>C</math> (depending on the progression) is large enough. To prove it, first, find infinitely many irreducible fractions <math>\frac PQ</math> satisfying <math>\left|x-\frac PQ\right|<\frac 1{Q^2}</math>. Then, for each such fraction, find two integers <math>u,v</math> such that <math>0< u\le Q</math> and <math>uP+vQ=1</math>. Now note that <math>u</math> and <math>Q</math> are relatively prime, so we can find some integer <math>\alpha, \beta</math> such that <math>\alpha u+\beta Q=b</math>. Replacing <math>\alpha</math> and <math>\beta</math> by their [[remainder]]s <math>\tilde\alpha</math> and <math>\tilde\beta</math> modulo <math>a</math>, we get a positive integer <math>q=\tilde\alpha u+\tilde\beta Q</math> satisfying <math>1\le q\le 2aQ</math> and <math>|qx-(\tilde\beta P-\tilde\alpha v)|\le\tilde\alpha|ux+v|+\tilde\beta|Qx-P|\le | Another remark that can be useful in some problems is that, if <math>x</math> is irrational, then you can find infinitely many solutions of the inequality <math>\left|x-\frac {p}q\right|<\frac C{q^2}</math> with the denominator <math>q</math> contained in any given arithmetic progression <math>a\ell+b</math> (<math>\ell\in\mathbb Z</math>) if the constant <math>C</math> (depending on the progression) is large enough. To prove it, first, find infinitely many irreducible fractions <math>\frac PQ</math> satisfying <math>\left|x-\frac PQ\right|<\frac 1{Q^2}</math>. Then, for each such fraction, find two integers <math>u,v</math> such that <math>0< u\le Q</math> and <math>uP+vQ=1</math>. Now note that <math>u</math> and <math>Q</math> are relatively prime, so we can find some integer <math>\alpha, \beta</math> such that <math>\alpha u+\beta Q=b</math>. Replacing <math>\alpha</math> and <math>\beta</math> by their [[remainder]]s <math>\tilde\alpha</math> and <math>\tilde\beta</math> modulo <math>a</math>, we get a positive integer <math>q=\tilde\alpha u+\tilde\beta Q</math> satisfying <math>1\le q\le 2aQ</math> and <math>|qx-(\tilde\beta P-\tilde\alpha v)|\le\tilde\alpha|ux+v|+\tilde\beta|Qx-P|\le | ||
\tilde\alpha u\left|x-\frac PQ\right|+\frac{\tilde\alpha}Q+\frac {\tilde\beta}Q\le \frac {3a}Q\le \frac {6a^2}q</math>. Thus, setting <math>p=\tilde\beta P-\tilde\alpha v</math>, we get <math>\left|x-\frac pq\right|<\frac {6a^2}{q^2}</math>. | \tilde\alpha u\left|x-\frac PQ\right|+\frac{\tilde\alpha}Q+\frac {\tilde\beta}Q\le \frac {3a}Q\le \frac {6a^2}q</math>. Thus, setting <math>p=\tilde\beta P-\tilde\alpha v</math>, we get <math>\left|x-\frac pq\right|<\frac {6a^2}{q^2}</math>. | ||
+ | |||
+ | ===Applications to problem solving=== | ||
+ | One common way to apply Dirichlet's theorem in problem solving is to use it in the following form: given finitely many numbers <math>x_1,\dots,x_m</math> and <math>\delta>0</math>, one can find a positive integer <math>q</math> such that each of the numbers <math>qx_1, qx_2,\dots, qx_m</math> differs from some integer by less than <math>\delta</math>. A typical example of such usage can be found in the article devoted to the famous [[Partition of a rectangle into squares problem]]. | ||
==Liouville Approximation Theorem== | ==Liouville Approximation Theorem== | ||
We can generalize Dirichlet's theorem as follows: If <math>\alpha</math> is an [[algebraic number]] of degree <math>n</math>, then there are only finitely many rational numbers <math>\frac{p}{q}</math> satisfying the following inequality: | We can generalize Dirichlet's theorem as follows: If <math>\alpha</math> is an [[algebraic number]] of degree <math>n</math>, then there are only finitely many rational numbers <math>\frac{p}{q}</math> satisfying the following inequality: | ||
<math>\Bigg|\alpha-\frac{p}{q}\Bigg| \le\frac{1}{q^n}</math>. This gives us the following corollary: <math>\sum_{n=0}^\infty 10^{-n!}</math> is a [[transcendental number]], known as [[Liouville's constant]]. | <math>\Bigg|\alpha-\frac{p}{q}\Bigg| \le\frac{1}{q^n}</math>. This gives us the following corollary: <math>\sum_{n=0}^\infty 10^{-n!}</math> is a [[transcendental number]], known as [[Liouville's constant]]. |
Revision as of 21:13, 24 June 2006
Contents
Introduction
The main theme of this article is the question how well a given real number can be approximated by rational numbers. Of course, since the rationals are dense on the real line, we, surely, can make the difference between and its rational approximation as small as we wish. The problem is that, as we try to make closer and closer to , we may have to use larger and larger and . So, the reasonable question to ask here is how well can we approximate by rationals with not too large denominators.
Trivial theorem
Every real number can be approximated by a rational number with a given denominator with an error not exceeding .
Proof
Note that the closed interval has length and, therefore, contains at least one integer. Choosing to be that integer, we immediately get the result.
So, the interesting question is whether we can get a smaller error of approximation than . Surprisingly enough, it is possible, if not for all , then, at least for some of them.
Dirichlet's theorem
Let be any integer. Then there exists a rational number such that and .
Proof of Dirichlet's theorem
Consider the fractional parts . They all belong to the half-open interval . Represent the interval as the union of subintervals . Since we have fractional parts and only subintervals, the pigeonhole principle implies that there are two integers such that and belong to the same interval. But then the difference differs by less than from some integer number : . Dividing by , we get .
Corollary
If is irrational, then there are infinitely many irreducible fractions such that .
Proof of the corollary
For each , find a (possibly reducible) fraction with such that . Let be the same fraction as but reduced to its lowest terms. It is clear that , so it remains to show that among the fractions there are infinitely many different ones. But the distance from the -th fraction to does not exceed , which can be made arbitrarily small if we take large enough . On the other hand, if the fractions were finitely many, this distance couldn't be made less than the distance from the irrational number to some finite set of rational numbers, i.e., less than some positive constant.
Discussion
The Dirichlet's theorem can be generalized in various ways. The first way is that one can try to approximate several numbers simultaneously by fractions with common denominator. The exact statement is as follows.
If and is an integer, then there exists an integer with and integers such that
The proof is essentially the same except instead of considering numbers , one has to consider vectors , in the unit cube divided into equal subcubes.
Another remark that can be useful in some problems is that, if is irrational, then you can find infinitely many solutions of the inequality with the denominator contained in any given arithmetic progression () if the constant (depending on the progression) is large enough. To prove it, first, find infinitely many irreducible fractions satisfying . Then, for each such fraction, find two integers such that and . Now note that and are relatively prime, so we can find some integer such that . Replacing and by their remainders and modulo , we get a positive integer satisfying and . Thus, setting , we get .
Applications to problem solving
One common way to apply Dirichlet's theorem in problem solving is to use it in the following form: given finitely many numbers and , one can find a positive integer such that each of the numbers differs from some integer by less than . A typical example of such usage can be found in the article devoted to the famous Partition of a rectangle into squares problem.
Liouville Approximation Theorem
We can generalize Dirichlet's theorem as follows: If is an algebraic number of degree , then there are only finitely many rational numbers satisfying the following inequality: . This gives us the following corollary: is a transcendental number, known as Liouville's constant.