the mistake is that x-y=0 so you can't divide by x-y. doing so makes the remaining calculation invalid.