Search This Blog

Wednesday, April 10, 2024

Solving quadratic equations with continued fractions

In mathematics, a quadratic equation is a polynomial equation of the second degree. The general form is

where a ≠ 0.

The quadratic equation on a number can be solved using the well-known quadratic formula, which can be derived by completing the square. That formula always gives the roots of the quadratic equation, but the solutions are expressed in a form that often involves a quadratic irrational number, which is an algebraic fraction that can be evaluated as a decimal fraction only by applying an additional root extraction algorithm.

If the roots are real, 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.

Simple example

Here is a simple example to illustrate the solution of a quadratic equation using continued fractions. We begin with the equation

and manipulate it directly. Subtracting one from both sides we obtain

This is easily factored into

from which we obtain

and finally

Now comes the crucial step. We substitute this expression for x back into itself, recursively, to obtain

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

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 known as the Pell numbers.

Algebraic explanation

We can gain further insight into this simple example by considering the successive powers of

That sequence of successive powers is given by

and so forth. Notice how the fractions derived as successive approximants to 2 appear in this geometric progression.

Since 0 < ω < 1, the sequence {ωn} 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 2, in the limit.

We can also find these numerators and denominators appearing in the successive powers of

The sequence of successive powers {ωn} 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 obtained by forming all the combinations a + b2, where a and b are integers, is an example of an object known in abstract algebra as a ring, and more specifically as an integral domain. The number ω is a unit 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

which can always be obtained by dividing the original equation by its leading coefficient. Starting from this monic equation we see that

But now we can apply the last equation to itself recursively to obtain

If this infinite continued fraction converges at all, it must converge to one of the roots of the monic polynomial x2 + 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 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 b2 − 4c < 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.

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

given by

either converges or diverges depending on both the coefficient b and the value of the discriminant, b2 − 4c.

If b = 0 the general continued fraction solution is totally divergent; the convergents alternate between 0 and . If b ≠ 0 we distinguish three cases.

  1. 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.
  2. If the discriminant is zero the fraction converges to the single root of multiplicity two.
  3. 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 x2 = 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 2 above. In symbols, if

just choose some positive real number p such that

Then by direct manipulation we obtain

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, if the monic polynomial equation x2 + bx + c = 0 has complex coefficients, it must have two (not necessarily distinct) complex roots. Unfortunately, the discriminant b2 − 4c 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

given by

converges or not depending on the value of the discriminant, b2 − 4c, and on the relative magnitude of its two roots.

Denoting the two roots by r1 and r2 we distinguish three cases.

  1. If the discriminant is zero the fraction converges to the single root of multiplicity two.
  2. If the discriminant is not zero, and |r1| ≠ |r2|, the continued fraction converges to the root of maximum modulus (i.e., to the root with the greater absolute value).
  3. If the discriminant is not zero, and |r1| = |r2|, 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 for continued fractions with complex elements.

Infinite compositions of analytic functions

In mathematics, infinite compositions of analytic functions (ICAF) offer alternative formulations of analytic continued fractions, series, products and other infinite expansions, and the theory evolving from such compositions may shed light on the convergence/divergence of these expansions. Some functions can actually be expanded directly as infinite compositions. In addition, it is possible to use ICAF to evaluate solutions of fixed point equations involving infinite expansions. Complex dynamics offers another venue for iteration of systems of functions rather than a single function. For infinite compositions of a single function see Iterated function. For compositions of a finite number of functions, useful in fractal theory, see Iterated function system.

Although the title of this article specifies analytic functions, there are results for more general functions of a complex variable as well.

Notation

There are several notations describing infinite compositions, including the following:

Forward compositions:

Backward compositions:

In each case convergence is interpreted as the existence of the following limits:

For convenience, set Fn(z) = F1,n(z) and Gn(z) = G1,n(z).

One may also write and

Contraction theorem

Many results can be considered extensions of the following result:

Contraction Theorem for Analytic Functions — Let f be analytic in a simply-connected region S and continuous on the closure S of S. Suppose f(S) is a bounded set contained in S. Then for all z in S there exists an attractive fixed point α of f in S such that:

Infinite compositions of contractive functions

Let {fn} be a sequence of functions analytic on a simply-connected domain S. Suppose there exists a compact set Ω ⊂ S such that for each n, fn(S) ⊂ Ω.

Forward (inner or right) Compositions Theorem — {Fn} converges uniformly on compact subsets of S to a constant function F(z) = λ.

Backward (outer or left) Compositions Theorem — {Gn} converges uniformly on compact subsets of S to γ ∈ Ω if and only if the sequence of fixed points {γn} of the {fn} converges to γ.

Additional theory resulting from investigations based on these two theorems, particularly Forward Compositions Theorem, include location analysis for the limits obtained in the following reference. For a different approach to Backward Compositions Theorem, see the following reference.

Regarding Backward Compositions Theorem, the example f2n(z) = 1/2 and f2n−1(z) = −1/2 for S = {z : |z| < 1} demonstrates the inadequacy of simply requiring contraction into a compact subset, like Forward Compositions Theorem.

For functions not necessarily analytic the Lipschitz condition suffices:

Theorem — Suppose is a simply connected compact subset of and let be a family of functions that satisfies

Define:
Then uniformly on If is the unique fixed point of then uniformly on if and only if .

Infinite compositions of other functions

Non-contractive complex functions

Results involving entire functions include the following, as examples. Set

Then the following results hold:

Theorem E1 — If an ≡ 1,

then FnF is entire.

Theorem E2 — Set εn = |an−1| suppose there exists non-negative δn, M1, M2, R such that the following holds:

Then Gn(z) → G(z) is analytic for |z| < R. Convergence is uniform on compact subsets of {z : |z| < R}.

Additional elementary results include:

Theorem GF3 — Suppose where there exist such that implies Furthermore, suppose and Then for

Theorem GF4 — Suppose where there exist such that and implies and Furthermore, suppose and Then for

Example GF1:

Example GF1:Reproductive universe – A topographical (moduli) image of an infinite composition.

Example GF2:

Example GF2:Metropolis at 30K – A topographical (moduli) image of an infinite composition.

Linear fractional transformations

Results for compositions of linear fractional (Möbius) transformations include the following, as examples:

Theorem LFT1 — On the set of convergence of a sequence {Fn} of non-singular LFTs, the limit function is either:

  1. a non-singular LFT,
  2. a function taking on two distinct values, or
  3. a constant.

In (a), the sequence converges everywhere in the extended plane. In (b), the sequence converges either everywhere, and to the same value everywhere except at one point, or it converges at only two points. Case (c) can occur with every possible set of convergence.

Theorem LFT2 — If {Fn} converges to an LFT, then fn converge to the identity function f(z) = z.

Theorem LFT3 — If fnf and all functions are hyperbolic or loxodromic Möbius transformations, then Fn(z) → λ, a constant, for all , where {βn} are the repulsive fixed points of the {fn}.

Theorem LFT4 — If fnf where f is parabolic with fixed point γ. Let the fixed-points of the {fn} be {γn} and {βn}. If

then Fn(z) → λ, a constant in the extended complex plane, for all z.

Examples and applications

Continued fractions

The value of the infinite continued fraction

may be expressed as the limit of the sequence {Fn(0)} where

As a simple example, a well-known result (Worpitsky Circle*) follows from an application of Theorem (A):

Consider the continued fraction

with

Stipulate that |ζ| < 1 and |z| < R < 1. Then for 0 < r < 1,

, analytic for |z| < 1. Set R = 1/2.

Example.

Example: Continued fraction1 – Topographical (moduli) image of a continued fraction (one for each point) in the complex plane. [−15,15]

Example. A fixed-point continued fraction form (a single variable).

Example: Infinite Brooch - Topographical (moduli) image of a continued fraction form in the complex plane. (6<x<9.6),(4.8<y<8)

Direct functional expansion

Examples illustrating the conversion of a function directly into a composition follow:

Example 1. Suppose is an entire function satisfying the following conditions:

Then

.

Example 2.

Example 3.

Example 4.

Calculation of fixed-points

Theorem (B) can be applied to determine the fixed-points of functions defined by infinite expansions or certain integrals. The following examples illustrate the process:

Example FP1. For |ζ| ≤ 1 let

To find α = G(α), first we define:

Then calculate with ζ = 1, which gives: α = 0.087118118... to ten decimal places after ten iterations.

Theorem FP2 — Let φ(ζ, t) be analytic in S = {z : |z| < R} for all t in [0, 1] and continuous in t. Set

If |φ(ζ, t)| ≤ r < R for ζS and t ∈ [0, 1], then
has a unique solution, α in S, with

Evolution functions

Consider a time interval, normalized to I = [0, 1]. ICAFs can be constructed to describe continuous motion of a point, z, over the interval, but in such a way that at each "instant" the motion is virtually zero (see Zeno's Arrow): For the interval divided into n equal subintervals, 1 ≤ kn set analytic or simply continuous – in a domain S, such that

for all k and all z in S,

and .

Principal example

implies

where the integral is well-defined if has a closed-form solution z(t). Then

Otherwise, the integrand is poorly defined although the value of the integral is easily computed. In this case one might call the integral a "virtual" integral.

Example.

Example 1: Virtual tunnels – Topographical (moduli) image of virtual integrals (one for each point) in the complex plane. [−10,10]
Two contours flowing towards an attractive fixed point (red on the left). The white contour (c = 2) terminates before reaching the fixed point. The second contour (c(n) = square root of n) terminates at the fixed point. For both contours, n = 10,000

Example. Let:

Next, set and Tn(z) = Tn,n(z). Let

when that limit exists. The sequence {Tn(z)} defines contours γ = γ(cn, z) that follow the flow of the vector field f(z). If there exists an attractive fixed point α, meaning |f(z) − α| ≤ ρ|z − α| for 0 ≤ ρ < 1, then Tn(z) → T(z) ≡ α along γ = γ(cn, z), provided (for example) . If cnc > 0, then Tn(z) → T(z), a point on the contour γ = γ(c, z). It is easily seen that

and

when these limits exist.

These concepts are marginally related to active contour theory in image processing, and are simple generalizations of the Euler method

Self-replicating expansions

Series

The series defined recursively by fn(z) = z + gn(z) have the property that the nth term is predicated on the sum of the first n − 1 terms. In order to employ theorem (GF3) it is necessary to show boundedness in the following sense: If each fn is defined for |z| < M then |Gn(z)| < M must follow before |fn(z) − z| = |gn(z)| ≤ n is defined for iterative purposes. This is because occurs throughout the expansion. The restriction

serves this purpose. Then Gn(z) → G(z) uniformly on the restricted domain.

Example (S1). Set

and M = ρ2. Then R = ρ2 − (π/6) > 0. Then, if , z in S implies |Gn(z)| < M and theorem (GF3) applies, so that

converges absolutely, hence is convergent.

Example (S2):

Example (S2)- A topographical (moduli) image of a self generating series.

Products

The product defined recursively by

has the appearance

In order to apply Theorem GF3 it is required that:

Once again, a boundedness condition must support

If one knows n in advance, the following will suffice:

Then Gn(z) → G(z) uniformly on the restricted domain.

Example (P1). Suppose with observing after a few preliminary computations, that |z| ≤ 1/4 implies |Gn(z)| < 0.27. Then

and

converges uniformly.

Example (P2).

Example (P2): Picasso's Universe – a derived virtual integral from a self-generating infinite product. Click on image for higher resolution.

Continued fractions

Example (CF1): A self-generating continued fraction.

Example CF1: Diminishing returns – a topographical (moduli) image of a self-generating continued fraction.

Example (CF2): Best described as a self-generating reverse Euler continued fraction.

Example CF2: Dream of Gold – a topographical (moduli) image of a self-generating reverse Euler continued fraction.

Delayed-choice quantum eraser

From Wikipedia, the free encyclopedia https://en.wikipedia.org/wiki/Delayed-choice_quantum_eraser A delayed-cho...