Zero to the power of zero

From HandWiki
Short description: Mathematical expression with disputed status

Zero to the power of zero, denoted by 00, is a mathematical expression that is either defined as 1 or left undefined, depending on context. In algebra and combinatorics, one typically defines  00 = 1. In mathematical analysis, the expression is sometimes left undefined. Computer programming languages and software also have differing ways of handling this expression.

Discrete exponents

Many widely used formulas involving natural-number exponents require 00 to be defined as 1. For example, the following three interpretations of b0 make just as much sense for b = 0 as they do for positive integers b:

All three of these specialize to give 00 = 1.

Polynomials and power series

When evaluating polynomials, it is convenient to define 00 as 1. A (real) polynomial is an expression of the form a0x0 + ⋅⋅⋅ + anxn, where x is an indeterminate, and the coefficients ai are real numbers. Polynomials are added termwise, and multiplied by applying the distributive law and the usual rules for exponents. With these operations, polynomials form a ring R[x]. The multiplicative identity of R[x] is the polynomial x0; that is, x0 times any polynomial p(x) is just p(x).[2] Also, polynomials can be evaluated by specializing x to a real number. More precisely, for any given real number r, there is a unique unital R-algebra homomorphism evr : R[x] → R such that evr(x) = r. Because evr is unital, evr(x0) = 1. That is, r0 = 1 for each real number r, including 0. The same argument applies with R replaced by any ring.[3]

Defining 00 = 1 is necessary for many polynomial identities. For example, the binomial theorem (1 + x)n = Σnk=0 (nk) xk holds for x = 0 only if 00 = 1.[4]

Similarly, rings of power series require x0 to be defined as 1 for all specializations of x. For example, identities like 1/1−x = Σn=0 xn and ex = Σn=0 xn/n! hold for x = 0 only if 00 = 1.[5]

In order for the polynomial x0 to define a continuous function RR, one must define 00 = 1.

In calculus, the power rule d/dxxn = nxn−1 is valid for n = 1 at x = 0 only if 00 = 1.

Continuous exponents

Plot of z = xy. The red curves (with z constant) yield different limits as (x, y) approaches (0, 0). The green curves (of finite constant slope, y = ax) all yield a limit of 1.

Limits involving algebraic operations can often be evaluated by replacing subexpressions by their limits; if the resulting expression does not determine the original limit, the expression is known as an indeterminate form.[6] The expression 00 is an indeterminate form: Given real-valued functions f(t) and g(t) approaching 0 (as t approaches a real number or ±∞) with f(t) > 0, the limit of f(t)g(t) can be any non-negative real number or +∞, or it can diverge, depending on f and g. For example, each limit below involves a function f(t)g(t) with f(t), g(t) → 0 as t → 0+ (a one-sided limit), but their values are different: [math]\displaystyle{ \lim_{t \to 0^+} {t}^{t} = 1 , }[/math] [math]\displaystyle{ \lim_{t \to 0^+} \left(e^{-1/t^2}\right)^t = 0, }[/math] [math]\displaystyle{ \lim_{t \to 0^+} \left(e^{-1/t^2}\right)^{-t} = +\infty, }[/math] [math]\displaystyle{ \lim_{t \to 0^+} \left(e^{-1/t}\right)^{at} = e^{-a} . }[/math]

Thus, the two-variable function xy, though continuous on the set {(x, y) : x > 0}, cannot be extended to a continuous function on {(x, y) : x > 0} ∪ {(0, 0)}, no matter how one chooses to define 00.[7]

On the other hand, if f and g are analytic functions on an open neighborhood of a number c, then f(t)g(t) → 1 as t approaches c from any side on which f is positive.[8] This and more general results can be obtained by studying the limiting behavior of the function ln(f(t)g(t)) = g(t) ln f(t).[9][10]

Complex exponents

In the complex domain, the function zw may be defined for nonzero z by choosing a branch of log z and defining zw as ew log z. This does not define 0w since there is no branch of log z defined at z = 0, let alone in a neighborhood of 0.[11][12][13]

History

As a value

In 1752, Euler in Introductio in analysin infinitorum wrote that a0 = 1[14] and explicitly mentioned that 00 = 1.[15] An annotation attributed[16] to Mascheroni in a 1787 edition of Euler's book Institutiones calculi differentialis[17] offered the "justification" [math]\displaystyle{ 0^0 = (a-a)^{n-n} = \frac{(a-a)^n}{(a-a)^n} = 1 }[/math] as well as another more involved justification. In the 1830s, Libri[18][16] published several further arguments attempting to justify the claim 00 = 1, though these were far from convincing, even by standards of rigor at the time.[19]

As a limiting form

Euler, when setting 00 = 1, mentioned that consequently the values of the function 0x take a "huge jump", from for x < 0, to 1 at x = 0, to 0 for x > 0.[14] In 1814, Pfaff used a squeeze theorem argument to prove that xx → 1 as x → 0+.[8]

On the other hand, in 1821 Cauchy[20] explained why the limit of xy as positive numbers x and y approach 0 while being constrained by some fixed relation could be made to assume any value between 0 and by choosing the relation appropriately. He deduced that the limit of the full two-variable function xy without a specified constraint is "indeterminate". With this justification, he listed 00 along with expressions like 0/0 in a table of indeterminate forms.

Apparently unaware of Cauchy's work, Möbius[8] in 1834, building on Pfaff's argument, claimed incorrectly that f(x)g(x) → 1 whenever f(x),g(x) → 0 as x approaches a number c (presumably f is assumed positive away from c). Möbius reduced to the case c = 0, but then made the mistake of assuming that each of f and g could be expressed in the form Pxn for some continuous function P not vanishing at 0 and some nonnegative integer n, which is true for analytic functions, but not in general. An anonymous commentator pointed out the unjustified step;[21] then another commentator who signed his name simply as "S" provided the explicit counterexamples (e−1/x)xe−1 and (e−1/x)2xe−2 as x → 0+ and expressed the situation by writing that "00 can have many different values".[21]

Current situation

  • Some authors define 00 as 1 because it simplifies many theorem statements. According to Benson (1999), "The choice whether to define 00 is based on convenience, not on correctness. If we refrain from defining 00, then certain assertions become unnecessarily awkward. ... The consensus is to use the definition 00 = 1, although there are textbooks that refrain from defining 00."[22] Knuth (1992) contends more strongly that 00 "has to be 1"; he draws a distinction between the value 00, which should equal 1, and the limiting form 00 (an abbreviation for a limit of f(t)g(t) where f(t), g(t) → 0), which is an indeterminate form: "Both Cauchy and Libri were right, but Libri and his defenders did not understand why truth was on their side."[19]
  • Other authors leave 00 undefined because 00 is an indeterminate form: f(t), g(t) → 0 does not imply f(t)g(t) → 1.[23][24]

There do not seem to be any authors assigning 00 a specific value other than 1.[22]

Treatment on computers

IEEE floating-point standard

The IEEE 754-2008 floating-point standard is used in the design of most floating-point libraries. It recommends a number of operations for computing a power:[25]

  • pown (whose exponent is an integer) treats 00 as 1; see § Discrete exponents.
  • pow (whose intent is to return a non-NaN result when the exponent is an integer, like pown) treats 00 as 1.
  • powr treats 00 as NaN (Not-a-Number) due to the indeterminate form; see § Continuous exponents.

The pow variant is inspired by the pow function from C99, mainly for compatibility.[26] It is useful mostly for languages with a single power function. The pown and powr variants have been introduced due to conflicting usage of the power functions and the different points of view (as stated above).[27]

Programming languages

The C and C++ standards do not specify the result of 00 (a domain error may occur). But for C, as of C99, if the normative annex F is supported, the result for real floating-point types is required to be 1 because there are significant applications for which this value is more useful than NaN[28] (for instance, with discrete exponents); the result on complex types is not specified, even if the informative annex G is supported. The Java standard,[29] the .NET Framework method System.Math.Pow,[30] Julia, and Python[31][32] also treat 00 as 1. Some languages document that their exponentiation operation corresponds to the pow function from the C mathematical library; this is the case with Lua's ^ operator[33] and Perl's ** operator[34] (where it is explicitly mentioned that the result of 0**0 is platform-dependent).

Mathematical and scientific software

APL,[citation needed] R,[35] Stata, SageMath,[36] Matlab, Magma, GAP, Singular, PARI/GP,[37] and GNU Octave evaluate x0 to 1. Mathematica[38] and Macsyma simplify x0 to 1 even if no constraints are placed on x; however, if 00 is entered directly, it is treated as an error or indeterminate. SageMath does not simplify 0x. Maple, Mathematica[38] and PARI/GP[37][39] further distinguish between integer and floating-point values: If the exponent is a zero of integer type, they return a 1 of the type of the base; exponentiation with a floating-point exponent of value zero is treated as undefined, indeterminate or error.

See also

  • 0/0

References

  1. "III.§3.5". Elements of Mathematics, Theory of Sets. Springer-Verlag. 2004. 
  2. "§III.2 No. 9". Algèbre. Springer. 1970. "L'unique monôme de degré 0 est l'élément unité de A[(Xi)iI]; on l'identifie souvent à l'élément unité 1 de A" 
  3. "§IV.1 No. 3". Algèbre. Springer. 1970. 
  4. "Binomial coefficients". Concrete Mathematics (1st ed.). Addison-Wesley Longman Publishing Co.. 1989-01-05. p. 162. ISBN 0-201-14236-8. "Some textbooks leave the quantity 00 undefined, because the functions x0 and 0x have different limiting values when x decreases to 0. But this is a mistake. We must define x0 = 1, for all x, if the binomial theorem is to be valid when x = 0, y = 0, and/or x = −y. The binomial theorem is too important to be arbitrarily restricted! By contrast, the function 0x is quite unimportant." 
  5. "The expression 00". The Mathematics Teacher 63: 111–112. 1970. 
  6. Mathematical Analysis. New York, USA: Wiley. 1992. p. 223. ISBN 978-81-224-0323-7. "In general the limit of φ(x)/ψ(x) when x = a in case the limits of both the functions exist is equal to the limit of the numerator divided by the denominator. But what happens when both limits are zero? The division (0/0) then becomes meaningless. A case like this is known as an indeterminate form. Other such forms are ∞/∞, 0 × ∞, ∞ − ∞, 00, 1 and 0." 
  7. "A note on indeterminate forms". American Mathematical Monthly 61 (3): 189–190. March 1954. doi:10.2307/2307224. 
  8. 8.0 8.1 8.2 "Beweis der Gleichung 00 = 1, nach J. F. Pfaff" (in de). Journal für die reine und angewandte Mathematik 1834 (12): 134–136. 1834. doi:10.1515/crll.1834.12.134. http://babel.hathitrust.org/cgi/pt?id=mdp.39015036988163;view=1up;seq=142. 
  9. Baxley, John V.; Hayashi, Elmer K. (June 1978). "Indeterminate Forms of Exponential Type". The American Mathematical Monthly 85 (6): 484–486. doi:10.2307/2320074. https://www.jstor.org/stable/2320074. Retrieved 23 Nov 2021. 
  10. Xiao, Jinsen; He, Jianxun (December 2017). "On Indeterminate Forms of Exponential Type". Mathematics Magazine 90 (5): 371–374. doi:10.4169/math.mag.90.5.371. https://www.jstor.org/stable/10.4169/math.mag.90.5.371. Retrieved 23 Nov 2021. 
  11. Functions of a Complex Variable: Theory and Technique. 2005. p. 15. ISBN 0-89871-595-4. "Since log(0) does not exist, 0z is undefined. For Re(z) > 0, we define it arbitrarily as 0." 
  12. Classical Complex Analysis. Chapman & Hall. 1991. p. 56. ISBN 0-8247-8415-4. "For z = 0, w ≠ 0, we define 0w = 0, while 00 is not defined." 
  13. "The xx Spindle". Mathematics Magazine 69 (3): 198–206. June 1996. doi:10.1080/0025570X.1996.11996428. "... Let's start at x = 0. Here xx is undefined.". 
  14. 14.0 14.1 "Chapter 6, §97". Introduction to analysis of the infinite, Book 1. Springer. 1988. p. 75. ISBN 978-0-387-96824-7. https://books.google.com/books?id=H58dmcLEnk4C. 
  15. "Chapter 6, §99". Introduction to analysis of the infinite, Book 1. Springer. 1988. p. 76. ISBN 978-0-387-96824-7. https://books.google.com/books?id=H58dmcLEnk4C. 
  16. 16.0 16.1 "Mémoire sur les fonctions discontinues." (in fr). Journal für die reine und angewandte Mathematik 1833 (10): 303–316. 1833. doi:10.1515/crll.1833.10.303. http://www.numdam.org/item/ASENS_1875_2_4__57_0/. 
  17. Institutiones calculi differentialis, Vol. 2. Ticini. 1787. ISBN 978-0-387-96824-7. https://books.google.com/books?id=H58dmcLEnk4C. 
  18. "Note sur les valeurs de la fonction 00x" (in fr). Journal für die reine und angewandte Mathematik 1830 (6): 67–72. 1830. doi:10.1515/crll.1830.6.67. 
  19. 19.0 19.1 "Two Notes on Notation". The American Mathematical Monthly 99 (5): 403–422. 1992. doi:10.1080/00029890.1992.11995869. Bibcode1992math......5211K. 
  20. (in fr) Cours d'Analyse de l'École Royale Polytechnique, Oeuvres Complètes: 2, 3, 1821, pp. 65–69 
  21. 21.0 21.1 Anonymous (1834). "Bemerkungen zu dem Aufsatze überschrieben "Beweis der Gleichung 00 = 1, nach J. F. Pfaff"" (in de). Journal für die reine und angewandte Mathematik 1834 (12): 292–294. doi:10.1515/crll.1834.12.292. http://babel.hathitrust.org/cgi/pt?id=mdp.39015036988163;view=1up;seq=300. 
  22. 22.0 22.1 The Moment of Proof: Mathematical Epiphanies. Oxford, UK: Oxford University Press. 1999. p. 29. ISBN 978-0-19-511721-9. 
  23. Calculus (4th ed.). Prentice-Hall. 1994. p. 466. 
  24. Algebra Two. Addison-Wesley. 1982. p. 32. 
  25. Handbook of Floating-Point Arithmetic (1 ed.). Birkhäuser. 2010. p. 216. doi:10.1007/978-0-8176-4705-6. ISBN 978-0-8176-4704-9. https://cds.cern.ch/record/1315760.  ISBN 978-0-8176-4705-6 (online), ISBN 0-8176-4704-X (print)
  26. "More transcendental questions". http://grouper.ieee.org/groups/754/email/msg03270.html.  (NB. Beginning of the discussion about the power functions for the revision of the IEEE 754 standard, May 2007.)
  27. "Re: A vague specification". http://grouper.ieee.org/groups/754/email/msg03292.html.  (NB. Suggestion of variants in the discussion about the power functions for the revision of the IEEE 754 standard, May 2007.)
  28. Rationale for International Standard—Programming Languages—C (Report). Revision 5.10. April 2003. p. 182. https://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf. 
  29. "Math (Java Platform SE 8) pow". Oracle. https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#pow-double-double-. 
  30. ".NET Framework Class Library Math.Pow Method". Microsoft. https://docs.microsoft.com/en-us/dotnet/api/system.math.pow. 
  31. "Built-in Types — Python 3.8.1 documentation". https://docs.python.org/3/library/stdtypes.html. "Python defines pow(0, 0) and 0 ** 0 to be 1, as is common for programming languages." 
  32. "math — Mathematical functions — Python 3.8.1 documentation". https://docs.python.org/3/library/math.html. "Exceptional cases follow Annex 'F' of the C99 standard as far as possible. In particular, pow(1.0, x) and pow(x, 0.0) always return 1.0, even when x is a zero or a NaN." 
  33. "Lua 5.3 Reference Manual". https://www.lua.org/manual/5.3/manual.html#3.4.1. 
  34. "perlop – Exponentiation". https://perldoc.perl.org/perlop.html#Exponentiation. 
  35. The R Core Team (2023-06-11). "R: A Language and Environment for Statistical Computing – Reference Index". p. 25. https://cran.r-project.org/doc/manuals/r-release/fullrefman.pdf. "1 ^ y and y ^ 0 are 1, always." 
  36. The Sage Development Team (2020). "Sage 9.2 Reference Manual: Standard Commutative Rings. Elements of the ring Z of integers.". https://doc.sagemath.org/html/en/reference/rings_standard/sage/rings/integer.html. "For consistency with Python and MPFR, 0^0 is defined to be 1 in Sage." 
  37. 37.0 37.1 "pari.git / commitdiff – 10- x ^ t_FRAC: return an exact result if possible; e.g. 4^(1/2) is now 2". http://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=commitdiff;h=c2fac9a15. 
  38. 38.0 38.1 "Wolfram Language & System Documentation: Power". Wolfram. https://reference.wolfram.com/language/ref/Power.html. 
  39. The PARI Group (2018). "Users' Guide to PARI/GP (version 2.11.0)". pp. 10,122. https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.11.0/users.pdf. "There is also the exponentiation operator ^, when the exponent is of type integer; otherwise, it is considered as a transcendental function. ... If the exponent n is an integer, then exact operations are performed using binary (left-shift) powering techniques. ... If the exponent n is not an integer, powering is treated as the transcendental function exp(n log x)." 

External links