Continued Fractions and Convergents
Continued fractions approximate a real number by truncating successive integer parts. Adjacent approximants have a determinant of absolute value one.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 1
- Reading time
- 1 min
Write \(x=[a_0;a_1,a_2,\ldots]\) using integer parts and reciprocals. Multiplying the two-by-two matrices with rows \((a_j,1)\) and \((1,0)\) gives the recurrence for the numerators and denominators of convergents. Because each matrix has determinant \(-1\), adjacent numerators and denominators satisfy
\[p_j q_{j-1}-p_{j-1}q_j=(-1)^{j-1}.\]
An error bound from the unused tail
Writing the remaining tail as \(\alpha_{j+1}>1\) gives \(x=(p_j\alpha_{j+1}+p_{j-1})/(q_j\alpha_{j+1}+q_{j-1})\). Subtracting \(p_j/q_j\) shows the error is less than \(1/q_j^2\). For the converse criterion at error \(1/(2q^2)\), see Legendre’s approximation theorem.[1]