Hi folks!

I am not sure of what to do next here:

Numerator:

All over this denominator:

(too much latex for the post) How should I approach this? Is there something I should be checking for first? Here's the answer, but I can't figure out how to get from the above to the answer: