Since the limit becomes the undetermined form
it means that both polynomials have a root at . So, we can fact both numerator and denominator:
So, the fraction becomes
Now, as x approaches 1, you have no problems anymore:
5.9m questions
7.8m answers