Let's get your terminology correct for starters. You can't really solve anything here because you don't have an equation -- there is no equals sign. You can, however, attempt to simplify this.
Factor both numerator and denominator polynomials:
Eliminate the common factor:
So you can now say:
So, why is there a restriction on the value of r ? You tell me.