Solving quadratic equations with continued fractions
   HOME

TheInfoList



OR:

In mathematics, a
quadratic equation In algebra, a quadratic equation () is any equation that can be rearranged in standard form as ax^2 + bx + c = 0\,, where represents an unknown value, and , , and represent known numbers, where . (If and then the equation is linear, not q ...
is a polynomial equation of the second degree. The general form is :ax^2+bx+c=0, where ''a'' ≠ 0. The quadratic equation on a number x can be solved using the well-known
quadratic formula In elementary algebra, the quadratic formula is a formula that provides the solution(s) to a quadratic equation. There are other ways of solving a quadratic equation instead of using the quadratic formula, such as factoring (direct factoring, g ...
, which can be derived by
completing the square : In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the form :ax^2 + bx + c to the form :a(x-h)^2 + k for some values of ''h'' and ''k''. In other words, completing the square places a perfe ...
. That formula always gives the roots of the quadratic equation, but the solutions are expressed in a form that often involves a
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational, a quadratic irrationality or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducibl ...
number, which is an
algebraic fraction In algebra, an algebraic fraction is a fraction (mathematics), fraction whose numerator and denominator are algebraic expressions. Two examples of algebraic fractions are \frac and \frac. Algebraic fractions are subject to the same laws as arithmet ...
that can be evaluated as a
decimal fraction The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic num ...
only by applying an additional root extraction algorithm. If the roots are
real Real may refer to: Currencies * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Music Albums * ''Real'' (L'Arc-en-Ciel album) (2000) * ''Real'' (Bright album) (2010) ...
, there is an alternative technique that obtains a rational approximation to one of the roots by manipulating the equation directly. The method works in many cases, and long ago it stimulated further development of the analytical theory of
continued fractions In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer ...
.


Simple example

Here is a simple example to illustrate the solution of a quadratic equation using
continued fraction In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer ...
s. We begin with the equation : x^2 = 2 and manipulate it directly. Subtracting one from both sides we obtain : x^2 - 1 = 1. This is easily factored into : (x+1)(x-1) = 1 from which we obtain : (x-1) = \frac and finally : x = 1+\frac. Now comes the crucial step. We substitute this expression for ''x'' back into itself, recursively, to obtain : x = 1+\cfrac = 1+\cfrac. But now we can make the same recursive substitution again, and again, and again, pushing the unknown quantity ''x'' as far down and to the right as we please, and obtaining in the limit the infinite continued fraction : x = 1+\cfrac = \sqrt. By applying the fundamental recurrence formulas we may easily compute the successive convergents of this continued fraction to be 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169, ..., where each successive convergent is formed by taking the numerator plus the denominator of the preceding term as the denominator in the next term, then adding in the preceding denominator to form the new numerator. This sequence of denominators is a particular
Lucas sequence In mathematics, the Lucas sequences U_n(P,Q) and V_n(P, Q) are certain constant-recursive integer sequences that satisfy the recurrence relation : x_n = P \cdot x_ - Q \cdot x_ where P and Q are fixed integers. Any sequence satisfying this rec ...
known as the
Pell number In mathematics, the Pell numbers are an infinite sequence of integers, known since ancient times, that comprise the denominators of the closest rational approximations to the square root of 2. This sequence of approximations begins , , , , an ...
s.


Algebraic explanation

We can gain further insight into this simple example by considering the successive powers of : \omega = \sqrt - 1. That sequence of successive powers is given by : \begin \omega^2& = 3 - 2\sqrt, & \omega^3& = 5\sqrt - 7, & \omega^4& = 17 - 12\sqrt, \\ \omega^5& = 29\sqrt-41, & \omega^6& = 99 - 70\sqrt, & \omega^7& = 169\sqrt - 239, \, \end and so forth. Notice how the fractions derived as successive approximants to appear in this
geometric progression In mathematics, a geometric progression, also known as a geometric sequence, is a sequence of non-zero numbers where each term after the first is found by multiplying the previous one by a fixed, non-zero number called the ''common ratio''. For ex ...
. Since 0 < ''ω'' < 1, the sequence clearly tends toward zero, by well-known properties of the positive real numbers. This fact can be used to prove, rigorously, that the convergents discussed in the simple example above do in fact converge to , in the limit. We can also find these numerators and denominators appearing in the successive powers of : \omega^ = \sqrt + 1. The sequence of successive powers does not approach zero; it grows without limit instead. But it can still be used to obtain the convergents in our simple example. Notice also that the
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
obtained by forming all the combinations ''a'' + ''b'', where ''a'' and ''b'' are integers, is an example of an object known in
abstract algebra In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures. Algebraic structures include group (mathematics), groups, ring (mathematics), rings, field (mathematics), fields, module (mathe ...
as a
ring Ring may refer to: * Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry * To make a sound with a bell, and the sound made by a bell :(hence) to initiate a telephone connection Arts, entertainment and media Film and ...
, and more specifically as an
integral domain In mathematics, specifically abstract algebra, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural s ...
. The number ω is a
unit Unit may refer to: Arts and entertainment * UNIT, a fictional military organization in the science fiction television series ''Doctor Who'' * Unit of action, a discrete piece of action (or beat) in a theatrical presentation Music * ''Unit'' (a ...
in that integral domain. See also algebraic number field.


General quadratic equation

Continued fractions are most conveniently applied to solve the general quadratic equation expressed in the form of a
monic polynomial In algebra, a monic polynomial is a single-variable polynomial (that is, a univariate polynomial) in which the leading coefficient (the nonzero coefficient of highest degree) is equal to 1. Therefore, a monic polynomial has the form: :x^n+c_x^+\c ...
: x^2 + bx + c = 0 which can always be obtained by dividing the original equation by its leading coefficient. Starting from this monic equation we see that : \begin x^2 + bx& = -c\\ x + b& = \frac\\ x& = -b - \frac\, \end But now we can apply the last equation to itself recursively to obtain : x = -b-\cfrac If this infinite continued fraction converges at all, it must converge to one of the
roots A root is the part of a plant, generally underground, that anchors the plant body, and absorbs and stores water and nutrients. Root or roots may also refer to: Art, entertainment, and media * ''The Root'' (magazine), an online magazine focusing ...
of the monic polynomial ''x''2 + ''bx'' + ''c'' = 0. Unfortunately, this particular continued fraction does not converge to a finite number in every case. We can easily see that this is so by considering the
quadratic formula In elementary algebra, the quadratic formula is a formula that provides the solution(s) to a quadratic equation. There are other ways of solving a quadratic equation instead of using the quadratic formula, such as factoring (direct factoring, g ...
and a monic polynomial with real coefficients. If the discriminant of such a polynomial is negative, then both roots of the quadratic equation have imaginary parts. In particular, if ''b'' and ''c'' are real numbers and ''b''2 − 4''c'' < 0, all the convergents of this continued fraction "solution" will be real numbers, and they cannot possibly converge to a root of the form ''u'' + ''iv'' (where ''v'' ≠ 0), which does not lie on the
real number line In elementary mathematics, a number line is a picture of a graduated straight line that serves as visual representation of the real numbers. Every point of a number line is assumed to correspond to a real number, and every real number to a poin ...
.


General theorem

By applying a result obtained by Euler in 1748 it can be shown that the continued fraction solution to the general monic quadratic equation with real coefficients : x^2 + bx + c = 0 given by : x = -b-\cfrac either converges or diverges depending on both the coefficient ''b'' and the value of the discriminant, ''b''2 − 4''c''. If ''b'' = 0 the general continued fraction solution is totally divergent; the convergents alternate between 0 and \infty. If ''b'' ≠ 0 we distinguish three cases. #If the discriminant is negative, the fraction diverges by oscillation, which means that its convergents wander around in a regular or even chaotic fashion, never approaching a finite limit. #If the discriminant is zero the fraction converges to the single root of multiplicity two. #If the discriminant is positive the equation has two real roots, and the continued fraction converges to the larger (in absolute value) of these. The rate of convergence depends on the absolute value of the ratio between the two roots: the farther that ratio is from unity, the more quickly the continued fraction converges. When the monic quadratic equation with real coefficients is of the form ''x''2 = ''c'', the general solution described above is useless because division by zero is not well defined. As long as ''c'' is positive, though, it is always possible to transform the equation by subtracting a perfect square from both sides and proceeding along the lines illustrated with above. In symbols, if : x^2 = c\qquad(c>0) just choose some positive real number ''p'' such that : p^2 < c. Then by direct manipulation we obtain : \begin x^2-p^2& = c-p^2\\ (x+p)(x-p)& = c-p^2\\ x-p& = \frac\\ x& = p + \frac\\ & = p+\cfrac & = p+\cfrac \, \end and this transformed continued fraction must converge because all the partial numerators and partial denominators are positive real numbers.


Complex coefficients

By the
fundamental theorem of algebra The fundamental theorem of algebra, also known as d'Alembert's theorem, or the d'Alembert–Gauss theorem, states that every non- constant single-variable polynomial with complex coefficients has at least one complex root. This includes polynomia ...
, if the monic polynomial equation ''x''2 + ''bx'' + ''c'' = 0 has complex coefficients, it must have two (not necessarily distinct) complex roots. Unfortunately, the discriminant ''b''2 − 4''c'' is not as useful in this situation, because it may be a complex number. Still, a modified version of the general theorem can be proved. The continued fraction solution to the general monic quadratic equation with complex coefficients : x^2 + bx + c = 0\qquad (b\ne0) given by : x = -b-\cfrac converges or not depending on the value of the discriminant, ''b''2 − 4''c'', and on the relative magnitude of its two roots. Denoting the two roots by ''r''1 and ''r''2 we distinguish three cases. #If the discriminant is zero the fraction converges to the single root of multiplicity two. #If the discriminant is not zero, and , ''r''1, ≠ , ''r''2, , the continued fraction converges to the ''root of maximum modulus'' (i.e., to the root with the greater absolute value). #If the discriminant is not zero, and , ''r''1, = , ''r''2, , the continued fraction diverges by oscillation. In case 2, the rate of convergence depends on the absolute value of the ratio between the two roots: the farther that ratio is from unity, the more quickly the continued fraction converges. This general solution of monic quadratic equations with complex coefficients is usually not very useful for obtaining rational approximations to the roots, because the criteria are circular (that is, the relative magnitudes of the two roots must be known before we can conclude that the fraction converges, in most cases). But this solution does find useful applications in the further analysis of the
convergence problem In the analytic theory of continued fractions, the convergence problem is the determination of conditions on the partial numerators ''a'i'' and partial denominators ''b'i'' that are sufficient to guarantee the convergence of the continued fra ...
for continued fractions with complex elements.


See also

*
Lucas sequence In mathematics, the Lucas sequences U_n(P,Q) and V_n(P, Q) are certain constant-recursive integer sequences that satisfy the recurrence relation : x_n = P \cdot x_ - Q \cdot x_ where P and Q are fixed integers. Any sequence satisfying this rec ...
*
Methods of computing square roots Methods of computing square roots are numerical analysis algorithms for approximating the principal, or non-negative, square root (usually denoted \sqrt, \sqrt /math>, or S^) of a real number. Arithmetically, it means given S, a procedure for fi ...
*
Pell's equation Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form x^2 - ny^2 = 1, where ''n'' is a given positive nonsquare integer, and integer solutions are sought for ''x'' and ''y''. In Cartesian coordinates, ...


References

*H. S. Wall, ''Analytic Theory of Continued Fractions'',
D. Van Nostrand Company, Inc. David Van Nostrand (December 5, 1811 – June 14, 1886) was a New York City publisher. Biography David Van Nostrand was born in New York City on December 5, 1811. He was educated at Union Hall, Jamaica, New York, and in 1826 entered the publish ...
, 1948 {{DEFAULTSORT:Solving Quadratic Equations With Continued Fractions Continued fractions Elementary algebra Equations Mathematical analysis Root-finding algorithms