According to my textbook, everything he's done in here is right, except for the last step, where he divides by (a-x) which equals zero because a=x. So..case closed. You guys can argue about anything else wrong here, but there isn't anything else wrong. It's only the last step.