The symbolic solvers of Mathematica are strong, however, the ones fail
in some cases, for example, for the system {x^(x + y) == y^12, y^(x + y) == x^3}
over the reals.
Indeed,
Solve[{x^(x + y) == y^12, y^(x + y) == x^3}, {x, y}, Reals]
Solve::nsmet: This system cannot be solved with the methods available to Solve. Try Reduce or FindInstance instead.
and
Reduce[{x^(x + y) == y^12, y^(x + y) == x^3}, {x, y}, Reals]
and
FindInstance[{x^(x + y) == y^12, y^(x + y) == x^3}, {x, y}, Reals]
are running without any response for hours in 14.1 on Windows 10.
The plot
ContourPlot[{x^(x + y) == y^12, y^(x + y) == x^3}, {x, -2, 5}, {y, -2, 5}]
suggets the solutions {x -> 1, y -> 1}
and {x -> 4, y -> 2}
, but the plot does not show
a stand alone solution {x -> 1, y -> -1}
. All three solutions can be found numerically by
NSolve[{x^(x+y)==y^12,y^(x+y)==x^3,Abs[x]<=5,Abs[y]<=5},{x,y},Complexes]
{{x -> 0.633359 - 0.238871 I, y -> 0.468235 - 0.809188 I}, {x -> 4.87806 + 0.0317266 I, y -> 1.80523 - 1.61064 I}, {x -> 1., y -> 1.}, {x -> 4.87806 - 0.0317266 I, y -> 1.80523 + 1.61064 I}, {x -> 0.633359 + 0.238871 I, y -> 0.468235 + 0.809188 I}, {x -> 0.536597 + 0.0284836 I, y -> -0.455244 + 0.88115 I}, {x -> 1., y -> -1.}, {x -> 2.58416 - 2.28479 I, y -> -0.776203 + 0.780143 I}, {x -> -0.0133607 + 0.0251473 I, y -> -3.55574 - 2.17787 I}, {x -> 4., y -> 2.}, {x -> 0.816233 + 0.244729 I, y -> 0.81747 + 0.50487 I}, {x -> 4.57655 - 1.68878 I, y -> 1.42345 + 1.68878 I}, {x -> 0.542606 + 0.153983 I, y -> 0.037173 + 0.947603 I}, {x -> 0.693224 - 0.106439 I, y -> -0.870088 + 0.513775 I}, {x -> 2.86014 - 1.25472 I, y -> -1.1218 + 0.18289 I}, {x -> 2.86014 + 1.25472 I, y -> -1.1218 - 0.18289 I}, {x -> 0.693224 + 0.106439 I, y -> -0.870088 - 0.513775 I}, {x -> 0.542606 - 0.153983 I, y -> 0.037173 - 0.947603 I}, {x -> 4.57655 + 1.68878 I, y -> 1.42345 - 1.68878 I}, {x -> 0.816233 - 0.244729 I, y -> 0.81747 - 0.50487 I}, {x -> -0.382865 + 0.00701507 I, y -> -1.0598 - 0.987606 I}, {x -> 4.20838 - 2.08547 I, y -> 2.07887 + 0.0389557 I}, {x -> -3.3177 + 1.10786 I, y -> -0.412412 - 0.398653 I}}
, but there is a chance that there exist other sporadic real solutions. So how to symbolically solve that system with Mathematica?
Reduce
and restrict the range where the search is done (by adding inequalities onx
,y
to the input). There will likely be a result, but not a particularly insightful one (in cases like this it's doubtful if one exists). This is general advice, I did not try it with your specific equations. I wouldn't be very optimistic about exhaustively listing all solutions (without restricting the range ofx
,y
). $\endgroup$Reduce[{x^(x + y) == y^12, y^(x + y) == x^3, x > 0, x < 5, y > 0, y < 5}, {x, y}, Reals]
as well asReduce[{x^(x + y) == y^12, y^(x + y) == x^3, x > 0, x < 5, y > 0, y < 5}, {x, y}, Complexes]
is running for hours too. Thank you anyway. $\endgroup$