# Arithmetic–geometric mean

(Redirected from Arithmetic-geometric mean)
Jump to navigation Jump to search

In mathematics, the arithmetic–geometric mean (AGM) of two positive real numbers x and y is defined as follows:

Call x and y a0 and g0:

{\displaystyle {\begin{aligned}a_{0}&=x,\\g_{0}&=y.\end{aligned}}}

Then define the two interdependent sequences (an) and (gn) as

{\displaystyle {\begin{aligned}a_{n+1}&={\tfrac {1}{2}}(a_{n}+g_{n}),\\g_{n+1}&={\sqrt {a_{n}g_{n}}}\,.\end{aligned}}}

These two sequences converge to the same number, the arithmetic–geometric mean of x and y; it is denoted by M(x, y), or sometimes by agm(x, y).

The arithmetic–geometric mean is used in fast algorithms for exponential and trigonometric functions, as well as some mathematical constants, in particular, computing π.

## Example

To find the arithmetic–geometric mean of a0 = 24 and g0 = 6, iterate as follows:

${\displaystyle {\begin{array}{rcccl}a_{1}&=&{\tfrac {1}{2}}(24+6)&=&15\\g_{1}&=&{\sqrt {24\cdot 6}}&=&12\\a_{2}&=&{\tfrac {1}{2}}(15+12)&=&13.5\\g_{2}&=&{\sqrt {15\cdot 12}}&=&13.416\ 407\ 8649\dots \\&&\vdots &&\end{array}}}$

The first five iterations give the following values:

n an gn
0 24 6
1 15 12
2 13.5 13.416 407 864 998 738 178 455 042...
3 13.458 203 932 499 369 089 227 521... 13.458 139 030 990 984 877 207 090...
4 13.458 171 481 745 176 983 217 305... 13.458 171 481 706 053 858 316 334...
5 13.458 171 481 725 615 420 766 820... 13.458 171 481 725 615 420 766 806...

The number of digits in which an and gn agree (underlined) approximately doubles with each iteration. The arithmetic–geometric mean of 24 and 6 is the common limit of these two sequences, which is approximately 13.4581714817256154207668131569743992430538388544.[1]

## History

The first algorithm based on this sequence pair appeared in the works of Lagrange. Its properties were further analyzed by Gauss.[2]

## Properties

The geometric mean of two positive numbers is never bigger than the arithmetic mean (see inequality of arithmetic and geometric means). As a consequence, for n > 0, (gn) is an increasing sequence, (an) is a decreasing sequence, and gnM(xy) ≤ an. These are strict inequalities if xy.

M(x, y) is thus a number between the geometric and arithmetic mean of x and y; it is also between x and y.

If r ≥ 0, then M(rx,ry) = r M(x,y).

There is an integral-form expression for M(x,y):

{\displaystyle {\begin{aligned}M(x,y)&={\frac {\pi }{2}}\left(\int _{0}^{\frac {\pi }{2}}{\frac {d\theta }{\sqrt {x^{2}\cos ^{2}\theta +y^{2}\sin ^{2}\theta }}}\right)^{-1}\\&={\frac {\pi }{4}}\cdot {\frac {x+y}{K\left({\frac {x-y}{x+y}}\right)}}\end{aligned}}}

where K(k) is the complete elliptic integral of the first kind:

${\displaystyle K(k)=\int _{0}^{\frac {\pi }{2}}{\frac {d\theta }{\sqrt {1-k^{2}\sin ^{2}(\theta )}}}}$

Indeed, since the arithmetic–geometric process converges so quickly, it provides an efficient way to compute elliptic integrals via this formula. In engineering, it is used for instance in elliptic filter design.[3]

## Related concepts

The reciprocal of the arithmetic–geometric mean of 1 and the square root of 2 is called Gauss's constant, after Carl Friedrich Gauss.

${\displaystyle {\frac {1}{M(1,{\sqrt {2}})}}=G=0.8346268\dots }$

In 1941, ${\displaystyle M(1,{\sqrt {2}})}$ (and hence ${\displaystyle G}$) was proven transcendental by Theodor Schneider.[4][5]

The geometric–harmonic mean can be calculated by an analogous method, using sequences of geometric and harmonic means. One finds that GH(x,y) = 1/M(1/x, 1/y) = xy/M(x,y).[6] The arithmetic–harmonic mean can be similarly defined, but takes the same value as the geometric mean (see section "Calculation" there).

The arithmetic–geometric mean can be used to compute – among others – logarithms, complete and incomplete elliptic integrals of the first and second kind,[7] and Jacobi elliptic functions.[8]

## Proof of existence

From the inequality of arithmetic and geometric means we can conclude that:

${\displaystyle g_{n}\leq a_{n}}$

and thus

${\displaystyle g_{n+1}={\sqrt {g_{n}\cdot a_{n}}}\geq {\sqrt {g_{n}\cdot g_{n}}}=g_{n}}$

that is, the sequence gn is nondecreasing.

Furthermore, it is easy to see that it is also bounded above by the larger of x and y (which follows from the fact that both the arithmetic and geometric means of two numbers lie between them). Thus, by the monotone convergence theorem, the sequence is convergent, so there exists a g such that:

${\displaystyle \lim _{n\to \infty }g_{n}=g}$

However, we can also see that:

${\displaystyle a_{n}={\frac {g_{n+1}^{2}}{g_{n}}}}$

and so:

${\displaystyle \lim _{n\to \infty }a_{n}=\lim _{n\to \infty }{\frac {g_{n+1}^{2}}{g_{n}}}={\frac {g^{2}}{g}}=g}$

## Proof of the integral-form expression

This proof is given by Gauss.[2] Let

${\displaystyle I(x,y)=\int _{0}^{\pi /2}{\frac {d\theta }{\sqrt {x^{2}\cos ^{2}\theta +y^{2}\sin ^{2}\theta }}},}$

Changing the variable of integration to ${\displaystyle \theta '}$, where

${\displaystyle \sin \theta ={\frac {2x\sin \theta '}{(x+y)+(x-y)\sin ^{2}\theta '}},}$

gives

{\displaystyle {\begin{aligned}I(x,y)&=\int _{0}^{\pi /2}{\frac {d\theta '}{\sqrt {{\bigl (}{\frac {1}{2}}(x+y){\bigr )}^{2}\cos ^{2}\theta '+{\bigl (}{\sqrt {xy}}{\bigr )}^{2}\sin ^{2}\theta '}}}\\&=I{\bigl (}{\tfrac {1}{2}}(x+y),{\sqrt {xy}}{\bigr )}.\end{aligned}}}

Thus, we have

{\displaystyle {\begin{aligned}I(x,y)&=I(a_{1},g_{1})=I(a_{2},g_{2})=\cdots \\&=I{\bigl (}M(x,y),M(x,y){\bigr )}=\pi /{\bigr (}2M(x,y){\bigl )}.\end{aligned}}}

The last equality comes from observing that ${\displaystyle I(z,z)=\pi /(2z)}$.

Finally, we obtain the desired result

${\displaystyle M(x,y)=\pi /{\bigl (}2I(x,y){\bigr )}.}$

## Applications

### The number π

For example, according to the Gauss–Salamin formula:[9]

${\displaystyle \pi ={\frac {4\,M(1,1/{\sqrt {2}})^{2}}{1-\sum _{j=1}^{\infty }2^{j+1}c_{j}^{2}}},}$

where

${\displaystyle c_{j}={\frac {1}{2}}\left(a_{j-1}-g_{j-1}\right),}$

which can be computed without loss of precision using

${\displaystyle c_{j}={\frac {c_{j-1}^{2}}{4a_{j}}}.}$

### Complete elliptic integral K(sinα)

Taking ${\displaystyle a_{0}=1}$ and ${\displaystyle g_{0}=\cos \alpha }$ yields the AGM

${\displaystyle M(1,\cos \alpha )={\frac {\pi }{2K(\sin \alpha )}},}$

where K(k) is a complete elliptic integral of the first kind:

${\displaystyle K(k)=\int _{0}^{\pi /2}(1-k^{2}\sin ^{2}\theta )^{-1/2}\,d\theta .}$

That is to say that this quarter period may be efficiently computed through the AGM,

${\displaystyle K(k)={\frac {\pi }{2M(1,{\sqrt {1-k^{2}}})}}.}$

### Other applications

Using this property of the AGM along with the ascending transformations of John Landen,[10] Richard P. Brent[11] suggested the first AGM algorithms for the fast evaluation of elementary transcendental functions (ex, cos x, sin x). Subsequently, many authors went on to study the use of the AGM algorithms.[12]