# Solving the system $(18xy^2+x^3, 27x^2y+54y^3)=(12, 38)$

While answering this question, I got myself stumped with this crazy system with an evil graph: $$\begin{cases} 18xy^2+x^3=12 \\ 27x^2y+54y^3=38 \end{cases}$$ and I wonder whether there is some slick method to find the only real root $(x, y)=(2, 1/3)$ without relying on Cardano’s formula, ideally giving some intuition. This closely reassembles some kind of elliptic curves, so I’m tagging it as such, please remove if wrong. Number theoretic approaches are welcome.

#### Solutions Collecting From Web of "Solving the system $(18xy^2+x^3, 27x^2y+54y^3)=(12, 38)$"

It makes sense to change variables, letting $v=3y$ and $x=2u$, so that what we’re looking for is $(u,v)=(1,1)$. The equations become

$$\begin{cases} uv^2+2u^3=3\\ 18u^2v+v^3=19\\ \end{cases}$$

Multiplying the first by $19$ and the second by $3$ and subtracting gives

$$38u^3-54u^2+19uv^2-3v^3=(u-v)(38u^2-16uv+3v^2)=0$$

The quadratic term is easily seen to be non-negative:

$$9v^2-48uv+114u^2=(3v-8u)^2+50u^2$$

Hence we must have $u=v$. Plugging this into either equation gives the desired result, $u=v=1$.

Added later: Just to elaborate, the given equations change into something of the form

$$\begin{cases} ru^3+(1-r)uv^2=1\\ sv^3+(1-s)u^2v=1\\ \end{cases}$$

$$(u-v)\left(ru^2-(1-r-s)uv+sv^2\right)=0$$

and the quadratic contributes nothing to the (real) solution if $(1-r-s)^2\lt4rs$.

Indeed, all rational solutions are given by $(x,y)=(2,1/3)$. We can see this without any theory on elliptic curves, but just with a computation:
Substitute $y^2=(12-x^3)/(18x)$
from the first equation into the second to obtain $y=19x/(6(2x^3+3)$. This in turn gives the following result:
$$(x-2)(x^2 + 2x + 4)(2x^2 + 4x + 3)(4x^4 – 8x^3 + 10x^2 – 12x + 9)=0$$
Obviously, only $x=2$ is a rational solution for $x$. Also we see, that it is the only real solution.

I see that you used Mathematica to find your “evil graph”. For a result with no clutter, you can also use the command,

Factor[Resultant[18y^2x+x^3-12, 27x^2y+54y^3-38,y]]

which will eliminate the variable y and give you Burde’s neat result.