# Arithmetic–geometric mean

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

First, compute the arithmetic and geometric means of *x* and *y*, calling them *a*_{1} and *g*_{1} respectively (the latter is the principal square root of the product *xy*):

Then, use iteration, with *a*_{1} taking the place of *x* and *g*_{1} taking the place of *y*. In this way, two sequences (*a*_{n}) and (*g*_{n}) are defined:

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

This can be used for algorithmic purposes as in the AGM method, which makes it possible to construct fast algorithms for calculating exponential and trigonometric functions, as well as some mathematical constants, in particular, to quickly compute .

## Example

To find the arithmetic–geometric mean of *a*_{0} = 24 and *g*_{0} = 6, first calculate their arithmetic and geometric means, thus:

and then iterate as follows:

The first five iterations give the following values:

*n**a*_{n}*g*_{n}0 24 6 1 15 12 2 13.5 13.416407864998738178455042… 3 13.458203932499369089227521… 13.458139030990984877207090… 4 13.458171481745176983217305… 13.458171481706053858316334… 5 13.458171481725615420766820… 13.458171481725615420766806…

As can be seen, the number of digits in agreement (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, (*g _{n}*) is an increasing sequence, (

*a*) is a decreasing sequence, and

_{n}*g*≤

_{n}*M*(

*x*,

*y*) ≤

*a*. These are strict inequalities if

_{n}*x*≠

*y*.

*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*):

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

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.

The geometric–harmonic mean can be calculated by an analogous method, using sequences of geometric and harmonic means. The arithmetic–harmonic mean can be similarly defined, but takes the same value as the geometric mean.

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

## Proof of existence

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

and thus

that is, the sequence *g _{n}* 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:

However, we can also see that:

and so:

## Proof of the integral-form expression

This proof is given by Gauss.^{[2]}
Let

Changing the variable of integration to , where

gives

Thus, we have

The last equality comes from observing that .

Finally, we obtain the desired result

## The AGM method

Gauss noticed^{[6]}^{[7]} that the sequences

as

have the same limit:

the arithmetic–geometric mean, *agm*.

It is possible to use this fact to construct fast algorithms for calculating elementary transcendental functions and some classical constants, in particular, the constant π.

### Applications

#### The number *π*

For example, according to the Gauss–Salamin formula:^{[8]}

where

which can be computed without loss of precision using

#### Complete elliptic integral *K*(sin*α*)

Taking , yields the *agm*,

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

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

#### Other applications

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

## See also

## External links

## References

### Notes

- ↑ agm(24, 6) at WolframAlpha
- 1 2 David A. Cox (2004). "The Arithmetic-Geometric Mean of Gauss". In J.L. Berggren; Jonathan M. Borwein; Peter Borwein.
*Pi: A Source Book*. Springer. p. 481. ISBN 978-0-387-20571-7. first published in*L'Enseignement Mathématique*, t. 30 (1984), p. 275-330 - ↑ Hercules G. Dimopoulos (2011).
*Analog Electronic Filters: Theory, Design and Synthesis*. Springer. pp. 147–155. ISBN 978-94-007-2189-0. - ↑ Abramowitz, Milton; Stegun, Irene Ann, eds. (1983) [June 1964]. "Chapter 17".
*Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables*. Applied Mathematics Series.**55**(Ninth reprint with additional corrections of tenth original printing with corrections (December 1972); first ed.). Washington D.C., USA; New York, USA: United States Department of Commerce, National Bureau of Standards; Dover Publications. pp. 598–599. ISBN 0-486-61272-4. LCCN 64-60036. MR 0167642. ISBN 978-0-486-61272-0. LCCN 65-12253. - ↑ King, Louis V. (1924).
*On The Direct Numerical Calculation Of Elliptic Functions And Integrals*. Cambridge University Press. - ↑ B. C. Carlson (1971). "Algorithms involving arithmetic and geometric means".
*Amer. Math. Monthly*.**78**: 496–505. doi:10.2307/2317754. MR 0283246. - ↑ B. C. Carlson (1972). "An algorithm for computing logarithms and arctangents".
*Math.Comp*.**26**(118): 543–549. doi:10.2307/2005182. MR 0307438. - ↑ E. Salamin (1976). "Computation of π using arithmetic-geometric mean".
*Math. Comp*.**30**(135): 565–570. doi:10.2307/2005327. MR 0404124. - ↑ J. Landen (1775). "An investigation of a general theorem for finding the length of any arc of any conic hyperbola, by means of two elliptic arcs, with some other new and useful theorems deduced therefrom".
*Philosophical Transactions of the Royal Society*.**65**: 283–289. doi:10.1098/rstl.1775.0028. - ↑ R.P. Brent (1976). "Fast Multiple-Precision Evaluation of Elementary Functions".
*J. Assoc. Comput. Mach*.**23**(2): 242–251. doi:10.1145/321941.321944. MR 0395314. - ↑ Borwein, J.M.; Borwein, P.B. (1987).
*Pi and the AGM*. New York: Wiley. ISBN 0-471-83138-7. MR 0877728.

### Other

- Zoltán Daróczy, Zsolt Páles, (2002): "Gauss-composition of means and the solution of the Matkowski–Suto problem",
*Publ. Math. Debrecen***61**(1-2) pp 157–218. - M. Hazewinkel (2001), "Arithmetic–geometric mean process", in Hazewinkel, Michiel,
*Encyclopedia of Mathematics*, Springer, ISBN 978-1-55608-010-4 - Weisstein, Eric W. "Arithmetic–Geometric mean".
*MathWorld*.