6. If f(x) = xex/sin(x) for 0 < x < p , then f’(x) =

A. ex/cosx

B. ex(x+1)/cosx

C.ex[sinx+xcosx]/sin2x

D.ex[x(sinx+cosx)+sinx]/sin2x

E.ex[x(sinx-cosx)+sinx]/sin2x

 

Solution: The answer is E

 

Use the quotient rule and the product rule for differentiating f(x), as follows,