Does x^2 - x^2 not factor out the way it shows up there? (I can't remember how any more. Senescence!) If so, that's just a goof.
The real error that allows the apparent proof that 1=2 is the division by zero. @quoththeraven, I thought you yourself pointed that out when we brought up this case a few months ago?