Since a = x, then a-x is zero.
So when you divide both sides by [a-x], you're dividing by zero, and the result is "undefined" (not necessarily infinity).