which has been working fine until I hit this question while studying at home.

I don't know whether to take the derivative of the denominator as the derivative of or the derivative of because it is in the denominator? I'm confused because I can rewrite the function as . What is my g for this formula? Thanks in advance, gurus!!!