Solving the equation $\frac{gy}{x} + \frac{2y^2}{x} = \frac{gy}{y^2} + \frac{2x}{y^2}$ for $x$ or $y$ One day, while making and doing math problems, I came across this equation:

$$\frac{gy}{x} + \frac{2y^2}{x} = \frac{gy}{y^2} + \frac{2x}{y^2}$$

After some simple steps, I found $g$, but I couldn't find $x$ or $y$.
Here's a picture, since I'm not good with MathJax.


I would rather approach on a very different way...I want to solve for y.
So,here we are given, 
$$\frac{gy}{x} + \frac{2y^2}{x} = \frac{gy}{y^2} + \frac{2x}{y^2}$$
Now,assume that $g$ is our variable and $x$ and $y$ are constant.then equalling the coefficients we can say that, 
$$\dfrac{y}{x}=\dfrac{y}{y^2} ~~and~~\dfrac{2y^2}{x}=\dfrac{2x}{y^2}$$ 
All of these come to an end,where 
$$y^2=x$$
Hence,$$y=\pm\sqrt{x}$$
If you want to solve for x, then you should follow leucippus solution.
