It appears that you reversed the two functions when setting up the division problem. Start with and then factor the numerator and the denominator.