Equation xy = yx
{{Short description|In general, exponentiation fails to be commutative}}
{{DISPLAYTITLE:Equation xy = yx}}
File:Plot of x^y = y^x.svg, e).]]
In general, exponentiation fails to be commutative. However, the equation has an infinity of solutions, consisting of the line {{tmath|1=x=y}} and a smooth curve intersecting the line at {{tmath|(e,e)}}, where {{tmath|e}} is Euler's number. The only integer solution that is on the curve is {{tmath|1=2^4=4^2}}.
History
The equation is mentioned in a letter of Bernoulli to Goldbach (29 June 1728). The letter contains a statement that when the only solutions in natural numbers are and although there are infinitely many solutions in rational numbers, such as and .
The reply by Goldbach (31 January 1729) contains a general solution of the equation, obtained by substituting A similar solution was found by Euler.
J. van Hengel pointed out that if are positive integers with , then therefore it is enough to consider possibilities and in order to find solutions in natural numbers.
The problem was discussed in a number of publications. In 1960, the equation was among the questions on the William Lowell Putnam Competition,{{cite web |url=http://www.kalva.demon.co.uk/putnam/putn60.html |title=21st Putnam 1960. Problem B1 |date=20 Oct 1999 |url-status=bot: unknown |archive-url=https://web.archive.org/web/20080330183949/http://www.kalva.demon.co.uk/putnam/putn60.html |archive-date=2008-03-30 }} which prompted Alvin Hausner to extend results to algebraic number fields.{{Cite journal |last=Hausner |first=Alvin |date=November 1961 |title=Algebraic Number Fields and the Diophantine Equation mn = nm |journal=The American Mathematical Monthly |volume=68 |issue=9 |pages=856–861 |doi=10.1080/00029890.1961.11989781 |issn=0002-9890}}
Positive real solutions
=Explicit form=
An infinite set of trivial solutions in positive real numbers is given by Nontrivial solutions can be written explicitly using the Lambert W function. The idea is to write the equation as and try to match and by multiplying and raising both sides by the same value. Then apply the definition of the Lambert W function to isolate the desired variable.
:
y^x &= x^y = \exp\left(y\ln x\right) & \\
y^x \exp\left(-y\ln x\right) &= 1 & \left(\mbox{multiply by } \exp\left(-y\ln x\right)\right) \\
y\exp\left(-y\frac{\ln x}{x}\right) &= 1 & \left(\mbox{raise by } 1/x\right) \\
-y\frac{\ln x}{x}\exp\left(-y\frac{\ln x}{x}\right) &= \frac{-\ln x}{x} & \left(\mbox{multiply by } \frac{-\ln x}{x}\right)
\end{align}
:
:
Where in the last step we used the identity .
Here we split the solution into the two branches of the Lambert W function and focus on each interval of interest, applying the identities:
:
W_0\left(\frac{-\ln x}{x}\right) &= -\ln x \quad&\text{for } &0 < x \le e, \\
W_{-1}\left(\frac{-\ln x}{x}\right) &= -\ln x \quad&\text{for } &x \ge e.
\end{align}
- :
:
:
&= \exp\left(-(-\ln x)\right) \\
&= x \end{align}
- :
:
:
\exp\left(-W_0\left(\frac{-\ln x}{x}\right)\right) = x \\
\exp\left(-W_{-1}\left(\frac{-\ln x}{x}\right)\right)
\end{cases}
- :
:
:
\exp\left(-W_0\left(\frac{-\ln x}{x}\right)\right) = x \\
\exp\left(-W_{-1}\left(\frac{-\ln x}{x}\right)\right) = x
\end{cases}
- :
:
:
\exp\left(-W_0\left(\frac{-\ln x}{x}\right)\right) \\
\exp\left(-W_{-1}\left(\frac{-\ln x}{x}\right)\right) = x
\end{cases}
Hence the non-trivial solutions are:
{{Equation box 1
|indent=:
|equation=
\exp\left(-W_0\left(\frac{-\ln(x)}{x}\right)\right) \quad &\text{for } x > e,\\
\exp\left(-W_{-1}\left(\frac{-\ln x}{x}\right)\right) \quad &\text{for } 1 < x < e.
\end{cases}
}}
=Parametric form=
Nontrivial solutions can be more easily found by assuming and letting
Then
:
Raising both sides to the power and dividing by , we get
:
Then nontrivial solutions in positive real numbers are expressed as the parametric equation
{{Equation box 1
|indent=:
|equation=
}}
The full solution thus is
Based on the above solution, the derivative is for the pairs on the line and for the other pairs can be found by which straightforward calculus gives as:
:
for and
Setting or generates the nontrivial solution in positive integers,
Other pairs consisting of algebraic numbers exist, such as and , as well as and .
The parameterization above leads to a geometric property of this curve. It can be shown that describes the isocline curve where power functions of the form have slope for some positive real choice of . For example, has a slope of at which is also a point on the curve
The trivial and non-trivial solutions intersect when . The equations above cannot be evaluated directly at , but we can take the limit as . This is most conveniently done by substituting and letting , so
:
Thus, the line and the curve for intersect at {{math|1=x = y = e}}.
As , the nontrivial solution asymptotes to the line . A more complete asymptotic form is
:
Other real solutions
An infinite set of discrete real solutions with at least one of and negative also exist. These are provided by the above parameterization when the values generated are real. For example, , is a solution (using the real cube root of ). Similarly an infinite set of discrete solutions is given by the trivial solution for when is real; for example .
Similar graphs
= Equation {{math|1={{radic|''y''|''x''}} = {{radic|''x''|''y''}}}} =
The equation produces a graph where the line and curve intersect at . The curve also terminates at (0, 1) and (1, 0), instead of continuing on to infinity.
The curved section can be written explicitly as
This equation describes the isocline curve where power functions have slope 1, analogous to the geometric property of described above.
The equation is equivalent to as can be seen by raising both sides to the power Equivalently, this can also be shown to demonstrate that the equation is equivalent to .
= Equation {{math|1=log<sub>''x''</sub>(''y'') = log<sub>''y''</sub>(''x'')}} =
The equation produces a graph where the curve and line intersect at (1, 1). The curve becomes asymptotic to 0, as opposed to 1; it is, in fact, the positive section of y = 1/x.
References
{{reflist|refs =
|authorlink = Leonard Eugene Dickson|first=Leonard Eugene |last=Dickson
|title = History of the Theory of Numbers
|volume = II
|location = Washington
|year = 1920
|contribution = Rational solutions of xy {{=}} yx
|contribution-url = https://books.google.com/books?id=dO7C02z4LlcC&pg=PA687
|pages = 687
}}
|first = Marta | last = Sved | authorlink = Márta Svéd
|title = On the Rational Solutions of xy {{=}} yx
|year = 1990
|journal = Mathematics Magazine
| volume = 63 | pages = 30–33 | doi = 10.1080/0025570X.1990.11977480 |url = http://www.maa.org/sites/default/files/Sved50816668.pdf
|archive-url = https://web.archive.org/web/20160304191325/http://www.maa.org/sites/default/files/Sved50816668.pdf
|archive-date = 2016-03-04
}}
|title = The William Lowell Putnam mathematical competition problems and solutions: 1938-1964
|authorlink = Andrew M. Gleason|first1=A. M. |last1=Gleason|first2= R. E. |last2=Greenwood|authorlink3=Leroy Milton Kelly|first3=L. M.|last3= Kelly
|publisher = MAA
|year = 1980
|isbn = 0-88385-428-7
|contribution = The twenty-first William Lowell Putnam mathematical competition (December 3, 1960), afternoon session, problem 1
|contribution-url = https://books.google.com/books?id=7D0PAQAAMAAJ&q=%22prove+that+you+have+obtained+all+of+them%22
|pages = 59
}}
|title = Beweis des Satzes, dass unter allen reellen positiven ganzen Zahlen nur das Zahlenpaar 4 und 2 für a und b der Gleichung ab {{=}} ba genügt
|url = http://digital.ub.uni-duesseldorf.de/ulbdsp/periodical/titleinfo/4315444
| journal = Pr. Gymn. Emmerich | jfm = 20.0164.05
|last = van Hengel|first= Johann
|year = 1888
}}
|url = http://www.komal.hu/cikkek/loczy/powers/commpower.e.shtml
|title = On commutative and associative powers
|first = Lajos |last=Lóczi
|journal = KöMaL
|archive-url = https://web.archive.org/web/20021015103129/http://www.komal.hu/cikkek/loczy/powers/commpower.e.shtml
|archive-date = 2002-10-15
}} Translation of: {{cite web
|url = http://db.komal.hu/KomalHU/cikk.phtml?id=200047
|title = Mikor kommutatív, illetve asszociatív a hatványozás?
|language = hu
|archive-url = https://web.archive.org/web/20160506183127/http://db.komal.hu/KomalHU/cikk.phtml?id=200047
|archive-date = 2016-05-06
}}
}}
External links
- {{cite web
|url = http://www.cut-the-knot.org/wiki-math/index.php?n=Algebra.RationalSolutionOfXYYX
|title = Rational Solutions to x^y {{=}} y^x
|work = CTK Wiki Math
|access-date = 2016-04-14
|archive-date = 2021-08-15
|archive-url = https://web.archive.org/web/20210815091140/https://www.cut-the-knot.org/wiki-math/index.php?n=Algebra.RationalSolutionOfXYYX
|url-status = dead
}}
- {{cite web
|url = https://www.math.uni-bielefeld.de/~sillke/PUZZLES/x%5Ey-x%5Ey
|title = x^y {{=}} y^x - commuting powers
|publisher = Torsten Sillke
|work = Arithmetical and Analytical Puzzles
|archive-url = https://web.archive.org/web/20151228091303/https://www.math.uni-bielefeld.de/~sillke/PUZZLES/x%5Ey-x%5Ey
|archive-date = 2015-12-28
}}
- {{cite web
|url = http://www.geogebra.org/material/show/id/3940
|title = Parametric Graph of x^y{{=}}y^x
|publisher = GeoGebra
|author = dborkovitz
|date = 2012-01-29
}}
- {{OEIS el|sequencenumber=A073084|name=Decimal expansion of −x, where x is the negative solution to the equation 2^x {{=}} x^2}}