You may have ignored the extra x in the denominator when you factored the numerator and denominator.