I am not able to go from the left hand side to the right hand side. Could someone take me through the steps, I tried using common denominator (y^2-x)^2, but was not able to get the result on the right hand side of the equation.
$\frac{2}{y^2-x}\left(-y \left(\frac{y-x^2}{y^2-x}\right)^2+\frac{y-x^2}{y^2-x}-x\right)=\frac{2}{y^2-x}\left(-\frac{2 \text{xy}}{\left(y^2-x\right)^2}\right)$