Find all integer solutions to the equation $$x^5 - 2x^3y^2 + xy^4 = y^2.$$
I wasn't quite sure how to start on this problem, as factoring out $y^2$ would likely give me a headache and mean that I would have to deal with nasty fractions. I also tried subtracting, but that didn't get me anywhere either.