assuming your function is ??
You need to factor both the numerator and denominator to determine any cancelling expressions.
Then the denominator will factor as follows
This can be further factored using complex numbers. Is this a requirement?
Do you know the factor theorem? You will need it to factor the numerator. Try to find where a is an integer factor of 9.