There is an issue here:
"1.x-1=0 giving x=-1"
Should be "giving x=1"
Should be "giving x=1"
Now, how can I buy you a coffee?
Added in edit: Downvote?!? Who would downvote this comment? Bizarre ... <fx: Departs, stage right, shaking head in confusion />
You might be right, but I still find it very very odd.