You may have simplified the expression correctly until the very last step, when you placed the x from the denominator into the numerator.